@charset "UTF-8";
/* ============================================================
   SIMPLE5 リニューアル スタイルシート
   デザイントークンは R2実装指示書 セクション8 に準拠
   モノクロ基調 + アクセント1色（#e22018 / 使用はCV要素のみ）
   ============================================================ */

:root {
  --color-text: #111111;
  --color-text-sub: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f6f6f6;
  --color-line: #e5e5e5;
  --color-dark: #141414;
  --color-accent: #e22018;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --radius: 16px;
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.5em; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- typography ----------
   骨格 = 「太く大きい見出し × 静かな本文」。装飾より級数差で作る */
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 0.8em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; line-height: 1.16; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.22; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1.5em; max-width: 48em; }
strong { font-weight: 700; }
.num { font-family: var(--font-en); font-weight: 800; letter-spacing: -0.01em; }
.nb { white-space: nowrap; } /* 金額+単位などの途中改行を防ぐ */
.num--accent { color: var(--color-accent); }
.text-sub { color: var(--color-text-sub); }
.note { font-size: 0.85rem; color: var(--color-text-sub); }

/* セクションラベル（小さな英字/和字ラベル + 大見出しのセット）
   表示時にletter-spacingが締まりながらフェードイン */
.label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 1em;
}
.section--dark .label { color: rgba(255, 255, 255, 0.55); }
html.js .label {
  opacity: 0; letter-spacing: 0.45em;
  transition: opacity 0.7s ease, letter-spacing 1.1s var(--ease-out);
}
html.js .label.is-in { opacity: 1; letter-spacing: 0.12em; }

/* 文字分割アニメーション（SplitText風・見出し用）
   JSが .page-hero h1 / .section-head h2 / [data-split] を1文字ずつspan化する */
html.js .split .char {
  display: inline-block; white-space: pre;
  opacity: 0; transform: translateY(0.75em);
  transition: transform 0.7s var(--ease-out), opacity 0.45s ease-out;
  transition-delay: calc(var(--split-base, 0s) + var(--ci, 0) * 30ms);
}
html.js .split.is-in .char { opacity: 1; transform: none; }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.container--narrow { max-width: 1000px; }
.section { padding-block: clamp(80px, 12vw, 150px); }

/* 背景付きセクションは角丸の「パネル」として浮かせる（参考: ba-and.co） */
.section--gray, .section--dark, .line-block {
  margin-inline: clamp(8px, 1.6vw, 24px);
  margin-block: clamp(12px, 2vw, 24px);
  border-radius: clamp(24px, 3.5vw, 48px);
}
.section--gray { background: var(--color-bg-gray); }
.section--dark { background: var(--color-dark); color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }
.lead { font-size: clamp(1rem, 1.6vw, 1.125rem); }

/* トップページ: セクション通し番号（01, 02…）を英字ラベルに付与 */
.page-home main { counter-reset: sec; }
.page-home .section .label::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  margin-right: 1em;
  padding-right: 1em;
  border-right: 1px solid var(--color-line);
  color: var(--color-text);
}
.page-home .section--dark .label::before { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* 中央寄せCTA（p要素のmax-width制限を打ち消して真のセンターに） */
.cta-center { text-align: center; max-width: none; margin-top: 56px; margin-bottom: 0; }
.btn-row--center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1em 2.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: #c81b14; }
.btn--dark { background: var(--color-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--line { background: var(--color-dark); color: #fff; }
.btn--line::before { content: "LINE"; font-family: var(--font-en); font-size: 0.7em; font-weight: 800; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; padding: 0.1em 0.4em; }
.btn--lg { padding: 1.2em 3em; font-size: 1.1rem; }
.btn--sm { padding: 0.6em 1.4em; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* テキストリンク矢印（下線がスライドアウト→インするホバー演出） */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.arrow-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.arrow-link::after { content: "→"; font-family: var(--font-en); transition: transform 0.25s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.site-header__logo { flex-shrink: 0; display: block; }
.site-header__logo img { width: 120px; height: auto; }
.site-header__nav { margin-left: auto; }
.global-nav__list { display: flex; gap: clamp(12px, 1.6vw, 28px); list-style: none; padding: 0; margin: 0; }
.global-nav__list a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.global-nav__list a:hover { opacity: 0.6; }
.global-nav__list .global-nav__sub { display: none; }
.global-nav__cta { display: none; }
.site-header__cta { flex-shrink: 0; padding: 0.7em 1.6em; font-size: 0.95rem; }
.site-header__menu-btn { display: none; }

@media (max-width: 900px) {
  .site-header__nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    padding: 32px clamp(20px, 5vw, 48px) 120px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .site-header__nav.is-open { transform: translateX(0); }
  .global-nav__list { flex-direction: column; gap: 0; }
  .global-nav__list li { border-bottom: 1px solid var(--color-line); }
  .global-nav__list a { display: block; padding: 1em 0; font-size: 1.05rem; font-weight: 700; }
  .global-nav__list .global-nav__sub { display: block; }
  .global-nav__list .global-nav__sub a { font-weight: 400; color: var(--color-text-sub); }
  .global-nav__cta { display: inline-flex; margin-top: 24px; width: 100%; }
  .site-header__cta { margin-left: auto; padding: 0.6em 1.2em; font-size: 0.85rem; }
  .site-header__menu-btn {
    display: block; position: relative;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer; flex-shrink: 0;
  }
  .menu-btn__bar {
    position: absolute; left: 10px; width: 24px; height: 2px;
    background: var(--color-text); transition: transform 0.3s var(--ease-out), top 0.3s;
  }
  .menu-btn__bar:nth-child(1) { top: 18px; }
  .menu-btn__bar:nth-child(2) { top: 26px; }
  .site-header__menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .site-header__menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { top: 22px; transform: rotate(-45deg); }
}

/* ---------- FV（トップS1） ---------- */
.fv {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: max(560px, calc(100svh - var(--header-h)));
  padding-block: clamp(56px, 7vw, 88px);
}
/* 可読性最優先の白オーバーレイ（左=テキスト側を濃く、右と下端はスクショを透かす） */
.fv::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.15) 62%, rgba(255,255,255,0.92) 94%, #ffffff 100%),
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.55) 100%);
}
.fv__inner { position: relative; z-index: 2; width: 100%; }

/* 背景: 事例スクショの全画面グリッドドリフト（列ごとに上下逆方向・1周110s）
   初回表示時にわずかにズームアウトして奥行きを出す */
.fv__bg {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(12px, 1.6vw, 20px); padding-inline: clamp(12px, 1.6vw, 20px);
  animation: fv-zoom 2s var(--ease-out) both;
}
@keyframes fv-zoom { from { transform: scale(1.045); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fv__col { display: flex; flex-direction: column; will-change: transform; animation: fv-drift 110s linear infinite; }
.fv__col:nth-child(even) { animation-direction: reverse; }
.fv__col img {
  width: 100%; height: auto;
  border: 1px solid var(--color-line); border-radius: 8px;
  margin-bottom: clamp(12px, 1.6vw, 20px); /* gapではなくmarginでループの継ぎ目を消す */
}
@keyframes fv-drift { to { transform: translateY(-50%); } }
@media (max-width: 767px) {
  .fv__bg { grid-template-columns: repeat(2, 1fr); }
  .fv__col:nth-child(n+3) { display: none; }
  .fv::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.89) 55%, #ffffff 100%);
  }
}
.fv__eyebrow { font-weight: 700; font-size: clamp(0.9rem, 1.6vw, 1.05rem); margin-bottom: 1.2em; }
.fv__title { margin-bottom: 0.5em; }
.fv__copy { font-size: clamp(1rem, 1.8vw, 1.2rem); }
.fv__price {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 900; margin: 0.6em 0 0.4em;
}
.fv__price .num { font-size: 1.35em; }
/* FVの実績ステータス行（数字のジャンプ率で見せる3連スペック） */
.fv__stats { display: flex; flex-wrap: wrap; margin-block: 1.6em 0; }
.fv__stat {
  padding-right: clamp(20px, 3vw, 40px); margin-right: clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--color-line);
}
.fv__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fv__stat small {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-text-sub);
  letter-spacing: 0.06em; margin-bottom: 0.2em;
}
.fv__stat .num { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.fv__stat .unit { font-size: 0.85rem; margin-left: 0.15em; }
.fv__note { margin-top: 2.5em; }
.fv__cta { margin-top: 1.2em; }

/* スクロールキュー（縦書き・MV右下） */
.fv__scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 700;
  color: var(--color-text-sub);
}
.fv__scroll span { writing-mode: vertical-rl; letter-spacing: 0.32em; }
.fv__scroll::after {
  content: ""; width: 1px; height: 56px; background: var(--color-text);
  transform-origin: center top;
  animation: scroll-line 2.2s var(--ease-out) infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 900px) { .fv__scroll { display: none; } }

/* 行マスクの立ち上がりアニメーション（MV/H2用） */
.mask { display: block; overflow: hidden; }
.mask__inner { display: block; }
html.js .mask__inner {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--mask-delay, 0s);
}
html.js .is-in .mask__inner, html.js .is-loaded .mask__inner { transform: translateY(0); }

/* ---------- reveal（スクロール連動・1回のみ） ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 100ms);
}
html.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* ---------- カード共通 ---------- */
.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
.card__body { padding: 20px 24px 24px; }
.card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.3em; }
.card__meta { font-size: 0.85rem; color: var(--color-text-sub); margin: 0; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--color-line); border-radius: 4px;
  padding: 0.1em 0.6em; color: var(--color-text-sub); background: #fff;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* 事例カード（サムネイルは16:9で統一） */
.case-card__shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; }
.case-card .card__external {
  margin-top: auto; padding: 0 24px 20px;
  font-size: 0.9rem; font-weight: 700; color: var(--color-text);
}
.case-card .card__external span::after { content: " →"; font-family: var(--font-en); }

/* トップS2: フィーチャード事例 + 一覧タイル（大小のリズムをつける） */
.works-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.works-grid > * { min-width: 0; }
.case-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; }
.case-card--featured .case-card__shot { height: 100%; aspect-ratio: auto; min-height: 320px; }
.case-card--featured .card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.5vw, 56px); }
.case-card--featured .card__title { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.case-card--featured .card__external { padding: clamp(16px, 2vw, 24px) clamp(24px, 3.5vw, 56px); margin-top: 0; }
.works-grid__more {
  background: var(--color-dark); color: #fff;
  border-radius: 20px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 4px; padding: clamp(24px, 3vw, 40px);
  font-weight: 700;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.works-grid__more:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }
.works-grid__more .num { font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; }
.works-grid__more small { font-weight: 500; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-card--featured { grid-template-columns: 1fr; }
  .case-card--featured .case-card__shot { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

/* ---------- テーブル（スマホは横スクロールで崩さない） ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5em; }
.table-scroll table { min-width: 640px; }
th, td {
  border: 1px solid var(--color-line);
  padding: 1em 1.1em;
  text-align: left; vertical-align: top;
  font-size: 0.95rem; line-height: 1.7;
  background: #fff;
}
thead th { background: var(--color-dark); color: #fff; border-color: var(--color-dark); font-weight: 700; }
th[scope="row"] { background: var(--color-bg-gray); font-weight: 700; }

/* 比較表: SIMPLE5列を枠で強調 */
.table--compare th:last-child, .table--compare td:last-child {
  border-left: 2px solid var(--color-dark); border-right: 2px solid var(--color-dark);
}
.table--compare thead th:last-child { border-top: 2px solid var(--color-dark); }
.table--compare tbody tr:last-child td:last-child { border-bottom: 2px solid var(--color-dark); }
.table--compare tbody td:last-child { background: #fbfbfb; font-weight: 600; }
.table--plain th, .table--plain td { border-inline: none; }
td .num { font-size: 1.05em; }
.td-strong { font-weight: 700; }
.td-accent { color: var(--color-accent); font-weight: 700; }

/* 定義リスト型の会社概要 */
.def-table th { width: 8em; white-space: nowrap; }

/* ---------- チェックリスト・特徴リスト ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.8em; margin-bottom: 0.8em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 1em; height: 0.5em;
  border-left: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text);
  transform: rotate(-45deg);
}

/* 番号付き特徴ブロック（番号は巨大なゴースト数字として右上に敷く） */
.feature-list { list-style: none; padding: 0; display: grid; gap: 24px; }
.feature-list__item {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #ececec; border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.feature-list__item h3, .feature-list__item p { position: relative; z-index: 1; }
.feature-list__num {
  position: absolute; z-index: 0; right: 8px; top: -0.12em;
  font-family: var(--font-en); font-weight: 800; line-height: 1;
  font-size: clamp(4.5rem, 8vw, 7rem);
  color: #f0f0f0;
}
.section--gray .feature-list__num { color: #f4f4f4; }
.feature-list__item p:last-child { margin-bottom: 0; }
.section--gray .feature-list__item { border-color: transparent; }

/* ---------- フロー（縦タイムライン / HTML+CSSで図解） ---------- */
.flow-steps { list-style: none; padding: 0; counter-reset: flow; position: relative; display: grid; gap: 0; }
.flow-steps > li {
  position: relative; padding: 0 0 2.2em 64px; counter-increment: flow;
}
.flow-steps > li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: -0.2em;
  font-family: var(--font-en); font-weight: 800; font-size: 1.4rem;
  background: var(--color-dark); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.flow-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 2px; background: var(--color-line);
}
.flow-steps h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.flow-steps p { margin-bottom: 0; }

/* 準備物3つ */
.prep-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 2em; }
.prep-grid__item {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 28px;
}
.prep-grid__item h3 { display: flex; gap: 0.5em; align-items: baseline; font-size: 1.05rem; }
.prep-grid__item .num { font-size: 1.5em; }
.prep-grid__item p { margin: 0; font-size: 0.95rem; color: var(--color-text-sub); }

/* ---------- 5ページ構成図（about用・HTML/CSS図解） ---------- */
.site-diagram { display: grid; gap: 12px; margin-block: 2em; }
.site-diagram__top {
  background: var(--color-dark); color: #fff; border-radius: 12px;
  padding: 20px 24px; text-align: center; font-weight: 700;
}
.site-diagram__top small { display: block; font-weight: 400; opacity: 0.7; font-size: 0.8rem; }
.site-diagram__pages { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.site-diagram__page {
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  padding: 16px; text-align: center; font-size: 0.95rem;
}
.site-diagram__page strong { display: block; }
.site-diagram__page small { color: var(--color-text-sub); font-size: 0.78rem; line-height: 1.5; display: block; margin-top: 0.4em; }

/* ---------- 契約フロー図（S10/price用） ---------- */
.contract-diagram { display: grid; gap: 8px; margin-block: 2em; max-width: 640px; }
.contract-diagram__row {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  align-items: start;
  border-left: 2px solid var(--color-line);
  padding: 0 0 20px 20px; position: relative;
}
.contract-diagram__row::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: currentColor;
}
.contract-diagram__when { font-family: var(--font-en); font-weight: 800; font-size: 0.9rem; padding-top: 2px; }
.contract-diagram__what { font-size: 0.95rem; }
.contract-diagram__what strong { display: block; }
.section--dark .contract-diagram__row { border-color: rgba(255,255,255,0.25); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 700; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; font-family: var(--font-en); font-weight: 800; margin-right: 0.6em; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-text-sub); border-bottom: 2px solid var(--color-text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item__a { padding: 0 24px 24px; }
/* FAQの開閉をなめらかに（対応ブラウザのみ・非対応は即時開閉） */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}
.faq-item__a p { margin-bottom: 0; }
.faq-item__a p::before { content: "A."; font-family: var(--font-en); font-weight: 800; margin-right: 0.6em; color: var(--color-accent); }

/* ---------- お客様の声 ---------- */
.voice-card {
  background: #fff; border: 1px solid #ececec; border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex; flex-direction: column;
}
.voice-card__photo { border-radius: 12px; width: 100%; height: auto; margin-bottom: 20px; }
.voice-card__quote {
  font-weight: 900; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6;
  letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 0.8em;
}
.voice-card__quote::before { content: "“"; font-family: var(--font-en); color: var(--color-accent); margin-right: 0.15em; }
.voice-card__text { font-size: 0.95rem; margin-bottom: 0; }
.voice-card__foot {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--color-line);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between;
}
.voice-card__body { margin-bottom: 24px; }
.voice-card__name { font-weight: 700; font-size: 0.95rem; margin: 0; }
.voice-card__name span { display: block; font-weight: 500; color: var(--color-text-sub); font-size: 0.8rem; }
.voice-card__link { font-size: 0.85rem; font-weight: 700; color: var(--color-text); white-space: nowrap; }
.voice-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 1em; }
.voice-card__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-bg-gray); border: 1px solid var(--color-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; color: var(--color-text-sub);
  flex-shrink: 0;
}
.voice-card__name { font-weight: 700; margin: 0; line-height: 1.5; }
.voice-card__meta { font-size: 0.85rem; color: var(--color-text-sub); margin: 0; }
.voice-card__body p:last-child { margin-bottom: 0; }

/* 素材待ちプレースホルダー（公開前に必ず差し替え） */
.pending {
  border: 2px dashed #d0a; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #fdf3fb 12px, #fdf3fb 24px);
  padding: 24px; color: #a0208a; font-weight: 700; font-size: 0.95rem;
}
.pending::before { content: "★素材待ち "; font-weight: 900; }
.pending--photo { aspect-ratio: 1 / 1; max-width: 320px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* ---------- 代表プロフィール ---------- */
.profile { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .profile { grid-template-columns: 320px 1fr; } }
.profile__photo img { border-radius: var(--radius); }

/* ---------- 価格表示ブロック ---------- */
.price-hero {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 4vw, 48px);
  align-items: baseline; margin-block: 1em 2em;
}
.price-hero__item strong {
  display: block; font-size: 0.9rem; font-weight: 700; color: var(--color-text-sub);
}
.price-hero__item .num { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; }
.price-hero__item .unit { font-size: 1rem; font-weight: 700; margin-left: 0.2em; }

/* 価格の数式ストリップ（初期 + 月額×12 = 総額） */
.price-eq {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2.4vw, 32px);
  background: #fff; border: 1px solid #ececec; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: clamp(24px, 3.5vw, 44px) clamp(24px, 4vw, 56px);
  margin-block: 0 2.5em;
}
.section--gray .price-eq { border-color: transparent; }
.price-eq__item small {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-text-sub);
  margin-bottom: 0.2em;
}
.price-eq__item .num { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.price-eq__item .unit { font-size: 0.85rem; }
.price-eq__op {
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem); color: #d5d5d5; line-height: 1;
}
.price-eq__item--total .num { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }

/* ---------- LINEブロック（全ページ・フッター手前） ---------- */
.line-block { background: var(--color-bg-gray); padding-block: clamp(72px, 10vw, 120px); }
.line-block__inner { text-align: center; }
.line-block__heading { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.line-block__body { margin-inline: auto; margin-bottom: 2.4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0 120px; overflow: hidden; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { opacity: 0.6; }
.site-footer__brand {
  font-family: var(--font-en); font-weight: 800; line-height: 1; letter-spacing: 0.02em;
  font-size: clamp(2.8rem, 9vw, 7rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  white-space: nowrap; max-width: none;
  margin: 0 0 clamp(40px, 6vw, 72px);
}
.site-footer__top { margin-bottom: 48px; }
.site-footer__logo img { width: 140px; }
.site-footer__tagline { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-top: 1em; }
.site-footer__nav { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 48px; }
.site-footer__col-title {
  font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1em; letter-spacing: 0.08em;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.7em; font-size: 0.95rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.7);
}
.site-footer__bottom p { margin: 0; }

/* ---------- 追従フッター（スマホ） ---------- */
.fixed-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-line);
}
.fixed-footer__btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0.9em 0.5em; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
}
.fixed-footer__btn--apply { background: var(--color-accent); color: #fff; }
.fixed-footer__btn--line { background: var(--color-dark); color: #fff; }
@media (max-width: 900px) {
  .fixed-footer { display: flex; }
  .site-footer { padding-bottom: 160px; }
}

/* ---------- フォーム ---------- */
.form-field { margin-bottom: 28px; }
.form-field > label, .form-field > .form-label {
  display: block; font-weight: 700; margin-bottom: 0.5em; font-size: 0.95rem;
}
.req, .opt {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  border-radius: 4px; padding: 0.15em 0.6em; margin-left: 0.6em; vertical-align: middle;
}
.req { background: var(--color-accent); color: #fff; }
.opt { background: var(--color-bg-gray); color: var(--color-text-sub); border: 1px solid var(--color-line); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.9em 1em;
  border: 1px solid var(--color-line); border-radius: 8px;
  font: inherit; background: #fff;
}
/* 1行入力はコンテナが広くても間延びさせない（textareaは全幅のまま） */
input[type="text"], input[type="email"], input[type="tel"], select { max-width: 640px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-text); outline-offset: 1px; }
.form-check { display: flex; align-items: flex-start; gap: 0.6em; margin-bottom: 0.6em; font-size: 0.95rem; }
.form-check input { margin-top: 0.45em; }
.form-note { font-size: 0.85rem; color: var(--color-text-sub); margin-top: 0.4em; }
.form-actions { margin-top: 40px; text-align: center; }

/* 確認テーブル */
.confirm-table th { width: 12em; }

/* ---------- Contact Form 7（WPテーマで使用） ---------- */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-list-item { display: block; margin: 0 0 0.6em; }
.wpcf7-list-item label { display: flex; align-items: flex-start; gap: 0.6em; font-size: 0.95rem; cursor: pointer; }
.wpcf7-list-item input { margin-top: 0.45em; }
.wpcf7-not-valid-tip, .field-error { display: block; color: var(--color-accent); font-size: 0.85rem; margin-top: 0.4em; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--color-accent); }
.wpcf7 form .wpcf7-response-output {
  margin: 32px 0 0; padding: 1em 1.2em;
  border: 1px solid var(--color-line); border-radius: 8px; font-size: 0.95rem;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--color-accent); color: var(--color-accent); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-dark); }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* テーマ実装の確認画面（forms.js が生成） */
.confirm-panel { display: none; }
form.is-confirming .confirm-panel { display: block; }
form.is-confirming .form-field, form.is-confirming .form-actions--input { display: none; }
.confirm-panel__heading { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.confirm-panel__lead { margin-bottom: 2em; }

/* ---------- 事例詳細: ライブプレビュー（iframe PC/SP切替） ---------- */
.site-preview { margin-block: 8px 40px; }
.site-preview__tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.preview-tab {
  border: 1px solid var(--color-line); background: #fff; border-radius: 999px;
  padding: 0.5em 1.4em; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.preview-tab.is-active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.site-preview__frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-bg-gray);
}
.site-preview__frame iframe { display: block; border: 0; transform-origin: 0 0; }
.site-preview__frame--sp { max-width: 425px; margin-inline: auto; }
.site-preview[data-active="pc"] .site-preview__frame--sp { display: none; }
.site-preview[data-active="sp"] .site-preview__frame--pc { display: none; }

/* ---------- 写真つき2カラム（S3等） ---------- */
.photo-split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .photo-split { grid-template-columns: 1.1fr 1fr; } }
.photo-stack { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr 1fr; align-items: start; }
.photo-stack img {
  border-radius: var(--radius); width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover; /* 縦長トリミングで大きく見せる */
}
.photo-stack img:nth-child(2) { margin-top: clamp(32px, 4vw, 56px); }
.photo-single img { border-radius: var(--radius); width: 100%; height: auto; }

/* ---------- 記事（コラム） ---------- */
.post-meta { font-size: 0.85rem; color: var(--color-text-sub); margin-bottom: 2em; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2.5em; }
.post-body h3 { margin-top: 2em; }

/* ---------- パンくず ---------- */
.breadcrumb { font-size: 0.8rem; color: var(--color-text-sub); padding-block: 16px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5em; opacity: 0.5; }
.breadcrumb a { color: inherit; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 104px) 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.page-hero .lead { max-width: 48em; }

/* 背景: 巨大アウトライン英字のゆっくりマーキー（モノクロ・装飾のみ） */
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center;
  pointer-events: none; user-select: none;
}
.page-hero__bg span {
  flex-shrink: 0;
  font-family: var(--font-en); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 14vw, 11rem); letter-spacing: 0.04em; white-space: nowrap;
  color: #f4f4f4;
  -webkit-text-stroke: 1px #e2e2e2;
  -webkit-text-fill-color: transparent;
  animation: hero-marquee 70s linear infinite;
}
@keyframes hero-marquee { to { transform: translateX(-100%); } }

/* ---------- 事例フィルタ ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--color-line); background: #fff; border-radius: 999px;
  padding: 0.5em 1.2em; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.filter-btn.is-active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

/* ---------- CTAセクション（クロージング） ---------- */
.closing { text-align: center; }
.closing p { margin-inline: auto; }

/* ---------- WPページネーション（the_posts_pagination） ---------- */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  min-width: 44px; padding: 0.6em 1.1em;
  border: 1px solid var(--color-line); border-radius: 999px;
  background: #fff; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 0.9rem; color: var(--color-text);
}
.pagination .page-numbers.current { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination a.page-numbers:hover { border-color: var(--color-text); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- 静的プレビュー用バナー（WP化・本番反映時には出力しない） ---------- */
.dev-banner {
  background: #fff8e1; border: 1px solid #e6c34a; border-radius: 8px;
  padding: 14px 18px; font-size: 0.85rem; color: #7a5c00; margin-bottom: 40px;
}

/* ---------- 改行ユーティリティ ---------- */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}
.unit { font-size: 0.9rem; font-weight: 700; }

/* ---------- 印刷/その他 ---------- */
::selection { background: var(--color-text); color: #fff; }

/* ---------- reduced motion: 全アニメーション無効化（即時表示） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .mask__inner, html.js .reveal, html.js .reveal-stagger > *, html.js .split .char {
    transform: none !important; opacity: 1 !important; transition: none !important;
  }
  html.js .label { opacity: 1 !important; letter-spacing: 0.12em !important; transition: none !important; }
  .fv__col, .fv__bg { animation: none; }
  .fv__scroll::after { animation: none; }
  .page-hero__bg span { animation: none; }
  .btn, a.card, .arrow-link { transition: none; }
  .faq-item::details-content { transition: none; }
}

/* ---------- モバイル軽量化（stagger省略・duration短縮） ---------- */
@media (max-width: 767px) {
  html.js .reveal, html.js .reveal-stagger > * { transition-duration: 0.4s; transition-delay: 0s; }
  html.js .split .char {
    transition-duration: 0.45s, 0.3s;
    transition-delay: calc(var(--split-base, 0s) + var(--ci, 0) * 18ms);
  }
}
