@charset "UTF-8";

/* =========================================================
   合同会社TENKI サービスサイト

   デザイン方針：
   - グラデーション・ドロップシャドウ・角丸を使わない
   - 罫線と余白だけで構造をつくる
   - 色はインク（黒）＋朱1色のみ。朱は数値とCTAにだけ使う
   - 中央揃えを避け、左揃えを基本にする
   ========================================================= */

/* ---------------------------------------------------------
   カラー・サイズ設定
   ブランドカラーを変える場合はここだけ書き換えれば全体に反映されます
   --------------------------------------------------------- */
:root {
  --ink:        #12161C;  /* 見出し・本文・ボタン */
  --ink-mid:    #46525E;  /* 補足テキスト */
  --ink-weak:   #626D78;  /* 注記。これ以上薄くするとコントラスト基準を下回ります */

  --accent:     #C8442A;  /* 朱。大きな数値・面（ボタン/帯）に使う */
  --accent-deep:#B23A21;  /* 小さい文字用の朱。薄い背景でもコントラストを確保できる */
  --accent-dark:#A63620;

  --bg:         #FFFFFF;
  --bg-sub:     #F4F6F7;
  --line:       #DFE3E7;
  --line-firm:  #C3CAD1;

  --header-h:   72px;
  --container:  1120px;
}

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

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

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 数字は等幅にして桁を揃える */
.stat__num, .stat__unit, .case__num, .price-card__num,
.price-table td, .flow__step {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s, opacity .15s;
}
a:hover { color: var(--accent-dark); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 880px; }

.sp-only { display: none; }

/* ---------------------------------------------------------
   ボタン（角丸なし・影なし）
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-firm);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-sub); border-color: var(--ink); color: var(--ink); }

.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--white:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 朱色の帯の上では、ホバーで黒に反転させる */
.cta-band--alt .btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 16px; }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  flex-shrink: 0;
}
.header__logo:hover { color: var(--ink); }

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.header__logo-name { font-size: 17px; letter-spacing: .02em; line-height: 1.3; }
/* ロゴ横の補足文。メニューが7項目になり横幅が足りないため、現在は全幅で非表示。
   メニューを減らした場合は display:none を消せば PC幅で復活します
   （同じ文言はヒーローとフッターにも入っています） */
.header__logo-sub {
  display: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-weak);
  letter-spacing: .02em;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__list { display: flex; align-items: center; gap: 18px; }
.nav__list a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav__list a:hover { color: var(--accent); }
/* 表示中のページ（下層ページで使用） */
.nav__list a[aria-current="page"] { color: var(--accent-deep); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .15s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }

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

/* ---------------------------------------------------------
   ヒーロー（白地・グラデーションなし）
   --------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 80px) 0 0;
  background: var(--bg);
}
.hero__body { max-width: 800px; }

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-mid);
}

.hero__title {
  font-size: clamp(29px, 3.6vw, 46px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 26px;
}

.hero__lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-mid);
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA下の約束 */
.hero__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 24px;
}
.hero__promises li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mid);
}
.hero__promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .44em;
  width: 13px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 実績数値（罫線区切り・カードにしない） */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 26px 32px 26px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; padding-right: 0; padding-left: 32px; }

.stat__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-mid);
}
.stat__ref { font-size: 10px; vertical-align: super; margin-left: 2px; color: var(--ink-weak); }
.stat__value { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 6px; }
.stat__num {
  font-size: 58px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--accent);
}
.stat__unit { font-size: 19px; font-weight: 700; color: var(--ink); }
.stat__desc { font-size: 12.5px; line-height: 1.7; color: var(--ink-weak); }

.footnotes {
  margin-top: 18px;
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-weak);
}
.footnotes--left { margin-top: 22px; font-size: 12px; }

/* ---------------------------------------------------------
   対応媒体バー
   --------------------------------------------------------- */
.mediabar { padding: 44px 0 0; }
.mediabar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-bottom: 44px;
}
.mediabar__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-weak);
  letter-spacing: .08em;
  white-space: nowrap;
}
.mediabar__list { display: flex; flex-wrap: wrap; gap: 8px; }
.mediabar__list li {
  padding: 5px 12px;
  border: 1px solid var(--line-firm);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
}

/* ---------------------------------------------------------
   セクション共通（左揃え・英語ラベルは使わない）
   --------------------------------------------------------- */
.section { padding: 96px 0; }
.section--gray { background: var(--bg-sub); }

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.section__lead {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-mid);
  margin-bottom: 48px;
  max-width: 860px;
}
.lead-mark {
  font-weight: 700;
  color: var(--accent-deep);
}

/* ---------------------------------------------------------
   課題提起
   --------------------------------------------------------- */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.problem {
  padding: 30px 26px;
  background: var(--bg-sub);
}
.problem__no {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.problem__title {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 10px;
}
.problem__text { font-size: 14px; line-height: 1.85; color: var(--ink-mid); }

.problems__bridge {
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--ink-mid);
}
.problems__bridge strong { color: var(--accent-deep); font-weight: 700; }

/* ---------------------------------------------------------
   選ばれる理由
   --------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.reason-card { padding-top: 20px; border-top: 2px solid var(--ink); }
.reason-card__no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.reason-card__title {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 14px;
}
.reason-card__text { font-size: 14.5px; line-height: 1.95; color: var(--ink-mid); }

/* ---------------------------------------------------------
   実績・事例
   --------------------------------------------------------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.case__head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line-firm);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-mid);
  white-space: nowrap;
}
.tag--budget { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag--media  { border-color: var(--accent); color: var(--accent-deep); }

.case__client {
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 700;
}

/* 実績数値 */
.case__results {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__results li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.case__metric {
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.case__num {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--accent);
}
.case__word { font-size: 14px; font-weight: 700; color: var(--ink-mid); }

.case__problem {
  padding: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-mid);
}

.case__points { padding-top: 18px; flex-grow: 1; }
.case__points dt {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 14px;
}
.case__points dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.case__points dt:first-child { margin-top: 0; }
.case__points dd {
  padding-left: 15px;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mid);
}

.case__period { margin-top: 14px; font-size: 11px; color: var(--ink-weak); }
.cases-note { margin-top: 26px; }

/* ---------------------------------------------------------
   帯CTA（フラットな黒／朱）
   --------------------------------------------------------- */
.cta-band {
  padding: 60px 0;
  background: var(--ink);
  color: #fff;
}
.cta-band--alt { background: var(--accent); }

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}
.cta-band__title {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.cta-band__text { font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .82); }
/* 朱の帯は下地が明るいため、文字を濃くしてコントラストを確保 */
.cta-band--alt .cta-band__text { color: rgba(255, 255, 255, .96); }
.cta-band__actions { flex-shrink: 0; }

/* ---------------------------------------------------------
   サービス内容
   --------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card { padding: 30px 28px; background: #fff; }
.service-card__title {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.service-card__list { display: grid; gap: 9px; }
.service-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mid);
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .52em;
  width: 11px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.service-card__note {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line-firm);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-weak);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   料金
   --------------------------------------------------------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.price-card { padding: 30px 26px; background: #fff; }
.price-card--accent { background: #fff; border-top: 3px solid var(--accent); }

.price-card__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-mid);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.price-card__value {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.price-card__num {
  font-size: 44px;
  letter-spacing: -.03em;
  color: var(--accent);
  margin-right: 1px;
}
.price-card__value--word { font-size: 44px; line-height: 1.2; color: var(--accent); }
.price-card__desc { font-size: 13.5px; line-height: 1.85; color: var(--ink-mid); }
.price-card__desc strong { color: var(--ink); }

/* 手数料の早見表 */
.price-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: #fff;
}
.price-table { width: 100%; min-width: 380px; border-collapse: collapse; }
.price-table caption {
  padding: 16px 20px 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
}
.price-table th,
.price-table td {
  padding: 12px 20px;
  font-size: 14.5px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table thead th {
  background: var(--bg-sub);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-mid);
  border-top: 1px solid var(--line);
}
.price-table th:first-child,
.price-table td:first-child { text-align: left; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody td:last-child { font-weight: 700; }

/* 広告費の支払い先に関する注意書き */
.price-note {
  margin-top: 20px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-sub);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-mid);
}
.price-note strong { color: var(--ink); }

/* ---------------------------------------------------------
   ご利用の流れ
   --------------------------------------------------------- */
.flow { display: grid; border-top: 1px solid var(--line); }
.flow__item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.flow__step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-deep);
  padding-top: 5px;
}
.flow__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.flow__text { font-size: 14.5px; line-height: 1.95; color: var(--ink-mid); }
.flow__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); background: #fff; }

.faq__q {
  position: relative;
  display: block;
  padding: 22px 52px 22px 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }

.faq__q::before {
  content: "Q";
  position: absolute;
  left: 4px;
  top: 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
/* 開閉の矢印（マークアップ不要・擬似要素のみ） */
.faq__q::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s, margin-top .2s;
}
.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq__a { padding: 0 52px 26px 40px; }
.faq__a p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-mid);
  margin-top: 14px;
}
.faq__a p:first-child { margin-top: 0; }
.faq__item[open] .faq__a { animation: faqOpen .22s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   下層ページの見出し（company.html などで使用）
   --------------------------------------------------------- */
.page-head {
  padding: calc(var(--header-h) + 56px) 0 44px;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-weak);
}
.breadcrumb__list li + li::before {
  content: "／";
  margin-right: 8px;
  color: var(--line-firm);
}
.breadcrumb__list a { color: var(--ink-mid); }
.breadcrumb__list a:hover { color: var(--accent-deep); }

.page-head__eyebrow {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-deep);
}
.page-head__title {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: .01em;
}
.page-head__lead {
  margin-top: 18px;
  max-width: 720px;
  font-size: 15.5px;
  color: var(--ink-mid);
}

/* ---------------------------------------------------------
   会社概要
   --------------------------------------------------------- */
.about-back {
  margin-top: 28px;
  font-size: 14px;
}
.about-back a { color: var(--accent-deep); text-decoration: underline; }
.about-back a:hover { text-decoration: none; }

.about-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.about-table th,
.about-table td {
  padding: 17px 0;
  font-size: 14.5px;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.about-table th {
  width: 190px;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 20px;
}
.about-table td { color: var(--ink-mid); }

/* ---------------------------------------------------------
   お問い合わせ
   --------------------------------------------------------- */
.form-embed { border: 1px solid var(--line); background: #fff; }
/* 高さは実測値ベース。設問を増減したら数値も調整してください */
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}

.contact__fallback-link {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mid);
}
.contact__privacy {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-weak);
}

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.footer {
  padding: 60px 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer__brand { display: grid; gap: 8px; align-content: start; }
.footer .header__logo-mark { background: #fff; color: var(--ink); }
.footer__name { font-size: 17px; font-weight: 700; color: #fff; }
.footer__tagline { font-size: 13px; color: rgba(255, 255, 255, .6); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 44px;
}
.footer__nav a { font-size: 14px; color: rgba(255, 255, 255, .78); }
.footer__nav a:hover { color: #fff; }

.footer__copy {
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* ---------------------------------------------------------
   スマホ固定CTA（PCでは非表示）
   --------------------------------------------------------- */
.fixed-cta { display: none; }

/* ---------------------------------------------------------
   スクロール表示（控えめに）
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   レスポンシブ（1024px以下）
   ナビ項目が多く、この幅からハンバーガーに切り替える
   ※ JSの matchMedia('(min-width: 1025px)') と対で管理
   ========================================================= */
@media (max-width: 1024px) {
  .hamburger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 18px 18px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav__cta { width: 100%; padding: 15px; font-size: 15px; }
}

/* =========================================================
   レスポンシブ（768px以下）
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  body { font-size: 15px; }
  .container { padding-inline: 18px; }
  .sp-only { display: inline; }

  .header__logo-name { font-size: 15px; }

  /* --- ヒーロー --- */
  .hero { padding: calc(var(--header-h) + 52px) 0 0; }
  .hero__title { line-height: 1.45; margin-bottom: 20px; }
  .hero__lead { font-size: 15px; margin-bottom: 28px; }
  .hero__lead br, .hero__title br { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__promises { flex-direction: column; gap: 7px; margin-top: 20px; }

  /* 実績数値：縦積みにし、ラベル左・数値右で1行に */
  .hero__stats { grid-template-columns: 1fr; margin-top: 40px; }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 14px;
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { padding-left: 0; border-bottom: none; }
  .stat__value { justify-content: flex-end; margin: 0; }
  .stat__num { font-size: 40px; }
  .stat__unit { font-size: 16px; }
  .stat__desc { grid-column: 1 / -1; font-size: 12px; }

  /* --- 媒体バー --- */
  .mediabar { padding-top: 34px; }
  .mediabar__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 34px; }
  .mediabar__list li { font-size: 12px; }

  /* --- セクション共通 --- */
  .section { padding: 62px 0; }
  .section__lead { font-size: 14.5px; margin-bottom: 32px; }
  .section__lead br { display: none; }

  /* --- 各グリッドを1カラムへ --- */
  .problems,
  .cases,
  .services,
  .prices { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; gap: 30px; }
  .cases { gap: 16px; }

  .problem__title br { display: none; }
  .service-card, .price-card { padding: 24px 20px; }

  /* --- 帯CTA --- */
  .cta-band { padding: 46px 0; }
  .cta-band__inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .cta-band__text br { display: none; }
  .cta-band__actions .btn { width: 100%; }

  /* --- 料金表 --- */
  .price-table { min-width: 0; }
  .price-table caption { padding: 14px 14px 10px; font-size: 13px; }
  .price-table th,
  .price-table td { padding: 11px 14px; font-size: 14px; }
  .price-note { padding: 16px 18px; font-size: 14px; }

  /* --- 流れ --- */
  .flow__item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .flow__step { padding-top: 0; }
  .flow__title { font-size: 17px; }

  /* --- FAQ --- */
  .faq__q { padding: 18px 44px 18px 30px; font-size: 15px; }
  .faq__q::before { left: 2px; top: 18px; font-size: 14px; }
  .faq__a { padding: 0 12px 22px 30px; }
  .faq__a p { font-size: 14px; }

  /* --- 下層ページの見出し --- */
  .page-head { padding: calc(var(--header-h) + 32px) 0 30px; }
  .page-head__title { font-size: 27px; }
  .page-head__lead { font-size: 14.5px; margin-top: 14px; }
  .page-head__lead br { display: none; }

  /* --- 会社概要（テーブルを縦積みに） --- */
  .about-table, .about-table tbody, .about-table tr, .about-table th, .about-table td { display: block; width: 100%; }
  .about-table th { border-bottom: none; padding: 16px 0 4px; }
  .about-table td { padding: 0 0 16px; }

  /* --- お問い合わせフォーム --- */
  .form-embed iframe { height: 1300px; }

  /* --- フッター --- */
  .footer { padding: 46px 0 100px; }
  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }

  /* --- スマホ固定CTA --- */
  .fixed-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .fixed-cta.is-visible { transform: none; }
  .fixed-cta .btn { width: 100%; padding: 15px; font-size: 15px; }
}

/* 印刷時 */
@media print {
  .header, .hamburger, .fixed-cta, .cta-band { display: none !important; }
  .hero { padding-top: 0; }
  .page-head { padding-top: 0; }
  .reveal { opacity: 1; transform: none; }
}
