/* TERAS 15問診断。色はブランドの4色だけ（オレンジ約60%・クリーム約30%・緑約10%・文字はスミ黒） */
:root {
  --orange: #F28500;
  --cream: #F5EAD6;
  --green: #2F5D3A;
  --sumi: #2B2B2B;
  --paper: #FBF5EA;
  --line-green: #06C755; /* LINEのボタンだけ、LINEの決まりの色 */
  --radius: 999px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--cream);
  /* クレヨンのようなザラつき（ごく薄く） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .17 0 0 0 0 .17 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--sumi);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--sumi); color: var(--cream); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.top, main, .foot {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; padding-bottom: 6px;
}
.top__logo { width: 36px; height: auto; }
.top__brand { font-weight: 800; letter-spacing: .18em; font-size: 15px; }

.screen { padding: 8px 0 32px; }

/* ---------- はじめ：太陽がのぼる帯（ブランドのしるし） ---------- */
.sunrise {
  position: relative;
  height: 230px;
  margin: 4px 0 18px;
  overflow: hidden;
}
.sunrise__band {
  position: absolute; left: 50%; bottom: -2px;
  border-radius: 999px 999px 0 0;
  border-style: solid; border-bottom: 0;
  transform: translateX(-50%);
}
.sunrise__band--1 { width: 340px; height: 170px; border-width: 26px; border-color: var(--orange); }
.sunrise__band--2 { width: 268px; height: 134px; border-width: 22px; border-color: var(--green); }
.sunrise__band--3 { width: 204px; height: 102px; border-width: 22px; border-color: var(--orange); background: var(--paper); }
.sunrise__chara {
  position: absolute; left: 50%; bottom: 0;
  width: 150px; height: auto;
  transform: translateX(-46%);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both .15s;
}
@keyframes rise { from { transform: translate(-46%, 40px); opacity: 0; } to { transform: translate(-46%, 0); opacity: 1; } }

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 12px;
  border: 2px solid var(--sumi);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 13px; font-weight: 700;
}

.headline {
  margin: 0 0 14px;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
}
.headline em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--orange) 62%, var(--orange) 92%, transparent 92%);
}
.headline--result { font-size: clamp(24px, 7vw, 32px); }

.lead { margin: 0 0 24px; }

.fine { margin: 12px 0 0; font-size: 13px; line-height: 1.7; opacity: .85; }

/* ---------- ボタン（古着プリントのような、ずらした影） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  border: 2.5px solid var(--sumi);
  border-radius: var(--radius);
  font: inherit; font-size: 17px; font-weight: 800;
  color: var(--sumi);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--sumi);
  transition: transform .08s ease, box-shadow .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sumi); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { width: 100%; background: var(--orange); }

.btn--back {
  min-height: 44px; margin-top: 20px;
  padding: 8px 4px;
  border: 0; box-shadow: none; background: none;
  font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn--back:active { transform: none; box-shadow: none; }

/* ---------- 質問 ---------- */
.progress { display: flex; gap: 10px; margin: 8px 0 22px; }
.progress__group { display: flex; gap: 4px; flex: 1; }
.progress__dot {
  flex: 1; height: 8px;
  border: 1.5px solid var(--sumi);
  border-radius: 999px;
  background: var(--paper);
}
.progress__dot.is-done { background: var(--green); border-color: var(--green); }
.progress__dot.is-now { background: var(--orange); }

.q-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.q-count { color: var(--sumi); font-variant-numeric: tabular-nums; }

.q-text {
  min-height: 7.2em;
  margin: 0 0 22px;
  padding: 20px;
  border: 2.5px solid var(--sumi);
  border-radius: 20px;
  background: var(--paper);
  font-size: clamp(19px, 5.4vw, 23px);
  line-height: 1.65;
  font-weight: 800;
}
.q-text:focus { outline: none; }

.answers { display: grid; gap: 14px; }
.btn--answer { width: 100%; min-height: 64px; font-size: 18px; }
.btn--yes { background: var(--orange); }
.btn--no { background: var(--paper); }
.btn--answer[aria-pressed="true"] { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- 結果 ---------- */
.headline--result:focus { outline: none; }

.chart { margin: 4px 0 8px; }
.chart__svg { max-width: 340px; margin: 0 auto; }
.chart__svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__ring { stroke: var(--sumi); stroke-width: 1.2; stroke-opacity: .35; }
.chart__ring--3 { fill: var(--paper); stroke-opacity: .8; stroke-width: 2; }
.chart__ring--2 { fill: rgba(242, 133, 0, .10); }
.chart__ring--1 { fill: rgba(242, 133, 0, .16); }
.chart__axis { stroke: var(--sumi); stroke-opacity: .25; stroke-width: 1.2; stroke-dasharray: 3 4; }
.chart__value { fill: rgba(242, 133, 0, .78); stroke: var(--sumi); stroke-width: 2.5; stroke-linejoin: round; }
.chart__dot { fill: var(--sumi); }
.chart__label { font-family: var(--font); font-size: 14px; font-weight: 800; fill: var(--sumi); }
.chart__cap { margin-top: 6px; text-align: center; font-size: 13px; }

.scores { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; }
.scores__item { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1.5px dashed rgba(43,43,43,.3); }
.scores__item.is-pin { font-weight: 800; color: var(--green); }
.scores__val { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pin {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: end;
  padding: 18px 18px 18px 8px;
  border-radius: 20px;
  background: var(--green);
  color: var(--cream);
}
.pin__chara { width: 108px; height: auto; align-self: end; }
.pin__label { margin: 0; font-size: 12px; font-weight: 700; opacity: .9; line-height: 1.5; }
.pin__name { margin: 2px 0 6px; font-size: 22px; font-weight: 800; line-height: 1.4; }
.pin__desc { margin: 0; font-size: 14px; line-height: 1.75; }

.step {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 2.5px solid var(--sumi);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--orange);
}
.step__label { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--green); }
.step__text { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.6; }
.step__hint { margin: 10px 0 0; font-size: 14px; }
.step__more { margin-top: 12px; font-size: 14px; }
.step__more summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.step__more ul { margin: 6px 0 0; padding-left: 1.2em; }

.line { margin: 28px 0 0; text-align: center; }
.line__lead { margin: 0 0 14px; font-weight: 700; }
.btn--line { width: 100%; background: var(--line-green); color: #fff; }
.line__wait { margin: 0; padding: 14px; border: 2px dashed var(--sumi); border-radius: 16px; font-weight: 700; }
.line__qr { margin-top: 18px; }
.line__qr-img { width: 168px; margin: 0 auto; padding: 8px; background: #fff; border: 2px solid var(--sumi); border-radius: 12px; }
.line__qr-img svg { display: block; width: 100%; height: auto; }
/* スマホではQRコードを出さない（その場でボタンを押せるため） */
@media (max-width: 719px), (pointer: coarse) {
  .line__qr { display: none; }
}

/* ---------- 下の注意書き ---------- */
.foot { padding-top: 20px; padding-bottom: 40px; border-top: 2px solid var(--sumi); font-size: 12.5px; line-height: 1.7; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--sumi); font-weight: 700; }
.foot__copy { opacity: .7; }

/* ---------- プライバシーポリシー ---------- */
.doc h1 { font-size: 26px; line-height: 1.4; margin: 8px 0 16px; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; padding-left: 10px; border-left: 6px solid var(--orange); }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--green); font-weight: 700; }
.todo { background: var(--orange); padding: 0 4px; font-weight: 800; }

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