:root {
  --ink: #092536;
  --muted: #5d747e;
  --green: #08a77b;
  --green-dark: #08775f;
  --mint: #eafff7;
  --line: #d7e8e5;
  --paper: #ffffff;
  --bg: #edf4f4;
  --yellow: #fff4c7;
  --pink: #fff0ed;
  --shadow: 0 22px 60px rgba(9, 37, 54, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0, #f8fffd 0, var(--bg) 520px);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
.panel h1[tabindex="-1"]:focus, .panel h2[tabindex="-1"]:focus { outline: none; }

.site-header {
  width: min(100% - 32px, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 18px 16px 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #08c77b, #72dfc2);
  box-shadow: 0 8px 20px rgba(8, 167, 123, .18);
}
.header-line-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #06c755;
  border-radius: 999px;
  color: #058b3b;
  background: #fff;
  box-shadow: 0 7px 18px rgba(6, 199, 85, .12);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.header-line-button:hover, .header-line-button:focus-visible { color: #fff; background: #06c755; }

.shell { width: min(100% - 24px, 520px); margin: 8px auto 50px; }
.panel {
  min-height: 660px;
  padding: clamp(24px, 7vw, 42px);
  border: 1px solid rgba(215, 232, 229, .95);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.eyebrow, .result-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid #a1dfcf;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}
h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 10vw, 54px);
  line-height: 1.22;
  letter-spacing: -.055em;
}
h1 em { color: var(--green); font-style: normal; }
.lead { margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.value-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #b9e6d9;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fffc, #eef8ff);
}
.value-card strong { font-size: 16px; }
.value-card ul { margin: 10px 0 0; padding-left: 22px; color: #49646f; }
.value-card li + li { margin-top: 5px; }
.primary-button, .line-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(8, 167, 123, .22);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.primary-button:hover, .primary-button:focus-visible { background: #07946e; }
.microcopy { margin: 12px auto 0; color: #82949b; text-align: center; font-size: 12px; }

.question-top { display: flex; align-items: center; justify-content: space-between; color: #6f858e; font-size: 13px; font-weight: 900; }
.back-button { padding: 8px 0; border: 0; color: var(--green-dark); background: transparent; font-weight: 900; cursor: pointer; }
.back-button:disabled { visibility: hidden; }
.progress { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #e1efec; }
.progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.question-kicker { margin: 28px 0 4px; color: var(--green-dark); font-size: 12px; font-weight: 900; }
.question-panel h2 { margin: 0 0 20px; font-size: clamp(27px, 8vw, 38px); line-height: 1.3; letter-spacing: -.045em; }
.choices { display: grid; gap: 10px; }
.choice {
  min-height: 60px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.choice:hover, .choice:focus-visible { border-color: #28b88f; background: #f5fffb; }
.choice.is-selected { border-color: #12af82; background: var(--mint); box-shadow: 0 0 0 3px rgba(18, 175, 130, .10); transform: translateY(-1px); }
.question-tip { margin: 22px 0 0; padding: 14px 16px; border-radius: 15px; color: #6d5b19; background: var(--yellow); font-size: 13px; }

.result-panel {
  --result-a: #08a77b;
  --result-b: #60d9bb;
  padding-bottom: 30px;
  background: linear-gradient(180deg, #ffffff 0, #fbfffd 42%, #ffffff 100%);
}
.result-panel[data-result="video"] { --result-a: #ff7b65; --result-b: #ffb066; }
.result-panel[data-result="audio"] { --result-a: #7558d6; --result-b: #b28cf4; }
.result-panel[data-result="seminar"] { --result-a: #2479d8; --result-b: #63b5ee; }
.result-panel[data-result="webpage"] { --result-a: #0c8fa2; --result-b: #54cfd1; }
.result-panel[data-result="webapp"] { --result-a: #08a77b; --result-b: #50d6ad; }
.result-panel[data-result="automation"] { --result-a: #e08119; --result-b: #f1bc55; }
.result-hero {
  position: relative;
  overflow: hidden;
  padding: 23px;
  border: 1px solid color-mix(in srgb, var(--result-a) 28%, white);
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--result-b) 32%, transparent) 0 90px, transparent 91px),
    linear-gradient(145deg, color-mix(in srgb, var(--result-a) 10%, white), #fff 66%);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--result-a) 16%, transparent);
}
.result-hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.result-hero-top p { margin: 2px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.result-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--result-a), var(--result-b));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--result-a) 30%, transparent);
  font-size: 18px;
  font-weight: 950;
}
.result-label { color: var(--result-a); border-color: color-mix(in srgb, var(--result-a) 38%, white); background: rgba(255,255,255,.75); }
.result-intro { position: relative; z-index: 1; margin: 23px 0 2px; color: var(--muted); font-size: 13px; font-weight: 900; }
.result-hero h2 { position: relative; z-index: 1; margin: 0; color: var(--result-a); font-size: clamp(39px, 11vw, 58px); line-height: 1.14; letter-spacing: -.055em; }
.result-summary { position: relative; z-index: 1; margin: 14px 0 0; color: #415d68; font-size: 15px; }
.spark { position: absolute; z-index: 0; display: block; border-radius: 50%; background: var(--result-b); opacity: .64; }
.spark-one { width: 11px; height: 11px; top: 25px; right: 24px; }
.spark-two { width: 7px; height: 7px; top: 65px; right: 48px; background: #ffd95a; }
.spark-three { width: 9px; height: 9px; top: 91px; right: 21px; background: #ff8e78; }
.reason-card, .action-card, .secondary-card, .line-card { margin-top: 20px; padding: 19px; border-radius: 19px; }
.reason-card { border-left: 5px solid var(--result-a); background: #f4faf8; }
.reason-card strong, .action-card > span, .secondary-card > span, .line-kicker { color: var(--result-a); font-size: 12px; font-weight: 900; }
.reason-card p, .secondary-card p { margin: 7px 0 0; color: #49636d; }
.action-card { border: 1px solid var(--line); background: #fff; }
.action-card h3 { margin: 4px 0 8px; font-size: 20px; line-height: 1.4; }
.action-card ol { margin: 0; padding-left: 22px; color: #49636d; }
.action-card li + li { margin-top: 5px; }
.secondary-card { border: 1px solid color-mix(in srgb, var(--result-a) 15%, white); background: linear-gradient(145deg, color-mix(in srgb, var(--result-a) 8%, white), #f0f8ff); }
.secondary-card p { color: var(--ink); font-size: 17px; font-weight: 900; }
.line-card { border: 1px solid #f3c5ba; background: linear-gradient(145deg, #fff1ed, #fff9f4); box-shadow: 0 12px 28px rgba(183, 82, 58, .09); }
.line-card h3 { margin: 4px 0 4px; font-size: 24px; }
.line-card p { margin: 0; color: #725c59; }
.line-button { margin-top: 16px; background: #06c755; }
.line-button:hover, .line-button:focus-visible { background: #05b84d; }
.restart-button { display: block; margin: 22px auto 0; padding: 10px; border: 0; color: var(--green-dark); background: transparent; font-weight: 900; text-decoration: underline; cursor: pointer; }
.noscript { padding: 15px; border-radius: 12px; color: #7b3f34; background: var(--pink); }

.site-footer { width: min(100% - 32px, 760px); display: flex; justify-content: space-between; gap: 18px; margin: 0 auto; padding: 0 0 35px; color: #71858d; font-size: 11px; }
.site-footer nav { display: flex; gap: 12px; }
.site-footer a { color: inherit; }

@media (max-width: 480px) {
  .site-header { width: min(100% - 16px, 520px); padding: 14px 12px 8px; }
  .header-line-button { min-height: 38px; padding: 7px 12px; font-size: 12px; }
  .shell { width: min(100% - 16px, 520px); margin-top: 2px; }
  .panel { min-height: calc(100svh - 90px); padding: 26px 22px; border-radius: 25px; }
  .question-tip { margin-top: 17px; }
  .choice { min-height: 56px; font-size: 14px; }
  .result-hero { padding: 20px; }
  .site-footer { display: grid; justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; }
}

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