/* cococa Brand Design System */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

:root {
  /* 文字とボタン用の濃いオリーブ系 (可読性 ↑、屋外・色覚特性に配慮)
   * 装飾用の淡いグリーン (--bg / --bg-cream / --bg-band / --pale-cream /
   * --accent-green) は維持して、cococa の「やわらかい・夜行性カカポ」の
   * 雰囲気を残す。/_design.html での比較確認後に採用 (2026-05-04)。 */
  --leaf: #6F8F3A;            /* 中間グリーン (border / hover アクセント) */
  --moss: #4F6F32;            /* メイン (見出し / strong / リンク色) */
  --pale-cream: #FFF3C4;
  --beak: #DCCAA6;
  --foot: #E8D7B6;
  --eye: #3B2F23;
  --accent-green: #CFE3A6;    /* 淡いアクセント (装飾用、維持) */
  --bg: #FAFCF5;              /* ページ背景 (淡い、維持) */
  --bg-band: #EEF5DD;         /* セクション背景 (やや濃く) */
  --bg-cream: #F6F8EA;        /* カードベース (やや黄緑寄り) */
  --ink: #3F5F2B;             /* 主要見出し */
  --body: #3F5F2B;            /* 本文の主要文字 */
  --muted: #5F6B55;           /* サブテキスト */
  --line: #B7CD86;            /* 区切り線 (やや濃く、認識しやすく) */
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.8;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--moss); text-decoration: none; transition: color .2s; }
a:hover { color: var(--leaf); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; line-height: 1.4; }
img { max-width: 100%; height: auto; }

.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ===== TOPBAR ===== */
.topbar {
  background: rgba(250,252,245,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 100;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 6px;
}
.brand {
  display: flex; align-items: center;
  gap: 10px;
  font-weight: 800; font-size: 1.25rem;
  color: var(--moss);
  letter-spacing: .02em;
  text-decoration: none;
}
.brand:hover { color: var(--leaf); text-decoration: none; }
.brand img {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-cream);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(141,166,87,.18);
}
@media (min-width: 720px) {
  .brand { font-size: 1.5rem; gap: 12px; }
  .brand img { width: 64px; height: 64px; }
}
.topbar nav {
  display: flex; align-items: center;
  gap: .8em;
  font-size: .85rem; font-weight: 600;
  flex-wrap: wrap; justify-content: flex-end;
}
@media (max-width: 540px) {
  /* スマホ幅では brand 行とは別行に nav を回り込ませて、横スクロールを防ぐ。 */
  .topbar nav {
    width: 100%;
    justify-content: center;
    gap: .6em .9em;
    font-size: .82rem;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }
}
@media (min-width: 720px) {
  .topbar nav { gap: 1em; font-size: .9rem; }
}
.btn-login {
  padding: .4em 1.2em;
  border: 2px solid var(--leaf);
  border-radius: var(--radius-pill);
  color: var(--leaf);
  transition: all .2s;
}
.btn-login:hover { background: var(--leaf); color: #fff; text-decoration: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, var(--bg-band) 0%, var(--bg) 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(169,191,107,.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.hero-mascot {
  width: 220px;
  margin: 0 auto 12px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(141,166,87,.18));
}
.hero-tag {
  font-weight: 700;
  color: var(--moss);
  font-size: 1.05rem;
  margin: 0 0 .8em;
  letter-spacing: .05em;
}
.hero-tag strong { color: var(--leaf); }
.hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: .35;
  filter: saturate(.9);
}
.hero-deco img { width: 100%; height: auto; }
.hero-deco-left  { width: 110px; left: -18px; bottom: 16px; transform: rotate(-8deg); }
.hero-deco-right { width: 130px; right: -22px; top: 60px; transform: rotate(6deg); }
@media (min-width: 720px) {
  .hero-deco-left  { width: 160px; left: 24px; bottom: 28px; }
  .hero-deco-right { width: 180px; right: 24px; top: 80px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--moss);
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  color: var(--leaf);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 6px;
  background: var(--pale-cream);
  border-radius: 3px;
  z-index: -1;
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32em;
  margin: .6em auto 1.6em;
}
.hero .price-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 2px solid var(--leaf);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.1rem;
  color: var(--moss);
  box-shadow: 0 4px 16px rgba(141,166,87,.12);
}
.hero .price-badge .free { color: var(--leaf); }

/* ===== TAGLINE ===== */
.tagline {
  text-align: center;
  padding: 40px 0;
  background: var(--bg-cream);
}
.tagline p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto;
  font-weight: 500;
}
.tagline strong { color: var(--moss); }
.tagline-link {
  margin-top: 1em !important;
  font-size: .88rem !important;
}
.tagline-link a {
  color: var(--moss);
  border-bottom: 1px dashed var(--leaf);
  padding-bottom: 2px;
}
.tagline-link a:hover { color: var(--leaf); }

/* ===== SECTIONS ===== */
section { padding: 56px 0; position: relative; overflow: hidden; }
section:nth-of-type(even) { background: var(--bg-band); }

.section-deco {
  position: absolute;
  pointer-events: none;
  opacity: .22;
  width: 130px;
}
.section-deco img { width: 100%; height: auto; display: block; }
.section-deco-tl { top: 8px; left: -10px; transform: rotate(-6deg); }
.section-deco-tr { top: 12px; right: -12px; transform: rotate(8deg); }
@media (min-width: 720px) {
  .section-deco { width: 170px; }
  .section-deco-tl { top: 14px; left: 16px; }
  .section-deco-tr { top: 14px; right: 16px; }
}

/* ===== ABOUT page hero ===== */
.about-hero {
  background: linear-gradient(180deg, var(--bg-band) 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  color: var(--moss);
  font-weight: 900;
  margin: .2em 0 .5em;
}
.about-hero h1 em {
  font-style: normal;
  color: var(--leaf);
}
.about-hero .lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36em;
  margin: .8em auto 0;
}
.quotes {
  list-style: none; padding: 0; margin: 0 0 1.4em;
  display: grid; gap: 8px;
}
.quotes li {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--body);
  font-size: .98rem;
}
.quotes em { color: var(--moss); font-style: normal; font-weight: 700; }

.thought-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.thought-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.thought-list h3 {
  font-size: 1.05rem; color: var(--moss); margin: 0 0 .3em;
}
.thought-list p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (min-width: 720px) {
  .thought-list { grid-template-columns: repeat(3, 1fr); }
}

.kapo-table {
  margin-top: 2em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.kapo-table h3 {
  font-size: 1rem; color: var(--moss); margin: 0 0 .8em;
}
.kapo-table table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
.kapo-table th, .kapo-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px; text-align: left;
  vertical-align: top;
}
.kapo-table th {
  width: 38%;
  color: var(--moss); font-weight: 700;
  background: var(--bg-cream);
}
.kapo-table tr:last-child td,
.kapo-table tr:last-child th { border-bottom: 0; }

.back-home {
  margin-top: 1.6em; font-size: .92rem;
}
.back-home a { color: var(--muted); }
.back-home a:hover { color: var(--moss); }

/* ===== ABOUT cococa ===== */
.about-block { background: var(--bg-cream); }
.about-grid {
  display: grid; gap: 24px;
  align-items: center;
}
.about-text p { color: var(--body); margin: 0 0 1em; font-size: .98rem; }
.about-text em { color: var(--moss); font-style: normal; font-weight: 700; }
.about-points {
  list-style: none; padding: 0; margin: 1.2em 0 0;
  display: grid; gap: 10px;
}
.about-points li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .92rem; color: var(--body);
}
.about-points span { font-size: 1.2rem; line-height: 1; }
.about-points strong { color: var(--moss); }
.about-pic { text-align: center; }
.about-pic img {
  width: 100%; max-width: 320px;
  filter: drop-shadow(0 6px 14px rgba(141,166,87,.15));
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .about-pic { order: 2; }
}

/* ===== ABOUT カポ ===== */
.about-kapo .kapo-strip {
  display: flex; justify-content: center;
  gap: 4px; flex-wrap: wrap;
  margin: 0 auto 1.4em;
  max-width: 640px;
}
.about-kapo .kapo-strip img {
  width: 84px; height: 84px;
  object-fit: contain;
  opacity: .9;
  transition: transform .3s ease;
}
.about-kapo .kapo-strip img:nth-child(odd) { transform: translateY(-6px); }
.about-kapo .kapo-strip img:hover { transform: translateY(-12px) scale(1.08); }
.about-kapo .kapo-lead {
  text-align: center;
  max-width: 38em;
  margin: 0 auto 1.6em;
  color: var(--body);
  font-size: .98rem;
}
.about-kapo .kapo-lead strong { color: var(--moss); }
.kapo-traits {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.kapo-traits li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}
.kapo-traits strong { color: var(--moss); font-size: 1rem; }
@media (min-width: 720px) {
  .kapo-traits { grid-template-columns: repeat(3, 1fr); }
}
.section-head {
  text-align: center;
  margin-bottom: 2em;
}
.section-head h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  font-weight: 900;
  position: relative;
  display: inline-block;
  padding-bottom: .3em;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--leaf), var(--accent-green));
  border-radius: 2px;
  margin: .4em auto 0;
}
.section-head p { color: var(--muted); font-size: .95rem; margin: .4em 0 0; }

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid; gap: 20px;
  list-style: none; padding: 0; margin: 0;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(141,166,87,.12);
}
.feature-card img {
  width: 140px; height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(141,166,87,.14));
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--moss);
  margin-bottom: .3em;
}
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== COCOCA FLOW ===== */
.cococa-flow {
  display: grid; gap: 0;
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.cococa-flow::before {
  content: '';
  position: absolute;
  left: 32px; top: 40px; bottom: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--leaf), var(--accent-green));
  border-radius: 2px;
}
.flow-step {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0;
  position: relative;
}
.flow-num {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(141,166,87,.25);
  z-index: 1;
}
.flow-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  flex: 1;
  position: relative;
  padding-right: 84px;
  min-height: 96px;
}
.flow-content h3 { font-size: 1.05rem; color: var(--moss); margin-bottom: .2em; }
.flow-content p { margin: 0; color: var(--muted); font-size: .92rem; }
.flow-mascot {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  width: 70px; height: 70px;
  object-fit: contain;
  opacity: .95;
  pointer-events: none;
}
@media (min-width: 720px) {
  .flow-content { padding-right: 110px; }
  .flow-mascot { width: 90px; height: 90px; right: 14px; }
}

/* ===== PLANS ===== */
/* プランセクションだけ広めに使う (3 カードの可読性確保) */
.plans-section .container { max-width: 1140px; }

.plans-grid {
  display: grid; gap: 18px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  transition: transform .2s;
}
.plan-card ul { text-align: left; line-height: 1.65; }
.plan-card ul li { margin: .35em 0; }
.plan-tagline {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .2rem;
  margin-bottom: .8rem;
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card.recommended {
  border: 2px solid var(--leaf);
  box-shadow: 0 8px 28px rgba(141,166,87,.14);
  position: relative;
}
.plan-card.recommended::before {
  content: 'おすすめ';
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 18px; border-radius: var(--radius-pill);
}
.plan-card.upgrade {
  background: var(--bg-cream);
  border-style: dashed;
  border-color: var(--line);
}
.plan-card.upgrade h3 { color: var(--muted); }
.plan-card.upgrade .plan-price { color: var(--muted); }
.plan-badge {
  display: inline-block;
  background: var(--bg-band);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: .03em;
}
.plan-card h3 { font-size: 1.15rem; }
.plan-price {
  font-size: 2.2rem; font-weight: 900;
  color: var(--moss); margin: .3em 0;
}
.plan-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-card ul {
  text-align: left; padding: 0 0 0 1.2em;
  margin: 1em 0 1.4em; font-size: .93rem;
}
.plan-card ul li { margin-bottom: 6px; }
.signup-form__label {
  display: block;
  text-align: left;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 .4em;
}
.signup-form__label > span {
  display: block;
  margin-bottom: .25em;
}
.signup-form__label input[type="email"] {
  display: block; width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.signup-form__label input[type="email"]:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(141,166,87,.18);
}
.signup-form .plan-note {
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 .8em;
  text-align: left;
  line-height: 1.5;
}
.btn-cta {
  display: block; width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-align: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(141,166,87,.2);
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(141,166,87,.3);
  color: #fff; text-decoration: none;
}
.btn-cta:active { transform: translateY(1px); }
.btn-secondary {
  display: block; width: 100%;
  padding: 14px 20px;
  background: var(--bg-band); color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  text-align: center; cursor: default;
}

/* ===== FAQ ===== */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; font-weight: 600;
  padding: 16px 32px 16px 0;
  list-style: none;
  position: relative;
  color: var(--ink);
  transition: color .2s;
}
.faq summary:hover { color: var(--moss); }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 14px;
  font-size: 1.3rem; color: var(--leaf);
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  padding: 0 0 16px; color: var(--muted);
  font-size: .93rem; margin: 0;
}

/* ===== CLOSING ===== */
.closing {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-band) 100%);
  padding: 56px 0 64px;
}
.closing-mascot {
  width: 160px; height: 160px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(141,166,87,.18));
}
.closing-copy {
  font-size: 1.1rem; font-weight: 700;
  color: var(--moss);
  line-height: 1.8;
  margin: 0 0 1.4em;
}
.closing-cta {
  max-width: 320px; margin: 0 auto;
  text-decoration: none;
}
.closing-cta:hover { color: #fff; text-decoration: none; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink); color: #94a886;
  text-align: center; padding: 36px 0 28px;
  font-size: .88rem;
}
footer .brand-footer { color: var(--accent-green); font-weight: 700; font-size: 1rem; }
footer .links { margin-top: .6em; }
footer .links a { color: #7a8e6a; margin: 0 .6em; font-size: .85rem; }
footer .links a:hover { color: var(--accent-green); }
footer .copy { color: #5a6e4a; font-size: .8rem; margin-top: 14px; }

/* ===== NOTES ===== */
.note-box {
  margin: 1.4em auto 0; max-width: 680px;
  padding: 14px 18px;
  border: 1px solid #E4D8A8; background: #FFFEF7;
  border-radius: var(--radius-sm);
  color: #6B5D2F; font-size: .85rem; line-height: 1.7;
}
.domain-note {
  margin-top: 32px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-band);
}
.domain-note h3 { margin-top: 0; font-size: 1.05rem; }
.domain-note ul { font-size: .93rem; color: var(--muted); }
.domain-note .small { font-size: .83rem; color: var(--muted); margin: 8px 0 0; }
.canceled-banner {
  background: #fef3c7; border-left: 4px solid #d97706;
  color: #78350f; padding: 12px 16px;
  font-size: .95rem; border-radius: 4px; margin: 20px 0;
}
.plans-note {
  text-align: center; color: var(--muted);
  font-size: .85rem; margin-top: 1.4em;
}
.trial-banner {
  text-align: center; color: var(--muted);
  margin: 0 0 1.4em; font-size: .95rem;
}

/* ===== JAPANESE PHRASE-BASED LINE BREAK =====
 * 日本語の改行を「文節単位」で自然にする CSS Text Level 4 仕様。
 * - iOS Safari 17.4+ / Chrome 119+ で BudouX 相当の効果がネイティブで出る
 * - 未対応ブラウザでは word-break: normal にフォールバック (現状動作と同じ)
 * - body 全体に適用すると <code>/<pre> や URL に副作用が出るため、
 *   日本語が長く改行ポイントが目立つ要素のみ列挙する。
 */
.hero h1,
.hero .lead,
.hero .price-badge,
.hero-tag,
.about-hero h1,
.about-hero .lead,
.quiz-hero h1,
.quiz-hero .lead,
.tagline p,
.section-head h2,
.section-head p,
.kapo-bubble__say,
.kapo-lead,
.kapo-traits li,
.diag-card__title,
.diag-card__lead,
.guide-prose p,
.guide-prose h2,
.guide-prose h3,
.guide-prose li,
.guide-toc__item p,
.feature-card p,
.thought-list p,
.thought-list h3,
.compare-col h3,
.compare-col ul li,
.checklist li,
.cost-table td,
.cost-table th,
.cococa-support__title,
.cococa-support__list li,
.hero-cta-card__title,
.hero-cta-card__desc,
.hero-cta-trio__lead,
.closing-copy,
.faq summary,
.faq details p,
.plan-card ul li,
.plan-tagline,
.quiz__q legend,
.quiz__q-help,
.quiz__choice label,
.result__title,
.result__verdict,
.result__related a,
.guide-progress__step small,
.guide-sub-links {
  word-break: auto-phrase;
}

/* スマホ限定の強制改行 (PC では消える)
 * 句読点ごとに <br class="sp-br"> を入れて、スマホでの読みやすさを意図的に作る。
 * auto-phrase に任せると改行位置が短すぎ/長すぎる場合の救済策。 */
.sp-br { display: inline; }
@media (min-width: 720px) {
  .sp-br { display: none; }
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-card { display: flex; flex-direction: column; }
  .plan-card ul { flex: 1; }
}

/* ===== KAPO BUBBLE (ガイド・診断で使うカポの吹き出し) ===== */
.kapo-bubble {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 1.6em auto; max-width: 640px;
}
.kapo-bubble__avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-cream);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(141,166,87,.18);
}
.kapo-bubble__avatar img { width: 100%; height: 100%; object-fit: contain; }
.kapo-bubble__say {
  position: relative; flex: 1;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--body);
  font-size: .98rem; line-height: 1.7;
}
.kapo-bubble__say::before {
  content: '';
  position: absolute;
  left: -10px; top: 18px;
  border: 8px solid transparent;
  border-right-color: var(--bg-cream);
}
.kapo-bubble__say::after {
  content: '';
  position: absolute;
  left: -11px; top: 18px;
  border: 8px solid transparent;
  border-right-color: var(--line);
  z-index: -1;
}
.kapo-bubble__say strong { color: var(--moss); }

/* ===== GUIDE (教育コンテンツ共通) ===== */
.guide-prose { max-width: 680px; margin: 0 auto; }
.guide-prose h2 { font-size: 1.25rem; color: var(--ink); margin: 1.8em 0 .5em; }
.guide-prose h3 { font-size: 1.05rem; color: var(--moss); margin: 1.2em 0 .3em; }
.guide-prose p { color: var(--body); font-size: .98rem; margin: .6em 0; }
.guide-prose strong { color: var(--moss); }

/* ガイド入口の目次カード */
.guide-toc {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.guide-toc__item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--body);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide-toc__item:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
  box-shadow: 0 8px 22px rgba(141,166,87,.12);
  color: var(--body); text-decoration: none;
}
.guide-toc__item h3 {
  font-size: 1.05rem; color: var(--moss);
  margin: 0 0 .25em;
  display: flex; align-items: center; gap: 8px;
}
.guide-toc__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff;
  border-radius: 50%;
  font-size: .85rem; font-weight: 700;
}
.guide-toc__item p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (min-width: 720px) {
  .guide-toc { grid-template-columns: repeat(2, 1fr); }
}

/* できる/プロに頼む 対比カラム */
.compare-grid {
  display: grid; gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.compare-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.compare-col h3 {
  font-size: 1.05rem;
  margin: 0 0 .6em;
  padding-bottom: .4em;
  border-bottom: 1px dashed var(--line);
}
.compare-col ul {
  list-style: none; padding: 0; margin: 0;
}
.compare-col ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--body);
  font-size: .94rem;
  line-height: 1.65;
}
.compare-col ul li::before {
  position: absolute;
  left: 0; top: 8px;
  font-weight: 900; font-size: 1.05rem;
  line-height: 1.4;
}
.compare-col--ok h3 { color: var(--moss); }
.compare-col--ok ul li::before { content: '✓'; color: var(--moss); }
.compare-col--ng { background: var(--bg-cream); }
.compare-col--ng h3 { color: var(--muted); }
.compare-col--ng ul li::before { content: '×'; color: var(--muted); }

/* SEO 記事の対比表用 modifier */
/* cococa が自動でやる (◯ = 達成済み感) */
.compare-col--cococa-auto ul li::before {
  content: '◯';
  color: var(--moss);
  font-size: 1rem;
  font-weight: 700;
}
/* 先生がお願い (チェックボックス = todo 感) */
.compare-col--user-todo ul li::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--leaf);
  border-radius: 3px;
  background: var(--white);
  top: 11px;
}

/* cococa 機能サポート枠 (各番外編記事の末尾に置く) */
.cococa-support {
  background: linear-gradient(135deg, var(--bg-cream), var(--accent-green));
  border: 1px solid var(--leaf);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 2em auto;
  max-width: 680px;
}
.cococa-support__title {
  font-size: 1rem; font-weight: 800;
  color: var(--moss);
  margin: 0 0 .6em;
  display: flex; align-items: center; gap: 8px;
}
.cococa-support__title::before {
  content: '🌿';
  font-size: 1.1rem;
}
.cococa-support__list {
  list-style: none; padding: 0; margin: 0;
}
.cococa-support__list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--body);
  font-size: .94rem;
  line-height: 1.7;
}
.cococa-support__list li::before {
  content: '◯';
  position: absolute; left: 0; top: 6px;
  color: var(--moss);
  font-weight: 700;
}
.cococa-support strong { color: var(--moss); }
.cococa-support a { color: var(--moss); border-bottom: 1px dashed var(--leaf); padding-bottom: 1px; }
.cococa-support a:hover { color: var(--leaf); border-color: var(--leaf); }

/* システム画面のスクリーンショット表示枠 (Playwright 生成 PNG を埋め込む)
 * シンプルな枠 + 影 + bg-cream キャプション。スマホ風フレーム装飾 (黒ベゼル等) は
 * cococa のやわらかい世界観と合わなかったので、最小限の装飾だけ残す方針。 */
.cococa-screenshot {
  display: block;
  max-width: 280px;
  margin: 1.6em auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(141,166,87,.20);
  overflow: hidden;
  background: var(--white);
}
.cococa-screenshot img {
  width: 100%; height: auto; display: block;
}
.cococa-screenshot figcaption {
  padding: 10px 14px;
  background: var(--bg-cream);
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
@media (min-width: 720px) {
  .cococa-screenshot { max-width: 320px; }
}
@media (min-width: 720px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

/* チェックリスト (CSS の ✓) */
.checklist {
  list-style: none; padding: 0; margin: .8em 0;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--body);
  font-size: .95rem; line-height: 1.7;
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--accent-green);
  color: var(--moss);
  border-radius: 50%;
  font-size: .8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* お金と時間 比較表 */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cost-table th, .cost-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px; text-align: left;
  vertical-align: top;
}
.cost-table thead th {
  background: var(--bg-cream);
  color: var(--moss);
  font-weight: 700; font-size: .92rem;
}
.cost-table tbody th {
  background: var(--bg-band);
  color: var(--muted);
  font-weight: 600;
  width: 28%;
}
.cost-table tr:last-child th,
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }

/* ガイドの進捗インジケータ (HERO 直下に置く) */
.guide-progress {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  margin: 0 auto 1.6em;
  max-width: 100%;
  padding: 0 12px;
  flex-wrap: wrap;
}
.guide-progress__step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  min-width: 64px;
  transition: all .2s;
}
.guide-progress__step small {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0;
}
.guide-progress__step:hover {
  background: var(--white);
  color: var(--moss);
  border-color: var(--leaf);
  text-decoration: none;
}
.guide-progress__step.is-current {
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff;
  border-color: var(--moss);
  box-shadow: 0 3px 10px rgba(141,166,87,.28);
}
.guide-progress__step.is-current small { color: rgba(255,255,255,.92); }

/* ガイド末尾の副リンク (診断 / 14 日無料 / 入口) を控えめに 1 行で */
.guide-sub-links {
  text-align: center;
  margin: 1.2em auto 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 2;
  max-width: 640px;
}
.guide-sub-links a {
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1px;
  margin: 0 .5em;
  white-space: nowrap;
}
.guide-sub-links a:hover { color: var(--moss); border-color: var(--leaf); }
.guide-sub-links .sep {
  color: var(--line);
  margin: 0 .1em;
}

/* ガイド末尾の CTA 行 (1〜3 ボタン横並び) */
.guide-cta-row {
  display: grid; gap: 12px;
  margin: 2.4em auto 0;
  max-width: 640px;
}
.guide-cta-row .btn-cta,
.guide-cta-row .btn-secondary {
  margin: 0;
}
.guide-cta-row .btn-secondary {
  cursor: pointer; color: var(--moss);
  background: var(--white); border: 1px solid var(--leaf);
  text-decoration: none;
}
.guide-cta-row .btn-secondary:hover {
  background: var(--bg-cream);
  color: var(--moss);
  text-decoration: none;
}
@media (min-width: 720px) {
  .guide-cta-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .guide-cta-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* 大きな診断 CTA ブロック (ガイド入口・cost-time 末尾) */
.diag-card {
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-band));
  border: 2px solid var(--leaf);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 2em auto;
  max-width: 640px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(141,166,87,.12);
}
.diag-card__title {
  font-size: 1.15rem; font-weight: 900;
  color: var(--moss);
  margin: 0 0 .4em;
}
.diag-card__lead {
  color: var(--muted); font-size: .94rem;
  margin: 0 0 1em;
}
.diag-card .btn-cta { max-width: 320px; margin: 0 auto; }

/* HERO 直下: ガイド / 診断 / 想い への大ボタン 3 連 (まずここから入ってもらう) */
.hero-cta-trio {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--line);
  padding: 28px 16px 32px;
}
.hero-cta-trio__inner {
  max-width: 980px; margin: 0 auto;
}
.hero-cta-trio__lead {
  text-align: center;
  font-size: .98rem;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero-cta-trio__lead strong { color: var(--moss); }
.hero-cta-trio__grid {
  display: grid; gap: 12px;
}
.hero-cta-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 2px solid var(--leaf);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none; color: var(--body);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  box-shadow: 0 4px 14px rgba(141,166,87,.1);
}
.hero-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(141,166,87,.22);
  background: var(--bg-cream);
  color: var(--body); text-decoration: none;
  border-color: var(--moss);
}
.hero-cta-card__icon {
  flex-shrink: 0; width: 56px; height: 56px;
  background: var(--bg-cream);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(141,166,87,.14);
}
.hero-cta-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.hero-cta-card__body { flex: 1; min-width: 0; }
.hero-cta-card__title {
  font-size: 1.02rem; font-weight: 800;
  color: var(--moss);
  margin: 0 0 2px;
  line-height: 1.4;
}
.hero-cta-card__desc {
  font-size: .85rem; color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.hero-cta-card__arrow {
  flex-shrink: 0;
  font-size: 1.4rem; color: var(--leaf);
  font-weight: 900;
  line-height: 1;
}
@media (min-width: 720px) {
  .hero-cta-trio { padding: 36px 16px 40px; }
  .hero-cta-trio__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-cta-card {
    flex-direction: column; text-align: center;
    padding: 24px 18px 22px;
    gap: 12px;
  }
  .hero-cta-card__icon { width: 76px; height: 76px; }
  .hero-cta-card__arrow { display: none; }
  .hero-cta-card__desc { font-size: .9rem; }
}

/* ===== QUIZ (Web サイト制作 簡易診断) ===== */
.quiz-hero {
  background: linear-gradient(180deg, var(--bg-band) 0%, var(--bg) 100%);
  padding: 48px 0 36px;
  text-align: center;
}
.quiz-hero h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--moss);
  font-weight: 900;
  margin: .2em 0 .4em;
}
.quiz-hero .lead {
  color: var(--muted);
  max-width: 36em;
  margin: .6em auto 0;
  font-size: .98rem;
}
.quiz-hero .quiz-mascot {
  width: 120px; height: 120px;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(141,166,87,.18));
}

.quiz {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 4px;
}
.quiz__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.quiz__progress-text {
  font-size: .85rem; color: var(--muted); font-weight: 600;
}
.quiz__progress-text strong { color: var(--moss); font-size: 1rem; }
.quiz__progress {
  width: 100%; height: 8px;
  background: var(--bg-band);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 18px;
}
.quiz__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--moss));
  transition: width .35s ease;
  width: 10%;
}
.quiz__toggle-all {
  background: none; border: none;
  font: inherit; cursor: pointer;
  color: var(--moss);
  font-size: .85rem;
  border-bottom: 1px dashed var(--leaf);
  padding: 0 0 1px;
}
.quiz__toggle-all:hover { color: var(--leaf); }

.quiz__form {
  display: block;
}
.quiz__form.is-wizard .quiz__q { display: none; }
.quiz__form.is-wizard .quiz__q.is-active { display: block; }

.quiz__q {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 16px;
}
.quiz__q legend {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  margin: 0 0 .2em;
  padding: 0;
  line-height: 1.55;
}
.quiz__q-num {
  display: inline-block;
  background: var(--bg-band); color: var(--moss);
  font-size: .78rem; font-weight: 700;
  padding: 2px 10px; border-radius: var(--radius-pill);
  margin-right: 8px;
  vertical-align: middle;
}
.quiz__q-help {
  display: block;
  margin: .4em 0 1em;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}
.quiz__choices {
  display: grid; gap: 8px;
  margin: 0; padding: 0;
}
.quiz__choice {
  display: block;
  position: relative;
}
.quiz__choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz__choice label {
  display: block;
  padding: 14px 18px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--body);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  line-height: 1.55;
}
.quiz__choice label:hover {
  border-color: var(--leaf);
  background: var(--white);
}
.quiz__choice input[type="radio"]:checked + label {
  border-color: var(--moss);
  background: var(--accent-green);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(141,166,87,.18);
}
.quiz__choice input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.quiz__cheer {
  text-align: center;
  color: var(--moss);
  font-size: .9rem;
  margin: 8px 0 16px;
  font-weight: 600;
  display: none;
}
.quiz__cheer.is-shown { display: block; }

.quiz__nav {
  display: flex; gap: 10px;
  margin-top: 18px;
}
.quiz__nav button {
  flex: 1;
  padding: 12px 18px;
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 700; font-size: .98rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.quiz__back {
  background: var(--bg-band);
  color: var(--muted);
}
.quiz__back:hover:not(:disabled) {
  background: var(--bg-cream);
  color: var(--moss);
}
.quiz__back:disabled {
  opacity: .4; cursor: not-allowed;
}
.quiz__next {
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff;
  box-shadow: 0 4px 12px rgba(141,166,87,.2);
}
.quiz__next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(141,166,87,.3);
}
.quiz__next:disabled {
  opacity: .5; cursor: not-allowed;
  box-shadow: none;
}

/* 結果画面 */
.result {
  background: var(--white);
  border: 2px solid var(--leaf);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin: 0 auto;
  max-width: 680px;
  box-shadow: 0 8px 28px rgba(141,166,87,.14);
}
.result[hidden] { display: none; }
.result__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--leaf), var(--moss));
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.result__title {
  font-size: 1.3rem; font-weight: 900;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.4;
}
.result__verdict {
  color: var(--body);
  font-size: .98rem;
  line-height: 1.8;
  margin: 0 0 1.2em;
}
.result__section {
  margin: 1.4em 0;
}
.result__section h3 {
  font-size: 1rem; color: var(--moss);
  margin: 0 0 .5em;
}
.result__related {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.result__related a {
  display: block;
  padding: 10px 14px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--moss);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.result__related a:hover {
  border-color: var(--leaf);
  background: var(--white);
  color: var(--moss);
  text-decoration: none;
}
.result__cta {
  margin: 1.6em auto 0;
  max-width: 360px;
}
.result__cta-note {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin: .6em 0 0;
}
.result__restart {
  display: block;
  margin: 1.4em auto 0;
  max-width: 280px;
  padding: 10px 16px;
  background: none;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.result__restart:hover {
  color: var(--moss);
  border-color: var(--leaf);
}

/* 結果タイプ別の色味 (枠とバッジ) */
.result--keep { border-color: var(--accent-green); }
.result--keep .result__badge { background: linear-gradient(135deg, #B5C68A, #8DA657); }
.result--pro-only { border-color: #D4B582; }
.result--pro-only .result__badge { background: linear-gradient(135deg, #D4B582, #B5965A); }
