/* ============================================================
   AlleviaSync 公式サイト  style.css
   構成: 1) tokens  2) reset/base  3) layout  4) components
         5) sections  6) page固有  7) utilities
   ブランド: 墨 #1F2937 × アンバー #F59E0B（CTA専用・1画面3か所まで）
   ============================================================ */

/* ---------- 1) tokens ---------- */
:root {
  /* color */
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-mute: #6B7280;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F5;
  --line: rgba(31, 41, 55, 0.10);
  --line-soft: rgba(31, 41, 55, 0.07);
  --on-dark-soft: #C7CCD4;

  /* type scale（モバイル→PC） */
  --fs-display: clamp(1.75rem, 4.2vw + 0.7rem, 3.25rem);
  --fs-page-title: clamp(1.625rem, 3vw + 0.7rem, 2.625rem);
  --fs-h2: clamp(1.5rem, 2.4vw + 0.75rem, 2.375rem);
  --fs-h3: clamp(1.185rem, 1vw + 0.9rem, 1.375rem);
  --fs-lead: clamp(1rem, 0.4vw + 0.92rem, 1.155rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-stat: clamp(3.25rem, 9vw, 5.75rem);

  /* rhythm */
  --sp-section: clamp(4.5rem, 11vw, 8.5rem);
  --sp-head: clamp(2.25rem, 5vw, 3.75rem);
  --w-container: 1080px;
  --w-narrow: 760px;
  --w-text: 42em;

  /* shape */
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 32px rgba(31, 41, 55, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(31, 41, 55, 0.05), 0 16px 48px rgba(31, 41, 55, 0.10);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 60px;

  /* font */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  --font-en: "Poppins", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --header-h: 68px; }
}

/* ---------- 2) reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 700; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

::selection { background: rgba(245, 158, 11, 0.25); }

body.nav-open { overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: var(--fs-small);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 3) layout ---------- */
.container {
  width: min(100% - 48px, var(--w-container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 48px, var(--w-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-section);
  background: var(--bg);
  position: relative;
}

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  max-width: var(--w-narrow);
  margin-inline: auto;
  margin-bottom: var(--sp-head);
  text-align: center;
}

.section-head h2 { font-size: var(--fs-h2); }

.section-head .lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  text-align: left;
}

@media (min-width: 768px) {
  .section-head .lead { text-align: center; }
}

.prose {
  max-width: var(--w-text);
  margin-inline: auto;
}
.prose p + p { margin-top: 1.4em; }

/* 装飾: サブグラフィック（編み込みリンク）をごく薄く敷く */
.deco-link {
  position: absolute;
  width: clamp(180px, 24vw, 340px);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

/* ---------- 4) components ---------- */

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.9em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.4;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { background: var(--amber-hover); }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.section--dark .btn-ghost { border-color: #fff; color: #fff; }
.section--dark .btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 0.85em 2.2em; font-size: 1.06rem; }

/* テキストリンク（矢印つき） */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-more:hover { gap: 0.7em; color: var(--amber-hover); }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.header-inner {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-symbol { width: 30px; height: 30px; }

.brand-name {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.185rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tagline {
  display: none;
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (min-width: 1080px) {
  .brand-tagline { display: inline; }
}

/* ナビ（PC） */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-toggle-line {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-line:nth-child(1) { top: 15px; }
.nav-toggle-line:nth-child(2) { top: 21px; }
.nav-toggle-line:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

.global-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease);
}
.global-nav ul a:hover { color: var(--ink); }

/* 現在ページの強調（共通ヘッダーを書き換えずに body[data-page] で制御） */
body[data-page="services"] .global-nav a[href="/services/"],
body[data-page="works"]    .global-nav a[href="/works/"],
body[data-page="profile"]  .global-nav a[href="/profile/"],
body[data-page="contact"]  .global-nav a[href="/contact/"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--amber);
}

.header-cta { min-height: 42px; padding: 0.45em 1.4em; font-size: 0.925rem; }

/* ナビ（モバイル：全面オーバーレイ） */
@media (max-width: 899px) {
  .nav-toggle { display: block; }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: calc(var(--header-h) + 16px) 32px 48px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  body.nav-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 360px;
  }

  .global-nav ul a {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1.185rem;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 0;
  }

  .header-cta {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    font-size: 1.06rem;
  }
}

/* カード */
.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 40px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) {
  a.card:hover, .card.is-hoverable:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }
}

.card-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* アイコン（線画・ロゴと同じ丸端ストローク） */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.section--alt .icon-circle,
.section--alt .card .icon-circle { background: #fff; border: 1px solid var(--line-soft); }

.icon-circle svg { width: 30px; height: 30px; }

/* 実績の数字カード */
.stat-card { text-align: center; }

.stat-figure {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: var(--fs-stat);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}

.stat-figure .stat-affix {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.32em;
  letter-spacing: 0.02em;
}

.stat-figure::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: var(--amber);
}

.stat-title {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

.stat-note {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* 画像×テキスト2カラム */
.media-split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 768px) {
  .media-split { grid-template-columns: 5fr 6fr; }
  .media-split.is-flipped .media-split-visual { order: 2; }
}

.media-split-visual img {
  width: 100%;
  border-radius: var(--radius-card);
}

/* 番号つきステップ（ご相談の流れ） */
.flow-steps {
  counter-reset: flow;
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(5, 1fr);
    max-width: none;
    gap: 12px;
  }
}

.flow-step {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.flow-step::before {
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.185rem;
  color: var(--ink);
  background: var(--bg);
}

@media (min-width: 900px) {
  .flow-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
}

.flow-step h3 { font-size: 1.06rem; }
.flow-step p { font-size: var(--fs-small); margin-top: 0.35rem; }

/* 料金カード */
.price-cards {
  display: grid;
  gap: 20px;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .price-cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.price-card.is-featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
}

.price-plan {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.06rem;
}

.price-amount {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  color: var(--ink);
  line-height: 1.2;
  font-feature-settings: "palt";
}

.price-amount .price-affix {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.5em;
}

.price-desc { font-size: var(--fs-small); color: var(--ink-soft); }

.price-features {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-small);
}

.price-features li {
  position: relative;
  padding-left: 1.4em;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.9em;
  height: 0.45em;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

.price-option {
  margin-top: 20px;
  padding: clamp(24px, 3.5vw, 32px);
  background: var(--bg-alt);
  border-radius: var(--radius-card);
}

.price-notes {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* チェックつきリスト（安心材料など） */
.check-list { display: grid; gap: 0.9rem; }

.check-list li {
  position: relative;
  padding-left: 2em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.55em;
  width: 1em;
  height: 0.5em;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
}

/* 事例（PREP）記事 */
.case-article {
  padding: clamp(28px, 4.5vw, 48px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.2rem;
}

.case-meta li {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
}

.case-meta li b { color: var(--ink); font-weight: 700; }

.case-title { font-size: var(--fs-h3); line-height: 1.55; }

.case-block { margin-top: 1.8rem; }

.case-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.case-label::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--amber);
}

.case-block--result {
  padding: clamp(18px, 3vw, 26px);
  background: var(--bg-alt);
  border-radius: 14px;
}

/* お問い合わせ 2入口カード */
.entry-cards {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .entry-cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.entry-card .btn { align-self: stretch; margin-top: auto; }

.entry-title { font-size: var(--fs-h3); }

.entry-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.form-items {
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-small);
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: 14px;
}

.form-items ul { display: grid; gap: 0.3rem; padding-left: 1.2em; list-style: none; }

.qr-placeholder {
  width: 148px;
  height: 148px;
  margin-inline: auto;
  border-radius: 14px;
}

/* 法務ページ（プラポリ・特商法） */
.legal { font-size: 0.95rem; }

.legal h2 {
  font-size: 1.185rem;
  margin-top: 2.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 1rem; }
.legal ul { padding-left: 1.4em; list-style: disc; }
.legal li + li { margin-top: 0.4rem; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.legal-date { margin-top: 2.5rem; color: var(--ink-mute); font-size: var(--fs-small); }

.table-scroll { overflow-x: auto; margin-top: 1.5rem; -webkit-overflow-scrolling: touch; }

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.legal th, .legal td {
  padding: 14px 18px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.legal th {
  width: 200px;
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* CTA帯（全ページ共通・2経路） */
.cta-band { text-align: center; }

.cta-band h2 { font-size: var(--fs-h2); }

.cta-band .prose {
  margin-top: 1.6rem;
  text-align: left;
}

@media (min-width: 768px) {
  .cta-band .prose { text-align: center; }
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 2.4rem;
}

.cta-actions .btn { width: min(100%, 340px); }

@media (min-width: 640px) {
  .cta-actions { flex-direction: row; justify-content: center; }
  .cta-actions .btn { width: auto; min-width: 240px; }
}

/* フッター（墨ベタ） */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: clamp(56px, 8vw, 88px) 0 40px;
}

.footer-inner {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand .brand-symbol { width: 34px; height: 34px; }

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-row .brand-name { color: #fff; font-size: 1.25rem; }

.footer-tagline {
  margin-top: 1.1rem;
  color: #fff;
  font-weight: 700;
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #9CA3AF;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9CA3AF;
  margin-bottom: 1rem;
}

.footer-nav ul, .footer-legal ul { display: grid; gap: 4px; }

.footer-nav a, .footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-dark-soft);
  font-size: 0.925rem;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover, .footer-legal a:hover { color: #fff; }

.footer-copy {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #9CA3AF;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

/* ---------- 5) sections（トップ・下層共通） ---------- */

/* ヒーロー（トップ） */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 9.5rem) clamp(4.5rem, 11vw, 8.5rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 50% -140px, rgba(245, 158, 11, 0.07), transparent 70%),
    var(--bg);
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.hero-sub {
  margin-top: 1.8rem;
  font-size: var(--fs-lead);
  max-width: 40em;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-sub { text-align: center; }
}

.hero-note {
  margin-top: 1.4rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-sublinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  font-size: 0.925rem;
}

.hero-sublinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.35em;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.hero-sublinks a:hover { color: var(--ink); }

/* 下層ページのタイトル帯 */
.page-hero {
  background: var(--bg-alt);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6em;
  color: var(--line);
}

.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--ink); }

.page-title { font-size: var(--fs-page-title); }

.page-title-en {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-hover);
  margin-bottom: 0.7rem;
}

/* サービス詳細ブロック */
.service-detail + .service-detail { margin-top: var(--sp-section); }

.service-name { font-size: var(--fs-h2); }

.service-copy {
  display: block;
  margin-top: 0.7rem;
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--ink-soft);
}

.prep-grid {
  display: grid;
  gap: 20px;
  margin-top: 2.2rem;
}

@media (min-width: 900px) {
  .prep-grid { grid-template-columns: 1fr 1fr; }
}

.prep-item {
  padding: clamp(22px, 3vw, 30px);
  background: var(--bg-alt);
  border-radius: var(--radius-card);
}

.section--alt .prep-item { background: var(--bg); border: 1px solid var(--line-soft); }

.prep-item h4 {
  font-size: 0.925rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.prep-item h4::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.prep-item p, .prep-item ul { font-size: 0.95rem; }

.prep-item ul { display: grid; gap: 0.4rem; }

.prep-item ul li {
  position: relative;
  padding-left: 1.2em;
}

.prep-item ul li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.75em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--line);
}

.service-cta { margin-top: 2.2rem; text-align: center; }

/* ---------- 6) ページ固有 ---------- */

/* トップ: サービスカード */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.service-card h3 { font-size: var(--fs-h3); }

.service-card p { font-size: 0.95rem; flex-grow: 1; }

.service-card .link-more { font-size: 0.95rem; min-height: 44px; }

/* トップ: 選ばれる理由 */
.reason-grid {
  display: grid;
  gap: 28px;
  margin-top: var(--sp-head);
}

@media (min-width: 768px) {
  .reason-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.reason-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 768px) {
  .reason-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.reason-item h3 { font-size: 1.06rem; }
.reason-item p { font-size: var(--fs-small); margin-top: 0.4rem; }

/* プロフィール抜粋（トップ⑥）・プロフィールページ */
.portrait {
  width: min(240px, 56vw);
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-facts { display: grid; gap: 0; margin-top: 1.8rem; }

.profile-facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 640px) {
  .profile-facts > div { grid-template-columns: 160px 1fr; gap: 16px; }
}

.profile-facts dt { font-weight: 700; color: var(--ink); font-size: 0.925rem; }
.profile-facts dd { margin: 0; font-size: 0.95rem; }

/* 5つのお約束 */
.promise-list {
  counter-reset: promise;
  display: grid;
  gap: 16px;
}

.promise-item {
  counter-increment: promise;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.promise-item::before {
  content: counter(promise, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--amber-hover);
  line-height: 1.3;
}

.promise-item h3 { font-size: 1.06rem; }
.promise-item p { font-size: 0.95rem; margin-top: 0.4rem; }

/* 屋号の由来: タグライン引用 */
.tagline-quote {
  margin: 2.4rem 0 0;
  text-align: center;
}

.tagline-quote p {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "palt";
}

/* サービス番号（下層のセクション見出し上の欧文ナンバー） */
.service-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.925rem;
  letter-spacing: 0.24em;
  color: var(--amber-hover);
  margin-bottom: 0.6rem;
}

/* 料金プランの小見出し */
.price-heading {
  margin-top: var(--sp-head);
  font-size: 1.185rem;
  text-align: center;
}

/* 事例の眉ラベル */
.case-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber-hover);
  margin-bottom: 0.8rem;
}

/* 汎用リスト */
.bullet-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.4em;
  list-style: disc;
}

.steps-ol {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.5em;
  list-style: decimal;
  font-size: 0.95rem;
}

.note {
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

/* 見出しの語中折れ防止（PCのみ。スマホでは自然に折り返す） */
@media (min-width: 768px) {
  .u-nowrap-pc { white-space: nowrap; }
}

/* ---------- 7) utilities / motion ---------- */
.align-center { text-align: center; }
.mt-head { margin-top: var(--sp-head); }

/* フェードイン（JS有効時のみ非表示から開始／reduced-motionでは無効） */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal,
  html.js .reveal-group > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  html.js .reveal.is-visible,
  html.js .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
  }

  html.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: 70ms; }
  html.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: 140ms; }
  html.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: 210ms; }
  html.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: 280ms; }
}
