/* ふたりめ 共通スタイル（スマホ先・ビルドなし） */

:root {
  --bg: #FAF6EF;        /* 紙のような生成り */
  --surface: #FFFDF9;   /* カードの面 */
  --sand: #F1E8DA;      /* 区切りの面 */
  --ink: #1E2430;       /* 本文 */
  --muted: #4A5263;     /* 補足の文字 */
  --terra: #B8502E;     /* 差し色（ボタンの面・飾り） */
  --terra-dark: #9C4024;/* 差し色の文字・ボタンのhover */
  --navy: #23324A;      /* 補助色 */
  --peach: #F2B89F;     /* 紺の上の差し色 */
  --line: #E3D8C6;      /* 罫線 */
  --radius: 14px;
  --gutter: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-wrap: anywhere;
}

/* 短い見出しやラベルだけ、文節で折り返す */
.role li, .nots strong, .stat .value, .faq summary, .plan-for, .compare-item .quote { word-break: auto-phrase; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.45;
  font-weight: 700;
  margin: 0;
  word-break: auto-phrase;
  text-wrap: balance;
  letter-spacing: 0.03em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--navy);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 8px; color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 40px; height: 24px; flex: none; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-nav a:hover { color: var(--terra-dark); text-decoration: underline; }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--terra);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--terra-dark); color: #FFFFFF; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--terra);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 0 #7E3219;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn small { font-weight: 400; font-size: 0.8125rem; }
.btn:hover { background: var(--terra-dark); color: #FFFFFF; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7E3219; }
.btn-block { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--terra-dark);
  background: transparent;
  color: var(--terra-dark);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.btn-ghost:hover { background: var(--terra-dark); color: #FFFFFF; text-decoration: none; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 32px; max-width: 40em; }
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--terra-dark);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}
.section-title { font-size: 1.625rem; }
.section-lead { margin-top: 14px; }
.muted { color: var(--muted); }
.prose { max-width: 40em; }

/* ---------- ファーストビュー ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { font-size: 2.25rem; line-height: 1.35; letter-spacing: 0.04em; }
.hero h1 .accent { color: var(--terra-dark); }
.hero-lead { margin-top: 20px; font-size: 1.0625rem; }
.hero-cta { margin-top: 28px; }
.cta-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- ChatGPTとの違い ---------- */
.compare { display: grid; gap: 16px; margin: 32px 0 0; }
.compare-item {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.compare-item h3 { font-size: 1rem; color: var(--muted); margin-bottom: 10px; }
.compare-item.is-partner { border: 2px solid var(--terra); }
.compare-item.is-partner h3 { color: var(--terra-dark); }
.compare-item .quote {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9375rem;
}
.compare-item .after { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

.subhead { font-size: 1.1875rem; margin: 48px 0 18px; }
.cards { display: grid; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3, .card h4 { font-size: 1.0625rem; margin-bottom: 6px; }
.card p { font-size: 0.9375rem; color: var(--muted); }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.side-figure {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- 任せられる仕事 ---------- */
.task h3 { font-size: 1.125rem; margin-bottom: 12px; }
.task dl { margin: 0; display: grid; gap: 8px; }
.task dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--terra-dark);
}
.task dd { margin: 0 0 4px; font-size: 0.9375rem; }
.honest {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--terra);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 0.9375rem;
}

/* ---------- 料金 ---------- */
.plans { display: grid; gap: 18px; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.plan.is-main { border: 2px solid var(--terra); }
.plan-for {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan h3 { font-size: 1.25rem; }
.plan-price {
  margin: 10px 0 16px;
  color: var(--navy);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.plan-price .unit { font-size: 1rem; }
.plan-price .tax { font-size: 0.8125rem; font-weight: 400; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0 0 20px; padding: 0; list-style: none; flex: 1; }
.plan li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--terra);
}
.plan .plan-sub { font-size: 0.875rem; color: var(--muted); padding-left: 0; }
.plan .plan-sub::before { display: none; }
.plan .btn-ghost { width: 100%; }
.price-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--sand);
  font-size: 0.9375rem;
}
.section-sand .price-note { background: var(--surface); }
.price-after { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 進め方 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terra-dark);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { font-size: 0.9375rem; color: var(--muted); }

/* ---------- AIが代表です ---------- */
.section-navy { background: var(--navy); color: var(--bg); }
.section-navy .eyebrow { color: var(--peach); }
.section-navy a { color: var(--peach); }
.section-navy a:hover { color: #FFFFFF; }
.section-navy :focus-visible { outline-color: var(--peach); }
.roles { display: grid; gap: 14px; margin: 28px 0; }
.role {
  border: 1px solid rgba(250, 246, 239, 0.35);
  border-radius: var(--radius);
  padding: 20px;
}
.role h3 { font-size: 1.0625rem; color: var(--peach); margin-bottom: 8px; }
.role ul { margin: 0; padding-left: 1.2em; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li {
  padding-left: 1.4em;
  position: relative;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--peach);
}
.navy-figure {
  border: 0;
}

/* ---------- しないこと ---------- */
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 48em; }
.nots li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 56px;
  position: relative;
}
.nots li::before,
.nots li::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--terra);
  transform: rotate(45deg);
}
.nots li::after { transform: rotate(-45deg); }
.nots strong { display: block; font-size: 1.0625rem; }
.nots span { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 挑戦の記録 ---------- */
.challenge { display: grid; gap: 28px; align-items: center; }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 24px 0;
}
.stats .stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  text-align: left;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.stat .label { display: block; font-size: 0.8125rem; color: var(--muted); }
.stat .value { display: block; font-size: 1.125rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.challenge .btn-ghost { margin-top: 8px; }
.challenge-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 12px; max-width: 48em; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--terra-dark);
  border-bottom: 2px solid var(--terra-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--terra-dark); }
.faq .answer { padding: 0 20px 20px; color: var(--ink); }

/* ---------- 最後の誘導 ---------- */
.final { text-align: center; padding: 72px 0; }
.final h2 { font-size: 1.625rem; }
.final p { margin-top: 14px; }
.final .btn { margin-top: 24px; }

/* ---------- 下層ページ ---------- */
.page { padding: 48px 0 72px; }
.page h1 { font-size: 1.75rem; margin-bottom: 20px; }
.page h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.page .updated { margin-top: 32px; color: var(--muted); font-size: 0.9375rem; }

.def-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.def-table th,
.def-table td { display: block; padding: 12px 16px; text-align: left; vertical-align: top; font-size: 0.9375rem; }
.def-table th { background: var(--sand); font-weight: 700; padding-bottom: 8px; }
.def-table tr + tr th { border-top: 1px solid var(--line); }

.receive { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.receive li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.receive strong { display: block; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.meta-row li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
}
.form-frame {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-frame iframe { display: block; width: 100%; height: 75vh; min-height: 560px; border: 0; }
.form-fallback { margin: 4px 0 0; font-size: 0.9375rem; }

.log-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0 8px; }
.log-table { width: 100%; border-collapse: collapse; }
.log-day, .log-date { display: block; }
.log-table caption { text-align: left; margin-bottom: 10px; font-size: 0.9375rem; }
.log-table thead { display: none; }
.log-table tr {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.log-table th,
.log-table td { display: flex; gap: 12px; padding: 4px 0; text-align: left; font-size: 0.9375rem; }
.log-table th[scope="row"] { flex-direction: column; gap: 0; font-size: 1.0625rem; color: var(--navy); }
.log-table th[scope="row"] .log-date { font-size: 0.9375rem; }
.log-table td::before {
  content: attr(data-label);
  flex: none;
  width: 6.5em;
  color: var(--muted);
  font-size: 0.875rem;
}
.log-table td.num { font-variant-numeric: tabular-nums; }
.log-table ul { margin: 0; padding-left: 1.1em; }

.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: 1.75rem; }
.notfound p { margin-top: 16px; }
.notfound .links { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 28px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.9375rem;
}
.site-footer .footer-name { font-weight: 700; font-size: 1.0625rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--terra-dark); }
.copyright { color: var(--muted); font-size: 0.875rem; margin: 0; }

@media (max-width: 719.98px) {
  .log-table, .log-table tbody { display: block; width: 100%; }
  .log-table caption { display: block; }
}

/* ---------- 広い画面 ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.0625rem; }
  .section { padding: 88px 0; }
  .section-title { font-size: 2rem; }
  .compare { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats .stat { display: block; padding: 14px 8px; text-align: center; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-tasks { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .def-table th, .def-table td { display: table-cell; }
  .def-table th { width: 30%; padding-bottom: 12px; }
  .def-table tr + tr th, .def-table tr + tr td { border-top: 1px solid var(--line); }
  .log-summary { grid-template-columns: repeat(4, 1fr); }
  .log-table thead { display: table-header-group; }
  .log-table tr { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  .log-table th, .log-table td { display: table-cell; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .log-table thead th { background: var(--sand); font-size: 0.875rem; color: var(--navy); }
  .log-table tbody tr { background: var(--surface); }
  .log-table td::before { display: none; }
  .log-table td.num, .log-table thead th.num { text-align: right; white-space: nowrap; }
  .log-table th[scope="row"] { white-space: nowrap; font-size: 0.9375rem; }
  .final h2 { font-size: 2rem; }
}

@media (min-width: 960px) {
  .site-nav { display: block; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-cta .btn { min-width: 360px; }
  .split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .split .side-figure { margin-top: 0; }
  .cards-tasks { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 72px 20px 22px; }
  .roles-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
  .challenge { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .stat .value { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
