/* クラサポ LP。公式サイト（clarity-works.co.jp）の配色に合わせる。
   深緑が主役、金は「キャンペーン価格」ひとつにだけ使う。 */
:root {
  --green: #1a6b42;
  --green-dark: #0e4428;
  --green-ink: #145236;
  --green-tint: #f0f5f2;
  --green-line: #cfdcd4;
  --gold: #d4a84b;
  --gold-ink: #8a6a22;
  --ink: #111111;
  --text: #2b332f;
  --muted: #5e6a64;
  --border: #d9e1dc;
  --bg: #ffffff;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 28px;
}
h3 {
  font-size: 20px;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: var(--green-ink);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-lg {
  padding: 15px 28px;
  font-size: 17px;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-outline {
  background: #fff;
  color: var(--green-ink);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green-tint);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--green-ink);
}
.btn-ghost:hover {
  background: var(--green-tint);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: #e3bb62;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
.cta-row.center {
  justify-content: center;
  margin-top: 40px;
}

/* ---- ヘッダー ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 44px;
  width: auto;
}
.brand-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-name small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.head-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.head-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.head-nav a:hover {
  color: var(--green-ink);
}
.head-cta {
  display: flex;
  gap: 8px;
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
/* 右側に深緑の面を敷き、画面写真をその上に重ねる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  background: var(--green);
  border-radius: 24px 0 0 24px;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 48px;
  align-items: center;
}
.hero-lead {
  font-weight: 700;
  color: var(--green-ink);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.3;
  margin-bottom: 22px;
}
.hero-text {
  font-size: 17px;
  max-width: 34em;
}
.hero-facts {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.hero-facts li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 6px;
}
.hero-shot {
  margin: 0;
  position: relative;
}
.hero-shot img {
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(14, 68, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* キャプションは読み上げ向け。面の境目に乗るので表示しない */
.hero-shot figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- 課題 ---- */
.pain {
  padding: 72px 0;
  background: var(--green-tint);
}
.pain-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
}
.pain-list dt {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--green);
}
.pain-list dd {
  margin: 0;
  font-size: 15px;
}

/* ---- 機能 ---- */
.features {
  padding: 88px 0 48px;
}
.feat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.feat:last-of-type {
  border-bottom: 1px solid var(--border);
}
.feat.rev .feat-text {
  order: 2;
}
.feat-text h3 {
  margin-bottom: 12px;
}
.feat-text ul {
  list-style: none;
  margin-top: 8px;
}
.feat-text li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
}
.feat-text li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.feat-shot {
  margin: 0;
}
.feat-shot img {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -24px rgba(17, 17, 17, 0.4);
}
.feat-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- キャンペーン: ページで唯一、金を大きく使う ---- */
.campaign {
  background: var(--green-dark);
  color: #fff;
  padding: 72px 0;
}
.campaign h2,
.campaign h3 {
  color: #fff;
}
.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.campaign-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.campaign h2 {
  margin-bottom: 18px;
}
.campaign p {
  color: rgba(255, 255, 255, 0.88);
}
.campaign-after {
  font-size: 14px;
}
.campaign .btn-gold {
  margin-top: 8px;
}
.campaign-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: center;
  padding: 28px 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.price-normal {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: line-through;
}
.price-off {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gold);
}
.price-now {
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin: 6px 0 10px;
}
.price-now .yen {
  font-size: 0.5em;
  margin-right: 2px;
  vertical-align: 0.4em;
}
.price-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- 料金 ---- */
.pricing {
  padding: 88px 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.plan-free {
  border-color: var(--green);
  border-width: 2px;
  background: var(--green-tint);
}
.plan h3 {
  margin-bottom: 6px;
}
.plan-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}
.plan ul {
  list-style: none;
  margin-bottom: 20px;
  font-size: 15px;
}
.plan li {
  padding-left: 20px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}
.pricing-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 48em;
}

/* ---- 登録の流れ ---- */
.flow {
  padding: 72px 0 88px;
  background: var(--green-tint);
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.steps p {
  font-size: 15px;
  margin: 0;
}

/* ---- FAQ ---- */
.faq {
  padding: 88px 0;
}
.faq-list {
  margin: 0;
  max-width: 52em;
}
.faq-list > div {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.faq-list > div:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-list dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 6px;
}
.faq-list dd {
  margin: 0;
  font-size: 15px;
}

/* ---- お問い合わせ ---- */
.contact {
  padding: 88px 0;
  background: var(--green-tint);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.contact-intro p {
  font-size: 15px;
}
.contact-intro .muted {
  color: var(--muted);
  font-size: 14px;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .opt {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}
.agree input {
  margin-top: 5px;
}
.form-msg {
  margin: 0;
  font-size: 14px;
  min-height: 1.5em;
}
.form-msg.is-ok {
  color: var(--green-ink);
  font-weight: 700;
}
.form-msg.is-error {
  color: #a4321f;
}
.contact-form .btn {
  justify-self: start;
}

/* ---- 最後のCTA ---- */
.final {
  background: var(--green);
  color: #fff;
  padding: 64px 0;
}
.final h2 {
  color: #fff;
  margin-bottom: 8px;
}
.final p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.final-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.final .cta-row {
  margin: 0;
}

/* ---- フッター ---- */
.site-foot {
  padding: 36px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.foot-brand img {
  height: 40px;
  width: auto;
}
.foot-company {
  color: var(--muted);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot-nav a {
  color: var(--muted);
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--green-ink);
  text-decoration: underline;
}
.foot-copy {
  margin-top: 18px;
}

/* ---- スマホ固定CTA（狭い画面だけ） ---- */
.mobile-cta {
  display: none;
}

/* ---- レスポンシブ ---- */
@media (max-width: 960px) {
  .head-nav {
    display: none;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero::before {
    display: none; /* 文字に被るので、面は画像の周りだけに */
  }
  .hero-shot {
    background: var(--green);
    padding: 18px 14px;
    border-radius: 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pain-list,
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
  .feat,
  .feat.rev {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feat.rev .feat-text {
    order: 0;
  }
  .campaign-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .campaign-price {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  body {
    padding-bottom: 76px; /* 固定CTAのぶん */
  }
  .head-cta .btn-ghost {
    display: none;
  }
  .head-cta .btn-primary {
    padding: 8px 14px;
    font-size: 14px;
  }
  .btn-lg {
    width: 100%;
  }
  .mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
  }
  .mobile-cta .btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* 料金の詳細（表・追加アカウント・ルール） */
.pricing-tax { color: var(--muted); font-size: 14px; margin: -8px 0 20px; }
.plan-base { border-color: var(--green); }
.sub-h { margin: 48px 0 8px; font-size: 20px; }
.sub-lead { color: var(--muted); font-size: 15px; margin-bottom: 14px; max-width: 48em; }
.table-scroll { overflow-x: auto; margin: 12px 0 0; border: 1px solid var(--border); border-radius: var(--radius); }
.table-scroll.narrow { max-width: 560px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 460px; }
.table-scroll th, .table-scroll td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll thead th { background: var(--green-tint); font-weight: 700; white-space: nowrap; }
.table-scroll tbody th { font-weight: 700; white-space: nowrap; }
.table-scroll tr:last-child th, .table-scroll tr:last-child td { border-bottom: 0; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.add-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.add-card h4 { margin-bottom: 4px; font-size: 16px; }
.add-card .plan-price { font-size: 24px; margin-bottom: 8px; }
.add-card p:last-child { font-size: 14px; color: var(--muted); }
.rules { list-style: disc; padding-left: 1.4em; font-size: 14.5px; max-width: 52em; }
.rules li { margin-bottom: 8px; }
.plan-price span { display: block; margin: 2px 0 0; }
.add-card .plan-price span { display: inline; margin-left: 6px; }

/* ---- 料金の詳細ページ: 項目ごとに色と背景を変え、区切りを見分けやすくする ---- */
.c-acct { --acc: #1a6b42; }
.c-consult { --acc: #1d7a86; }
.c-pack { --acc: #8a6a22; }
.c-spot { --acc: #46598f; }
.c-rule { --acc: #4a5a52; }
.dhero { background: var(--green-tint); padding: 40px 0 34px; border-bottom: 1px solid var(--green-line); }
.dhero h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 10px; }
.dhero .crumb { font-size: 14px; margin: 0; }
.dhero .pricing-tax { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--acc); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.toc a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.toc a:hover { background: var(--acc); color: #fff; }
.toc a:hover::before { background: #fff; }
.dsec { padding: 56px 0; scroll-margin-top: 76px; background: #f4f7f5; background: color-mix(in srgb, var(--acc) 6%, #fff); }
.dsec.plain { background: #fff; }
.dsec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 3px solid var(--acc); }
.dsec-tag { background: var(--acc); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.dsec h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0; }
.dsec .table-scroll { background: #fff; border-color: #cfd8d3; border-color: color-mix(in srgb, var(--acc) 28%, #fff); }
.dsec .table-scroll thead th { background: #eaf1ed; background: color-mix(in srgb, var(--acc) 13%, #fff); }
.dsec .add-card { background: #fff; border-top: 4px solid var(--acc); }
.dsec .plan-price { color: var(--acc); }
.dsec .add-card .plan-price span { color: var(--muted); }
td.ok { color: var(--green); font-weight: 700; }
td.no { color: #9aa5a0; }
.fold { margin-top: 12px; background: #fff; border: 1px solid #cfd8d3; border: 1px solid color-mix(in srgb, var(--acc) 28%, #fff); border-radius: var(--radius); }
.fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "開く ▾"; color: var(--acc); font-size: 14px; white-space: nowrap; }
.fold[open] > summary::after { content: "閉じる ▴"; }
.fold .table-scroll { border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 0; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rule-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--acc); border-radius: var(--radius); padding: 18px 20px; }
.rule-card h3 { font-size: 16px; margin-bottom: 6px; }
.rule-card p { font-size: 14.5px; margin: 0; }

/* トップの料金: 詳細ページへの案内 */
.detail-chips { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 14px 0 36px; }
.detail-chips a { display: block; padding: 12px 16px; border: 1px solid var(--green-line); border-radius: var(--radius); background: var(--green-tint); color: var(--green-ink); font-weight: 700; text-decoration: none; }
.detail-chips a::after { content: " →"; }
.detail-chips a:hover { background: #fff; border-color: var(--green); }
