/* ===========================================================
   AI real CG 機能ページ（Feature Detail）専用CSS
   ※ common.css（トークン/ヘッダー/フッター/ボタン）と
     usecase.css（uc-section/uc-head/gallery__*等）を併用
   =========================================================== */

/* ===========================================================
   ft-tabs — 機能サブナビ（他の機能への切替タブ）
   ※ ヒーロー/パンくずは uc-hero（usecase.css）を共用、
     料金・最終CTAは uc385/uc471（usecase.css）を共用
   =========================================================== */
.ft-tabs { background: #fff; border-bottom: 1px solid var(--border); }
.ft-tabs__inner { max-width: 1152px; margin: 0 auto; padding: 14px 24px; display: flex; gap: 10px; }
.ft-tabs__link { flex: 1 1 0; min-width: 0; padding: 13px 12px; text-align: center; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--bg-gray); border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.ft-tabs__link:hover { color: var(--ink); background: #ececec; }
.ft-tabs__link.is-active { color: #111; background: var(--yellow); box-shadow: 0 6px 16px rgba(245,197,24,.4); }
.ft-tabs__link.is-disabled { opacity: .55; cursor: default; pointer-events: none; }
.ft-tabs__badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 700; vertical-align: middle; }
@media (max-width: 768px) {
  .ft-tabs__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
  .ft-tabs__link { padding: 12px 8px; font-size: 13px; white-space: normal; }
}

/* ===========================================================
   ft-ba — Before/After 実例（gallery__* を再利用・全幅拡大）
   =========================================================== */
.ft-ba__list { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }
.ft-ba__slider { height: clamp(280px, 42vw, 552px); border-radius: 6px; background: var(--bg-gray); }
.ft-ba__caption { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
/* ft-ba は AFTER/BEFORE とも <div class="gallery__img--*"><img></div> 構造。
   home.css の gallery ルールは AFTER 側の内側 img をカバーしないため、ここで補う */
.gallery__slider .gallery__img--after img,
.gallery__slider .gallery__img--after video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* ft-ba__slider は home.css 既定（高さ208px前提）より背高のため、仕切り線・つまみを高さいっぱいに再センタリング */
.ft-ba__slider .gallery__handle { height: 100%; }
.ft-ba__slider .gallery__knob { top: 50%; transform: translateY(-50%); }

/* ===========================================================
   ft-feature — 機能詳細（交互配置の画像＋テキストブロック）
   =========================================================== */
.ft-feature__list { display: flex; flex-direction: column; gap: 80px; margin-top: 48px; }
.ft-feature__block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ft-feature__block--reverse .ft-feature__media { order: 2; }
.ft-feature__block--reverse .ft-feature__text { order: 1; }
.ft-feature__media { aspect-ratio: 458 / 344; border-radius: 6px; overflow: hidden; background: var(--bg-gray); }
.ft-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ft-feature__media 内に Before/After スライダーを埋め込む場合（時間帯バリエーション等） */
.ft-feature__media .gallery__slider { height: 100%; }
.ft-feature__media .gallery__handle { height: 100%; }
.ft-feature__media .gallery__knob { top: 50%; transform: translateY(-50%); }
/* 正方形素材など、トリミングすると見切れる画像はcontainで全体を見せる */
.ft-feature__media--contain img { object-fit: contain; }
.ft-feature__title { margin: 0; font-weight: 700; font-size: 24px; line-height: 1.4; color: var(--ink); }
.ft-feature__desc { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.ft-feature__points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-feature__point { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; color: var(--ink); }
.ft-feature__check { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.ft-feature__check svg { width: 8px; height: 7px; display: block; }
@media (max-width: 768px) {
  .ft-feature__list { gap: 48px; margin-top: 32px; }
  .ft-feature__block, .ft-feature__block--reverse { grid-template-columns: 1fr; }
  .ft-feature__block--reverse .ft-feature__media, .ft-feature__block--reverse .ft-feature__text { order: 0; }
}

/* ===========================================================
   ft-taste — 内装テイスト比較（4テイストのスウォッチグリッド）
   =========================================================== */
.ft-taste { margin-top: 56px; }
.ft-taste__eyebrow { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ft-taste__lead { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 640px; }
.ft-taste__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.ft-taste__item { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--bg-gray); }
.ft-taste__item img,
.ft-taste__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 正方形素材など、トリミングすると見切れる画像はcontainで全体を見せる */
.ft-taste__item--contain img { object-fit: contain; }
/* 中央寄せ・大きめ小見出し（3D平面図ページ「生成できるアウトプット」／内観ページ「内装テイスト比較」で共用） */
.ft-taste--outputs, .ft-taste--center { text-align: center; }
.ft-taste--outputs .ft-taste__eyebrow, .ft-taste--center .ft-taste__eyebrow { font-size: 22px; font-weight: 700; letter-spacing: normal; text-transform: none; color: var(--ink); }
.ft-taste--outputs .ft-taste__lead, .ft-taste--center .ft-taste__lead { margin-left: auto; margin-right: auto; }
/* 2枚グリッド化は3D平面図ページのみ（内装テイストは4枚のまま） */
.ft-taste--outputs .ft-taste__grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) { .ft-taste--outputs .ft-taste__eyebrow, .ft-taste--center .ft-taste__eyebrow { font-size: 19px; } }
.ft-taste__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px 7px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
@media (max-width: 768px) {
  .ft-taste { margin-top: 40px; }
  .ft-taste__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
}

/* ===========================================================
   ft-common — 機能詳細内の「共通機能」コールアウト
   =========================================================== */
.ft-common { border: 1px solid var(--border); padding: 28px 32px; display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.ft-common__body { flex: 1 1 320px; min-width: 0; }
.ft-common__eyebrow { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ft-common__title { margin: 12px 0 0; font-weight: 700; font-size: 16px; color: var(--ink); }
.ft-common__tags { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-common__tag { font-size: 12px; padding: 6px 12px; border: 1px solid var(--border); color: var(--muted); }
.ft-common__link { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.ft-common__link:hover { opacity: .7; }
@media (max-width: 768px) {
  .ft-common { padding: 24px 20px; }
}

/* ===========================================================
   ft-why — Why AI real CG（イエロー帯・コピー＋CTA）
   =========================================================== */
.ft-why { background: var(--yellow); padding: 64px 24px; }
.ft-why__inner { max-width: 1152px; margin: 0 auto; }
.ft-why__eyebrow { margin: 0; font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(17,17,17,.6); }
.ft-why__copy { margin: 16px 0 0; max-width: 672px; font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; color: var(--ink); }
/* 手動<br>で2行固定する場合、既定のmax-widthだと各行がさらに折り返されるため広げる */
.ft-why__copy--2line { max-width: 900px; }
@media (max-width: 860px) { .ft-why__copy--2line { max-width: 672px; } }
.ft-why__actions { margin-top: 24px; }
.ft-why .btn-primary { background: var(--ink); color: #fff; }
@media (max-width: 768px) {
  .ft-why { padding: 48px 16px; }
}

/* ===========================================================
   ft-persona — こんな方に使われています（体験談カード）
   =========================================================== */
.ft-persona__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ft-persona__card { background: #fff; border: 1px solid var(--border); padding: 25px; }
.ft-persona__head { display: flex; align-items: center; gap: 12px; }
.ft-persona__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; letter-spacing: .3px; }
.ft-persona__role { font-size: 12px; line-height: 16px; color: var(--muted); }
.ft-persona__quote { margin: 16px 0 0; font-size: 14px; line-height: 1.625; color: var(--ink); }
@media (max-width: 768px) {
  .ft-persona__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
}

/* ===========================================================
   ft-related — 関連する機能・用途
   =========================================================== */
.ft-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ft-related__card { display: block; border: 1px solid var(--border); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ft-related__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.ft-related__media { aspect-ratio: 312 / 160; background: var(--bg-gray); overflow: hidden; }
.ft-related__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-related__body { padding: 20px; }
.ft-related__label { margin: 0; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--muted); }
.ft-related__name { margin: 8px 0 0; font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink); }
.ft-related__desc { margin: 8px 0 0; font-weight: 500; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 768px) {
  .ft-related__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
}
