@charset "UTF-8";
/* ==========================================================================
   whatchiy LP — style.css
   静的1ページ構成。外部ライブラリ・Webフォント・CDN依存なし（端末内蔵フォントのみ）。
   ========================================================================== */

/* ---------- デザイントークン ---------- */
:root {
  --ink:        #23302f;   /* 本文 */
  --ink-soft:   #55635f;   /* 補足文 */
  --ink-faint:  #8a9490;   /* 注記 */
  --accent:     #2b6b62;   /* 深いグリーン（落ち着いた信頼感） */
  --accent-dark:#1e5049;
  --accent-tint:#eaf2f0;
  --bg:         #fdfcfa;   /* 生成りのオフホワイト */
  --bg-soft:    #f5f2ec;   /* 温かみのあるサンド */
  --bg-legal:   #f1efe9;
  --line:       #e2ddd3;
  --line-soft:  #ece8e0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(35, 48, 47, .06);
  --shadow-md: 0 6px 24px rgba(35, 48, 47, .08);
  --container: 1040px;
  --narrow: 760px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  /* 行頭禁則を強める（「ー」「っ」等が行頭に来るのを防ぐ） */
  line-break: strict;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.55; margin: 0; font-weight: 600; }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 共通レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: var(--narrow); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--bg-soft); }

.section-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(21px, 3.6vw, 29px);
  line-height: 1.6;
  letter-spacing: .01em;
  margin: 0 0 1.4em;
  color: var(--ink);
  /* 末尾に1〜2文字だけ残る不格好な折り返しを避ける（非対応ブラウザでは無視される） */
  text-wrap: balance;
}
.section-title.small-title { font-size: clamp(19px, 3vw, 23px); }
.sub-title {
  font-size: 17px;
  margin: 2.6em 0 1em;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.lead-strong {
  font-weight: 600;
  font-size: 1.06em;
  color: var(--accent-dark);
}
.closing-line {
  font-family: var(--font-serif);
  font-size: 1.12em;
  line-height: 1.85;
  margin-top: 2em;
  padding: 20px 24px;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note { font-size: 13.5px; line-height: 1.85; color: var(--ink-faint); }
.sp-only { display: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 38px; font-size: 16.5px; }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent-dark); }
.btn-invert {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}
.btn-invert:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, .93);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-kana {
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-faint);
}
.global-nav { display: flex; gap: 22px; }
.global-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(1100px 480px at 50% -12%, #ffffff 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  margin: 0 0 26px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero-catch {
  font-family: var(--font-serif);
  font-size: clamp(25px, 5.4vw, 46px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .015em;
  margin: 0 0 28px;
}
.hero-sub {
  font-size: clamp(15px, 2.1vw, 17.5px);
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 auto 38px;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- SECTION 1: お客様の声風リスト ---------- */
.voice-list {
  list-style: none;
  margin: 0 0 2em;
  display: grid;
  gap: 12px;
}
.voice-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 22px;
  font-size: 15.5px;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.section-tint .voice-list li { background: #fff; }

/* ---------- SECTION 3: プラン ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 2em 0 1em;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.plan-num {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.plan-title {
  font-size: 17.5px;
  margin: 0 0 .9em;
  padding-bottom: .7em;
  border-bottom: 1px solid var(--line-soft);
}
.plan-title-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: .04em;
  margin-top: 4px;
}
.plan-card p:last-child { font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }

/* ---------- 表 ---------- */
.table-wrap { margin: 1em 0 1.4em; }
.price-table, .legal-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.price-table th, .price-table td,
.legal-table th, .legal-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.price-table thead th {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 13.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.price-table tbody th, .legal-table th {
  font-weight: 600;
  background: #faf9f6;
  white-space: nowrap;
}
.legal-table th { width: 32%; }
.price-table tr:last-child th, .price-table tr:last-child td,
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .01em;
}
.price-table small { color: var(--ink-faint); font-size: 12.5px; }

/* ---------- SECTION 3: 通知イメージ（Slack風モックアップ／画像不使用・CSSのみ） ---------- */
.slack-mock { margin: 1.6em 0 0; }
.slack-mock-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.slack-mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.slack-mock-dots { display: inline-flex; gap: 6px; }
.slack-mock-dots i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.slack-mock-channel {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.slack-mock-body {
  display: flex;
  gap: 14px;
  padding: 20px 22px 22px;
}
.slack-mock-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 3px;
}
.slack-mock-msg { flex: 1 1 auto; min-width: 0; }
.slack-mock-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 .55em;
  line-height: 1.5;
}
.slack-mock-name { font-size: 15px; font-weight: 700; }
.slack-mock-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 2px 6px;
}
.slack-mock-time { font-size: 11.5px; color: var(--ink-faint); }
.slack-mock-lead {
  margin: 0 0 .95em;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}
.slack-mock-facts {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0 0 1.1em;
  padding: 15px 17px;
  background: #faf9f6;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.slack-mock-facts li {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr);
  gap: 2px 14px;
  font-size: 13.5px;
  line-height: 1.75;
}
.slack-mock-facts .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.slack-mock-facts .v { color: var(--ink); }
.slack-mock-facts .arrow { color: var(--accent); font-weight: 700; padding: 0 .15em; }
.slack-mock-price { font-weight: 700; letter-spacing: .01em; }
.slack-mock-foot {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-faint);
}
.slack-mock-cap {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-faint);
}

/* ---------- 留意事項ボックス ---------- */
.notice-box {
  margin-top: 2.4em;
  padding: 22px 24px;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-tint .notice-box { background: #fff; }
.notice-title {
  font-size: 15px;
  margin: 0 0 .9em;
  color: var(--accent-dark);
}
.notice-box ul { list-style: none; display: grid; gap: 10px; }
.notice-box li {
  position: relative;
  padding-left: 1.3em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.notice-box li::before {
  content: "";
  position: absolute;
  left: 2px; top: .78em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- SECTION 4: ステップ図解（アイコンはインラインSVG） ---------- */
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 2.2em 0 0;
}
.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 22px 12px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* ノード間の矢印（gap の中央に置く） */
.flow-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #c3bbab;
}
.flow-node:last-child::after { content: none; }
.flow-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.flow-icon svg { display: block; width: 26px; height: 26px; }
.flow-text { display: flex; flex-direction: column; gap: 3px; }
.flow-step {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.flow-name { font-size: 14px; font-weight: 600; line-height: 1.6; }

/* ---------- SECTION 4: ステップ ---------- */
.step-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin-top: 2em;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--line);
}
.step-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 .7em;
  font-size: 17.5px;
  font-weight: 600;
  font-family: var(--font-serif);
}
.step-num {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}
.step p:last-child { font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); margin: 0; }

/* ---------- SECTION 5: 実測値プレースホルダー ---------- */
.metric-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 2em 0;
}
.metric-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.metric-name { font-size: 15px; font-weight: 600; }
.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}

/* ---------- SECTION 6: FAQ（JSなし・details要素） ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 2em; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 19px 56px 19px 22px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.75;
  transition: background-color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #faf9f6; }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  background: var(--accent);
  transition: transform .22s ease, opacity .22s ease;
}
.faq-item summary::before { width: 14px; height: 2px; transform: translateY(-50%); }
.faq-item summary::after  { width: 2px; height: 14px; right: 30px; transform: translateY(-50%); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary { background: var(--accent-tint); }
.faq-body {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ---------- SECTION 8: お問い合わせCTA ---------- */
.section-cta {
  background: linear-gradient(160deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
}
.section-cta .section-title { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, .92); }
/* 濃色背景のためリンクは白＋下線にする（ボタンには影響しないよう p 内に限定） */
.section-cta p a { color: #fff; text-decoration: underline; }
.section-cta p a:hover { color: var(--accent-tint); }
.cta-title { margin-bottom: 1.2em; }
.cta-actions { margin: 2.2em 0 0; }
.cta-note { margin-top: 20px !important; font-size: 13px; color: rgba(255, 255, 255, .72) !important; }

/* ---------- SECTION 7: 特商法 ---------- */
.section-legal { background: var(--bg-legal); padding-block: clamp(44px, 6vw, 72px); }
.section-legal .section-title { margin-bottom: 1em; }
.section-legal .legal-table { font-size: 13.5px; }
.section-legal .legal-table th, .section-legal .legal-table td { padding: 13px 16px; }

/* ---------- 下層ページ（privacy.html）：ページ見出し ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 4.5vw, 46px);
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 92%);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--accent-dark); }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.5;
  letter-spacing: .01em;
  margin: 0 0 .8em;
}
.page-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ---------- 下層ページ（privacy.html）：規約・ポリシー本文 ---------- */
/* ページ見出しの直下に続くため、上部の余白は通常セクションより詰める */
.section-doc { padding-top: clamp(38px, 5vw, 60px); }
.legal-doc h2 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.8vw, 21px);
  line-height: 1.6;
  margin: 2.8em 0 1.1em;
  padding-bottom: .55em;
  border-bottom: 2px solid var(--accent-tint);
  scroll-margin-top: 92px;
}
.legal-doc > h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 2.2em 0 1em;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.legal-doc p {
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 1.5em;
}
.legal-doc ul,
.legal-doc ol {
  display: grid;
  gap: .55em;
  margin: 0 0 1.6em;
  padding-left: 1.55em;
}
.legal-doc ul { list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc li {
  font-size: 14.5px;
  line-height: 1.9;
  padding-left: .15em;
}
.legal-doc li::marker { color: var(--accent); }
.legal-doc strong { font-weight: 700; }
.legal-doc code {
  font-size: .92em;
  padding: 1px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  word-break: break-all;
}
/* コードブロック（whatchiy-bot 説明ページの robots.txt 記述例など） */
.legal-doc .code-block {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
}
.legal-doc .code-block code {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}
/* 表：行見出しが長いため、下層ページ内では折り返しを許可する */
.legal-doc .price-table tbody th,
.legal-doc .legal-table th { white-space: normal; }
.legal-doc .legal-table th { width: 34%; }
/* 委託先テーブル（4列）の列幅バランス。640px以下はカード型に積み直すため適用しない */
@media (min-width: 641px) {
  .legal-doc .vendor-table th:first-child { width: 27%; }
  .legal-doc .vendor-table td:last-child { white-space: nowrap; }
  .legal-doc .vendor-table td:last-child small { display: block; white-space: normal; }
}
.legal-doc .table-wrap { margin: 1.2em 0 1.8em; }
.legal-note {
  margin: 0 0 1.6em;
  padding: 16px 18px;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px !important;
  line-height: 1.9;
  color: var(--ink-soft);
}
.legal-sign {
  margin: 3em 0 0 !important;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  line-height: 2;
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  padding: 44px 0 36px;
}
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer-logo { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-logo .logo-name { color: #fff; font-size: 21px; }
.footer-logo .logo-kana { color: rgba(255, 255, 255, .55); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}
.footer-nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); letter-spacing: .06em; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
}

/* ステップ図：横並び → 縦並び（矢印も下向きに切り替える） */
@media (max-width: 760px) {
  .flow-diagram { grid-template-columns: 1fr; gap: 22px; }
  .flow-node {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 20px;
  }
  .flow-node::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #c3bbab;
    border-bottom: 0;
  }
  .flow-icon { flex: 0 0 auto; width: 46px; height: 46px; }
  .flow-icon svg { width: 23px; height: 23px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.9; }
  .container { padding-inline: 18px; }
  html { scroll-padding-top: 70px; }
  .sp-only { display: inline; }

  .header-inner { min-height: 58px; gap: 10px; }
  .logo-mark { width: 30px; height: 30px; font-size: 17px; }
  .logo-name { font-size: 17.5px; }
  .logo-kana { font-size: 9.5px; }
  .btn-sm { padding: 8px 14px; font-size: 12.5px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 15px 22px; font-size: 15.5px; }

  .closing-line { padding: 18px 18px; }
  .plan-card, .step, .notice-box { padding: 20px 18px; }
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 15px; }
  .faq-item summary::before, .faq-item summary::after { right: 20px; }
  .faq-item summary::after { right: 26px; }
  .faq-body { padding: 16px 18px 20px; }

  /* 表をカード型に積み直す（横スクロールを避ける） */
  .price-table, .legal-table { border-radius: var(--radius); }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tr, .legal-table tr { display: block; border-bottom: 1px solid var(--line); }
  .price-table tr:last-child, .legal-table tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td,
  .legal-table th, .legal-table td {
    display: block;
    width: auto;
    white-space: normal;
    border-bottom: 0;
    padding: 4px 16px;
  }
  .price-table tbody th, .legal-table th {
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-size: 13px;
    letter-spacing: .04em;
    padding: 10px 16px;
    margin-bottom: 8px;
  }
  .price-table tr, .legal-table tr { padding-bottom: 14px; }
  .price-table td::before, .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink-faint);
    margin-bottom: 2px;
  }
  .legal-table td::before { content: none; }

  .metric-list li { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { width: 100%; }

  /* 通知イメージ：横幅が狭い端末では項目名を上に積む */
  .slack-mock-body { gap: 11px; padding: 16px 15px 18px; }
  .slack-mock-avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
  .slack-mock-name { font-size: 14.5px; }
  .slack-mock-lead { font-size: 14.5px; }
  .slack-mock-facts { padding: 13px 14px; gap: 11px; }
  .slack-mock-facts li { grid-template-columns: 1fr; gap: 1px; font-size: 13px; }
}

/* 下層ページ（privacy.html）のスマホ調整 */
@media (max-width: 640px) {
  .legal-doc h2 { scroll-margin-top: 78px; }
  .legal-doc p, .legal-doc li { font-size: 14.5px; }
  .legal-doc ul, .legal-doc ol { padding-left: 1.35em; }
  .legal-note { padding: 14px 16px; }
  /* 行見出しをカード型に積み直す際は折り返し前提の余白に戻す */
  .legal-doc .price-table tbody th,
  .legal-doc .legal-table th { width: auto; line-height: 1.7; }
}

/* ---------- 動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover { transform: none; }
}

/* ---------- 印刷 ---------- */
@media print {
  .site-header, .hero-actions, .cta-actions, .footer-nav { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.7; }
  .section { padding: 16px 0; break-inside: avoid; }
  .section-tint, .section-legal, .section-cta { background: #fff !important; color: #000 !important; }
  .section-cta .section-title, .section-cta p { color: #000 !important; }
  .faq-body { display: block !important; }
  .site-footer { background: #fff; color: #000; }
  .footer-logo .logo-name, .copyright { color: #000 !important; }
}
