/* AIネイティブ経営 診断 ― Human-centered Intelligence 案（2026-11-28）
   アイボリーの地・深緑・セージ・ライム（使う所を絞る）・チャコール。
   見出しの芯は明朝、読む文と操作はゴシック。端末の書体だけを使う（Web フォントは読み込まない）。 */
:root {
  color-scheme: light;
  --paper: #F7F6F0;
  --white: #FFFFFF;
  --green: #173D32;
  --green-hover: #24533F;
  --sage: #A6BBA5;
  --sage-tint: #EDF0E8;
  --lime: #C9F36B;
  --lime-hover: #B7E654;
  --ink: #242824;
  --muted: #4E5D55;
  --line: #DCDFD5;
  --control-border: #7A8B7D;
  --tint: #E9EEE5;
  --b-ink: #4A6610;
  --b-tint: #F2F8E1;
  --on-green: #F7F6F0;
  --on-green-soft: #E6ECE3;
  --radius-l: 24px;
  --radius: 16px;
  --radius-s: 12px;
  --lift: 0 1px 0 rgba(23, 61, 50, .04), 0 12px 28px -20px rgba(23, 61, 50, .35);
  --gutter: clamp(20px, 4vw, 48px);
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.8 var(--sans);
  -webkit-text-size-adjust: 100%;
}

header, main, footer {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 上の帯 */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--green);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.mark { flex: 0 0 auto; width: 36px; height: 20px; }
.mark path { fill: none; stroke-width: 2.6; stroke-linecap: round; }

.header-badge {
  margin: 0;
  padding: 1px 10px;
  border: 1px solid var(--control-border);
  border-radius: 100px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

main { min-height: 72vh; outline: none; }

h1, h2, h3, p { margin-block: 0 1rem; }
/* text-wrap: pretty は外した（2026-11-28：Chromium で幅 400px 前後のときに描画が止まるのを確かめた。折り返しは文節の区切り〈.phrase〉で足りる） */
h1, h2, h3 { color: var(--green); }
h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.4; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; }
h3 { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.55; }

.phrase { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
ul { padding-left: 1.3rem; }
li + li { margin-top: .5rem; }
li::marker { color: var(--sage); }
a { color: var(--green); text-underline-offset: .2em; }
::selection { background: var(--lime); color: var(--green); }

.eyebrow {
  margin-bottom: .5rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ボタン：明るい地では深緑、深緑の帯の上ではライム（文字は深緑） */
button, .btn {
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid var(--control-border);
  border-radius: 100px;
  background: var(--white);
  color: var(--green);
  font: 700 1rem/1.5 var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

button:hover:enabled { background: var(--tint); }

button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-green);
}

button.primary:hover:enabled { border-color: var(--green-hover); background: var(--green-hover); }

.btn, button.primary.lime {
  border-color: var(--green);
  background: var(--lime);
  color: var(--green);
}

.btn:hover, button.primary.lime:hover:enabled { background: var(--lime-hover); }

button:disabled {
  border-color: var(--line);
  background: var(--tint);
  color: var(--muted);
  cursor: default;
}

:where(button, a, input, summary):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.btn {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

/* 押すと進むボタンの小さな矢印（線で描く） */
.start-main, .lime, .question nav .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.start-main::after, .lime::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.8px 1.8px 0 0;
  transform: rotate(45deg);
  content: "";
}

/* 見出しの飾り：細い縦線。明朝で、思想を伝える見出しにだけ使う */
.bar, .section > h2 {
  position: relative;
  padding-left: 18px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .02em;
}

.bar::before, .section > h2::before {
  position: absolute;
  inset: .3em auto .3em 0;
  width: 3px;
  border-radius: 3px;
  background: var(--green);
  content: "";
}

.section { margin-block: 3.25rem; scroll-margin-top: 16px; }
.section > :last-child { margin-bottom: 0; }

/* ───────── 入口 ───────── */
.hc-hero {
  display: grid;
  grid-template-areas: "text" "visual" "start";
  margin-bottom: clamp(36px, 6vw, 80px);
}

.hc-hero-text { grid-area: text; position: relative; z-index: 1; }

.hc-title {
  margin: 0 0 18px;
  color: var(--green);
  font: 600 clamp(2.2rem, 1.15rem + 4.3vw, 3.9rem)/1.32 var(--serif);
  letter-spacing: .02em;
}

.hc-title span { display: block; white-space: nowrap; }

.hc-lead {
  max-width: 26em;
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hc-visual {
  grid-area: visual;
  margin: 18px calc(-1 * var(--gutter)) 6px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hc-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
}

.hc-start { grid-area: start; }
.hc-start .primary { width: 100%; min-height: 56px; }
.hc-duration { margin: 10px 0 0; color: var(--muted); font-size: .875rem; text-align: center; }

/* 輪の図 */
.hc-cycle {
  display: grid;
  gap: 8px 48px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--lift);
}

.hc-cycle-text h2 { font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.5; }
.hc-cycle-text p { max-width: 30em; margin: 0; line-height: 1.9; }

/* 図の箱の縦横比を viewBox（600×250）と同じにし、円は 3 つの列（minmax(0, …)）の幅で描く。
   列は箱の幅を越えないので、どの画面の幅でもカードの内側に収まる。帯の太さも図の幅に合わせて縮む */
.cycle { position: relative; width: 100%; max-width: 560px; aspect-ratio: 600 / 250; margin: 18px auto 6px; }
.cycle-ribbon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }

.cycle-nodes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cycle-nodes li {
  display: flex;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #FFFFFF 0 55%, #F1F2EA 100%);
  box-shadow: 0 0 0 1px rgba(23, 61, 50, .08), 0 10px 20px -14px rgba(23, 61, 50, .5);
  text-align: center;
}
.cycle-nodes svg { width: 24px; height: 24px; margin-bottom: 2px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cycle-nodes .node-2 svg { fill: var(--green); stroke: none; }
.cycle-nodes b { color: var(--green); font-size: 1.1rem; line-height: 1.3; }
.cycle-nodes span { color: var(--muted); font-size: .875rem; line-height: 1.4; white-space: nowrap; }

.bridge {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: var(--sage-tint);
  color: var(--green);
  font-weight: 600;
  line-height: 1.8;
}

/* 診断の中身 */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
  margin-top: clamp(44px, 7vw, 88px);
}

.about-shindan h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.about-shindan > p { max-width: 36em; line-height: 1.9; }
.audience { color: var(--muted); font-size: .9375rem; }
.about-shindan ul { margin-bottom: 0; }

.takeaways {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--lift);
}

.takeaways h2 { margin-bottom: .4rem; font-family: var(--serif); font-weight: 600; }
.takeaways article { padding-block: 16px; border-top: 1px solid var(--line); }
.takeaways article:last-child { padding-bottom: 0; }
.takeaways h3 { margin-bottom: .2rem; }
.takeaways article p { margin: 0; font-size: .9375rem; }
.takeaways .number { display: none; }

.notes ul { max-width: 46em; }

/* 深緑の帯：締めと、下の開始ボタン */
.hc-band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(44px, 7vw, 88px);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 100% 120%, rgba(166, 187, 165, .34) 0 30%, transparent 62%),
    radial-gradient(70% 70% at 82% -30%, rgba(201, 243, 107, .12) 0 40%, transparent 70%),
    var(--green);
  color: var(--on-green);
}

.hc-band h2 {
  margin: 0 0 10px;
  color: var(--on-green);
  font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.4rem)/1.4 var(--serif);
  letter-spacing: .03em;
}

.hc-band h2::after {
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: var(--lime);
  content: "";
}

.hc-band p { margin: 0; color: var(--on-green-soft); font-size: .9375rem; }
.hc-band .lime { min-height: 56px; padding-inline: 32px; }
.hc-band :focus-visible { outline-color: var(--lime); }

/* ───────── 設問（1 画面 1 問） ───────── */
.question {
  max-width: 640px;
  margin: 4px auto 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
}

.progress-label span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-block: 8px 26px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #E2E6DC;
  accent-color: var(--green);
}

progress::-webkit-progress-bar { border-radius: 4px; background: #E2E6DC; }
progress::-webkit-progress-value { border-radius: 4px; background: var(--green); }
progress::-moz-progress-bar { border-radius: 4px; background: var(--green); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; }
.question h1 { margin-bottom: 1rem; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.55; }
.question legend .eyebrow { display: block; margin-bottom: .3rem; }

/* A と B の文：形（記号の A・B と、帯の向き）と色の両方で見分ける */
.statement {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--lift);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.statement.card-a { border-left: 5px solid var(--green); }
.statement.card-b { border-left: 5px solid var(--b-ink); }

.card-letter {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-weight: 700;
}

.card-b .card-letter { border: 2px solid var(--b-ink); background: var(--lime); color: var(--green); }

.question:has(.choice-0 input:checked, .choice-1 input:checked) .card-a { border-color: var(--green); background: #F3F6F0; }
.question:has(.choice-3 input:checked, .choice-4 input:checked) .card-b { border-color: var(--b-ink); background: var(--b-tint); }

.choices { display: grid; gap: 10px; margin-block: 14px; }

.choices label {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--lift);
  cursor: pointer;
  line-height: 1.55;
  transition: border-color .16s ease, background-color .16s ease;
}

.choices label:hover { border-color: var(--control-border); }

.choices label:has(input:checked) {
  border-color: var(--green);
  background: #F3F6F0;
  box-shadow: inset 0 0 0 1px var(--green);
}

.choices label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }

input[type=radio] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--green);
}

/* 5 段の点 */
.scale-choices {
  position: relative;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-block: 10px 4px;
}

.scale-choices::before {
  position: absolute;
  inset: 50% 10% auto;
  height: 1px;
  background: var(--control-border);
  content: "";
}

.scale-choices label, .scale-choices label:has(input:checked), .scale-choices label:hover {
  position: relative;
  min-height: 56px;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.scale-choices input[type=radio] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.scale-choices label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: -2px; border-radius: 10px; }

.choice-dot {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  transition: background-color .16s ease, box-shadow .16s ease;
}

.choice-1 .choice-dot, .choice-3 .choice-dot { width: 30px; height: 30px; }
.choice-2 .choice-dot { width: 22px; height: 22px; border-color: var(--muted); background: var(--white); }
.choice-0 .choice-dot, .choice-1 .choice-dot { border-color: var(--green); background: var(--tint); }
.choice-3 .choice-dot, .choice-4 .choice-dot { border-color: var(--b-ink); background: var(--b-tint); }

.choice-0 input:checked ~ .choice-dot, .choice-1 input:checked ~ .choice-dot { background: var(--green); box-shadow: 0 0 0 4px var(--tint); }
.choice-2 input:checked ~ .choice-dot { border-color: var(--green); background: var(--muted); box-shadow: 0 0 0 4px var(--tint); }
.choice-3 input:checked ~ .choice-dot, .choice-4 input:checked ~ .choice-dot { background: var(--lime); box-shadow: 0 0 0 4px var(--b-tint); }
.scale-choices input:checked ~ .choice-dot::after { position: absolute; inset: 28%; border-radius: 50%; background: var(--paper); content: ""; }
.choice-3 input:checked ~ .choice-dot::after, .choice-4 input:checked ~ .choice-dot::after { background: var(--green); }

.scale-legend {
  display: flex;
  justify-content: space-between;
  margin: 0 2px 14px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
}

.scale-legend .legend-a { color: var(--green); }
.scale-legend .legend-mid { color: var(--muted); font-weight: 600; }
.scale-legend .legend-b { color: var(--b-ink); }
.scale-legend .legend-a::before { content: "◀ "; }
.scale-legend .legend-b::after { content: " ▶"; }

.part-note {
  margin-bottom: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--sage-tint);
  color: var(--green);
  font-size: .9375rem;
}

.select-hint { margin: 1rem 0 .75rem; color: var(--muted); font-size: .875rem; }

.question nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.question nav button { min-width: 7.5em; }
.question details { margin: .65rem 0; }
.question details summary { min-height: 32px; font-size: .9375rem; }
summary { color: var(--green); cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ───────── 結果 ───────── */
.result-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 18px;
}

.result-hero, .shared-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 80% at 100% 110%, rgba(166, 187, 165, .28) 0 30%, transparent 65%),
    var(--green);
  color: var(--on-green);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: clamp(22px, 3.4vw, 44px);
}

.ribbon { position: absolute; z-index: -1; pointer-events: none; }
.ribbon-line { stroke: var(--sage); opacity: .55; }
.result-hero .ribbon { right: -14%; bottom: -20%; width: 85%; opacity: .7; }

.result-hero h1 {
  margin: .3rem 0 .7rem;
  color: var(--on-green);
  font: 600 clamp(2rem, 1.2rem + 3vw, 3.2rem)/1.3 var(--serif);
  letter-spacing: .03em;
}

.result-hero > p:first-of-type {
  margin: 0;
  color: var(--on-green-soft);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.result-hero .catch {
  margin: 0;
  color: var(--on-green);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.75;
}

.result-hero :focus-visible { outline-color: var(--lime); }

.type-art {
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.type-art img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.type-art img[hidden], .has-art .art-fallback { display: none; }
.result-hero > .type-art { width: min(100%, 206px); margin-bottom: 18px; }

.art-fallback {
  position: absolute;
  inset: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10%;
}

.art-fallback i { width: 22%; height: 68%; border: 2px solid var(--green); transform: skewY(-24deg); }
.art-fallback i:nth-child(2) { height: 100%; background: var(--sage); transform: skewY(24deg); }
.art-fallback i:nth-child(3) { height: 44%; }

.at-a-glance {
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--lift);
}

.compact-axes { margin: 0; }
.compact-axes h2, .partner-spotlight h2 { margin-bottom: .65rem; font-size: 1.1rem; }
.compact-axes > h2 { padding-left: 14px; }

.axis { margin-block: 16px; }
.axis h3, .axis-labels { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; }
.axis h3 { margin-bottom: .2rem; }
.axis small { color: var(--green); font-size: .875rem; font-weight: 700; }
.axis-labels { color: var(--muted); font-size: .875rem; }

.meter {
  position: relative;
  height: 6px;
  margin: 8px 8px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #C3D1C2, #DCE7D2);
}

.meter::before { position: absolute; inset: -3px auto -3px 50%; border-left: 1px solid var(--green); content: ""; }

.meter i {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
}

.partner-spotlight { padding-top: 14px; border-top: 1px solid var(--line); }
.partner-spotlight > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }

.partner-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 12px; }
.partner-pair figure { margin: 0; text-align: center; }
.partner-pair .type-art { width: 100%; margin-inline: auto; border: 1px solid var(--line); }
.partner-spotlight .type-art { max-width: 115px; }
.partner-pair h3 { margin: .15rem 0 0; font-size: .95rem; }
.pair-mark { color: var(--green); font-size: .8125rem; font-weight: 700; }
.partner-pair [data-pair-role=you] .pair-mark { border-bottom: 2px solid var(--green); }

.shared-hero { display: flow-root; padding: clamp(22px, 3.4vw, 44px); }
.shared-hero h1, .shared-hero .catch, .shared-hero p { color: var(--on-green); }
.shared-hero h1 { font-family: var(--serif); font-weight: 600; }
.shared-hero > .type-art { float: right; margin: 0 0 16px 24px; }
.shared-hero > p:last-child { margin: 0; padding-top: .75rem; }

/* 持ち帰ること・詳しい内容 */
.take-home {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--sage-tint);
}

.summary-grid, .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.summary-grid article, .mid-cta {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--lift);
}

.summary-grid h3 { margin-bottom: .35rem; font-size: 1rem; }
.summary-grid p { margin: 0; font-size: .9375rem; }
.mid-cta { margin-top: 12px; }
.mid-cta p:last-child { margin: .65rem 0 0; color: var(--muted); font-size: .875rem; }
.mid-cta-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.mid-cta-buttons .btn { flex: 1 1 16rem; }

.two-col > .section { margin: 0; }

.result-details {
  align-self: start;
  margin-block: 10px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--lift);
}

.result-overview + .result-details { margin-top: 24px; }

.result-details > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  list-style: none;
}

.result-details > summary::-webkit-details-marker { display: none; }

.result-details > summary::after {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  color: var(--green);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
}

.result-details[open] > summary::after { content: "−"; }

.result-details summary h2 {
  margin: 0;
  padding-left: 14px;
  font: 700 1rem/1.5 var(--sans);
  letter-spacing: .01em;
}

.details-body { padding: 0 18px 18px; }
.details-body > :last-child { margin-bottom: 0; }

blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--paper);
}

.small-step { color: var(--green); font-size: 1.2rem; font-weight: 700; }
.steps { display: grid; gap: 8px; padding: 0; list-style: none; }

.steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.steps .current { border-color: var(--green); background: var(--tint); }
.steps strong { margin-left: auto; color: var(--green); font-size: .875rem; }

/* この先のご案内：深緑の帯。カードは白、申し込みのボタンはライム */
.guide {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(110% 80% at 100% 115%, rgba(166, 187, 165, .3) 0 30%, transparent 62%),
    var(--green);
  color: var(--on-green-soft);
}

.guide > h2 {
  padding-left: 0;
  color: var(--on-green);
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem);
}

.guide > h2::before { display: none; }
.guide > h2::after { display: block; width: 44px; height: 2px; margin-top: 12px; background: var(--lime); content: ""; }
.guide > p { max-width: 40em; }
.guide :focus-visible { outline-color: var(--lime); }
.guide .guide-card :focus-visible, .guide .guide-mini :focus-visible { outline-color: var(--green); }

.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 18px; }

.guide-card, .guide-mini {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.guide-card { display: flex; flex-direction: column; }
.guide-card.tint { background: var(--paper); }
.guide-card .btn { margin-top: auto; }
.guide-card a:not(.btn), .guide-mini a:not(.btn) { color: var(--green); }
.guide-mini { margin-block: 18px; }
.guide-mini .btn { max-width: 420px; margin-block: 12px; }
.guide-mini .form-note, .guide-mini .privacy p { color: var(--muted); }

.tag {
  align-self: flex-start;
  margin-bottom: .6rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--sage-tint);
  color: var(--green);
  font-size: .8125rem;
  font-weight: 700;
}

.privacy { margin-block: 18px; padding-top: 14px; border-top: 1px solid currentColor; }
.privacy h3 { font-size: 1rem; }
.guide > .privacy h3 { color: var(--on-green); }
.guide > .privacy { border-top-color: rgba(211, 222, 209, .4); }
.form-note, .privacy p, .disclaimer { font-size: .875rem; }
.disclaimer, .form-note, .privacy p { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
textarea { width: 100%; min-height: 180px; font: inherit; }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-grid article { padding: 12px; border-radius: var(--radius); background: var(--white); box-shadow: var(--lift); }
.type-grid .type-art { margin-bottom: 8px; }
.type-grid p, .type-grid strong { margin: 0; font-size: .875rem; }
.type-grid .own { background: var(--tint); box-shadow: inset 0 0 0 2px var(--green); }
.type-grid .partner-card { box-shadow: inset 0 0 0 1px var(--control-border); }
.disclaimer { margin-block: 28px 18px; padding-top: 16px; border-top: 1px solid var(--line); }

footer {
  margin-top: 40px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.footer-disclaimer { max-width: 60em; }
footer .about { max-width: 46em; }
footer .about p { margin-bottom: .5rem; }
footer .about h2 { margin-bottom: .6rem; font-size: 1.05rem; }
footer .contact { margin: 14px 0 0; color: var(--green); }
footer .name { white-space: nowrap; font-weight: 700; }

#status:not(:empty) {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: var(--green);
  color: var(--on-green);
  pointer-events: none;
}

.enter { animation: screen-arrival .2s ease-out; }
@keyframes screen-arrival {
  from { opacity: .7; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ───────── 広い画面 ───────── */
@media (min-width: 880px) {
  .hc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "text visual" "start visual";
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    align-items: end;
  }

  .hc-hero-text { padding-top: clamp(24px, 5vw, 72px); }
  .hc-start { align-self: start; padding-top: 30px; }
  .hc-start .primary { width: auto; min-width: 280px; }
  .hc-duration { text-align: left; }

  .hc-visual {
    align-self: stretch;
    margin: 0 calc(-1 * var(--gutter)) 0 -40px;
    aspect-ratio: 4 / 3;
  }

  .hc-visual img {
    object-position: 50% 55%;
    -webkit-mask-image: radial-gradient(ellipse 78% 74% at 56% 52%, #000 58%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 74% at 56% 52%, #000 58%, transparent 100%);
  }

  .hc-cycle {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "text figure" "bridge bridge";
    align-items: center;
  }

  .hc-cycle-text { grid-area: text; }
  .cycle { grid-area: figure; }
  .bridge { grid-area: bridge; margin-top: 14px; }
}

/* ───────── スマホ ───────── */
@media (max-width: 700px) {
  header { padding-block: 14px 10px; }
  .brand { font-size: .875rem; }
  .intro, .result-overview, .summary-grid, .two-col, .guide-cards { grid-template-columns: 1fr; }
  .section { margin-block: 2.5rem; }
  .question { margin-top: 0; }
  .hc-band { flex-direction: column; align-items: stretch; }
  .hc-band .lime { width: 100%; }
  .two-col { gap: 8px; }
  .result-overview { gap: 12px; }
  .result-overview .result-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 29%); column-gap: 12px; }
  .result-overview .result-hero > p:first-of-type { grid-area: 1 / 1; align-self: end; }
  .result-overview .result-hero h1 { grid-area: 2 / 1; align-self: start; margin-block: .25rem .55rem; }
  .result-overview .result-hero > .type-art { grid-area: 1 / 2 / 3 / 3; align-self: center; margin: 0; }
  .result-overview .result-hero .catch { grid-area: 3 / 1 / 4 / -1; }
  .result-hero .ribbon { right: -12%; bottom: -42%; width: 83%; }
  .shared-hero > .type-art { width: 28%; margin: 0 0 8px 12px; }
  .shared-hero > p:last-child { clear: both; }
  .take-home, .compact-axes { margin: 0; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-nodes b { font-size: 1rem; }
}

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

@media print {
  @page { size: A4; margin: 15mm; }
  body { background: var(--white); font-size: 10pt; }
  header, footer, main { max-width: none; padding-inline: 0; }
  .no-print, button, .form-link, .form-note, .guide-mini > p:first-child, #status, .ribbon, .hc-visual { display: none !important; }
  .section { margin-block: 6mm; }
  .result-overview, .two-col { display: block; }
  .result-hero, .at-a-glance, .take-home { margin-bottom: 4mm; box-shadow: none; }
  .result-hero, .guide { display: flow-root; background: var(--tint); color: var(--ink); }
  .result-hero h1, .result-hero > p:first-of-type, .result-hero .catch, .guide > h2, .guide > p, .guide > .privacy p, .guide > .privacy h3 { color: var(--green); }
  .result-hero > .type-art { float: right; width: 28mm; margin: 0 0 2mm 4mm; }
  .result-details, .summary-grid article, .type-grid article { box-shadow: none; border: 1px solid var(--line); }
  .result-details > summary::after { display: none; }
  .result-details::details-content { content-visibility: visible !important; display: block !important; }
  .result-details:not([open]) > .details-body { display: block !important; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid article, .guide-card, .summary-grid article { break-inside: avoid; }
  * { animation: none !important; print-color-adjust: exact; }
}

/* 見出しの行：読点のあとで優先して折り返す */
.line { display: inline-block; max-width: 100%; }

@media (max-width: 700px) {
  .hc-cycle { padding: 22px 20px; }
  .cycle-nodes svg { width: 20px; height: 20px; }
  .bridge { font-size: .9375rem; }
}
@media (max-width: 700px) { .hc-cycle-text h2 { font-size: 1.3rem; } }

/* 立体の画像：四辺をアイボリーの地へ溶かす（画像の中の造形は切らない） */
.hc-visual img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
@media (min-width: 880px) {
  .hc-visual { aspect-ratio: 3 / 2; align-self: center; margin-left: -24px; }
  .hc-visual img { object-position: 50% 50%; }
}
@media (max-width: 879px) {
  .hc-visual img { object-position: 50% 58%; }
}

/* 結果の上：広い画面では、タイプ（左）と 3 つの軸・相棒（右）を並べ、持ち帰ることをその下に（DOM の順は変えない） */
@media (min-width: 701px) {
  .result-overview > .result-hero { grid-column: 1; grid-row: 1; }
  .result-overview > .at-a-glance { grid-column: 2; grid-row: 1; align-self: stretch; }
  .result-overview > .take-home { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .result-hero h1 { font-size: 1.85rem; }
}

/* 2026-11-28 09:4x オーナーの iPhone の確認を受けて：診断の名前を開始ボタンのすぐ上に（屋号 → 見出し → 受けるもの の順） */
.hc-hero-text { padding-top: 10px; }
.hc-name {
  margin: 4px 0 12px;
  color: var(--green);
  font: 700 1.15rem/1.5 var(--sans);
  letter-spacing: .04em;
  text-align: center;
}
@media (min-width: 880px) {
  .hc-name { text-align: left; }
  .hc-start { padding-top: 34px; }
}
/* 入口の立体の画像：スマホでは画面の端まで広げず、文と同じ左右の余白の内側に収める（縁は地の色へ溶かしたまま） */
@media (max-width: 879px) {
  .hc-visual { margin: 18px 0 6px; }
}

/* ───────── 2026-11-28 10:4x オーナーの iPhone の確認：コントラストの直し ─────────
   1) ライムの面の上の文字は、どの状態でも深緑。
      （前は `.guide a`〈明るい色〉が `.btn`〈深緑〉より強く、案内の中のライムのボタンの文字が白くなっていた）
   2) 深緑の帯の上の文字は、すべて明るい色。帯の中の白いカードの中は濃い色のまま。
      （前は `main > .section .form-note`〈灰色〉が `.guide > .form-note` より強く、注記が深緑の上で灰色になっていた）
   3) 深緑の面の明るいぼかしを弱め、明るい文字がどこでも 4.5:1 以上になるように */
.btn, .btn:link, .btn:visited, .btn:hover, .btn:active, .btn:focus, .btn:focus-visible,
button.primary.lime, button.primary.lime:hover, button.primary.lime:active, button.primary.lime:focus {
  color: var(--green) !important;
  background-color: var(--lime);
  border-color: var(--green);
}
.btn:hover, button.primary.lime:hover:enabled { background-color: var(--lime-hover); }

.guide { color: var(--on-green); }
.guide > h2, .guide > p, .guide > .form-note, .guide > .privacy h3, .guide > .privacy p,
.guide > .kouza-link, .guide > .kouza-link a, .guide > .kouza-link a:visited { color: var(--on-green); }
.guide-card, .guide-mini { color: var(--ink); }
.guide-card p, .guide-card li, .guide-mini > p { color: var(--ink); }
.guide-mini .form-note, .guide-mini .privacy p { color: var(--muted); }
.guide-mini .privacy h3 { color: var(--green); }

/* 小さな文字のリンク（入門講座の開催のお知らせ）。押せる高さは 44px を確保し、見た目は控えめに */
.kouza-link { margin: 12px 0 0; font-size: .9375rem; line-height: 1.7; }
.kouza-link a { display: inline-block; min-height: 44px; padding-block: 10px; text-decoration: underline; text-underline-offset: .25em; }
.mid-cta .kouza-link a, .mid-cta .kouza-link a:visited { color: var(--green); }
.mid-cta .kouza-link { margin-top: 4px; }

/* 1 枚になった案内のカードは、読みやすい幅で */
.guide-cards { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* 深緑の面のぼかしを弱める（明るい文字のコントラストを保つ） */
.hc-band {
  background:
    radial-gradient(120% 90% at 100% 120%, rgba(166, 187, 165, .2) 0 30%, transparent 62%),
    var(--green);
}
.result-hero, .shared-hero {
  background:
    radial-gradient(90% 80% at 100% 110%, rgba(166, 187, 165, .18) 0 30%, transparent 65%),
    var(--green);
}
.guide {
  background:
    radial-gradient(110% 80% at 100% 115%, rgba(166, 187, 165, .18) 0 30%, transparent 62%),
    var(--green);
}
.result-hero > p:first-of-type, .hc-band p { color: var(--on-green-soft); }
@media print {
  .guide, .result-hero, .shared-hero, .hc-band { background: var(--tint) !important; color: var(--ink) !important; }
  .guide > h2, .guide > p, .guide > .form-note, .guide > .privacy h3, .guide > .privacy p, .result-hero h1, .result-hero p { color: var(--green) !important; }
}
