:root {
  color-scheme: light;
  --ink: #25243c;
  --muted: #625f74;
  --purple: #60509c;
  --line: #e4e1ee;
  --paper: #f7f6fb;
  --dark: #141426;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
fieldset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #aa79de;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: white;
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.brand-bar {
  height: 88px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 400;
  color: #c6c1d9;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid #9682bd;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-family: Georgia, serif;
  font-size: 26px;
  color: #e4d7fd;
  letter-spacing: 0;
}
.brand-bar .quiet {
  color: #e7e0f4;
  border: 1px solid #4a425d;
}
.notebook-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}
.notebook-toolbar p {
  margin: 0;
}
.notebook-toolbar .quiet {
  flex-shrink: 0;
  padding: 6px 10px;
}
.age-hint {
  padding: 12px;
  border-radius: 9px;
  background: #eee8f8;
  color: #38245b;
  font-size: 13px;
}
.age-hint .quiet {
  display: flex;
  margin-top: 4px;
}
.local-feedback:not(:empty) {
  padding: 12px;
  background: #eee8f8;
  border-radius: 9px;
  color: #38245b;
  scroll-margin-block: 70px 100px;
}
.question .field-error,
.field-error {
  grid-column: 1 / -1;
  display: block;
  float: none;
  margin-top: 8px;
  color: #934147;
  font-size: 13px;
  font-weight: 400;
}
[aria-invalid="true"] {
  border-color: #934147 !important;
}
textarea,
input,
[tabindex="-1"] {
  scroll-margin-block: 80px 110px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 850px);
  gap: 50px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 30px;
}
.navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
}
.navigation button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  min-height: 50px;
  font-size: 14px;
}
.navigation button span {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.navigation button[aria-current="page"] {
  background: #eae5f5;
  color: #443075;
  font-weight: 700;
}
.nav-note {
  color: var(--muted);
  margin: 36px 18px;
  font-size: 11px;
}
main {
  min-width: 0;
}
#notice:not(:empty) {
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #eee8f8;
  color: #38245b;
}
.audience {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.audience p {
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.audience label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-weight: 600;
}
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.panel {
  padding-top: 35px;
}
.eyebrow {
  font-size: 10px;
  color: var(--purple);
  letter-spacing: 0.21em;
  font-weight: 700;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.5;
  letter-spacing: 0.015em;
  font-weight: 600;
  margin: 0;
}
h1 em {
  color: var(--purple);
  font-style: normal;
}
h2 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 10px;
}
p {
  margin: 10px 0;
}
.intro {
  font-size: 15px;
  color: var(--muted);
  margin: 15px 0 20px;
}
.privacy-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0 0;
  min-width: 0;
}
.question {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  margin: 0 0 18px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}
.question .number {
  color: var(--purple);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.question small {
  float: right;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}
textarea,
input:not([type="checkbox"]):not([type="file"]) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdc8dc;
  border-radius: 9px;
  background: #fcfbfe;
  color: var(--ink);
  min-height: 46px;
}
textarea {
  resize: vertical;
  min-height: 95px;
  font-size: 14px;
  line-height: 1.7;
}
.question textarea {
  grid-column: 1/-1;
  margin-top: 13px;
}
textarea::placeholder,
input::placeholder {
  color: #78718a;
  font-weight: 400;
}
label {
  display: block;
}
.choices-input {
  padding: 18px 22px;
  border: 1px dashed #c9c1de;
  border-radius: 14px;
  font-size: 13px;
}
summary {
  cursor: pointer;
  min-height: 30px;
  font-weight: 600;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.two-columns label {
  font-size: 13px;
}
.primary,
.secondary,
.quiet,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  min-height: 46px;
  padding: 11px 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}
#consult-form .primary {
  width: 100%;
  margin-top: 13px;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid #cdc6df;
}
.quiet {
  background: transparent;
  color: var(--purple);
  border: 1px solid transparent;
}
.danger {
  background: transparent;
  color: #934147;
  border: 1px solid #ddc2c5;
}
.surface {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  margin: 24px 0;
}
.surface p {
  font-size: 13px;
  color: var(--muted);
}
pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.offer-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 30px;
}
.offer-strip strong {
  font-size: 14px;
}
.offer-strip p {
  font-size: 12px;
  color: var(--muted);
}
.offer-strip a {
  flex-shrink: 0;
}
.file-label {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 10px;
}
input[type="file"] {
  display: block;
  margin-top: 9px;
  max-width: 100%;
  min-height: 44px;
  font-size: 12px;
}
input::file-selector-button {
  font: inherit;
  min-height: 44px;
  padding: 10px 15px;
  background: #f2eef9;
  color: #443075;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-right: 10px;
}
.sample-banner {
  border: 1px solid #d4bf96;
  background: #fff8e9;
  border-radius: 10px;
  color: #655024;
  padding: 14px 18px;
  font-size: 12px;
  margin: 20px 0;
}
.reading-summary {
  background: var(--dark);
  color: white;
  border: none;
}
.reading-summary .eyebrow {
  color: #cfc0eb;
}
.reading-summary p {
  color: #ece7f6;
  font-size: 15px;
}
.reading-summary h2 {
  font-size: 21px;
}
.method {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.method:first-child {
  padding-top: 0;
}
.method:last-child {
  border: 0;
  padding-bottom: 0;
}
.method summary {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.method summary::after {
  content: "＋";
  color: var(--purple);
}
.method[open] summary::after {
  content: "−";
}
.reference {
  background: #f5f2fa;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}
.reading-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.points {
  padding-left: 20px;
  font-size: 14px;
}
.points li {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.choice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.choice dt {
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  margin-top: 15px;
}
.choice dd {
  margin: 3px 0 0;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.progress strong {
  color: var(--purple);
}
.progress progress {
  accent-color: var(--purple);
  height: 8px;
  flex: 1;
  min-width: 100px;
}
.action-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.action-card:last-child {
  border: none;
}
.action-card .day {
  font-size: 10px;
  color: var(--purple);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.action-card[data-status="done"] h3::after {
  content: "　✓";
  color: #267850;
}
.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.status-buttons button {
  min-height: 44px;
  border-radius: 30px;
  padding: 8px 15px;
  border: 1px solid #cec9df;
  background: #fff;
  font-size: 12px;
}
.status-buttons button[aria-pressed="true"] {
  background: #eae4f5;
  border-color: #8370aa;
  color: #402d68;
}
.action-card label {
  font-size: 12px;
  color: var(--muted);
}
.action-card textarea {
  min-height: 75px;
  margin-top: 8px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
#panel-storage form > label {
  font-size: 13px;
  margin: 16px 0;
}
#panel-storage input[type="password"] {
  margin-top: 7px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#saved-status {
  font-weight: 600;
  color: var(--purple);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 25px 0 40px;
  font-size: 11px;
  color: var(--muted);
}
footer p:first-child {
  letter-spacing: 0.08em;
  color: var(--ink);
}
@media (max-width: 760px) {
  .brand-bar {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 12px;
    gap: 9px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 22px;
  }
  .brand-bar .quiet {
    padding: 7px 11px;
    font-size: 11px;
  }
  .layout {
    display: block;
    padding: 20px 20px 90px;
  }
  .navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 5px;
  }
  .navigation button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 6px;
    text-align: center;
    font-size: 11px;
    min-height: 52px;
  }
  .navigation button span {
    font-size: 9px;
  }
  .nav-note {
    display: none;
  }
  .audience {
    gap: 3px;
  }
  .audience label {
    min-height: 44px;
  }
  .audience p {
    font-size: 10px;
  }
  .panel {
    padding-top: 28px;
  }
  h1 {
    font-size: 34px;
  }
  .intro {
    font-size: 14px;
  }
  .question {
    padding: 19px 17px;
    grid-template-columns: 23px 1fr;
    column-gap: 7px;
    font-size: 14px;
  }
  .question small {
    float: none;
    display: block;
    margin-top: 1px;
  }
  .question textarea {
    font-size: 16px;
  }
  .notebook-toolbar {
    justify-content: space-between;
    gap: 4px;
  }
  .surface {
    padding: 22px 19px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .offer-strip {
    display: block;
  }
  .offer-strip a {
    margin-top: 10px;
  }
  input:not([type="checkbox"]),
  textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
