@charset "UTF-8";

/* top.css — トップページ専用スタイル */

/* topHead — トップページ共通セクション見出し */
.topHead {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-26), 2.47vw, var(--fs-38));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

/* heroNav — KV 下の主要メニュー。トップだけ帯を高く見せる */
.heroNav__link {
  min-height: 70px;
}

/* hero — メインビジュアル（KV スライダー） */
.hero {
  position: relative;
  width: 100%;
}

.hero .swiper {
  overflow: hidden;
}

.hero__link {
  display: block;
}

.hero .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 26px;
  height: 48px;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero__nav::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-gold);
  -webkit-mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
  mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
}

.hero__nav:hover {
  opacity: 0.75;
}

.hero__nav--prev {
  left: clamp(8px, 1.6vw, 24px);
}

.hero__nav--prev::after {
  transform: scaleX(-1);
}

.hero__nav--next {
  right: clamp(8px, 1.6vw, 24px);
}

/* l-inner（max 1210px ＋ 左右 24px）の左端に 1 個目を揃える */
.hero__pagination.swiper-pagination {
  left: 50%;
  bottom: 26px;
  width: min(100%, 1210px);
  padding-inline: 24px;
  transform: translateX(-50%);
  text-align: left;
}

.hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin-inline: 3px !important;
  background-color: var(--color-white);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.hero__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .hero__nav {
    width: 18px;
    height: 32px;
  }

  /* SP は全幅ヒーローの左端から 16px（l-inner の 40px は使わない） */
  .hero__pagination.swiper-pagination {
    left: 16px;
    bottom: 12px;
    width: auto;
    padding-inline: 0;
    transform: none;
  }

  .hero__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }
}

/* featureBar — 利用シーンへの導線（当日出荷 / 送料無料 / 掛け払い） */
.featureBar {
  padding-block: 56px;
}

.featureBar__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.featureBar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0; /* グリッド列を min-content より縮められるように（SP でのはみ出し防止） */
  padding: 8px 20px 4px;
  text-align: center;
  color: var(--color-red-deep);
  border-left: 1px solid var(--color-red-deep);
}

.featureBar__item:last-child {
  border-right: 1px solid var(--color-red-deep);
}

.featureBar__note {
  font-size: clamp(10px, 1.28vw, 19px);
  font-weight: 700;
}

.featureBar__title {
  font-size: clamp(15px, 2.3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.featureBar__item::after {
  content: "";
  width: clamp(30px, 10.81vw, 160px);
  aspect-ratio: 1 / 1;
  margin-top: 4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.featureBar__item--time::after { background-image: url(../img/common/icon_time.svg); }
.featureBar__item--free::after { background-image: url(../img/common/icon_free.svg); }
.featureBar__item--yen::after  { background-image: url(../img/common/icon_yen.svg); }

@media (max-width: 767px) {
  .featureBar .l-inner {
    padding-inline: 10px;
  }

  /* 注記/タイトル/アイコンの3行を列間で共有し、各要素を行の縦中央に揃える */
  .featureBar__list {
    grid-template-rows: repeat(3, auto);
  }

  .featureBar__item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    justify-items: center;
    gap: 4px;
    padding: 0px;
  }

  .featureBar__note {
    font-size: 12px;
    line-height: 1;
  }

  .featureBar__title {
    font-size: 17px;
    line-height: 1.2;
  }

  .featureBar__item::after {
    margin-top: 0;
    width: 52px;
  }
}

/* topicsCarousel — 特集・おすすめ（Swiper ） */
.topicsCarousel {
  padding-block: 50px 130px;
}

.topicsCarousel__body {
  position: relative;
  margin-top: 44px;
}

.topicsCarousel .swiper {
  overflow: hidden;
}

.topicsCarousel__card {
  display: block;
}

.topicsCarousel__card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* スライド枚数が表示枚数以下のとき（Swiper 未初期化）は静的に並べる */
.topicsCarousel .swiper.is-static .swiper-wrapper {
  justify-content: center;
  gap: 24px;
}

.topicsCarousel .swiper.is-static .swiper-slide {
  width: calc((100% - 48px) / 3);
}

@media (max-width: 1024px) {
  .topicsCarousel .swiper.is-static .swiper-wrapper {
    gap: 20px;
  }

  .topicsCarousel .swiper.is-static .swiper-slide {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 767px) {
  .topicsCarousel .swiper.is-static .swiper-wrapper {
    gap: 16px;
  }

  .topicsCarousel .swiper.is-static .swiper-slide {
    width: 100%;
  }
}

.topicsCarousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 40px;
  transform: translateY(-50%);
  cursor: pointer;
}

.topicsCarousel__nav::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-gold);
  -webkit-mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
  mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
}

.topicsCarousel__nav--prev {
  left: -30px;
}

.topicsCarousel__nav--prev::after {
  transform: scaleX(-1);
}

.topicsCarousel__nav--next {
  right: -30px;
}

.topicsCarousel__nav:hover {
  opacity: 0.75;
}

.topicsCarousel__nav[hidden] {
  display: none;
}
@media (max-width: 1480px) {
  .topicsCarousel__nav--prev { left: -4px; }
  .topicsCarousel__nav--next { right: -4px; }
}

@media (max-width: 1260px) {
  .topicsCarousel__nav--prev { left: 0; }
  .topicsCarousel__nav--next { right: 0; }
}
@media (max-width: 767px) {
  .topicsCarousel__nav--prev { left: 8px; }
  .topicsCarousel__nav--next { right: 8px; }
}

/* industry — 業種から選ぶ */
.industry {
  padding-block: 164px;
}

.industry__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.industry__head {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: clamp(30px, 2.7vw, 46px);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.industry__link {
  display: block;
  height: 100%;
  transition: opacity 0.2s ease;
}

.industry__link:hover {
  opacity: 0.85;
}

.industry__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .industry__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SP は見出しを全幅のバーとして上部に配置 */
  .industry__head {
    grid-column: 1 / -1;
    padding-block: 0;
  }
}

.c-rankCard__link {
  display: block;
  color: inherit;
  transition: opacity 0.2s ease;
}

.c-rankCard__link:hover {
  opacity: 0.85;
}

.c-rankCard__thumb {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid #959696;
}

.c-rankCard__img {
  display: block;
  width: 100%;
  aspect-ratio: var(--rankCard-ratio, 1);
  height: auto;
  object-fit: cover;
}

/* 順位バッジ（左上・自動付与） */
.c-rankCard__rank {
  position: absolute;
  top: 9px;
  left: 12px;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  align-items: baseline;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-16);
  line-height: 1;
}

.c-rankCard__rank small {
  font-size: var(--fs-10);
  margin-left: 1px;
}

.c-rankCard__rank--1 { background-color: #c0a800; }
.c-rankCard__rank--2 { background-color: #aab2ab; }
.c-rankCard__rank--3 { background-color: #b45424; }
.c-rankCard__rank--4 { background-color: #dd4b1e; }
.c-rankCard__rank--5 { background-color: #1f6fb2; }

.c-rankCard__type {
  margin-top: 12px;
  font-size: var(--fs-12);
  color: #6b6258;
}

.c-rankCard__name {
  margin-top: 5px;
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1.25;
}

.c-rankCard__price {
  margin-top: 8px;
  font-size: var(--fs-28);
  font-weight: 700;
}

.c-rankCard__tax {
  font-size: var(--fs-20);
  font-weight: 400;
}

@media (max-width: 767px) {
  .c-rankCard__type {
    font-size: var(--fs-15);
  }

  .c-rankCard__price {
    font-size: var(--fs-22);
  }
}

/* スライダー共通：gold 矢印・無効/ロック時の非表示 */
.ranking__nav,
.categoryRanking__cardNav {
  position: absolute;
  top: 34%;
  z-index: 2;
  width: 22px;
  height: 40px;
  transform: translateY(-50%);
  cursor: pointer;
}

.ranking__nav::after,
.categoryRanking__cardNav::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-gold);
  -webkit-mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
  mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
}

.ranking__nav--prev::after,
.categoryRanking__cardNav--prev::after {
  transform: scaleX(-1);
}

.ranking__nav:hover,
.categoryRanking__cardNav:hover {
  opacity: 0.75;
}

.ranking__nav--prev { left: -8px; }
.ranking__nav--next { right: -8px; }

@media (max-width: 1260px) {
  .ranking__nav--prev { left: 0; }
  .ranking__nav--next { right: 0; }
}

.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ranking — ランキング（gold 矢印付きカルーセル） */
.rankingArea {
  padding-block: 80px 65px;
}

.ranking {
  --rankCard-ratio: 275 / 257; 
  padding-bottom: 60px;
}

.ranking__body {
  position: relative;
  margin-top: 40px;
}

.ranking .swiper {
  overflow: hidden;
}

/* categoryRanking — カテゴリー別ランキング */
.categoryRanking {
  --rankCard-ratio: 1;
  margin-top: 64px;
  padding-bottom: 60px;
}

.categoryRanking__body {
  margin-top: 40px;
}

/* タブ（PC） */
.categoryRanking__nav {
  display: flex;
}

.categoryRanking__tabs {
  display: flex;
  flex: 1;
  gap: 8px;
  border-bottom: 2px solid var(--color-red-deep);
}

.categoryRanking__tabs > li {
  flex: 1;
}

/* フォントサイズの変更で崩れないように調整　*/
.categoryRanking__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%; /* 折り返しが起きてもタブの高さを揃える */
  min-height: 54px;
  padding: 8px 10px;
  background-color: var(--color-white);
  border: 2px solid var(--color-red-deep);
  border-bottom: 0; /* 下端の線は .categoryRanking__tabs 側でまとめて引く */
  border-radius: 8px 8px 0 0;
  color: var(--color-red-deep);
  font-family: var(--font-serif);
  font-size: clamp(15px, 2.06vw, 30px);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.categoryRanking__tab.is-active {
  background-color: var(--color-red-deep);
  color: var(--color-white);
}

/* ステッパー矢印（SP のみ表示） */
.categoryRanking__step {
  display: none;
}

/* パネル */
.categoryRanking__panels {
  margin-top: 32px;
}

.categoryRanking__panel {
  position: relative;
  display: none;
  padding-bottom: 90px;
  border-bottom: 1px solid var(--color-red-deep);
}

.categoryRanking__panel.is-active {
  display: block;
  /* タブ切替が分かるよう、表示時にふわっとフェードイン */
  animation: catrankFadeIn 0.45s ease both;
}

@keyframes catrankFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.categoryRanking .swiper {
  overflow: hidden;
}

.categoryRanking__cardNav {
  display: none;
}

/* TAB */
@media (max-width: 1024px) {
  .ranking__nav,
  .categoryRanking__cardNav {
    top: 36%;
  }
}

/* SP */
@media (max-width: 767px) {
  .ranking { padding-bottom: 30px; }
  .ranking__nav--prev { left: 7px; }
  .ranking__nav--next { right: 7px; }

  /* タブ → 1 件表示のスライダー風バー（左右ステッパー付き） */
  .categoryRanking__nav {
    align-items: stretch;
    background-color: var(--color-red-deep);
    border-radius: 6px;
    overflow: hidden;
  }

  .categoryRanking__step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    cursor: pointer;
  }

  .categoryRanking__step::after {
    content: "";
    width: 9px;
    height: 18px;
    background-color: var(--color-white);
    -webkit-mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
    mask: url(../img/common/slide_arrow_r.svg) no-repeat center / contain;
  }

  .categoryRanking__step--prev::after {
    transform: scaleX(-1);
  }

  .categoryRanking__tabs {
    display: block;
    gap: 0;
    border-bottom: 0;
  }

  /* SP はアクティブなカテゴリーのみ表示 */
  .categoryRanking__tab:not(.is-active) {
    display: none;
  }

  .categoryRanking__tab {
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--color-white);
    font-size: var(--fs-16);
  }

  .categoryRanking__tab.is-active {
    background-color: transparent;
  }

  /* パネル下の区切り線は PC のみ */
  .categoryRanking__panel {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .categoryRanking__cardNav {
    display: block;
  }

  .categoryRanking__cardNav--prev { left: -32px; }
  .categoryRanking__cardNav--next { right: -32px; }
}

/* contentWithSidebar — トップページのみ上余白を広く取る */
.contentWithSidebar {
  margin-top: 158px;
}

@media (max-width: 767px) {
  .contentWithSidebar {
    margin-top: 48px;
  }
}

/* c-bnrRow — リンクバナー横並び（PC 2列 / SP 縦積み） */
.c-bnrRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 78px;
}

.contentWithSidebar__main > .c-bnrRow:first-child {
  margin-top: 0;
}

.c-bnrRow__link {
  display: block;
  transition: opacity 0.2s ease;
}

.c-bnrRow__link:hover {
  opacity: 0.88;
}

.c-bnrRow__link img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .c-bnrRow {
    grid-template-columns: 1fr;
    padding-inline: 40px;
  }
}

/* features — フタバ7つの特徴（内容カラム内・washi 背景ボックス） */
.features {
  margin-top: var(--space-section-md);
  padding: 18px 32px 38px;
}

.features__head {
  text-align: center;
}

.features__lead {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-red-deep);
}

.features__sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: -8px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-red-deep);
}

/* お取引実績7000件 の両脇に斜線の装飾 */
.features__sub::before,
.features__sub::after {
  content: "";
  width: 2px;
  height: 24px;
  background-color: var(--color-red-deep);
}

.features__sub::before { transform: rotate(-44deg); }
.features__sub::after { transform: rotate(44deg); }

.features__title {
  margin-top: -0.25em;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.73vw, 70px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-red-deep);
}

.features__title em {
  font-style: normal;
  font-size: 1.3em;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 16px;
}

.features__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  background-color: var(--color-white);
  border: 1px solid var(--color-red-deep);
  margin: -1px 0 0 -1px;
}

.features__item--wide {
  grid-column: 1 / -1;
}

.features__itemHead {
  display: flex;
  align-items: stretch;
  background-color: var(--color-rose);
  border-bottom: 1px solid var(--color-red-deep);
}

.features__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
}

.features__itemTitle {
  display: flex;
  align-items: center;
  padding: 10px 0.25em;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--title-ls, normal);
  color: var(--color-red-deep);
}

.features__item:nth-child(2) { --title-ls: -0.06em; }
.features__item:nth-child(3) { --title-ls: -0.04em; }
.features__item:nth-child(4) { --title-ls: -0.1em; }
.features__item:nth-child(6) { --title-ls: -0.05em; }

.features__text {
    padding: 2em min(9%,2em);
    font-size: var(--fs-13);
    line-height: 1.9;
    text-align: justify;
}

@media (max-width: 1024px) {
  .features__itemTitle {
    letter-spacing: normal;
  }
}

@media (max-width: 767px) {
  .features__item:nth-child(7) { --title-ls: -0.1em; }

  .features__lead {
    font-size: 17px;
  }

  .features__sub {
    font-size: 17px;
  }

  .features__title {
    font-size: 34px;
  }

  .features__num {
    width: 30px;
    font-size: 18px;
  }

  .features__itemTitle {
    padding-block: 2px;
    font-size: 20px;
  }

  .features__text {
    padding: 1em;
    font-size: var(--fs-15);
    line-height: 1.45;
  }
}
/* aboutFutaba — だしの総合メーカー フタバとは（details/summary 展開） */
.aboutFutaba {
  margin-top: 78px;
  padding-top: 26px;
  border-top: 1px solid var(--color-red-deep);
}

.aboutFutaba__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aboutFutaba__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.84vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--color-red-deep);
}

.aboutFutaba__img {
  flex-shrink: 0;
  width: 44.5%;
  max-width: 342px;
  height: auto;
}

.aboutFutaba__details {
  margin-top: 20px;
}

.aboutFutaba__toggle {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.aboutFutaba__toggle::-webkit-details-marker {
  display: none;
}

/* 詳しくはこちら の両脇ライン */
.aboutFutaba__toggle::before,
.aboutFutaba__toggle::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-red-deep);
}

.aboutFutaba__toggleLabel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 0 50px;
  background-color: var(--color-white);
  border-radius: 4px;
  font-size: var(--fs-14);
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-red-deep);
  transition: background-color 0.2s ease;
}

.aboutFutaba__toggle:hover .aboutFutaba__toggleLabel {
  background-color: #faf6ef;
}

/* ↓ アイコン（円＋下矢印）。開いたら反転 */
.aboutFutaba__toggleLabel::before {
  content: "";
  width: 28px;
  aspect-ratio: 1/1;
  background-color: var(--color-red-deep);
  -webkit-mask: url(../img/common/icon_arrow_down.svg) no-repeat center / contain;
  mask: url(../img/common/icon_arrow_down.svg) no-repeat center / contain;
  transition: transform 0.3s ease;
}

.aboutFutaba__details[open] .aboutFutaba__toggleLabel::before {
  transform: rotate(180deg);
}

.aboutFutaba__body {
  margin-top: 28px;
}

.aboutFutaba__p {
  font-size: var(--fs-14);
  line-height: 1.85;
}

.aboutFutaba__p + .aboutFutaba__p {
  margin-top: 26px;
}

@media (max-width: 767px) {
  .features__list {
    grid-template-columns: 1fr;
    width: 88%;
    margin-inline: auto;
  }

  .features__item--wide {
    grid-column: auto;
  }

  .features {
    border-radius: 0;
  }

  .features.u-notch {
    -webkit-mask: none;
    mask: none;
  }

  /* テキスト主体の about は左右に余白を確保 */
  .aboutFutaba {
    margin-top: 45px;
    margin-inline: 40px;
  }

  .aboutFutaba__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .aboutFutaba__img {
    width: 100%;
    max-width: 100%;
  }
}

/* 余白の画面幅別調整 */
@media (max-width: 1024px) {
  .featureBar { padding-block: 48px; }
  .topicsCarousel { padding-block: 44px 90px; }
  .industry { padding-block: 104px; }
  .rankingArea { padding-block: 64px 52px; }
  .categoryRanking { margin-top: 52px; }
  .categoryRanking__panel { padding-bottom: 56px; }
  .c-bnrRow { margin-top: 36px; }
}

@media (max-width: 767px) {
  .featureBar { padding-block: 25px; }
  .topicsCarousel { padding-block: 15px 50px; }
  .topicsCarousel__body { margin-top: 28px; }
  .industry { padding-block: 56px; }
  .rankingArea { padding-block: 25px 10px; }
  .ranking__body { margin-top: 24px; }
  .categoryRanking { margin-top: 40px; }
  .categoryRanking__body { margin-top: 24px; }
  .categoryRanking__panels { margin-top: 20px; }
  .categoryRanking__panel { padding-bottom: 24px; }
  .c-bnrRow { margin-top: 75px; }
  .features { 
    margin-top: 72px;
    padding: 24px 20px 74px;
  }
  .features__list { margin-top: 20px; }
}
