/* =====================================================================
   歯科代行.com コーポレートサイト
   デザインシステム / ベーススタイル
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --ink: #1c2b38;          /* 基本テキスト */
  --ink-soft: #55636e;     /* 補助テキスト */
  --ink-mute: #8a96a0;     /* さらに薄いテキスト */

  --brand: #00a1e9;        /* ブランドメイン（スカイブルー） */
  --brand-deep: #0071b8;   /* ブランド濃色 */
  --brand-bright: #4cc2f5; /* ブランド明色 */

  --accent: #f0913e;       /* CTAアクセント（暖色） */
  --accent-deep: #d9772a;

  --paper: #f5f9fb;        /* 面の淡色 */
  --paper-warm: #eef5f8;
  --line: rgba(28, 43, 56, 0.10);
  --line-strong: rgba(28, 43, 56, 0.18);

  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(28, 43, 56, 0.06);
  --shadow-md: 0 12px 30px rgba(28, 43, 56, 0.10);
  --shadow-lg: 0 22px 54px rgba(28, 43, 56, 0.16);

  --header-h: 68px;
  --container: 1120px;
  --focus: rgba(0, 161, 233, 0.35);
}

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Layout Helpers ---------- */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.section-head .title-en {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-top: 6px;
}
@media (min-width: 768px) {
  .section-head .title-en { font-size: 46px; }
}
.section-head .lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
@media (min-width: 768px) {
  .section-head .lead { font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease,
    background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-line {
  background: #06c755;
  color: #fff;
}
.btn-line:hover { transform: translateY(-2px); background: #05b84e; }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: rgba(0, 161, 233, 0.35);
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.btn-ghost {
  min-height: 42px;
  padding: 0 24px;
  background: transparent;
  color: var(--brand);
  border-color: rgba(0, 161, 233, 0.5);
}
.btn-ghost:hover { background: var(--brand); color: #fff; border-color: transparent; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(28, 43, 56, 0.06);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: 0.01em; }
.brand__name span { color: var(--brand); }

.gnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: flex; align-items: center; gap: 26px; }
}
.gnav__list { display: flex; align-items: center; gap: 22px; }
.gnav__link {
  font-size: 15px; font-weight: 800; color: var(--ink);
  transition: color .15s ease;
}
.gnav__link:hover { color: var(--brand); }

/* リリース前：ヘッダーのナビ項目を一旦非表示（TOP/サービス一覧/導入事例/会社概要）。
   復活させたい項目はその行を削除するだけ。mobileのお問い合わせ(5番目)は残す。 */
.gnav__list > li:nth-child(1),
.gnav__list > li:nth-child(2),
.gnav__list > li:nth-child(3),
.gnav__list > li:nth-child(4),
.mobile-nav > a:nth-child(1),
.mobile-nav > a:nth-child(2),
.mobile-nav > a:nth-child(3),
.mobile-nav > a:nth-child(4) { display: none; }

/* リリース前：フッター最下部バー（プライバシーポリシー/サイトマップ/©）を一旦非表示（後方の定義に勝たせるため !important） */
.footer-bottom { display: none !important; }

/* リリース前：フッターのナビ（SERVICE/COMPANY/CONTACT）を一旦非表示 */
.footer-nav { display: none !important; }

/* dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.mega__item:hover { background: var(--paper); border-color: rgba(0, 161, 233,0.2); }
.mega__item .t { font-size: 14px; font-weight: 800; }
.mega__item .d { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-cta { display: flex; align-items: center; gap: 10px; }
}

/* mobile menu button */
.menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  position: relative; width: 22px; height: 2px; background: var(--ink);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 95;
  background: #fff;
  padding: 24px 20px 48px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 16px; font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-cta { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(76, 194, 245,0.18), transparent 45%),
    linear-gradient(135deg, #0071b8 0%, #00a1e9 55%, #4cc2f5 100%);
  color: #fff;
}
@media (min-width: 768px) { .hero { min-height: 680px; } }
.hero__decor {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 48px 0; }
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 800;
}
.hero__title {
  margin-top: 20px;
  font-size: clamp(30px, 7vw, 62px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
}
.hero__title .u { color: #ffe08a; }
.hero__text {
  margin-top: 20px;
  max-width: 40rem;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.hero__stat .num { font-size: 34px; font-weight: 800; line-height: 1; }
.hero__stat .lbl { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.82); margin-top: 6px; }

/* ---------- Philosophy / 事業への思い ---------- */
.philosophy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(76, 194, 245, 0.10), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--paper-warm) 100%);
}
/* 背景の大きな引用符 */
.philosophy::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: -0.02em;
  font-size: clamp(180px, 34vw, 420px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(0, 161, 233, 0.07);
  pointer-events: none;
  z-index: 0;
}
.philosophy__inner { position: relative; z-index: 1; }

.philosophy__head { margin-bottom: 28px; }
.philosophy__title {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
@media (min-width: 768px) { .philosophy__title { font-size: 44px; } }

.philosophy__body { max-width: 860px; }

.philosophy__lead {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
@media (min-width: 768px) { .philosophy__lead { font-size: 34px; } }

.philosophy__text { margin-top: 28px; }
.philosophy__text p {
  font-size: 16px;
  font-weight: 600;
  line-height: 2.0;
  color: var(--ink-soft);
}
@media (min-width: 768px) { .philosophy__text p { font-size: 17px; } }
.philosophy__text p + p { margin-top: 20px; }
.philosophy__text strong { color: var(--ink); font-weight: 800; }

.philosophy__quote {
  margin: 36px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--brand);
  background: #fff;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  box-shadow: var(--shadow-sm);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.75;
}
@media (min-width: 768px) { .philosophy__quote { font-size: 23px; padding: 30px 34px; } }
.philosophy__quote .em { color: var(--brand); }

.philosophy__sign {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-deep);
}
@media (min-width: 768px) { .philosophy__sign { font-size: 20px; } }
.philosophy__more { margin-top: 32px; }

/* 事業への思い：写真スロット（images/story.jpg を置くと自動表示） */
.philosophy__figure {
  margin: 0 0 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .philosophy__figure { margin-bottom: 40px; } }

/* =====================================================================
   下層ページ（事業への思い 詳細 など）
   ===================================================================== */

/* ページ上部の見出しエリア */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(76, 194, 245,0.22), transparent 50%),
    linear-gradient(135deg, #0071b8 0%, #00a1e9 60%, #4cc2f5 100%);
}
@media (min-width: 768px) {
  .page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 64px; }
}
.page-hero__decor {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5; pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.page-hero__eyebrow {
  display: inline-block; margin-top: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  color: #ffe08a;
}
.page-hero__title {
  margin-top: 8px;
  font-size: 32px; font-weight: 800; line-height: 1.3;
}
@media (min-width: 768px) { .page-hero__title { font-size: 46px; } }

/* 記事本文の読みやすいカラム */
.article { max-width: 820px; margin-inline: auto; }
.article__lead {
  font-size: 21px; font-weight: 800; line-height: 1.7;
}
@media (min-width: 768px) { .article__lead { font-size: 26px; } }

.article__block + .article__block { margin-top: 48px; }
.article__block h2 {
  font-size: 23px; font-weight: 800; line-height: 1.5;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 161, 233,0.35);
}
@media (min-width: 768px) { .article__block h2 { font-size: 28px; } }
.article__block h2 .en {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--brand); margin-bottom: 4px;
}
.article__block p {
  margin-top: 18px;
  font-size: 16px; font-weight: 600; line-height: 2.0; color: var(--ink-soft);
}
@media (min-width: 768px) { .article__block p { font-size: 17px; } }
.article__block strong { color: var(--ink); font-weight: 800; }

/* 私たちが大切にしていること */
.values {
  margin-top: 24px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 22px;
}
.value-card .no { font-size: 13px; font-weight: 800; color: var(--brand); }
.value-card h3 { margin-top: 8px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.value-card p { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.85; color: var(--ink-soft); }

/* 代表メッセージ */
.rep {
  margin-top: 24px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
@media (min-width: 640px) { .rep { grid-template-columns: 120px 1fr; gap: 28px; } }
.rep__photo {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
  text-align: center;
}
.rep__body p { margin-top: 0; }
.rep__body p + p { margin-top: 16px; }
.rep__sign { margin-top: 18px; font-weight: 800; color: var(--ink); }
.rep__sign small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* 記事下のCTA */
.article-cta {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* サービス詳細：お悩みチェックリスト */
.checklist { margin-top: 18px; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  line-height: 1.7;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 16px; top: 12px;
  color: var(--brand); font-weight: 900;
}

/* サービス詳細：ご利用の流れ */
.steps { margin-top: 20px; display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.step__no {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 17px; font-weight: 800; }
.step p { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); line-height: 1.8; }

/* サービス詳細：関連サービスへの導線 */
.related-services {
  margin-top: 24px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .related-services { grid-template-columns: repeat(3, 1fr); } }
.related-services a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px; font-weight: 800;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.related-services a:hover {
  border-color: rgba(0, 161, 233,0.4);
  background: #fff;
  transform: translateY(-2px);
}
.related-services a::after { content: " →"; color: var(--brand); }

/* ---------- Services ---------- */
.service-band { background: var(--paper); }
.service-group + .service-group { margin-top: 56px; }
.service-group__head h3 { font-size: 22px; font-weight: 800; }
@media (min-width: 768px) { .service-group__head h3 { font-size: 26px; } }
.service-group__head p { margin-top: 10px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }

.card-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 161, 233,0.4);
  box-shadow: var(--shadow-md);
}
.service-card .tag { font-size: 13px; font-weight: 800; color: var(--brand); }
.service-card h4 { font-size: 20px; font-weight: 800; }
.service-card p { color: var(--ink-soft); font-weight: 600; font-size: 15px; flex: 1; }
.service-card .more {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px; font-weight: 800; color: var(--brand);
}
.service-card .more::after { content: " →"; }

/* ---------- Points ---------- */
.points {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point {
  position: relative;
  border-radius: var(--radius-card);
  padding: 30px 26px;
  color: #fff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, #0071b8, #00a1e9);
  box-shadow: var(--shadow-md);
}
.point::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 12%, rgba(255,255,255,0.14), transparent 40%);
}
.point__no {
  position: relative;
  align-self: flex-start;
  background: #fff; color: var(--brand);
  font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 8px;
}
.point h3 { position: relative; margin-top: 14px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.point p { position: relative; margin-top: 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.88); }

/* ---------- Voice / 実績 ---------- */
.voice-band { background: var(--paper-warm); }
.voice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .voice-grid { grid-template-columns: repeat(2, 1fr); } }
.voice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.voice-card__head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.voice-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  flex-shrink: 0;
}
.voice-card__meta .name { font-weight: 800; font-size: 16px; }
.voice-card__meta .role { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.voice-card h4 { margin-top: 18px; font-size: 19px; font-weight: 800; line-height: 1.55; }
.voice-card p { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }

.result-stat {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 640px) { .result-stat { grid-template-columns: repeat(3, 1fr); } }
.result-stat .cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}
.result-stat .num { font-size: 44px; font-weight: 900; color: var(--brand); line-height: 1; }
.result-stat .num small { font-size: 18px; margin-left: 2px; }
.result-stat .lbl { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ---------- About ---------- */
.about {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; } }
.about__intro h3 { font-size: 24px; font-weight: 800; line-height: 1.55; margin-top: 20px; }
@media (min-width: 768px) { .about__intro h3 { font-size: 30px; } }

.about-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.about-table th, .about-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: 0; }
.about-table th { width: 32%; background: var(--paper); font-weight: 800; color: var(--ink); }
.about-table td { color: var(--ink-soft); font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(76, 194, 245,0.28), transparent 55%),
    linear-gradient(135deg, #0062a6 0%, #00a1e9 100%);
}
.contact__badge {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 800; font-size: 14px;
  padding: 8px 18px; border-radius: 8px;
}
.contact__title { margin-top: 12px; font-size: 34px; font-weight: 800; }
@media (min-width: 768px) { .contact__title { font-size: 46px; } }
.contact__text { margin-top: 18px; font-weight: 600; color: rgba(255,255,255,0.88); }
.contact__cta {
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
  max-width: 520px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) { .contact__cta { grid-template-columns: 1fr; } }
.contact__cta .btn { min-height: 58px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(220px, 0.4fr) 1fr; }
}
.footer-brand .brand__name { font-size: 18px; }
.footer-brand address {
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.7;
}
.footer-nav {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-nav h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ink-mute); margin-bottom: 14px;
}
.footer-nav a {
  display: block; padding: 5px 0;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.footer-nav a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a, .footer-bottom p {
  font-size: 12px; font-weight: 700; color: var(--ink-mute);
}

/* =====================================================================
   Web集患・HP運用 詳細ページ（サブスクHP制作LP）専用コンポーネント
   ===================================================================== */

/* ---------- 共通：CTAクラスター ---------- */
.cta-lead { max-width: 640px; margin-inline: auto; text-align: center; }
.cta-lead__note {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 13px; font-weight: 800; line-height: 1;
  padding: 9px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.cta-lead__note b { color: #ffe08a; }
.cta-lead__note::after {
  content: ""; position: absolute; left: 50%; top: calc(100% - 1px);
  transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--brand-deep);
}
.cta-lead__btn {
  width: 100%;
  min-height: 64px;
  font-size: 18px;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px rgba(240, 145, 62, 0.28);
}
@media (min-width: 768px) { .cta-lead__btn { min-height: 70px; font-size: 20px; } }
.cta-lead__sub {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px; font-weight: 800;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 161, 233,0.4);
}
.cta-lead__sub.on-dark { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }
.cta-lead__note.on-dark { background: #fff; color: var(--ink); }
.cta-lead__note.on-dark::after { border-top-color: #fff; }
.cta-lead__note.on-dark b { color: var(--accent-deep); }

.cta-pulse { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(240,145,62,0.28); }
  50% { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(240,145,62,0.42); }
}
@media (prefers-reduced-motion: reduce) { .cta-pulse { animation: none; } }

/* ---------- リード提案バンド（制作費0円） ---------- */
.svc-offer {
  margin-top: 8px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .svc-offer { grid-template-columns: 1.15fr 0.85fr; gap: 36px; padding: 34px; } }
.svc-offer__price {
  font-size: 25px; font-weight: 800; line-height: 1.65; color: var(--ink);
}
@media (min-width: 768px) { .svc-offer__price { font-size: 31px; } }
.svc-offer__price .amt { color: var(--brand); }
.svc-offer__lead {
  margin-top: 18px;
  font-size: 15px; font-weight: 600; line-height: 1.95; color: var(--ink-soft);
}
@media (min-width: 768px) { .svc-offer__lead { font-size: 16px; } }

/* ---------- ハイライトバンド（完全オリジナル） ---------- */
.highlight-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(76, 194, 245,0.30), transparent 34%),
    linear-gradient(135deg, #0062a6 0%, #00a1e9 55%, #0071b8 100%);
}
@media (min-width: 768px) { .highlight-band { padding: 72px 0; } }
.highlight-band__head { text-align: center; }
.highlight-band__badge {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
  padding: 8px 18px; border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(240,145,62,0.28);
}
@media (min-width: 768px) { .highlight-band__badge { font-size: 15px; } }
.highlight-band__title {
  margin-top: 16px;
  font-size: 27px; font-weight: 800; line-height: 1.42;
}
@media (min-width: 768px) { .highlight-band__title { font-size: 42px; } }

/* ---------- モックアップ・スライダー ---------- */
.mockup-slider { position: relative; margin-top: 36px; overflow: hidden; }
.mockup-slider::before,
.mockup-slider::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.mockup-slider.on-dark::before { left: 0; background: linear-gradient(90deg, #0071b8, transparent); }
.mockup-slider.on-dark::after { right: 0; background: linear-gradient(-90deg, #0071b8, transparent); }
.mockup-slider.on-light::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.mockup-slider.on-light::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
@media (min-width: 768px) {
  .mockup-slider::before, .mockup-slider::after { width: 96px; }
}
.mockup-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: mockupScroll 34s linear infinite;
}
.mockup-slider:hover .mockup-track { animation-play-state: paused; }
@keyframes mockupScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mockup-track { animation: none; }
  .mockup-slider { overflow-x: auto; }
}
.mockup-item {
  flex: 0 0 auto;
  width: 172px; height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 34px rgba(0,0,0,0.32);
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .mockup-item { width: 210px; height: 380px; } }
.mockup-item__bar {
  height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  display: flex; align-items: center; gap: 5px; padding: 0 12px;
}
.mockup-item__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.mockup-item__body {
  flex: 1;
  background: linear-gradient(180deg, var(--paper) 0%, #fff 60%);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mockup-item__hero {
  height: 84px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 161, 233,0.18), rgba(76, 194, 245,0.28));
  display: grid; place-items: center;
  color: var(--brand-deep); font-size: 12px; font-weight: 800;
}
.mockup-item__line { height: 9px; border-radius: 5px; background: rgba(28,43,56,0.10); }
.mockup-item__line.short { width: 58%; }
.mockup-item__chip { margin-top: auto; height: 26px; border-radius: 999px; background: linear-gradient(100deg, var(--accent), var(--accent-deep)); }

/* ---------- 料金プラン ---------- */
.plan-note { margin-top: 14px; font-size: 13px; font-weight: 600; line-height: 1.85; color: var(--ink-soft); }
.plan-table {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.plan {
  position: relative;
  padding: 20px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.plan:first-child { border-left: 0; }
@media (min-width: 768px) { .plan { padding: 28px 16px; } }
.plan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(100deg, var(--brand-bright), var(--brand-deep));
}
.plan__name { font-size: 15px; font-weight: 800; color: var(--brand); letter-spacing: 0.02em; }
@media (min-width: 768px) { .plan__name { font-size: 20px; } }
.plan__pages { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 768px) { .plan__pages { font-size: 15px; } }
.plan__price {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1;
}
@media (min-width: 768px) { .plan__price { font-size: 42px; } }
.plan__price small { font-size: 11px; font-weight: 800; margin-left: 2px; }
@media (min-width: 768px) { .plan__price small { font-size: 15px; } }
.plan__unit { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 768px) { .plan__unit { font-size: 14px; } }

/* 全プラン共通 */
.includes {
  margin-top: 22px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .includes { grid-template-columns: repeat(2, 1fr); } }
.include-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
}
.include-card__label {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-size: 14px; font-weight: 800; line-height: 1;
  padding: 7px 12px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.include-card ul { margin-top: 12px; display: grid; gap: 10px; }
.include-card li {
  position: relative; padding-left: 16px;
  font-size: 14px; font-weight: 800; line-height: 1.5; color: var(--ink);
}
.include-card li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 161, 233,0.65);
}

/* 全プラン共通：まとめてチェックリスト（1枚カード） */
.included-all {
  margin-top: 22px;
  display: grid;
  gap: 24px 40px;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 700px) {
  .included-all { grid-template-columns: 1fr 1fr; padding: 36px 40px; }
}
.included-group__title {
  font-size: 14px; font-weight: 800; color: var(--brand);
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 161, 233, 0.18);
}
.included-list { margin-top: 14px; display: grid; gap: 12px; }
.included-list li {
  position: relative; padding-left: 30px;
  font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink);
}
.included-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 161, 233, 0.12);
}
.included-list li::after {
  content: ""; position: absolute; left: 7px; top: 5px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
}

/* プラン別事例 */
.case-grid {
  margin-top: 22px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(0, 161, 233,0.4); box-shadow: var(--shadow-md); }
.case-card__thumb {
  aspect-ratio: 3 / 2;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.6), transparent 42%),
    linear-gradient(135deg, rgba(0, 161, 233,0.16), rgba(76, 194, 245,0.26));
  display: grid; place-items: center;
  color: var(--brand-deep); font-size: 13px; font-weight: 800;
}
.case-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-card__tags span {
  font-size: 11px; font-weight: 800; line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-pill);
}
.case-card__tags .plan-tag { background: rgba(0, 161, 233,0.12); color: var(--brand); }
.case-card__tags .page-tag { background: var(--paper); color: var(--ink); }
.case-card h4 { font-size: 18px; font-weight: 800; line-height: 1.5; }
.case-card p { font-size: 14px; font-weight: 600; line-height: 1.75; color: var(--ink-soft); }

/* 制作事例（1件）フィーチャー枠 */
.case-feature {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.case-feature__media { position: relative; aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.case-feature__body {
  padding: 26px 24px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 768px) { .case-feature__body { padding: 34px 40px; } }
.case-feature__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-feature__tags span {
  font-size: 12px; font-weight: 800; line-height: 1;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.case-feature__tags .plan-tag { background: rgba(0, 161, 233, 0.12); color: var(--brand); }
.case-feature__tags .page-tag { background: var(--paper); color: var(--ink); }
.case-feature__title { font-size: 22px; font-weight: 800; line-height: 1.45; }
@media (min-width: 768px) { .case-feature__title { font-size: 25px; } }
.case-feature__desc { font-size: 15px; font-weight: 600; line-height: 1.95; color: var(--ink-soft); }
.case-feature__points { display: grid; gap: 10px; margin-top: 4px; }
.case-feature__points li {
  position: relative; padding-left: 28px;
  font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink);
}
.case-feature__points li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 161, 233, 0.12);
}
.case-feature__points li::after {
  content: ""; position: absolute; left: 6px; top: 5px;
  width: 5px; height: 8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
}

/* ---------- サポートAI バンド ---------- */
.ai-band {
  margin-top: 40px;
  position: relative; overflow: hidden;
  border-radius: 18px;
  padding: 30px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(76, 194, 245,0.30), transparent 32%),
    linear-gradient(135deg, #0071b8 0%, #0062a6 55%, #004d86 100%);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .ai-band { padding: 44px 40px; } }
.ai-band__head { text-align: center; max-width: 720px; margin-inline: auto; }
.ai-band__eyebrow {
  display: inline-block;
  background: #fff; color: var(--brand);
  font-size: 13px; font-weight: 800; line-height: 1;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.ai-band__title { margin-top: 16px; font-size: 24px; font-weight: 800; line-height: 1.45; }
@media (min-width: 768px) { .ai-band__title { font-size: 34px; } }
.ai-band__lead { margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.9; color: rgba(255,255,255,0.88); }
@media (min-width: 768px) { .ai-band__lead { font-size: 16px; } }
.ai-steps { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-steps { grid-template-columns: repeat(3, 1fr); } }
.ai-step {
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 20px 20px;
  box-shadow: var(--shadow-md);
}
.ai-step__badge {
  display: inline-block;
  background: rgba(0, 161, 233,0.10); color: var(--brand);
  font-size: 12px; font-weight: 800; line-height: 1;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.ai-step h4 { margin-top: 14px; font-size: 18px; font-weight: 800; line-height: 1.45; }
.ai-step p { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.75; color: var(--ink-soft); }

/* ---------- OPTIONS グリッド ---------- */
.option-grid {
  margin-top: 24px;
  display: grid; gap: 20px 12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 900px) { .option-grid { grid-template-columns: repeat(4, 1fr); } }
.option { text-align: center; }
.option__icon {
  width: 56px; height: 56px; margin-inline: auto;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  box-shadow: var(--shadow-sm);
}
.option__icon svg { width: 28px; height: 28px; }
.option p { margin-top: 12px; font-size: 13px; font-weight: 800; line-height: 1.5; }
@media (min-width: 768px) { .option p { font-size: 15px; } }

/* OPTIONS：チップ（ピル）を敷き詰める表示 */
.option-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 800; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.option-chip::before { content: "＋"; color: var(--brand); font-weight: 900; }
.option-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 161, 233, 0.5);
  box-shadow: var(--shadow-md);
}

/* Thanksページ：完了チェックマーク */
.thanks-check {
  width: 88px; height: 88px; margin-inline: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.thanks-check svg { width: 44px; height: 44px; }

/* ---------- FAQ タブ（純CSS） ---------- */
.faq { position: relative; margin-top: 26px; }
.faq__radio { position: absolute; opacity: 0; pointer-events: none; }
.faq__tabs {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}
@media (min-width: 768px) { .faq__tabs { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.faq__tab {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 14px; font-weight: 800; line-height: 1.25;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
@media (min-width: 768px) { .faq__tab { min-height: 66px; font-size: 17px; } }
.faq__tab:hover { background: var(--paper-warm); }
.faq__panels { margin-top: 16px; }
.faq__panel { display: none; gap: 10px; grid-template-columns: 1fr; }
#faq-1:checked ~ .faq__panels .faq__panel:nth-of-type(1),
#faq-2:checked ~ .faq__panels .faq__panel:nth-of-type(2),
#faq-3:checked ~ .faq__panels .faq__panel:nth-of-type(3),
#faq-4:checked ~ .faq__panels .faq__panel:nth-of-type(4) { display: grid; }
#faq-1:checked ~ .faq__tabs .faq__tab:nth-of-type(1),
#faq-2:checked ~ .faq__tabs .faq__tab:nth-of-type(2),
#faq-3:checked ~ .faq__tabs .faq__tab:nth-of-type(3),
#faq-4:checked ~ .faq__tabs .faq__tab:nth-of-type(4) {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faq__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer;
  font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--ink);
}
.faq__item > summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) { .faq__item > summary { font-size: 18px; } }
.faq__item > summary::after {
  content: "+"; flex-shrink: 0;
  font-size: 22px; line-height: 1; color: var(--brand);
  transition: transform .2s ease;
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__answer { margin-top: 14px; }
.faq__answer p { font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--ink-soft); }
@media (min-width: 768px) { .faq__answer p { font-size: 16px; } }
.faq__answer p + p { margin-top: 12px; }

/* ---------- リード獲得フォーム ---------- */
.lead-form {
  margin-top: 22px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px 30px;
  box-shadow: var(--shadow-md);
  text-align: left;
}
@media (min-width: 768px) { .lead-form { grid-template-columns: 1fr 1fr; gap: 18px 26px; padding: 36px; } }
.lead-form__title {
  text-align: center;
  font-size: 21px; font-weight: 800; line-height: 1.45; color: var(--ink);
}
@media (min-width: 768px) { .lead-form__title { grid-column: 1 / -1; font-size: 25px; } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 800; color: var(--ink); }
.field .req { color: var(--accent-deep); margin-left: 4px; font-size: 12px; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  height: 52px;
  font: inherit;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 128px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.lead-form__submit { grid-column: 1 / -1; min-height: 60px; font-size: 18px; }

/* ---------- スロット番号ラベル（枠の左上に「番号＋名称」を表示） ----------
   画像・ロゴが入る枠の左上に案内ラベルを出します。
   公開前に <body> へ class="no-slot-guides" を付ければ全部まとめて非表示になります。 */
[data-no] { position: relative; }
[data-no]::before {
  content: attr(data-no);
  position: absolute;
  top: 6px; left: 6px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(28, 43, 56, 0.92);
  color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
/* ヒーロー背景は固定ヘッダーに隠れないよう下げる */
.hero[data-no]::before,
.page-hero[data-no]::before { top: calc(var(--header-h) + 10px); }
/* 画像が入ったスロットはラベルを自動で消す */
[data-no].has-img::before { display: none; }
/* ロゴが表示された時点で確実にロゴのラベルを消す */
.brand.has-logo::before { display: none; }
/* 公開前の一括非表示スイッチ */
.no-slot-guides [data-no]::before { display: none; }

/* ---------- 画像スロット（ファイル名を振った差し込み枠） ----------
   使い方: images/web/ に指定ファイル名で画像を置くと自動で表示されます。
   ファイルが無い間は、枠内にファイル名ラベルが表示されます。 */
.img-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.55), transparent 42%),
    linear-gradient(135deg, rgba(0, 161, 233,0.16), rgba(76, 194, 245,0.26));
}
.img-slot__tag {
  position: relative;
  z-index: 0;
  max-width: 88%;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 161, 233,0.55);
  background: rgba(255,255,255,0.9);
  color: var(--brand-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  line-height: 1.5; text-align: center;
}
.img-slot__tag small { display: block; font-size: 10px; font-weight: 700; color: var(--ink-mute); }
.img-slot__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-slot.is-round { border-radius: 50%; }
.img-slot.is-round .img-slot__tag {
  padding: 2px 5px; border: 0;
  font-size: 9px; line-height: 1.1;
  background: rgba(255,255,255,0.85);
}

/* ロゴ画像スロット（images/logo.svg を置くと「歯」マーク＋テキストと差し替わる） */
.brand__logo { height: 40px; width: auto; display: none; }
@media (min-width: 768px) { .brand__logo { height: 46px; } }
.brand.has-logo .brand__mark,
.brand.has-logo .brand__name { display: none; }
.brand.has-logo .brand__logo { display: block; }

/* TOPページ ヒーロー背景写真スロット（images/hero-top.jpg） */
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* ページ見出しの背景写真スロット */
.page-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.26;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* case サムネをスロット化するための微調整 */
.case-card__thumb { position: relative; }

/* AIバンドのアプリ画面スロット */
.ai-shot {
  margin-top: 26px;
  max-width: 760px; margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow-lg);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- トップ画像（services/web.html ページ見出しの直下） ---------- */
.top-visual img { display: block; width: 100%; height: auto; }

/* ---------- 運営者プロフィール（services/web.html） ---------- */
.owner-lead {
  font-size: 16px; font-weight: 600; line-height: 1.95; color: var(--ink-soft);
  max-width: 820px; margin-inline: auto;
}
@media (min-width: 768px) { .owner-lead { font-size: 17px; } }
.owner-grid {
  display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.owner-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 28px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.owner-card__photo {
  width: 132px; height: 132px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: var(--paper);
}
.owner-card__photo .img-slot__img { width: 100%; height: 100%; object-fit: cover; }
.owner-card__badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 161, 233, 0.12); color: var(--brand);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
}
.owner-card__body { width: 100%; }
.owner-card__name { margin-top: 12px; font-size: 20px; font-weight: 800; }
.owner-card__role { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.owner-card__text {
  margin-top: 16px; text-align: left;
  font-size: 14px; font-weight: 600; line-height: 1.9; color: var(--ink-soft);
}

/* 経歴（年表） */
.owner-career {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  text-align: left;
}
.owner-career > div { display: flex; gap: 12px; }
.owner-career > div + div { margin-top: 8px; }
.owner-career dt {
  flex: 0 0 74px;
  font-size: 12px; font-weight: 800; line-height: 1.75; color: var(--brand);
  font-feature-settings: "palt";
}
.owner-career dd {
  flex: 1 1 auto; margin: 0;
  font-size: 13px; font-weight: 700; line-height: 1.75; color: var(--ink-soft);
}

/* ---------- フォーム: セレクト・注記 ---------- */
.field select {
  width: 100%; height: 52px; padding: 0 14px;
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.field__hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.7; color: var(--ink-mute); }

/* =====================================================================
   AI軸トップページ（2026-08 リニューアル）
   ヒーローの肩書きカード / 数字カード / AI化セクション / サービスの階層表示
   ===================================================================== */

/* ---------- ヘッダーのタグライン ---------- */
.tagline { display: block; font-size: 11px; font-weight: 700; color: var(--brand-deep); opacity: .85; letter-spacing: .02em; }

/* ---------- 代表の肩書きカード（顔写真つき） ---------- */
.cred-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 16px;
  padding: 18px 22px 18px 18px;
  max-width: 620px;
}
.cred-card img {
  width: 84px; height: 84px; flex: 0 0 84px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.75);
}
.cred-card .lead-in {
  font-size: 17px; font-weight: 800; letter-spacing: .04em; line-height: 1.5;
  color: rgba(255,255,255,.92); margin-bottom: 9px;
}
.cred-card .rows { display: grid; gap: 8px; }
.cred-card .row { display: flex; align-items: baseline; gap: 11px; font-weight: 800; line-height: 1.5; }
.cred-card .row .tag {
  flex: 0 0 auto; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  border-radius: 6px; padding: 3px 10px; line-height: 1.5;
  background: rgba(255,255,255,.28);
}
.cred-card .row .tag--dental { background: #ffe08a; color: #4a3600; }
.cred-card .row--dental { font-size: 24px; letter-spacing: .01em; }
.cred-card .row--dental .tag { font-size: 12px; padding: 3px 10px; }
.cred-card .row--medical { font-size: 19px; color: rgba(255,255,255,.94); }
.cred-card .note {
  display: block; font-size: 15px; font-weight: 700; line-height: 1.65;
  color: rgba(255,255,255,.88); margin-top: 11px;
}
@media (max-width: 600px) {
  .cred-card { padding: 15px 15px 15px 14px; gap: 13px; }
  .cred-card img { width: 68px; height: 68px; flex: 0 0 68px; border-width: 2px; }
  .cred-card .lead-in { font-size: 14px; margin-bottom: 7px; }
  .cred-card .row { gap: 9px; }
  .cred-card .row .tag { font-size: 11px; padding: 2px 8px; }
  .cred-card .row--dental { font-size: 19.5px; }
  .cred-card .row--medical { font-size: 16px; }
  .cred-card .note { font-size: 13px; margin-top: 9px; }
}

/* ---------- ヒーローの数字カード ---------- */
.statcards { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 640px; }
.statcards .c { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 15px 14px; }
.statcards .n { font-size: 30px; font-weight: 800; line-height: 1.05; }
.statcards .n small { font-size: 15px; margin-left: 2px; }
.statcards .l { font-size: 12px; font-weight: 700; margin-top: 7px; color: rgba(255,255,255,.86); line-height: 1.5; }
@media (max-width: 600px) {
  .statcards { gap: 8px; }
  .statcards .c { padding: 12px 9px; }
  .statcards .n { font-size: 22px; }
  .statcards .l { font-size: 11px; }
}

/* ---------- AI化すると変わること ---------- */
.chg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.chg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.chg h4 { font-size: 17px; margin: 0 0 8px; color: var(--brand-deep); }
.chg p { font-size: 14px; line-height: 1.8; color: var(--ink-mute); margin: 0; }

/* ---------- サービスの階層表示 ---------- */
.svc-block { margin-top: 34px; }
.svc-block__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.svc-block__hd h3 { font-size: 20px; margin: 0; }
.svc-block__hd .badge {
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; letter-spacing: .02em;
}
.svc-block__hd .badge.sub { background: #eef4f7; color: var(--ink-mute); }
.svc-block__hd .badge.trial { background: #f6efe2; color: #8a6a24; }
.svc-block__note { font-size: 14px; color: var(--ink-mute); line-height: 1.8; margin: 0 0 16px; }
.corepanel {
  background: linear-gradient(135deg, rgba(0,161,233,.09), rgba(76,194,245,.16));
  border: 1px solid rgba(0,161,233,.25); border-radius: 20px; padding: 26px 24px;
}
@media (max-width: 600px) { .corepanel { padding: 20px 16px; } }
.trial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.trial { background: #fbf8f2; border: 1px dashed #d9c69a; border-radius: 12px; padding: 15px 17px; }
.trial h4 { font-size: 15px; margin: 0 0 5px; }
.trial p { font-size: 13px; color: var(--ink-mute); margin: 0; line-height: 1.7; }

/* ---------- STORY の年表 ---------- */
.tl { margin: 22px 0; border-left: 3px solid var(--brand); padding-left: 20px; }
.tl__row { display: flex; gap: 16px; align-items: baseline; padding: 9px 0; }
.tl__age { flex: 0 0 62px; font-size: 19px; font-weight: 800; color: var(--brand-deep); }
.tl__txt { font-size: 16px; font-weight: 700; }
