:root {
  color-scheme: light;
  --ink: #12343a;
  --ink-soft: #4a6266;
  --teal: #0e8f7a;
  --teal-deep: #0b6f60;
  --mint: #e6f6ef;
  --yellow: #f6c945;
  --yellow-soft: #fff6d6;
  --cream: #fbfaf3;
  --white: #ffffff;
  --border: #dbe7e1;
  --line-green: #049a44;
  --radius: 16px;
  --gutter: 16px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { line-height: 1.4; margin: 0; text-wrap: balance; word-break: auto-phrase; }
.lead, .tag { text-wrap: balance; word-break: auto-phrase; }
p { margin: 0 0 12px; }

main, .site-header, .site-footer { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 46px; width: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-line { background: var(--line-green); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn-large { min-height: 56px; width: 100%; font-size: 18px; }
.btn-header { gap: 8px; min-height: 46px; padding: 6px 18px 6px 14px; box-shadow: 0 3px 0 #036b2e; }
.btn-header .btn-icon { width: 22px; height: 22px; flex: none; }
.hd-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.hd-label small { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.hd-label b { font-size: 16px; font-weight: 800; }
.btn-cta { gap: 10px; min-height: 58px; width: 100%; max-width: 420px; padding: 12px 16px; font-size: 16px; box-shadow: 0 4px 0 #036b2e; }
.btn-cta .btn-icon { flex: none; }
.btn-cta .btn-label { text-align: center; line-height: 1.35; }
.btn-cta .nb { display: inline-block; }
.btn-cta .btn-arrow { font-size: 26px; line-height: 1; flex: none; }
.btn-ghost { background: var(--white); color: var(--teal-deep); border-color: var(--teal); min-height: 44px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* hero */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.hero h1 { font-size: 24px; margin: 4px 0 12px; }
.hero h1 .nb { display: inline-block; }
.lead { font-size: 18px; font-weight: 700; color: var(--teal-deep); }


/* sections */
.section { padding: 32px 0 8px; }
.section h2 { font-size: 22px; margin-bottom: 8px; padding-left: 12px; border-left: 6px solid var(--yellow); }
.section-lead { color: var(--ink-soft); }
.section-soft { background: var(--mint); margin: 24px calc(var(--gutter) * -1) 0; padding: 32px var(--gutter) 32px; border-radius: var(--radius); }
.center { text-align: center; margin-top: 20px; }

/* 案件ごとのイメージカラー（背景の薄い色／文字の濃い色／線の色） */
.tone-gold   { --tone-bg: #fff1bf; --tone-ink: #6b4e00; --tone-accent: #f2b705; }
.tone-blue   { --tone-bg: #dcebfa; --tone-ink: #124a7a; --tone-accent: #3b8bd4; }
.tone-orange { --tone-bg: #ffe3cc; --tone-ink: #8a3f00; --tone-accent: #f0883e; }
.tone-purple { --tone-bg: #e6e1f7; --tone-ink: #43307f; --tone-accent: #7b61c9; }
.tone-pink   { --tone-bg: #fbdde6; --tone-ink: #8a1f49; --tone-accent: #e0668f; }
.tone-green  { --tone-bg: #d6f2e8; --tone-ink: #0b6f60; --tone-accent: #0e8f7a; }

/* cards */
.cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.badges { display: flex; gap: 6px; margin-bottom: 6px; }
.badges:empty { display: none; }
.chip { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tone-bg, var(--mint)); color: var(--tone-ink, var(--teal-deep)); }
.feature { font-weight: 700; font-size: 15px; color: var(--tone-ink, var(--teal-deep)); margin: 0 0 10px; }
.card { display: block; background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--tone-accent, var(--teal)); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.badge { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.badge-pick { background: var(--yellow); color: var(--ink); }
.badge-new { background: var(--white); color: var(--teal-deep); border: 1px solid var(--teal); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 18px; }
.tag { color: var(--ink-soft); font-size: 14px; margin: 4px 0 10px; }
.reward-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 10px; }
.reward-line span { font-size: 12px; color: var(--ink-soft); }
.reward-line b { font-size: 18px; }
.more { color: var(--tone-ink, var(--teal-deep)); font-weight: 700; }

.spec td p { margin: 0 0 8px; }
.spec td p:last-child { margin-bottom: 0; }
.spec td ul { margin: 0; padding-left: 1.2em; }
.spec td li { margin-bottom: 4px; }
.spec td li:last-child { margin-bottom: 0; }



/* case page */
.case { padding: 8px 0 32px; max-width: 720px; margin: 0 auto; }
.case h1 { font-size: 26px; margin: 16px 0 4px; }
.case h2 { font-size: 18px; margin: 28px 0 8px; padding-left: 10px; border-left: 5px solid var(--yellow); }
.back a { font-size: 14px; }
.reward-box { background: var(--tone-bg, var(--yellow-soft)); border: 2px solid var(--tone-accent, var(--yellow)); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.reward-box span { display: block; font-size: 13px; color: var(--ink-soft); }
.reward-box b { font-size: 28px; }
.reward-note { margin: 8px 0 0; font-size: 14px; }
.spec { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec th { width: 38%; background: var(--mint); font-size: 14px; }
.notes { background: var(--yellow-soft); border-radius: var(--radius); padding: 4px 16px 8px; margin-top: 20px; }
.notes h2 { border-left-color: var(--ink); }
.cta { margin-top: 32px; text-align: center; }
.cta p { margin: 12px 0 8px; }
.cta-lead { font-weight: 700; }
.kw-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 8px 0; }
.keyword { display: inline-block; background: var(--tone-bg, var(--yellow-soft)); border: 2px dashed var(--tone-accent, var(--yellow)); border-radius: var(--radius); padding: 10px 24px; font-size: 24px; font-weight: 800; }
.kw-row .copy-note { flex-basis: 100%; margin: 0; }
.cta .btn-large { margin-top: 12px; }
.copy-note { font-size: 13px; color: var(--teal-deep); min-height: 1.5em; }

/* 紹介画像 */
.flyer { margin: 16px 0 0; }
.flyer img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.more-text { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 4px 16px 16px; }
.more-text summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }

.sp-only { display: none; }

/* 参加の流れ */
.flow { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 26px; grid-template-columns: 1fr; counter-reset: none; }
.flow-step { position: relative; display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-top: 5px solid var(--tone-accent, var(--teal)); border-radius: 18px; padding: 18px 16px 18px 20px; box-shadow: 0 6px 16px rgba(18, 52, 58, 0.08); }
.flow-num { position: absolute; top: -17px; left: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tone-ink, var(--teal-deep)); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--mint); }
.flow-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tone-bg, var(--mint)); color: var(--tone-ink, var(--teal-deep)); display: flex; align-items: center; justify-content: center; }
.flow-icon svg { width: 28px; height: 28px; }
.flow-text b { display: block; font-size: 18px; line-height: 1.4; }
.flow-text span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -19px; width: 12px; height: 12px; border-right: 3px solid var(--tone-accent, var(--teal)); border-bottom: 3px solid var(--tone-accent, var(--teal)); transform: translateX(-50%) rotate(45deg); }
.flow-mini .flow-num { box-shadow: 0 0 0 4px var(--cream); }

/* footer */
.site-footer { padding-top: 32px; padding-bottom: 40px; color: var(--ink-soft); font-size: 13px; }
.site-footer .pr { border-top: 1px solid var(--border); padding-top: 16px; }
.prose h1 { font-size: 24px; margin-bottom: 12px; }
.prose h2 { margin-top: 24px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose ul { margin: 0; padding-left: 1.4em; }
.prose li { margin-bottom: 4px; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
}
@media (min-width: 960px) {
  .flow:not(.flow-mini) { grid-template-columns: repeat(4, 1fr); gap: 34px; }
  .flow:not(.flow-mini) .flow-step { flex-direction: column; text-align: center; padding: 30px 16px 22px; gap: 12px; }
  .flow:not(.flow-mini) .flow-num { left: 50%; transform: translateX(-50%); }
  .flow:not(.flow-mini) .flow-step:not(:last-child)::after { left: auto; right: -25px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
/* スマホ：表を「項目 → 内容」の縦並びにする */
@media (max-width: 639px) {
  .sp-only { display: inline; }
  .spec, .spec tbody, .spec tr { display: block; }
  .spec { overflow: hidden; }
  .spec tr { border-bottom: 1px solid var(--border); }
  .spec tr:last-child { border-bottom: 0; }
  .spec th { display: block; width: auto; padding: 8px 14px; font-size: 13px; border-bottom: 0; }
  .spec td { display: block; padding: 10px 14px 14px; border-bottom: 0; }
}
/* マウスを乗せたときの変化は、マウスのある端末だけに限定（スマホのタップを邪魔しないため） */
@media (hover: hover) {
  .btn-line:hover { filter: brightness(0.95); }
  .btn-header:hover { filter: none; transform: translateY(1px); box-shadow: 0 2px 0 #036b2e; }
  .btn-cta:hover { filter: none; transform: translateY(1px); box-shadow: 0 3px 0 #036b2e; }
  .card:hover { box-shadow: 0 6px 20px rgba(18, 52, 58, 0.12); }
}

/* スタート説明会ページ */
.next-date { display: block; font-size: 14px; color: var(--teal-deep); font-weight: 700; }
.next-date:empty { display: none; }
.small { font-size: 14px; color: var(--ink-soft); }
.learn { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.learn li { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.learn b { display: block; font-size: 17px; }
.learn span { display: block; color: var(--ink-soft); font-size: 14px; }
.faq { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 48px; }
.faq p { padding-bottom: 14px; margin: 0; }
@media (min-width: 768px) { .learn { grid-template-columns: 1fr 1fr; } }
.free-points ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.free-points li { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: var(--radius); padding: 12px 8px; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.3; }
.free-points li b { font-size: 30px; color: #d6336c; margin-left: 4px; }
.free-band { margin: 10px 0 0; background: #d6336c; color: #fff; border-radius: var(--radius); padding: 12px 8px; text-align: center; font-size: 20px; font-weight: 800; }
.case-names { margin: 8px 0 0; padding-left: 1.2em; font-size: 14px; }
.case-names li { margin-bottom: 2px; }
.learn .case-names { display: block; list-style: disc; }
.learn .case-names li { background: none; border: 0; border-radius: 0; padding: 0; }
.h2-sub { display: block; font-size: 14px; color: var(--teal-deep); }
.zoom-note { text-align: center; margin: 12px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); }
