/* ===================== トップページ固有スタイル ===================== */
/* セクション間の斜め区切り .splitter-elm は site.css(共有) へ移動 */

/* --- ヒーロー --- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {                 /* 背景は常に100vw・アスペクト比維持(高さauto) */
  width: 100vw;
  height: auto;
}
.hero__bg.media-pc { display: block; }
.hero__bg.media-sp { display: none; }
/* FV画像とコンテンツの間に挟むレイヤー(figma「長方形102」のグラデ設定) */
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(5,32,65,.702) 0%,
    rgba(39,79,126,.478) 96.55%,
    rgba(40,81,128,1) 100%);
}
/* LPのFVと同じ: レイヤーとコンテンツは0.5s待機後0.5sでフェードイン */
.hero__veil, .hero__inner { opacity: 0; animation: fvFadeIn .5s ease .5s forwards; }
@keyframes fvFadeIn { to { opacity: 1; } }
.hero__inner {              /* .container と同じ固定幅+中央寄せで画像に重ねる */
  position: absolute;
  inset: 0;
  z-index: 2;
  width: var(--content-w);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero__title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 40px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero__lead {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 2;
  margin-bottom: 38px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* --- KENT COMPANYとは --- */
.about { padding: 96px 0; }
.about__title { font-size: clamp(30px, 3.3vw, 39px); font-weight: 500; margin-bottom: 44px; }
.about__body { display: flex; gap: 18px; align-items: center; padding: 0 30px; }  /* テキストブロックを画像と上下中央で揃える */
/* 内側に左右30pxのパディング。残り幅を a)と画像2枚で3等分（a)→画像→画像） */
.about__text { flex: none; width: calc((100% - 36px) / 3); }
.about__text p { margin-bottom: 36px; font-size: 15px; }
.about__text .btn { min-width: 0; width: 100%; padding: 16px 18px; gap: 12px; }
.about__photos { display: flex; gap: 18px; flex: none; width: calc((100% - 36px) / 3 * 2 + 18px); }
.about__photos img { flex: 1 1 0; min-width: 0; width: auto; height: auto; aspect-ratio: 232 / 236; object-fit: cover; }

/* --- 事業内容 --- */
.biz { padding: 88px 0 100px; }
.biz .lead { margin-bottom: 60px; }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 56px; }
.biz-card {
  position: relative;
  background: var(--white); color: var(--ink);
  padding: 29px 10px; text-align: center;
  border-radius: 20px 0 0 0;   /* 左上だけ角丸 */
}
/* 番号はカード左上から外へはみ出す変則配置 */
.biz-card__num { position: absolute; top: -0.5em; left: -0.1em; font-size: 67px; color: var(--gold); font-weight: 500; line-height: 1; }
.biz-card__icon { width: 64px; height: 64px; object-fit: contain; margin: 6px auto 20px; }
.biz-card h3 { font-size: 16px; margin-bottom: 14px; }
.biz-card p { font-size: 13px; line-height: 1.8; text-align: left; }

/* --- 4つの強み --- */
.strengths { padding: 92px 0 100px; }
.strengths__title { font-size: clamp(28px, 2.7vw, 33px); font-weight: 500; margin-bottom: 48px; }
.strengths__list { display: flex; flex-direction: column; gap: 40px; }
/* num+slash のワンセットと h3 を同じ行で上下中央に。説明文は h3 の下に揃える */
.strength {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "head title"
    "desc desc";
  align-items: center;
  column-gap: 9px;        /* h3 を slash の右端すぐ横から開始 */
  row-gap: 12px;
}
/* num(左上) と slash(右下) を斜めに互い違いに配置するワンセット */
.strength__head {
  grid-area: head;
  position: relative;
  width: 58px;                /* 数字 + 重なり後の slash を収める幅 */
  padding: 2px 0 26px 0;      /* 下に slash 用の余白を確保 */
}
.strength__num {
  display: inline-block;       /* 字形幅にフィット（重なり量の基準） */
  font-size: 30px; line-height: 1;
  color: var(--gold); font-weight: 500;
  letter-spacing: .04em;
}
.slash-shape {                /* 右上→左下のスラッシュ（縦棒を45°回転） */
  position: absolute;
  right: 21px; bottom: 0;
  width: 1.5px; height: 71.25px;   /* 47.5 × 1.5 */
  background: var(--gold);
  transform: rotate(45deg);
  transform-origin: center;
}
.strength h3 { grid-area: title; color: var(--navy-mid); font-size: clamp(18px, 1.8vw, 22px); }
.strength p  { grid-area: desc; font-size: 15px; padding-left: 36px; }  /* 説明文は slash の中間あたりから */

/* --- FC加盟 --- */
.fc { padding: 80px 0 90px; }
.fc .lead { margin-bottom: 46px; }

/* --- 店舗案内 (.shop-* は site.css の共有) --- */
.shops { padding: 92px 0 100px; }
.shops .lead { margin-bottom: 52px; }
.shops .shop-grid { margin-bottom: 50px; }
/* 「店舗一覧を見る」: shop-grid 最後のセル。PCはセル内の右下に配置 */
.shop-link { display: flex; justify-content: flex-end; align-items: flex-end; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .hero__bg.media-pc { display: none; }
  .hero__bg.media-sp { display: block; }
  .hero__title { line-height: 1.6; margin-bottom: 28px; }

  .about { padding: 60px 0; }
  /* SP: b)画像 を1行目、a)テキスト を2行目に。PC用の3等分幅・パディングは解除 */
  .about__body { flex-direction: column-reverse; gap: 30px; align-items: stretch; padding: 0; }
  .about__text { width: auto; }
  .about__text .btn { width: 60%; }   /* SP: 「詳しく見る」は今の幅の60%に */
  .about__photos { width: auto; }
  .about__photos img { width: 50%; height: auto; aspect-ratio: 1/1; }

  .biz { padding: 56px 0 64px; }
  .biz .lead { margin-bottom: 40px; }
  .biz-grid { grid-template-columns: 1fr; gap: 30px; max-width: 320px; margin-inline: auto; margin-bottom: 44px; }

  .strengths { padding: 60px 0 64px; }
  .strengths__title { font-size: 24px; }   /* SP: 長い見出しが折り返さないよう縮小 */
  .strengths__list { padding-left: 0; }   /* SP: ol既定の左パディングを除去 */
  .fc { padding: 54px 0 60px; }
  .shops { padding: 60px 0 64px; }
  /* SP: 店舗カードは左右5%マージン(=90vw幅)まで広げる。見出しは container 基準のまま */
  .shops .shop-grid { width: 90vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
  /* SP: リンクは margin/padding なしで中央。ボタンはカードと同じ幅(全幅) */
  .shop-link { justify-content: center; align-items: center; margin: 0; padding: 0; }
  .shop-link .btn { width: 100%; }
}
