:root {
  --orange: #ff6824;
  --orange-dark: #d94d16;
  --teal: #27b9a4;
  --teal-dark: #128b7b;
  --ink: #3b2a23;
  --muted: #75645b;
  --cream: #fff6ed;
  --peach: #ffe2cf;
  --white: #fff;
  --line: #ead9cc;
  --green: #06b653;
  --shadow: 0 18px 50px rgba(92, 55, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(100% - 32px, 1060px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.hero {
  position: relative;
  min-height: 680px;
  padding: 42px 0 76px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.78) 0 38px, transparent 39px),
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.65) 0 52px, transparent 53px),
    linear-gradient(165deg, #fffaf3 0 54%, #ffd9be 54% 100%);
}
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 46px; background: var(--cream); clip-path: polygon(0 70%, 20% 25%, 43% 58%, 65% 10%, 84% 48%, 100% 20%, 100% 100%, 0 100%); }
.hero-inner { position: relative; z-index: 1; }
.time-badge { display: inline-flex; align-items: center; min-height: 38px; margin: 0 0 18px; padding: 4px 18px; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.hero h1 { margin: 0; font-size: clamp(32px, 10vw, 66px); line-height: 1.25; letter-spacing: .035em; }
.hero h1 span { color: var(--orange); }
.hero-lead { margin: 18px 0 0; color: var(--muted); font-weight: 700; font-size: clamp(15px, 4vw, 18px); line-height: 1.8; }
.start-button { position: relative; z-index: 5; width: min(100%, 420px); min-height: 66px; margin-top: 22px; border: 0; border-radius: 999px; color: #fff; background: var(--orange); box-shadow: 0 7px 0 var(--orange-dark), 0 15px 24px rgba(217,77,22,.22); font-weight: 900; font-size: 20px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.start-button:hover { transform: translateY(-2px); }
.start-button:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--orange-dark); }
.start-button span { margin-left: 9px; font-size: .8em; }

.family-art { position: relative; width: min(100%, 520px); height: 235px; margin: 22px auto 0; }
.house { position: absolute; left: 50%; bottom: 24px; width: 175px; height: 105px; border: 8px solid #fff; border-radius: 6px; background: #f49a5b; transform: translateX(-50%); box-shadow: 0 7px 20px rgba(94,55,32,.12); }
.house::before { content: ""; position: absolute; left: 50%; top: -66px; width: 135px; height: 135px; border: 8px solid #fff; border-radius: 8px; background: #f49a5b; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.house i { position: absolute; left: 62px; bottom: 0; width: 48px; height: 67px; border: 6px solid #fff; border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--teal); }
.tree { position: absolute; bottom: 24px; width: 30px; height: 72px; border-radius: 18px; background: var(--teal); }
.tree::after { content: ""; position: absolute; left: 12px; top: 50px; width: 6px; height: 45px; background: #9d653f; }
.tree-a { left: 8%; }.tree-b { right: 9%; transform: scale(.8); }
.family-person { position: absolute; bottom: 5px; width: 80px; height: 120px; border: 7px solid #fff; border-radius: 42px 42px 18px 18px; background: var(--teal); box-shadow: 0 6px 16px rgba(75,45,28,.12); }
.family-person::before { content: ""; position: absolute; left: 50%; top: -41px; width: 58px; height: 58px; border: 7px solid #fff; border-radius: 50%; background: #f5be9d; transform: translateX(-50%); }
.family-person i { position: absolute; left: 50%; top: 24px; width: 16px; height: 52px; border-radius: 8px; background: #fff; transform: translateX(-50%); }
.person-left { left: calc(50% - 142px); height: 110px; background: #f28a48; transform: rotate(-3deg); }
.person-center { left: calc(50% - 40px); z-index: 2; height: 132px; background: var(--teal); }
.person-right { right: calc(50% - 142px); height: 112px; background: #f6ba45; transform: rotate(3deg); }
.cloud { position: absolute; top: 16px; width: 72px; height: 25px; border-radius: 30px; background: rgba(255,255,255,.75); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 12px; width: 34px; height: 34px; }.cloud::after { right: 7px; width: 28px; height: 28px; }
.cloud-a { left: 0; }.cloud-b { right: 0; top: 70px; transform: scale(.7); }

.diagnosis-section { width: min(100% - 32px, 760px); margin: -28px auto 0; padding: 0 0 72px; scroll-margin-top: 20px; }
.diagnosis-card, .result-card { position: relative; z-index: 3; padding: 26px 20px 24px; border: 1px solid rgba(219,191,172,.65); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.progress span { height: 7px; border-radius: 8px; background: #eee2d9; }
.progress span.active { background: var(--teal); }
.question-count { margin: 20px 0 4px; color: var(--orange); font-weight: 900; text-align: center; }
.question-area h3 { margin: 0 0 20px; font-size: clamp(20px, 6vw, 28px); line-height: 1.5; text-align: center; outline: 0; }
.answer-list { display: grid; gap: 11px; }
.answer-list button { position: relative; width: 100%; min-height: 58px; padding: 12px 42px 12px 16px; border: 2px solid transparent; border-radius: 15px; color: var(--ink); background: #fff7f0; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.answer-list button::after { content: "›"; position: absolute; top: 50%; right: 18px; color: var(--orange); font-size: 27px; transform: translateY(-53%); }
.answer-list button:hover, .answer-list button:focus-visible { border-color: var(--orange); background: #fff; transform: translateX(2px); outline: 0; }
.answer-list button.selected { border-color: var(--teal); }
.question-nav { margin-top: 14px; min-height: 35px; text-align: center; }
.question-nav button, .restart-button { border: 0; color: var(--muted); background: none; text-decoration: underline; cursor: pointer; }

.result-card { padding: 30px 20px; text-align: center; }
.result-label { display: inline-block; margin: 0 0 10px; padding: 4px 17px; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 900; }
.result-card h2 { margin: 0; color: var(--orange); font-size: clamp(26px, 7vw, 38px); line-height: 1.35; outline: 0; }
.result-lead { margin: 12px auto 18px; max-width: 540px; font-weight: 700; }
.result-visual, .type-visual { display: grid; place-items: center; width: 104px; height: 104px; margin: 14px auto; border-radius: 50%; color: #fff; font-weight: 900; font-size: 46px; background: var(--orange); box-shadow: inset 0 -8px rgba(0,0,0,.08); }
.result-visual.organize, .type-visual.organize { background: var(--teal); }
.result-visual.home, .type-visual.home { background: #f2aa2f; }
.result-advice { margin: 22px 0; padding: 20px; border-radius: 18px; background: #fff5ec; text-align: left; }
.result-advice strong { display: block; color: var(--orange); font-size: 19px; text-align: center; }
.result-advice ul { margin: 12px 0 0; padding-left: 1.4em; }
.result-note { color: var(--muted); font-size: 13px; text-align: left; }
.result-actions { display: grid; gap: 10px; margin-top: 20px; }
.result-actions a { display: grid; place-items: center; min-height: 58px; padding: 10px; border-radius: 999px; color: #fff; font-weight: 900; text-decoration: none; }
.result-phone { background: var(--orange); }.result-line { background: var(--green); }
.restart-button { margin-top: 18px; }

.section { padding: 66px 0; }
.section h2 { margin: 0 0 30px; font-size: clamp(28px, 7vw, 42px); line-height: 1.35; text-align: center; }
.section h2::after { content: ""; display: block; width: 48px; height: 5px; margin: 12px auto 0; border-radius: 5px; background: var(--orange); }
.result-types { background: #ffe5d2; }
.type-grid { display: grid; gap: 15px; }
.type-grid article { padding: 24px 16px; border-radius: 22px; background: #fff; box-shadow: 0 9px 25px rgba(90,55,34,.08); text-align: center; }
.type-grid strong { display: block; font-size: 19px; }
.type-grid p { margin: 3px 0 0; color: var(--muted); font-weight: 700; }
.type-visual { width: 82px; height: 82px; margin-top: 0; font-size: 37px; }

.about { background: var(--cream); }
.about-card { display: grid; gap: 22px; align-items: center; padding: 24px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.about-card p { margin: 0; }
.about-brand { display: grid; justify-items: center; gap: 8px; color: var(--teal-dark); font-size: 23px; }
.about-brand img { width: 78px; }
.qualification-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.qualification-list li { padding: 6px 12px; border: 1px solid #ead4c5; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }

.faq { background: #fff; }
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 15px; background: #fffaf6; overflow: hidden; }
.faq-list summary { position: relative; padding: 17px 48px 17px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 18px; color: var(--orange); font-size: 24px; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.site-footer { padding: 34px 0 104px; color: #fff; background: var(--ink); text-align: center; }
.site-footer p { margin: 0 0 8px; font-size: 13px; }
.mobile-cta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); box-shadow: 0 -5px 22px rgba(62,43,32,.14); }
.mobile-cta a { display: grid; place-items: center; min-height: 52px; border-radius: 12px; color: #fff; font-weight: 900; text-decoration: none; }
.mobile-line { background: var(--green); }.mobile-phone { background: var(--orange); }

:focus-visible { outline: 3px solid #1c6dff; outline-offset: 3px; }

@media (min-width: 700px) {
  .hero { padding-top: 54px; }
  .diagnosis-card, .result-card { padding: 38px 48px 34px; }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .about-card { grid-template-columns: 170px 1fr; padding: 34px; }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .mobile-cta { left: 50%; right: auto; width: 540px; border-radius: 18px 18px 0 0; transform: translateX(-50%); }
}

@media (min-width: 1000px) {
  .mobile-cta { display: none; }
  .site-footer { padding-bottom: 36px; }
}

@media (max-width: 360px) {
  .container, .diagnosis-section { width: min(100% - 20px, 1060px); }
  .hero h1 { font-size: 30px; }
  .hero-lead br { display: none; }
  .family-art { transform: scale(.9); transform-origin: center bottom; }
  .diagnosis-card, .result-card { padding-inline: 14px; border-radius: 20px; }
  .answer-list button { font-size: 14px; }
  .mobile-cta a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
