@charset "UTF-8";
/*
Theme Name: EXone First Renewal
Theme URI:
Author: EXone
Author URI: https://exterior-exone.com
Description: エクステリア/外構「EXone」エリア別ランディングページ用テーマ（リニューアル版・新デザイン）。モバイルファーストの静的LP。既存LPはテーマ「EXone First」。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exone-first-renewal
*/
/* ============================================================
   EXone 商品LP スタイルシート
   デザイン: Figma「商品LP構成+ワイヤーフレーム」lp-mobile (375px)
   スケーリング: rem一元方式（1rem = デザイン10px、560pxで頭打ち）
   ============================================================ */

/* ------------------------------------------------------------
   ① デザイントークン（Figma variables より）
   ------------------------------------------------------------ */
:root {
  /* 色 */
  --c-bg-dark: #2b303b;        /* color/bg-dark: ヘッダー・ダークセクション */
  --c-white: #ffffff;
  --c-black: #000000;
  --c-ink: #4d4d4d;            /* color/text-primary: 本文 */
  --c-ink-muted: #a8acc0;      /* color/text-muted */
  --c-accent: #d2832f;         /* color/accent-primary: CTAオレンジ */
  --c-accent-2: #cc8133;       /* color/accent-secondary */
  --c-gold: #af8e55;           /* color/accent-gold */
  --c-gold-light: #f4d49d;     /* color/accent-light */
  /* color/black-overlay。非アクティブ写真のマスクは重ね要素をやめ
     画像への filter: brightness(0.5)（同じ結果）に変更したため現在は未使用。
     Figma のトークンなので定義は残す */
  --c-overlay: rgba(0, 0, 0, 0.5);
  --c-card-title: rgba(43, 48, 59, 0.8); /* 写真に重ねるカードタイトル帯（bg-dark 80%）: features / lineup 共通 */
  --c-line: #eaeaea;           /* color/border-light */
  --c-line-mid: #c4c4c4;       /* color/border-medium */
  --c-placeholder: #d9d9d9;    /* color/gray-placeholder */
  --c-bg-soft: #f5f5f5;
  --c-blue: #547ac1;           /* FVグラデ・メインコピー文字色 */

  /* フォント */
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;

  /* 形状・影 */
  --radius-s: 0.4rem;
  --radius-m: 0.8rem;
  --radius-l: 1.6rem;
  --shadow-card: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);

  /* レイアウト */
  --header-h: 4.5rem;          /* ヘッダー高 45px相当 */
}

/* ------------------------------------------------------------
   ② リセット / ベース
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   ③ スケーリング基盤（rem一元方式）
   1rem = デザイン10px。全寸法は Figma px ÷ 10 の rem で記述する
   ------------------------------------------------------------ */
html {
  font-size: calc(100vw / 37.5); /* 375px幅で 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  overscroll-behavior-x: none;
}

/* PC・タブレット(560px以上)は拡大せずデザイン原寸で表示する
   （1rem = 10px 固定 → LP幅 37.5rem = 375px の中央寄せ。
     従来の 14.933px 固定=560px 表示は「大きすぎる」ためユーザー指示で原寸に変更） */
@media (min-width: 560px) {
  html {
    font-size: 10px;
  }
}

body {
  min-width: 320px;
  font-family: var(--font-jp);
  font-weight: 350;
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.6;
  overscroll-behavior-x: none;
}

/* LP本体: 560px以上で中央寄せ＋左右余白 */
.lp {
  width: min(100%, 37.5rem);
  margin-inline: auto;
  background-color: var(--c-bg-soft);
  /* 列幅からはみ出す装飾（worry の写真ブリード等）をクリップして
     ページ全体の横スワイプ（横スクロール）を抑止する。
     hidden はスクロールコンテナ化して sticky ヘッダーが壊れるため clip を使う */
  overflow-x: clip;
}

/* ベースコンテンツ幅 320px */
.inner {
  width: 32rem;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   ④ 共通部品
   ------------------------------------------------------------ */

/* セクション見出し（英字ラベル + 日本語見出しのペア） */
.sec-head {
  text-align: center;
}

.sec-head-en {
  display: block;
  font-family: "Audiowide", sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.sec-head-jp {
  display: block;
  margin-top: -0.2rem;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.143em;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   ⑤ セクション別（ドキュメント順に追記）
   ------------------------------------------------------------ */

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(100%, 37.5rem);
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: var(--c-bg-dark);
  padding-left: 1.56rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.86rem;
}

.header-logo {
  width: 9.94rem;
  height: 1.54rem;
}

.header-area {
  font-size: 1rem;
  color: var(--c-white);
}

.header-consult {
  margin-left: auto;
  width: 13.8rem;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.133em;
  text-indent: 0.133em; /* trackingで中央がズレるのを補正 */
}

/* ---- firstview ---- */
.fv {
  background: var(--c-bg-soft);
  /* Figma ではヘッダーが FV 写真の上に重なる構造（写真はページ最上端から始まる）。
     ヘッダー高ぶん引き上げて写真をヘッダーの裏へ潜り込ませ、
     「ヘッダー下端→キャッチコピー = 50px」（Figma注記）を成立させる。
     ヘッダーは不透明・z-index:100 なので隠れる部分は見えず、
     ヘッダー高が小数pxになる端末での境界の隙間もこの重なりで同時に塞がる。 */
  margin-top: calc(var(--header-h) * -1);
}

.fv-hero {
  position: relative;
  height: 46.95rem;
}

.fv-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上部: 青グラデ / 下部: 次セクション背景色へのフェード */
.fv-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 32.27rem;
  background: linear-gradient(to bottom, var(--c-blue) 41.8%, rgba(84, 122, 193, 0) 100%);
  pointer-events: none;
}

.fv-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.8rem;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 0%, var(--c-bg-soft) 68.3%);
  pointer-events: none;
}

.fv-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-weight: 700;
  color: var(--c-white);
}

.fv-copy-line1 {
  position: absolute;
  left: 2.75rem;
  top: 9.47rem;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  white-space: nowrap;
}

.fv-copy-box {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: 2.8rem;
  letter-spacing: 0.0714em;
  line-height: 1;
  padding: 0.75rem 1.1rem;
  border-radius: 0.5rem;
}

.fv-copy-nara {
  font-size: 2rem;
  letter-spacing: 0.05em;
  line-height: 1;
  padding-bottom: 0.2rem;
}

.fv-copy-line2 {
  position: absolute;
  left: 2.75rem;
  top: 15rem;
  font-size: 2rem;
  letter-spacing: 0.1em;
  line-height: 2;
  white-space: nowrap;
}

.fv-logo {
  position: absolute;
  left: 2.85rem;
  top: 20.1rem;
  z-index: 1;
  width: 15.53rem;
  height: 2.4rem;
}

.fv-lead {
  position: absolute;
  left: 3.3rem;
  top: 24.05rem;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
  line-height: 1.6;
  color: var(--c-white);
}

.fv-sub {
  display: flex;
  gap: 0.67rem;
  padding: 0 0.8rem;
}

.fv-sub li {
  width: 11.56rem;
}

.fv-sub img {
  width: 100%;
  height: 13.46rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ---- achievements ---- */
.achievements {
  background: var(--c-bg-soft);
  /* 下は 0。実績→CTA の 50px は .cta-block の margin-top が担う（Figma注記 50px） */
  padding: 1rem 0 0;
}

.achievements-img {
  width: 34rem;
  height: auto;
  margin-inline: auto;
}

/* ---- cta-block（共通CTA ×3） ---- */
.cta-block {
  margin: 5rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.111em;
  line-height: 1.6;
}

.cta-title span {
  display: block;
}

.cta-title span.cta-title-line1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.cta-title-logo {
  width: 10.53rem;
  height: 1.61rem;
}

.cta-photos {
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  margin-top: 0.6rem;
  height: 12.65rem;
}

.cta-photo {
  position: relative;
  width: 11rem;
}

.cta-photo.is-mid {
  transform: translateY(1.65rem);
}

.cta-photo img {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  object-fit: cover;
}

.cta-photo-label {
  position: absolute;
  top: 8rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 8.91rem;
  height: 1.93rem;
  background: var(--c-bg-dark);
  border-radius: 0.2rem;
  color: var(--c-white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.0833em;
  white-space: nowrap;
}

.cta-no-sales {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  padding: 0 2.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.143em;
}

/* 「＼ ／」の斜線 */
.cta-no-sales::before,
.cta-no-sales::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.1rem;
  height: 1.45rem;
  background: var(--c-ink);
}

.cta-no-sales::before {
  left: 0.5rem;
  transform: translateY(-50%) rotate(-28.4deg);
}

.cta-no-sales::after {
  right: 0.5rem;
  transform: translateY(-50%) rotate(28.4deg);
}

.cta-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.cta-tags li {
  display: grid;
  place-items: center;
  height: 3.13rem;
  padding: 0 1.4rem;
  border: 1px solid #dfae79;
  color: var(--c-accent);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0714em;
  white-space: nowrap;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 32rem;
  height: 5.5rem;
  margin: 0.85rem auto 0.3rem;
  background: var(--c-accent);
  border-radius: 0.6rem;
  box-shadow: 0 0.24rem 0 #ad681e;
  color: var(--c-white);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.0833em;
  animation: cta-pulse 2s ease-in-out infinite;
  transition: background 0.25s, transform 0.2s;
}

.cta-btn:hover {
  animation-play-state: paused;
  background: #be762a;
  transform: scale(1.02);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn:hover {
  transform: translateX(0.4rem);
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ---- worry ---- */
/* セクション自体の下辺をV字に切り抜き（clip-path が写真のはみ出しも同時にクリップする） */
.worry {
  position: relative;
  z-index: 2;
  margin-top: 5rem;        /* Figma注記 50px */
  height: 41.41rem;        /* 本体 37.92rem + V字 3.49rem */
  margin-bottom: -3.49rem; /* V字分だけ次セクションの写真に被せる */
  background: var(--c-bg-dark);
  color: var(--c-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.49rem), 50% 100%, 0 calc(100% - 3.49rem));
}

.worry-title {
  padding-top: 5rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.worry-em {
  position: relative;
  margin: 0 0.3rem;
  color: var(--c-gold-light);
  font-size: 2.6rem;
  letter-spacing: 0.09em;
}

/* お悩み の上の3点 */
.worry-em::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8.6rem;
  height: 0.29rem;
  background-image: radial-gradient(circle, var(--c-gold-light) 0.14rem, transparent 0.15rem);
  background-size: 2.87rem 0.29rem;
  background-position: center;
}

.worry-q {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 2.4rem;
  transform: rotate(9.27deg);
}

.worry-photos {
  display: flex;
  width: 39rem;            /* 3枚(13rem×3)。中央寄せしてはみ出し分はセクションの clip-path で切る */
  margin: 2.4rem 0 0 -0.75rem;
  transform: rotate(-2.6deg);
  opacity: 0.6;
}

.worry-photos img {
  width: 13rem;
  height: 8.66rem;
  flex-shrink: 0;
  object-fit: cover;
}

.worry-list {
  position: relative;
  z-index: 1;
  width: 32rem;
  margin: -0.6rem auto 0;
  padding: 1.45rem 0 1.45rem 1.92rem;
  background: #4b4f63;
}

.worry-list li {
  position: relative;
  padding-left: 1.79rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
  line-height: 1.8;
}

/* チェックボックス枠 + チェックマーク */
.worry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.19rem;
  height: 1.19rem;
  border: 1px solid #bababa;
}

.worry-list li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.24rem;
  width: 1.05rem;
  height: 1.05rem;
  background: url("./images/icon-checkmark.svg") no-repeat center / contain;
}

/* ---- solution ---- */
.solution {
  position: relative;
  height: 39.01rem;
  background: var(--c-bg-soft);
}

.solution-img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 38.05rem;
  object-fit: cover;
  object-position: center 65%;
}

/* 下端を次セクション背景へフェード */
.solution::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.72rem;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 0%, var(--c-bg-soft) 68.3%);
}

.solution-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding-top: 6.05rem;
  text-align: center;
  color: var(--c-white);
  font-weight: 700;
}

.solution-copy span {
  display: block;
}

/* line1 はブロックのまま。ロゴを inline-block にして親の text-align: center で中央寄せする
   （.solution-copy span { display: block } の詳細度に依存しない作り） */
.solution-line1 {
  font-size: 1.8rem;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.solution-logo {
  display: inline-block; /* リセットの img { display: block } を打ち消し「が」と同じ行に並べる */
  vertical-align: -0.25em;
  margin-right: 0.3rem;
  width: 11.06rem;
  height: 1.71rem;
}

.solution-line2 {
  font-size: 1.8rem;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

.solution-copy span.solution-line3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.2rem;
}

.solution-line3 span {
  display: inline-block;
}

.solution-marutto {
  font-size: 3.6rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
}

.solution-kaiketsu {
  font-size: 4.8rem;
  letter-spacing: 0.09em;
  line-height: 1.1;
}

.solution-bang {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 6.4rem;
  line-height: 1;
  transform: rotate(9.27deg);
}

/* 「まるっと解決!」の登場アニメーション（don-in ポップイン）。
   スクロールで見えたら 1 回だけ再生（js/main.js の initSolutionCatch）。
   初期非表示は JS が has-anim を付けたときだけ効くため、JS 無効時は常に表示される */
.solution-line3.has-anim {
  opacity: 0;
  transform: scale(0);
  filter: blur(8px);
}

.solution-line3.is-in {
  animation: don-in 0.75s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.2s forwards;
}

@keyframes don-in {
  0% {
    opacity: 0;
    transform: scale(0);
    filter: blur(8px);
  }

  65% {
    opacity: 1;
    transform: scale(1.16);
    filter: blur(0);
  }

  82% {
    transform: scale(0.94);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ---- features ---- */
.features {
  background: var(--c-bg-soft);
  /* 上 50px（Figma注記）。下は 0 で、features→competitor の 50px は
     .competitor の margin-top が担う（二重に空けない） */
  padding: 5rem 0 0;
}

.features-head-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.3rem;
}

.features-head-num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  color: #cb8031;
}

.features-head-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.features-head-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0714em;
}

.features-head-logo {
  width: 8.46rem;
  height: 1.29rem;
}

.features-head-main {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.0833em;
  line-height: 1.4;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;            /* Figma注記 20px（カード間） */
  width: 32rem;
  margin: 2.5rem auto 0; /* Figma注記 25px（見出し→1枚目） */
}

.features-card {
  background: var(--c-white);
  border-radius: 0.5rem;
}

.features-card-media {
  position: relative;
}

.features-card-media img {
  width: 100%;
  height: 21.3rem;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

.features-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-height: 4.28rem;
  padding-block: 0.55rem;
  background: var(--c-card-title);
  color: var(--c-white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0714em;
  line-height: 1.6;
  text-align: center;
}

.features-card-desc {
  padding: 1.15rem 1.9rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

/* ---- competitor ---- */
.competitor {
  margin-top: 5rem;
  text-align: center;
}

.competitor-why {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.0714em;
  color: var(--c-accent-2);
}

.competitor-title {
  margin-top: 0.4rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.111em;
  line-height: 1.6;
}

.competitor-title-logo-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.competitor-title-logo-line img {
  width: 11.04rem;
  height: 1.68rem;
}

.competitor-lead {
  width: 32rem;
  margin: 2.5rem auto 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
  text-align: left;
}

.competitor-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 2.5rem; /* Figma注記 25px（リード文→「他社比較」小見出し） */
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.0556em;
}

.competitor-sub::before,
.competitor-sub::after {
  content: "";
  width: 8.9rem;
  height: 1px;
  background: var(--c-line-mid);
}

.competitor-chart {
  position: relative;
  width: 32rem;
  margin: 1.6rem auto 0;
}

.competitor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.3rem;
  table-layout: fixed;
}

.competitor-table td,
.competitor-table th {
  height: 3.66rem;
  background: var(--c-white);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--c-line-mid);
  text-align: center;
  vertical-align: middle;
}

.competitor-table thead td,
.competitor-table thead th {
  height: 2.95rem;
}

/* 左上コーナーはFigma同様に何も置かない（背景が透ける） */
.competitor-corner,
.competitor-table thead td {
  background: transparent;
}

.competitor-corner {
  width: 9.58rem;
}

.competitor-table th[scope="row"] {
  background: var(--c-bg-dark);
  color: var(--c-white);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.0769em;
}

.competitor-table thead th {
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--c-line-mid);
  color: var(--c-white);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
}

.competitor-table thead th.is-exone {
  background: var(--c-accent-2);
  font-size: 1.3rem;
}

.competitor-table tbody td.is-exone {
  color: var(--c-accent-2);
}

/* EXone列の強調枠（border-spacing 0.3rem 込みの位置） */
.competitor-col-frame {
  position: absolute;
  top: 2.8rem;
  left: 10.18rem;
  width: 6.97rem;
  height: calc(100% - 2.8rem);
  border: 4px solid var(--c-accent-2);
  pointer-events: none;
}

/* ---- works ---- */
.works {
  background: var(--c-bg-dark);
  color: var(--c-white);
  padding: 5rem 0; /* Figma注記 上下とも 50px */
}

.works .sec-head-en {
  color: #454c5c;
}

.works-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem 0.88rem;
  width: 32rem;
  margin: 2.5rem auto 0;
}

.works-tab {
  height: 3.03rem;
  border: 1px solid var(--c-ink-muted);
  border-radius: 0.2rem;
  color: var(--c-ink-muted);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
  white-space: nowrap;
}

.works-tab .num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.works-tab.is-active {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-bg-dark);
}

.works-gallery {
  overflow: hidden;
  /* ビューポートは列の全幅。写真の開始位置は .works-track の左右 padding(27.5px) で作り、
     data-carousel-center のクランプで 1枚目=左揃え / 2枚目=中央（両側チラ見え）/
     3枚目=右揃え（前の写真が左にチラ見え）の3状態にする（Figma指定） */
  margin-top: 2.5rem;
}

/* ネイティブ横スクロール＋scroll-snap 方式（店舗一覧と同方式・main.js はドット同期のみ）。
   スクロール範囲の自然なクランプで Figma の3状態（1枚目=左揃え/中間=中央/最終=右揃え）になる */
.works-track {
  position: relative; /* absolute な子孫（.sr-only 等）の基準をトラックにし、ページ横幅へ漏れさせない */
  display: flex;
  gap: 1.25rem;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.works-track::-webkit-scrollbar {
  display: none;
}

.works-photo {
  position: relative;
  flex-shrink: 0;
  width: 28.7rem;
  border-radius: 0.5rem;
  overflow: hidden;
  scroll-snap-align: center;
  /* 1スワイプ＝1枚に固定。Android(Blink) はフリックの勢いで複数枚を飛び越すため
     「感度が良すぎる」挙動になる。iOS(WebKit) は元から1枚ずつ止まるので変化なし。
     サムネ/ドットからの複数枚ジャンプは main.js が移動中だけ snap を切るので影響しない。 */
  scroll-snap-stop: always;
}

.works-photo img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

/* 非アクティブ写真は半透明黒マスク（Figma注記「非アクティブはサムネイル含め、半透明黒マスク」）。
   重ねる要素（::after）ではなく画像自体を暗くする。
   別要素のオーバーレイだと画像とは別々にデバイスピクセルへ丸められるため、
   スクロール位置が小数pxのとき端に1px分マスクの掛からない列が残り、
   隣の白い図面がチラ見えする位置で白い線として見えていた（iOS Safari）。
   brightness(0.5) は rgba(0,0,0,0.5) を重ねるのと同じ結果（各チャンネル×0.5）で、
   画像そのもののピクセルを暗くするので原理的にズレが起きない。 */
.works-photo:not(.is-active) img {
  filter: brightness(0.5);
}

.works-thumbs {
  display: flex;
  justify-content: space-between;
  width: 32rem;
  margin: 1.34rem auto 0;
}

.works-thumb {
  position: relative;
  width: 10.3rem;
  border-radius: 0.3rem;
  overflow: hidden;
}

.works-thumb img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
}

/* 非選択サムネは暗く（写真側と同じく画像自体を暗くする方式に統一） */
.works-thumb:not(.is-active) img {
  filter: brightness(0.5);
}

.works-desc {
  width: 32rem;
  margin: 1.7rem auto 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

.works-estimate-title {
  margin-top: 2.45rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.143em;
}

.works-cost {
  width: 32rem;
  margin: 1.05rem auto 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
}

.works-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.51rem 0;
}

.works-cost-row + .works-cost-row,
.works-cost-total {
  border-top: 1px solid rgba(168, 172, 192, 0.5);
}

.works-cost dd {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.works-cost-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 2rem;
  padding-top: 0.55rem;
  font-size: 2.4rem;
  font-weight: 500;
}

.works-cost-total dd {
  font-weight: 500;
}

/* ---- lineup ---- */
.lineup {
  background: var(--c-bg-soft);
  padding: 5rem 0; /* Figma注記 上下とも 50px */
}

.lineup-head {
  width: 32rem;
  margin-inline: auto;
}

.lineup-en {
  color: #dddddd;
}

.lineup-lead {
  margin-top: 2.5rem; /* Figma注記 25px（見出し→リード文） */
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

.lineup-product {
  position: relative;
  isolation: isolate; /* 重なり順の比較を商品行内に閉じる */
  margin-top: 2.5rem;
  padding-bottom: 1.9rem;
}

/* 左端の縦ライン（最背面。カード/スライドは必ずこの上に描画される） */
.lineup-product::after {
  content: "";
  position: absolute;
  left: 2.9rem;
  top: 5.8rem;
  bottom: 0;
  z-index: 0;
  width: 2px;
  background: #cecece;
}

.lineup-product-head {
  padding-left: 2.8rem;
}

.lineup-product-en {
  display: block;
  font-family: "Audiowide", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--c-accent);
}

.lineup-product-jp {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.lineup-carousel {
  position: relative;
  z-index: 2; /* 左端の縦ライン(z-index:0)より上にスライドを描画 */
  overflow: hidden;
  /* 可視領域をカード開始位置(64px)から始める:
     スライド送り時に前のカードが左にチラ見えせず、左余白の縦ラインは見えたまま */
  margin-left: 6.4rem;
}

/* ネイティブ横スクロール＋scroll-snap 方式（店舗一覧と同方式・main.js はドット同期のみ） */
.lineup-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.84rem;
  margin-top: 0.5rem;
  /* 表示域(31.1rem=37.5-左マージン6.4) − カード幅(25.5rem)。最終スライドも1枚目と同じ
     開始位置までスクロールできるようにする（無いと端のクランプで右端揃え＋前カードの
     左チラ見えになる。Figmaは全スライド左揃え・最終枚は右が空く指定） */
  padding-right: 5.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.lineup-track::-webkit-scrollbar {
  display: none;
}

.lineup-slide {
  flex-shrink: 0;
  width: 25.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: always; /* 1スワイプ＝1枚（Android で飛びすぎるのを防ぐ。works と同方針） */
}

.lineup-card {
  background: var(--c-white);
  min-height: 37.3rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.lineup-card-media {
  position: relative;
}

.lineup-card-media img {
  width: 100%;
  height: 17.5rem;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

.lineup-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  height: 2.9rem;
  background: var(--c-card-title);
  color: var(--c-white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0714em;
  white-space: nowrap;
}

.lineup-card-desc {
  padding: 1.4rem 1.7rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.lineup-specs {
  margin: 0.9rem 1.7rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.lineup-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid var(--c-line);
}

.lineup-specs > div:last-child {
  border-bottom: 1px solid var(--c-line);
}

.lineup-specs dd.num {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.lineup-dots {
  display: flex;
  gap: 0.53rem;
  margin: 0.6rem 0 0 0.13rem; /* 親(.lineup-carousel)が6.4remオフセット済み */
}

.lineup-dots button {
  position: relative;
  width: 8.11rem;
  height: 0.9rem;
}

.lineup-dots button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.24rem;
  transform: translateY(-50%);
  background: var(--c-placeholder);
}

.lineup-dots button.is-active::after {
  background: var(--c-accent);
}

/* ---- after-service ---- */
.after-service {
  position: relative;
  /* 直前との 50px は .lineup の padding-bottom が担うため、ここは 0（Figma注記どおり） */
  /* Figma ではセクション色 #2b303b の上に「黒帯（高さ 93.3rem）」が敷かれ、
     写真はその黒の上で合成される。背景を #2b303b のままにすると半透明の写真に
     25% 分のグレーが混ざって白っぽく（薄く）見えるため、黒帯を背景レイヤーで再現する。 */
  background-color: var(--c-bg-dark);
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 93.3rem;
  color: var(--c-white);
  overflow: hidden;
}

.as-hero {
  position: absolute;
  top: 12.94rem;
  left: 0;
  width: 100%;
  height: 56.25rem;
  object-fit: cover;
  /* 75% の透過は after-service.png のアルファに焼き込み済み（実測 74.8%）。
     ここで opacity を掛けると二重に薄くなるので指定しない。 */
}

/* 上下のダークフェード（写真をセクション背景に溶け込ませる） */
.after-service::before,
.after-service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1; /* ヒーロー画像より上・本文より下 */
  pointer-events: none;
}

.after-service::before {
  top: 0;
  height: 32.47rem;
  background: linear-gradient(to bottom, #2b303b 79.8%, rgba(43, 48, 59, 0) 100%);
}

.after-service::after {
  top: 50.6rem;
  height: 56.68rem;
  background: linear-gradient(to top, #2b303b 79.8%, rgba(43, 48, 59, 0) 100%);
}

.as-body {
  position: relative;
  z-index: 2;
  padding: 5rem 0; /* Figma注記 上下とも 50px */
  text-align: center;
}

.as-en {
  color: #454c5c;
}

.as-headline {
  margin-top: 2.5rem; /* Figma注記 25px（見出し→コピー） */
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.6;
}

/* 金色のマーカー下線 */
.as-marker {
  background: linear-gradient(var(--c-gold), var(--c-gold)) no-repeat left bottom / 100% 0.83rem;
  padding-bottom: 0.2rem;
}

.as-lead {
  width: 32rem;
  margin: 1.7rem auto 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
  text-align: left;
}

.as-badge {
  width: 17.83rem;
  height: auto;
  margin: 5.3rem auto 0;
}

.as-warranty {
  width: 32rem;
  margin: 2rem auto 0;
  padding: 1.1rem 0;
  background: rgba(3, 3, 3, 0.35);
  border: 1px solid var(--c-gold);
  border-radius: 0.5rem;
  text-align: left;
}

.as-warranty li {
  position: relative;
  margin: 0 1.9rem;
  padding: 0.55rem 0 0.55rem 2.72rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

.as-warranty li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.as-warranty li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.59rem;
  height: 1.52rem;
  background: url("./images/after-service-check-circle.svg") no-repeat center / contain;
}

.as-warranty li::after {
  content: "";
  position: absolute;
  left: 0.47rem;
  top: 0.75rem;
  width: 1.05rem;
  height: 1.05rem;
  background: url("./images/after-service-check.svg") no-repeat center / contain;
}

.as-features {
  width: 32rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.as-features li {
  display: flex;
  align-items: flex-start;
  gap: 1.57rem;
  padding: 1rem 0;
}

.as-features li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.as-feature-icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 5.51rem;
  height: 5.51rem;
  background: url("./images/after-service-feature-circle.svg") no-repeat center / contain;
}

.as-feature-icon img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.as-feature-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.0714em;
  line-height: 1.6;
  color: var(--c-gold-light);
}

.as-feature-body p {
  margin-top: 0.2rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

.as-note {
  margin-top: 2.4rem;
  font-size: 1rem;
  font-weight: 350;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* ---- voice ---- */
.voice {
  background: var(--c-white);
  padding: 5rem 0;
}

.voice-en {
  color: #dddddd;
}

.voice-carousel {
  overflow: hidden;
  /* 全幅クリップ: 2枚目以降は前のカードが左にチラ見えする（Figmaのスライダー3状態指定）。
     1枚目/最終枚表示時の左右余白(2.75rem)はトラックのpaddingで確保 */
}

/* ネイティブ横スクロール＋scroll-snap 方式（店舗一覧と同方式・main.js は is-active 同期のみ） */
.voice-track {
  position: relative; /* absolute な子孫（★評価の .sr-only）の基準をトラックにし、ページ横幅へ漏れさせない */
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem; /* Figma注記 25px（見出し→カルーセル） */
  padding: 0 2.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.voice-track::-webkit-scrollbar {
  display: none;
}

.voice-slide {
  display: flex; /* カードをスライド高（=トラック内の最大カード高）まで伸ばして全カードの高さを揃える */
  flex-shrink: 0;
  width: 25.49rem;
  scroll-snap-align: center;
  scroll-snap-stop: always; /* 1スワイプ＝1枚（Android で飛びすぎるのを防ぐ。works と同方針） */
}

.voice-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--c-white);
  border: 1px solid #dfdfdf;
  border-radius: 0.5rem;
  min-height: 34.18rem;
}

.voice-card > img {
  width: 100%;
  height: 17.54rem;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

.voice-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.37rem 1.65rem 1.5rem;
}

.voice-stars {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  color: var(--c-accent);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.voice-stars .num {
  color: var(--c-ink);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.0833em;
  /* ★ は下の脚が短く上下非対称なため、文字box を中央揃えしても見た目の重心は
     box 中心より約 0.1rem 下にくる。数値を同量下げて星と横軸を揃える
     （position:relative なのでレイアウトには影響しない） */
  position: relative;
  top: 0.1rem;
}

.voice-card-title {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.0833em;
  line-height: 1.6;
}

.voice-card-text {
  margin-top: 0.6rem;
  width: 22.22rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.voice-card-customer {
  margin-top: auto; /* 本文の行数差があっても記名をカード下端に揃える */
  padding-top: 1.2rem;
  text-align: right;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- flow（仮コンテンツ） ---- */
.flow {
  padding: 5rem 0;
}

.flow-en {
  color: #dddddd;
}

/* ---- contact（仮コンテンツ） ---- */
.contact {
  background: var(--c-white);
  padding: 5rem 0 6rem;
  text-align: center;
}

.contact-en {
  color: #dddddd;
}

/* ---- store（仮コンテンツ） ---- */
.store {
  background: var(--c-bg-dark);
  color: var(--c-white);
  padding: 5rem 0; /* Figma注記 上下とも 50px */
  text-align: center;
}

.store-logo {
  display: block;
  width: 9.94rem;
  height: 1.54rem;
  margin: 0 auto 0.5rem;
}

/* ---- footer（コピーライト） ---- */
/* 直上の .store と同じ暗背景で地続きに見せる。サンクスページでは
   css/legacy-components.css の body.is-thanks ルールで非表示になる */
.site-footer {
  background: var(--c-bg-dark);
  padding: 2rem 1rem 2.4rem;
  text-align: center;
}

.site-footer__copy {
  font-size: 1rem;
  font-weight: 350;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------
   ⑥ JS状態系
   ------------------------------------------------------------ */
.site-header.is-scrolled {
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.25);
}
