@charset "UTF-8";
/* ==========================================================
   キッズフォーマル 特集TOP
   書体の役割：明朝＝特集名・セクション見出し・記事タイトル／ゴシック＝商品情報・導線・本文
   商品セクションは左寄せ見出し＋罫線、記事セクションは中央見出しにして性格を分ける
   ========================================================== */

.kf-top {
  color: var(--kf-charcoal);
  background: var(--kf-white);
}

/* ---------- KV ----------
   PC：共通ヘッダーのメニューが上に26px重なるため、その分だけ画像を下げ、
       画像は元の比率（1800×720）のまま全体を表示する（モデルが切れないように）
   SP：高さ500px（common.css）で表示
   スライダー（2枚目・ドット・自動再生）は画角確認用。正式KVは1枚構成の予定 */
.kf-top .kv {
  height: auto;
  padding-top: 26px;
}
.kf-top .kv__slider {
  position: relative;
  aspect-ratio: 1800 / 720;
  overflow: hidden;
}
/* 文字の読みやすさのため、左側にだけ生成り色の光を重ねる */
.kf-top .kv__slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 254, 250, .8), rgba(255, 254, 250, .45) 30%, rgba(255, 254, 250, 0) 50%);
  pointer-events: none;
}
.kf-top .kv__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .6s ease;
}
.kf-top .kv__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.kf-top .kv__copy {
  position: absolute;
  z-index: 2;
  top: calc(50% + 13px);
  left: 7%;
  transform: translateY(-50%);
  max-width: 400px;
}
.kf-top .kv__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.kf-top .kv__logo {
  display: block;
  flex-shrink: 0;
  width: 76px;
  height: auto;
  margin: 0;
  mix-blend-mode: multiply;
}
.kf-top .kv__en {
  font: 13px var(--kf-latin);
  letter-spacing: .22em;
  color: #6e655d;
}
.kf-top .kv h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 2.9vw, 38px);
  line-height: 1.3;
  letter-spacing: .04em;
  white-space: nowrap;
}
.kf-top .kv__lead {
  margin: 0;
  font-size: 16px;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* スライドの切り替えドット＋一時停止ボタン（スライダーとあわせて削除予定） */
.kf-top .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
}
.kf-top .dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.kf-top .dots__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 9px;
  height: 9px;
  margin: auto;
  border: 1px solid #77746d;
  border-radius: 50%;
}
.kf-top .dots__btn[aria-current="true"]::before { background: #77746d; }
/* 一時停止（縦2本線）／再生（三角） */
.kf-top .dots__toggle { margin-left: 6px; }
.kf-top .dots__toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 10px;
  margin: auto;
  border-left: 2px solid #77746d;
  border-right: 2px solid #77746d;
}
.kf-top .dots__toggle.is-paused::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #77746d;
  border-right: 0;
}

/* ---------- 導入 ---------- */
.kf-top .intro {
  padding: 48px 18px 56px;
  text-align: center;
}
.kf-top .intro h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: .06em;
}
.kf-top .intro p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--kf-muted-warm);
}

/* ---------- セクション共通 ---------- */
.kf-top .block {
  padding: 64px 0;
  border-top: 1px solid var(--kf-line);
}
.kf-top .block--tint { background: var(--kf-ivory); }

/* 記事セクション用：中央の見出し＋英字ラベル（FORMAL GUIDE のみ） */
.kf-top .head {
  margin-bottom: 36px;
  text-align: center;
}
.kf-top .head__en {
  display: block;
  margin-bottom: 4px;
  font: 13px var(--kf-latin);
  letter-spacing: .18em;
  color: var(--kf-gold-deep);
}
.kf-top .head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: .06em;
}
/* 左寄せの見出し（おすすめ・商品を探す・FAQ） */
.kf-top .head--left {
  margin-bottom: 28px;
  text-align: left;
}
.kf-top .head--left h2 { font-size: 26px; letter-spacing: .04em; }
/* 罫線なし（おすすめラインナップ・商品を探す） */
.kf-top .head--plain {
  padding-bottom: 0;
  border-bottom: 0;
}
/* 下罫線あり（よくある質問） */
.kf-top .head--rule {
  padding-bottom: 12px;
  border-bottom: 1px solid #cfcac1;
}

/* 枠線ボタン（右矢印つき） */
.kf-top .link {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px 40px 12px 20px;
  background: #fff;
  border: 1px solid #3f454c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #292d32;
}
.kf-top .link::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 16px;
  font-size: 18px;
  transform: translateY(-50%);
}
.kf-top .link[href]:hover { background: var(--kf-ivory); }

/* ---------- おすすめラインナップ ---------- */
/* 背景素材はこのセクションのみ。白のレイヤーを重ねて文字・価格を読みやすくする（固定・繰り返しなし） */
.kf-top .recommendations {
  background-image:
    linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)),
    url("../img/background/kids-formal-section-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* 商品カード：画像・商品名・価格・URLは確定後に差し替え */
.kf-top .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
}
.kf-top .product__pic {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f3f0;
  font-size: 13px;
  color: #777;
}
.kf-top .product__pic img { width: 100%; height: 100%; object-fit: cover; }
.kf-top .product h3 {
  margin: 14px 0 6px;
  font-family: var(--kf-gothic);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
/* 価格：本体価格を主、税込価格を従として読みやすさを優先 */
.kf-top .price {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.kf-top .price span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--kf-muted-warm);
}

/* 小学生用かんたん袴セット */
.kf-top .hakama {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  background: #f6f2ee;
}
.kf-top .hakama__scene {
  position: relative;
  min-height: 240px;
}
.kf-top .hakama__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.kf-top .hakama__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}
.kf-top .hakama__catch { font-size: 14px; color: var(--kf-muted-warm); }
.kf-top .hakama h3 {
  margin: 6px 0 12px;
  font-size: 26px;
  line-height: 1.5;
}

/* ---------- 商品を探す ---------- */
.kf-top .search-subheading {
  margin: 0 0 14px;
  font-family: var(--kf-gothic);
  font-size: 19px;
  font-weight: 700;
}
.kf-top .item-search-heading { margin-top: 48px; }

.kf-top .sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kf-top .size {
  padding: 18px 20px 20px;
  background: #f6f5f1;
}
.kf-top .size__range {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.kf-top .gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.kf-top .gender a {
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid #b9b5ad;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #272725;
}

.kf-top .genderlinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 20px;
}
.kf-top .genderlink {
  position: relative;
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid #706f6a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: #252523;
}
.kf-top .genderlink::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 16px;
  font-size: 18px;
  transform: translateY(-50%);
}

.kf-top .items {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kf-top .item {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.kf-top .item__thumb {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 8px;
  overflow: hidden;
  background: #f4f3f0;
}
.kf-top .item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- フォーマルの選び方（記事カード：枠で囲まず、写真＋明朝タイトル＋テキストリンク） ---------- */
.kf-top .guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.kf-top .guide {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* 記事カード画像：推奨素材600×400px。表示時トリミングあり */
.kf-top .guide__scene {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ebe9e4;
}
.kf-top .guide__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.kf-top .guide__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 18px;
}
.kf-top .guide h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.kf-top .guide p {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--kf-muted-warm);
}
.kf-top .guide__link {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--kf-navy);
}
.kf-top .guide__link::after { content: " ›"; }
.kf-top .guide__link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- リンクのホバー（おすすめ商品・商品を探す・記事カード） ---------- */
.kf-top .product__link { display: block; }
.kf-top .gender a,
.kf-top .genderlink,
.kf-top .item__thumb img,
.kf-top .product__pic img,
.kf-top .guide__scene img { transition: background-color .2s, border-color .2s, opacity .2s; }
.kf-top .gender a:hover,
.kf-top .genderlink:hover {
  background: var(--kf-ivory);
  border-color: var(--kf-charcoal);
}
.kf-top .item:hover,
.kf-top .product__link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.kf-top .item:hover .item__thumb img,
.kf-top .product__link:hover .product__pic img,
.kf-top .guide__scene:hover img { opacity: .85; }

/* ---------- タブレット・SP ---------- */
@media (max-width: 820px) {
  /* SPは高さを固定せず、モバイル用KVの比率（3:4）で写真全体を表示する */
  .kf-top .kv {
    height: auto;
    padding-top: 0;
  }
  .kf-top .kv__slider {
    height: auto;
    aspect-ratio: 3 / 4;
  }
  /* 生成り色の光はコピーのある上部だけに弱くかける */
  .kf-top .kv__slider::after {
    background: linear-gradient(180deg, rgba(255, 254, 250, .7), rgba(255, 254, 250, .35) 22%, rgba(255, 254, 250, 0) 36%);
  }
  .kf-top .kv__img { object-position: 66% center; }
  .kf-top .kv__slide--chopin .kv__img { object-position: 88% center; }
  /* モバイル用KV（3:4）は構図どおりに表示する */
  .kf-top .kv__slide--main .kv__img { object-position: center top; }
  /* コピーはモバイル用KVのコピー余白（左上55〜60%幅）に収める */
  .kf-top .kv__copy {
    top: 32px;
    left: 6%;
    transform: none;
    max-width: 58%;
  }
  .kf-top .kv__brand { gap: 12px; margin-bottom: 8px; }
  .kf-top .kv__logo { width: 56px; }
  .kf-top .kv__en { font-size: 12px; }
  /* 見出しは1行のまま、狭い画面ではコピー幅に収まるよう縮める */
  .kf-top .kv h1 { font-size: min(26px, 6vw); }
  /* リードは1行固定をやめ、「、」の位置で折り返す */
  .kf-top .kv__lead {
    font-size: 15px;
    line-height: 1.55;
    white-space: normal;
    word-break: keep-all;
  }

  .kf-top .intro { padding: 40px 18px 44px; }
  .kf-top .intro h2 { font-size: 24px; }
  .kf-top .intro p { font-size: 15px; text-align: left; }
  .kf-top .intro p br { display: none; }

  .kf-top .block { padding: 48px 0; }
  .kf-top .head { margin-bottom: 28px; }
  .kf-top .head h2 { font-size: 24px; }
  .kf-top .head--left { margin-bottom: 22px; }
  .kf-top .head--left h2 { font-size: 23px; }

  /* SPは文字と商品画像を優先し、白のレイヤーをPCより強くする。
     縦長のセクションでcoverにすると素材中央の無地部分だけになるため、
     右上の曲線が見える位置に合わせる */
  .kf-top .recommendations {
    background-image:
      linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
      url("../img/background/kids-formal-section-background.jpg");
    background-size: auto, 200% auto;
    background-position: center top, right top;
    /* 素材の下端と同じ色にして、素材が終わる位置に境目を出さない */
    background-color: #f5f2ee;
  }
  .kf-top .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .kf-top .product h3 { font-size: 15px; }
  .kf-top .price { font-size: 15px; }
  .kf-top .price span { font-size: 13px; }
  .kf-top .hakama { grid-template-columns: 1fr; margin-top: 44px; }
  .kf-top .hakama__scene { min-height: 260px; }
  .kf-top .hakama__scene img { object-position: 62% center; }
  .kf-top .hakama__copy { padding: 24px 20px 28px; }
  .kf-top .hakama h3 { font-size: 23px; }

  .kf-top .sizes { grid-template-columns: 1fr; gap: 14px; }
  .kf-top .item-search-heading { margin-top: 40px; }
  .kf-top .genderlinks { gap: 12px; }
  .kf-top .items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 10px;
  }
  .kf-top .item { font-size: 13px; }

  .kf-top .guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .kf-top .guide__body { padding-top: 12px; }
  .kf-top .guide h3 { font-size: 17px; }
  .kf-top .guide p { font-size: 14px; line-height: 1.7; }
  .kf-top .guide__link { font-size: 14px; }
}

/* 360px以下：ロゴと「KIDS FORMAL」の行がコピー余白（60%）を超えないようにする */
@media (max-width: 360px) {
  .kf-top .kv__brand { gap: 10px; }
  .kf-top .kv__logo { width: 48px; }
  .kf-top .kv__en { font-size: 11px; letter-spacing: .18em; }
}
