:root {
  --ink: #27231f;
  --muted: #6f675e;
  --paper: #fbf8f2;
  --panel: #fffdf8;
  --cream: #f1eadf;
  --line: #ded4c6;
  --orange: #c87538;
  --orange-dark: #8d4a20;
  --blue: #3f7281;
  --green: #466957;
  --max: 1080px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 212, 198, .85);
  background: rgba(251, 248, 242, .94);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand small { display: block; font-size: 10px; color: var(--orange); letter-spacing: .16em; }
.site-nav { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.hero, .article-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 22px 64px;
}
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3 { line-height: 1.45; }
h1 { margin: 14px 0 22px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.035em; }
.article-hero h1 { max-width: 900px; font-size: clamp(34px, 5.4vw, 62px); }
.lead { font-size: 17px; color: #514a43; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button--primary { color: #fff; background: var(--ink); }
.button--orange { color: #fff; background: var(--orange-dark); border-color: var(--orange-dark); }
.button[disabled] { opacity: .45; cursor: not-allowed; }

.hub-visual, .article-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f6efe5;
  box-shadow: 0 24px 60px rgba(61, 47, 34, .12);
}
.hub-visual img, .article-visual img { display: block; width: 100%; height: auto; }
.hub-visual figcaption, .article-visual figcaption { padding: 12px 16px; color: var(--muted); background: var(--panel); font-size: 12px; }
.article-visual { max-width: var(--max); margin: -32px auto 62px; }
.route-picker { padding: 0 22px 72px; }
.route-picker__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.route-picker a { padding: 20px; text-decoration: none; border-right: 1px solid var(--line); }
.route-picker a:last-child { border: 0; }
.route-picker b, .route-picker span { display: block; }
.route-picker b { font-family: "Yu Mincho", serif; font-size: 18px; }
.route-picker span { margin-top: 5px; color: var(--orange-dark); font-size: 12px; font-weight: 800; }

.workbench {
  min-height: 420px;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #d9cebf;
  background: linear-gradient(145deg, #e9dfd1, #f8f1e8);
  box-shadow: 0 24px 60px rgba(61, 47, 34, .12);
}
.workbench::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 64px, rgba(102, 76, 53, .035) 64px 65px); }
.paper-card {
  position: absolute;
  width: 58%;
  min-height: 120px;
  padding: 22px;
  border: 1px solid rgba(85, 65, 46, .2);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 14px 25px rgba(67, 49, 34, .13);
}
.paper-card b { display: block; font-family: "Yu Mincho", serif; font-size: 20px; }
.paper-card span { color: var(--muted); font-size: 12px; }
.paper-card--a { left: 8%; top: 10%; transform: rotate(-5deg); }
.paper-card--b { right: 7%; top: 36%; transform: rotate(4deg); }
.paper-card--c { left: 14%; bottom: 8%; transform: rotate(-1deg); }
.tape { width: 48px; height: 18px; position: absolute; top: -9px; left: calc(50% - 24px); background: rgba(215, 172, 105, .48); }

.section { padding: 76px 22px; }
.section--cream { background: var(--cream); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; align-items: end; margin-bottom: 30px; }
.section h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(30px, 4vw, 48px); }
.section__head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(68, 50, 34, .08); }
.card__tag { font-size: 11px; font-weight: 800; color: var(--orange); letter-spacing: .12em; }
.card h3 { margin: 16px 0 10px; font-family: "Yu Mincho", serif; font-size: 23px; }
.card p { color: var(--muted); font-size: 14px; }
.card__more { margin-top: auto; font-weight: 800; font-size: 13px; }

.reading { max-width: var(--reading); margin: 0 auto; padding: 0 22px 88px; }
.reading h2 { margin: 70px 0 18px; font-family: "Yu Mincho", serif; font-size: clamp(27px, 3.7vw, 38px); }
.reading h3 { margin-top: 38px; font-size: 20px; }
.reading p, .reading li { font-size: 16px; }
.reading ul, .reading ol { padding-left: 1.4em; }
.article-section { scroll-margin-top: 92px; }
.article-summary { margin: 0 0 28px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff8ed; }
.article-summary h2 { margin: 8px 0 14px; font-size: 28px; }
.article-summary ul { margin: 0; }
.article-summary li + li { margin-top: 7px; }
.toc { margin: 28px 0 42px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.toc strong { display: block; margin-bottom: 8px; font-family: "Yu Mincho", serif; font-size: 20px; }
.toc ol { margin: 0; columns: 2; column-gap: 42px; }
.toc li { break-inside: avoid; font-size: 14px; }
.toc a { text-underline-offset: 3px; }
.factbox, .decision-box, .note-box {
  margin: 30px 0;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.factbox { border-left: 5px solid var(--blue); }
.decision-box { border-left: 5px solid var(--orange); }
.note-box { border-left: 5px solid var(--green); }
.factbox strong, .decision-box strong, .note-box strong { display: block; margin-bottom: 8px; }
.source-list { font-size: 13px; color: var(--muted); }
.source-list a { color: var(--blue); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.inline-cta { margin: 54px 0; padding: 34px; border-radius: 20px; background: #28241f; color: #fff; }
.inline-cta p { color: #ded4c8; }

.flow-diagram, .time-ring { display: grid; gap: 8px; margin: 30px 0; }
.flow-diagram { grid-template-columns: repeat(9, auto); align-items: center; }
.flow-diagram span { min-height: 76px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; font-size: 13px; }
.flow-diagram span b { display: block; color: var(--orange); font-size: 11px; }
.flow-diagram i { color: var(--orange); font-style: normal; text-align: center; }
.copy-template { margin: 28px 0; padding: 26px; overflow-x: auto; border: 1px solid #463d34; border-radius: 14px; background: #28241f; color: #f9f3ea; }
.copy-template code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; line-height: 2; }
.step-map { display: grid; grid-template-columns: repeat(5, 1fr); margin: 30px 0; }
.step-map div { min-height: 120px; padding: 16px; border: 1px solid var(--line); border-right: 0; background: var(--panel); }
.step-map div:first-child { border-radius: 14px 0 0 14px; }
.step-map div:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.step-map b, .step-map span { display: block; }
.step-map b { color: var(--orange); font-size: 12px; }
.step-map span { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0; }
.traffic { min-height: 190px; padding: 22px; border-radius: 14px; color: #fff; }
.traffic b, .traffic span { display: block; }
.traffic b { font-size: 12px; letter-spacing: .16em; }
.traffic span { margin-top: 20px; font-size: 14px; line-height: 1.75; }
.traffic--red { background: #8b443f; }
.traffic--yellow { background: #8b6b32; }
.traffic--green { background: #466957; }
.time-ring { grid-template-columns: repeat(3, 1fr); }
.time-ring div { padding: 24px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.time-ring b, .time-ring span { display: block; }
.time-ring b { color: var(--orange-dark); font-family: "Yu Mincho", serif; font-size: 28px; }
.time-ring span { font-size: 13px; }
.idea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 30px 0; }
.idea-grid div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.idea-grid b, .idea-grid span { display: block; }
.idea-grid b { color: var(--orange); font-size: 11px; }
.idea-grid span { margin-top: 7px; font-weight: 700; }
.check-list { padding: 0; list-style: none; counter-reset: checklist; }
.check-list li { position: relative; margin: 9px 0; padding: 14px 14px 14px 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.check-list li::before { content: "✓"; position: absolute; left: 17px; color: var(--green); font-weight: 900; }
.check-sheet { display: grid; gap: 9px; margin: 28px 0; }
.check-sheet label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.check-sheet input { width: 19px; height: 19px; margin-top: 5px; accent-color: var(--green); flex: 0 0 auto; }
.compare-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 28px 0; }
.compare-table div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.compare-table b, .compare-table span { display: block; }
.compare-table b { color: var(--orange-dark); font-size: 14px; }
.compare-table span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq-item summary { padding: 18px 46px 18px 18px; cursor: pointer; font-weight: 800; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 14px; color: var(--orange); font-size: 25px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.quiz-shell { max-width: 780px; margin: 0 auto; padding: 70px 22px 100px; }
.quiz-intro { text-align: center; }
.quiz-intro h1 { font-size: clamp(40px, 7vw, 68px); }
.quiz-meta { display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 13px; }
.quiz-card { margin-top: 34px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 20px 50px rgba(57, 43, 30, .08); }
.progress { height: 6px; border-radius: 99px; overflow: hidden; background: #e7dfd4; }
.progress > span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .25s ease; }
.question-count { margin-top: 20px; font-size: 12px; color: var(--orange); font-weight: 800; letter-spacing: .12em; }
.question-title { margin: 10px 0 24px; font-family: "Yu Mincho", serif; font-size: clamp(25px, 4vw, 34px); }
.answers { display: grid; gap: 10px; }
.answer {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.answer:hover, .answer:focus-visible { border-color: var(--orange); background: #fff8ef; }
.quiz-result { display: none; }
.quiz-result.is-visible { display: block; }
.quiz-question.is-hidden, .quiz-intro.is-hidden { display: none; }
.result-label { color: var(--orange); font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.result-title { margin: 8px 0; font-family: "Yu Mincho", serif; font-size: clamp(34px, 5vw, 52px); }
.result-route { display: grid; gap: 12px; margin: 28px 0; }
.route-card { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.route-card small { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-box { margin-top: 22px; padding: 20px; border: 1px solid #cfc3b4; border-radius: 12px; background: #f8f3eb; }
.pr-label { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); padding: 42px 22px; color: var(--muted); font-size: 12px; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }

@media (max-width: 820px) {
  .hero, .section__head { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .workbench { min-height: 360px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .route-picker__inner { grid-template-columns: repeat(2, 1fr); }
  .route-picker a:nth-child(2) { border-right: 0; }
  .route-picker a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-diagram i { transform: rotate(90deg); }
  .step-map { grid-template-columns: 1fr; }
  .step-map div, .step-map div:last-child { border: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
  .step-map div:first-child { border-radius: 14px 14px 0 0; }
  .step-map div:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 14px 14px; }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-header__inner { min-height: 64px; }
  .hero, .article-hero { padding-top: 54px; }
  .grid { grid-template-columns: 1fr; }
  .article-visual { margin: -26px 14px 46px; border-radius: 16px; }
  .traffic-grid, .time-ring, .idea-grid { grid-template-columns: 1fr; }
  .compare-table { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .quiz-card { padding: 24px 18px; }
  .site-footer__inner { flex-direction: column; }
}
