:root {
  --color-base:        #ffffff;
  --color-text:        #000000;
  --color-accent:      #00A3E0;
  --color-logo-accent: #2d6ead;

  --corp-header-height: 56px;

  --bg-pattern: url("/sites/default/files/shared_contents/stationery/feature/manabikata-lab/learning-assessment/img/bg01.png");

  --color-deco-1: #5db3db;
  --color-deco-2: #ed9ea2;
  --color-deco-3: #a288bb;
  --color-deco-4: #a7d18d;
  --color-deco-5: #f5bd55;

  --color-bar-idle:   rgba(0, 163, 224, 0.25);

  --color-line:       rgba(0, 0, 0, 0.22);
  --color-line-weak:  rgba(0, 0, 0, 0.12);
  --color-surface:    rgba(0, 0, 0, 0.04);

  --color-choice-line:     #8c8c8c;
  --color-choice-fill:     #ededed;
  --color-choice-selected: #00a3e0;

  --color-select-fill:   #e5e5e5;
  --color-select-active: #00a2e0;

  --font-heading: "Noto Sans JP", sans-serif;
  --font-body:    "Noto Sans JP", sans-serif;
  --weight-heading: 700;
  --weight-body:    500;
  --weight-bold:    700;

  --size-body:    clamp(1rem, 0.5013vw + 0.8741rem, 1.25rem);
  --size-note:    clamp(0.875rem, 0.5013vw + 0.7491rem, 1.125rem);
  --size-h-large: 20px;
  --size-h-mid:   16px;

  --space-section-inner: 20px;
  --space-section-gap:   50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  color: var(--color-text);
  background-color: var(--color-base);
  background-image: var(--bg-pattern);
  background-repeat: repeat-y;
  background-position: center var(--corp-header-height);
  background-size: 100% auto;
  line-height: 1.8;
  font-size: var(--size-body);
  overflow-x: hidden;
}

body.top-page {
  background-image: url("/sites/default/files/shared_contents/stationery/feature/manabikata-lab/learning-assessment/img/bg02.png"), var(--bg-pattern);
  background-repeat: no-repeat, repeat-y;
  background-position: center var(--corp-header-height), center var(--corp-header-height);
  background-size: 100% auto, 100% auto;
}

@media (min-width: 600px) {
  :root { --corp-header-height: 88px; }
}

.bgm-layer { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body.top-page,
  body.bgm-on { background-image: none; }
  .bgm-layer {
    display: block;
    position: absolute;
    top: var(--corp-header-height);
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .top-page .corp-header,
  .top-page .page,
  .top-page .corp-footer,
  .result-page .corp-header,
  .result-page .page,
  .result-page .corp-footer,
  .loading-page .corp-header,
  .loading-page .page {
    position: relative;
    z-index: 1;
  }
}
.bgm-repeat { position: relative; }
.bgm-tile {
  position: relative;
  width: 100%;
  height: 0;
}
.bgm-tile-bg02 {
  position: absolute;
  left: 0;
}
.bgm-part {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
@keyframes bgm-pop {
  0% { opacity: 0; transform: translate(0, 48px) scale(0); }
  65% { opacity: 1; transform: translate(0, -8px) scale(1.25); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes bgm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bgm-m1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }
@keyframes bgm-m2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-23px, 18px); } }
@keyframes bgm-m3 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(17px, 22px); } 66% { transform: translate(-19px, 10px); } }
@keyframes bgm-m4 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-20px, -17px); } 66% { transform: translate(14px, -24px); } }
@keyframes bgm-m5 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, 13px); } }
@keyframes bgm-m6 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-13px, -28px); } }
@keyframes bgm-mv1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -25px); } }
@keyframes bgm-mv2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, 22px); } }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}

img { max-width: 100%; height: auto; display: block; }

button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

a { color: inherit; }

button:focus, a:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.corp-header {
  display: flex;
  align-items: center;
  height: var(--corp-header-height);
  padding: 0 16px;
  background: #fff;
  border-top: 2px solid #333;
  border-bottom: 1px solid #e6e6e6;
}
.corp-header-logo { display: block; flex-shrink: 0; }
.corp-header-logo img { display: block; height: 18px; width: auto; }
.corp-header-sep {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 18px;
  margin: 0 18px 0 22px;
  background: #b3b3b3;
  transform: rotate(25deg);
}
.corp-header-cat {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.corp-header-cat:hover { text-decoration: underline; }
@media (min-width: 600px) {
  .corp-header { padding: 0 24px; border-top-width: 3px; }
  .corp-header-logo img { height: 26px; }
  .corp-header-sep { height: 26px; margin: 0 34px 0 40px; }
  .corp-header-cat { font-size: 22px; }
}

.corp-footer {
  padding: 24px 16px;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  color: #333;
  text-align: center;
}
.corp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: -4px -8px 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
}
.corp-footer-links li { position: relative; margin: 4px 8px 0; }
.corp-footer-links a,
.corp-footer-links [data-id="cookie_consent_cookie_btn"] {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.corp-footer-links a:hover,
.corp-footer-links [data-id="cookie_consent_cookie_btn"]:hover { text-decoration: underline; }
.cookie_consent-cookie_btn-link { color: #333 !important; }
.corp-footer-copy {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.6;
}
@media (min-width: 600px) {
  .corp-footer { padding: 32px 24px; }
  .corp-footer-links { margin: 0; font-size: 14px; }
  .corp-footer-links li { margin: 0; padding: 0 12px; }
  .corp-footer-links li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    background: #b3b3b3;
  }
  .corp-footer-copy { margin-top: 20px; font-size: 12px; }
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.page-top { max-width: 800px; }

.site-header {
  display: grid;
  justify-items: center;
  padding: 16px 0 8px;
}

.site-logo { display: block; }
.site-header img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 74px;
}

.section { margin-top: var(--space-section-gap); }
.site-header + .section { margin-top: 40px; }

.question-page .site-logo { position: relative; top: -10px; }
@media (min-width: 600px) {
  .question-page .site-logo { top: 0; }
}

.result-page .page { padding-top: 12px; }
.result-page .site-header { padding: 8px 0 4px; }
.result-page .site-header img { height: 59px; }
.result-page .site-header + .section { margin-top: 20px; }

.page-sheet .section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: var(--space-section-inner);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.page-sheet .section + .section { margin-top: var(--space-section-gap); }

.section-title {
  font-size: var(--size-h-large);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-accent);
  margin-bottom: 20px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  line-height: 1.5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 16px rgba(0, 163, 224, 0.4);
}
.btn-primary:active {
  opacity: 0.85;
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 163, 224, 0.35);
}

.btn-secondary {
  background: var(--color-base);
  color: var(--color-text);
  border: 2px solid var(--color-line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-secondary:active {
  background: var(--color-surface);
  transform: translateY(2px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.btn-tertiary {
  background: none;
  color: var(--color-text);
  text-decoration: underline;
  border: 0;
  font-weight: var(--weight-body);
  box-shadow: none;
}

.back-top {
  margin-top: var(--space-section-gap);
  display: grid;
  justify-items: center;
  grid-row-gap: 10px;
  gap: 10px;
}
.back-top .btn {
  width: auto;
  min-width: 0;
  padding: 8px 24px;
  font-size: var(--size-note);
  font-weight: var(--weight-body);
  border: 1px solid var(--color-line);
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-stack {
  display: grid;
  grid-row-gap: 12px;
  gap: 12px;
}
.save-hint {
  margin-top: -4px;
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

.hero {
  display: grid;
  justify-items: center;
  grid-row-gap: 20px;
  gap: 20px;
  text-align: center;
  padding: 0 0 8px;
}

.hero-kv {
  width: 100vw;
  max-width: 800px;
  margin: 30px calc(50% - min(50vw, 400px)) 0;
}
.hero-kv img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy,
.hero-notice-box {
  width: 100%;
  display: grid;
  justify-items: center;
  grid-row-gap: 12px;
  gap: 12px;
  background: #ffffff;
  border-radius: 10px;
  padding: var(--space-section-inner);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nobr { white-space: nowrap; }

@keyframes msd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes msd-fade-out { from { opacity: 1; } to { opacity: 0; } }
.is-fade-in { animation: msd-fade-in 0.25s ease both; }
.is-fade-out { animation: msd-fade-out 0.25s ease both; pointer-events: none; }
@keyframes msd-page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes msd-page-in-replay { from { opacity: 0; } to { opacity: 1; } }
.page > :not(.site-header) { animation: msd-page-in 0.25s ease; }
.page.is-page-replay > :not(.site-header) { animation-name: msd-page-in-replay; }
@media (prefers-reduced-motion: reduce) {
  .is-fade-in,
  .is-fade-out,
  .page > :not(.site-header),
  .page.is-page-replay > :not(.site-header) { animation: none; }
}

@media (min-width: 600px) {
  .br-sp { display: none; }
}

.hero-meta {
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: 16px;
  gap: 16px;
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
}

.hero-notice {
  justify-self: stretch;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: var(--size-note);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}
@media (min-width: 600px) {
  .hero-notice { max-width: none; }
}
.hero-notice li + li { margin-top: 10px; }
.hero-notice-label,
.hero-notice-body { display: block; }
.hero-notice-label { font-weight: var(--weight-bold); }
.hero-notice-body { word-break: keep-all; overflow-wrap: break-word; }

.hero-start { width: 100%; max-width: 360px; font-size: 18px; }

.supervisors {
  width: 100%;
  display: grid;
  justify-items: center;
  grid-row-gap: 14px;
  gap: 14px;
  margin-top: 30px;
  padding: 4px 0 8px;
}

.supervisors-title {
  font-size: var(--size-h-large);
  line-height: 1;
}
.supervisors-title span {
  display: inline-block;
  padding: 8px 22px;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  background: #ffffff;
  box-shadow: 2px 2px 0 rgba(0, 163, 224, 0.25);
  letter-spacing: 0.2em;
}

.supervisors-lead {
  line-height: 1.8;
  text-align: left;
  max-width: 34em;
}

.supervisor-list {
  list-style: none;
  width: 100%;
  display: grid;
  grid-row-gap: 22px;
  gap: 22px;
  padding: 10px 6px 0;
}

.supervisor {
  position: relative;
  display: grid;
  grid-row-gap: 6px;
  gap: 6px;
  text-align: left;
  padding: 22px 18px 18px;
  border-radius: 6px;
  background-color: #ffffff;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(0, 163, 224, 0.12) 27px,
    rgba(0, 163, 224, 0.12) 28px
  );
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.supervisor::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 84px;
  height: 20px;
  margin-left: -42px;
  opacity: 0.8;
  transform: rotate(-4deg);
}
.supervisor.is-diagnosis::before { background: var(--color-deco-1); }
.supervisor.is-study::before     { background: var(--color-deco-5); transform: rotate(3deg); }

.supervisor-role {
  justify-self: start;
  font-size: var(--size-h-mid);
  line-height: 1.5;
  padding: 0 4px;
}
.supervisor.is-diagnosis .supervisor-role { background: linear-gradient(transparent 55%, rgba(93, 179, 219, 0.35) 55%); }
.supervisor.is-study .supervisor-role     { background: linear-gradient(transparent 55%, rgba(245, 189, 85, 0.45) 55%); }

.supervisor-desc {
  font-size: var(--size-note);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

.supervisor-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 18px;
  line-height: 1.5;
}

.supervisor-org {
  font-size: var(--size-note);
}

@media (min-width: 600px) {
  .supervisor-list {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 22px;
    column-gap: 22px;
  }
}

.quiz-instruction {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
  margin-bottom: 12px;
}

.quiz-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  grid-column-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-progress-track {
  height: 6px;
  background: var(--color-surface);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.quiz-progress-num {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 14px;
  white-space: nowrap;
}

.card-stage {
  display: grid;
  grid-row-gap: 14px;
  gap: 14px;
}

.q-card {
  width: 100%;
  background: var(--color-base);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .quiz-progress-fill { transition: none; }
}

.q-text {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 16px;
  gap: 16px;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--size-h-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.q-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: var(--weight-body);
  line-height: 1;
}
.q-num::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  margin-top: -5px;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent var(--color-accent);
}

.choices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-column-gap: 0;
  gap: 0;
  justify-items: center;
}

.choice {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  min-height: 48px;
  padding: 4px 0;
}
.choice:focus { outline: none; }

.choice-mark {
  display: block;
  border-radius: 999px;
  border: 2px solid var(--color-choice-line);
  background: var(--color-choice-fill);
}
.choice[data-value="1"] .choice-mark,
.choice[data-value="5"] .choice-mark { width: 40px; height: 40px; }
.choice[data-value="2"] .choice-mark,
.choice[data-value="4"] .choice-mark { width: 32px; height: 32px; }
.choice[data-value="3"] .choice-mark { width: 24px; height: 24px; }

.choice.is-selected .choice-mark {
  background: var(--color-choice-selected);
  border-color: var(--color-choice-selected);
  border-width: 4px;
  box-shadow: inset 0 0 0 3px var(--color-base);
}

.choice-ends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
}
.choice-ends span:first-child { text-align: left; }
.choice-ends span:last-child { text-align: right; }

.quiz-nav {
  display: grid;
  justify-items: center;
  grid-row-gap: 8px;
  gap: 8px;
  margin-top: 20px;
}
.quiz-nav .btn { max-width: 360px; }
.quiz-nav .btn[disabled],
.result-page .btn-stack .btn[disabled] {
  background: var(--color-surface);
  color: rgba(0, 0, 0, 0.45);
  border-color: var(--color-line-weak);
  box-shadow: none;
  cursor: default;
}
.quiz-nav-hint {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  min-height: 1.8em;
}
@media (max-width: 339px) {
  .quiz-nav-hint { min-height: 3.6em; }
}

.quiz-back {
  margin-top: 16px;
  display: grid;
  justify-items: center;
}
.quiz-back .btn {
  width: auto;
  padding: 8px 24px;
  font-size: var(--size-note);
  font-weight: var(--weight-body);
  border-width: 1px;
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.quiz-back.is-hidden { visibility: hidden; }

.profile-lead {
  line-height: 1.8;
  margin-bottom: 20px;
}

.profile-field { margin-bottom: 20px; }

.profile-label {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--size-h-mid);
  margin-bottom: 8px;
}

.profile-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 8px;
  grid-column-gap: 8px;
  gap: 8px;
}
.profile-choices-age { grid-template-columns: repeat(3, 1fr); }

.profile-choice {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 6px;
  text-align: center;
  border-radius: 10px;
  border: 0;
  background: var(--color-select-fill);
  font-size: 16px;
  line-height: 1.4;
}

.profile-choice.is-selected {
  background: var(--color-select-active);
  color: #ffffff;
  font-weight: var(--weight-bold);
}

.profile-actions { margin-top: 24px; }

.profile-hint {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

.profile-actions .btn[disabled] {
  background: var(--color-surface);
  color: rgba(0, 0, 0, 0.45);
  border-color: var(--color-line-weak);
  box-shadow: none;
  cursor: default;
}

.loading-wrap {
  display: grid;
  justify-items: center;
  grid-row-gap: 28px;
  gap: 28px;
  text-align: center;
}
.loading-page .loading-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  padding: 0 20px;
  transform: translateY(-50%);
}
@media (max-height: 359px) {
  .loading-page .loading-wrap { position: static; transform: none; padding: 24px 0 0; }
}

.loading-message {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 18px;
  min-height: 32px;
}

.loading-track {
  width: 100%;
  max-width: 320px;
  height: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-weak);
  border-radius: 5px;
  overflow: hidden;
}
.loading-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
}

@keyframes loading-progress { from { width: 0%; } to { width: 100%; } }
.loading-fill.is-running { animation-name: loading-progress; animation-timing-function: linear; animation-fill-mode: forwards; }

@media (prefers-reduced-motion: reduce) {
  .loading-fill.is-running { animation: none; width: 100%; }
}

.loading-dots {
  display: grid;
  grid-auto-flow: column;
  grid-column-gap: 10px;
  gap: 10px;
}
.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bar-idle);
}
.loading-dots span.is-on { background: var(--color-accent); }

.result-hero {
  display: grid;
  justify-items: center;
  grid-row-gap: 12px;
  gap: 12px;
  text-align: center;
  padding: 8px 0;
}

.result-catch {
  font-size: var(--size-h-large);
  line-height: 1.5;
}

.result-typebadge {
  display: inline-block;
  font-weight: var(--weight-bold);
  font-size: var(--size-note);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 4px 16px;
}

.result-illust {
  width: 210px;
}

.result-desc { text-align: left; }

.chart {
  display: grid;
  grid-row-gap: 8px;
  gap: 8px;
}

.chart-item {
  display: grid;
  grid-row-gap: 6px;
  gap: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
}

.chart-item.is-active {
  border-color: var(--color-accent);
  background: rgba(0, 163, 224, 0.05);
}
.chart.is-interactive .chart-item.is-active {
  border-color: transparent;
  background: none;
}
.chart-row.is-pointerfocus:focus { outline: none; }
.chart.is-interactive .chart-item.is-open {
  border-color: var(--color-accent);
  background: rgba(0, 163, 224, 0.05);
}

.chart-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 2px;
  border-radius: 8px;
}

.chart-label {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  margin-bottom: 2px;
}

.chart-level {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  margin-left: 8px;
}

.chart-row.is-active .chart-scale { font-weight: var(--weight-bold); }
.chart-row.is-active .chart-scale::before,
.chart-row.is-top .chart-scale::before { content: "★ "; color: var(--color-accent); }
.chart-row.is-top .chart-scale { font-weight: var(--weight-bold); }

.chart-trackwrap { display: block; }

.chart-bandlabels {
  display: block;
  position: relative;
  height: 15px;
  margin: 0 1px;
}

.chart-bandlabel {
  position: absolute;
  top: 0;
  font-size: 10px;
  line-height: 15px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
  white-space: nowrap;
}

.chart-track {
  display: block;
  position: relative;
  height: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-weak);
  border-radius: 11px;
  overflow: hidden;
}

.chart-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 11px;
  background: var(--color-bar-idle);
}

.chart-fill.sc-0 { background: var(--color-deco-1); }
.chart-fill.sc-1 { background: var(--color-deco-2); }
.chart-fill.sc-2 { background: var(--color-deco-3); }
.chart-fill.sc-3 { background: var(--color-deco-4); }
.chart-fill.sc-4 { background: var(--color-deco-5); }

.chart-band {
  position: absolute;
  top: 0;
  height: 100%;
}
.chart-band.is-average { background: rgba(0, 0, 0, 0.06); }

.chart-divider {
  position: absolute;
  top: 0;
  width: 4px;
  margin-left: -2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
}

.chart-legend {
  margin-top: 12px;
  font-size: var(--size-note);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}
.chart-legend p {
  padding-left: 1em;
  text-indent: -1em;
}
.chart-legend p + p { margin-top: 4px; }

.chart-hint {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.chart.is-interactive { padding-top: 22px; grid-row-gap: 22px; gap: 22px; }
.chart.is-interactive .chart-item { position: relative; }
.chart-callout {
  position: absolute;
  top: -22px;
  right: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: var(--weight-bold);
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: default;
  transition: opacity 0.25s;
}
.chart-callout.is-fading { opacity: 0; }
.chart-callout::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--color-accent);
}

button.chart-row {
  border: 1px dashed var(--color-line);
  padding: 10px 10px;
}
button.chart-row:active { background: var(--color-surface); }
.chart.is-interactive .chart-item.is-open button.chart-row { border-color: transparent; }

.chart-note {
  margin: 0;
  font-size: var(--size-note);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

.result-chart {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}
.result-chart[hidden] { display: none; }

.chart.is-single .chart-item {
  border-color: transparent;
  background: none;
  padding: 0;
}

.chart-action {
  justify-self: start;
  width: auto;
  min-height: 44px;
  padding: 8px 20px;
  font-size: var(--size-note);
  font-weight: var(--weight-body);
  border-width: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chart-detail {
  margin: 6px 0 0;
  padding: 14px 10px 16px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--color-line-weak);
}
.chart-detail[hidden] { display: none; }

.chart-detail .method-open {
  grid-template-columns: 26px 1fr 16px;
  grid-column-gap: 8px;
  gap: 8px;
  padding: 12px 10px;
}
.chart-detail .method-num {
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 14px;
}
.chart-detail .method-mark { width: 16px; height: 16px; }
.chart-detail .method-mark::after { left: 1px; top: 3px; }

.notice-detail { margin: 12px 0 0; }

.chart-action[aria-expanded="true"] {
  background: rgba(0, 163, 224, 0.12);
  border-color: var(--color-accent);
}

.advice-head {
  display: grid;
  grid-row-gap: 8px;
  gap: 8px;
  margin-bottom: 20px;
}

.advice-catch { font-size: var(--size-h-large); }

.methods-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--size-h-mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.method-list {
  list-style: none;
  display: grid;
  grid-row-gap: 12px;
  gap: 12px;
}

.method-open {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  grid-column-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid var(--color-line-weak);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  text-align: left;
  cursor: pointer;
}
.method-open:active {
  border-color: var(--color-accent);
  background: rgba(0, 163, 224, 0.06);
}

.method-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 15px;
  text-align: center;
  line-height: 30px;
}

.method-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--size-h-mid);
  line-height: 1.4;
}

.method-mark {
  width: 20px;
  height: 20px;
  position: relative;
}
.method-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.advice-save {
  margin-top: 24px;
}
.advice-save + .save-hint { margin-top: 8px; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px 16px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-body {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}
.modal-close:active { background: var(--color-surface); }

.share-modal .modal-dialog { max-width: 420px; }
.share-modal-body { padding: 24px 20px; }
.share-modal-title {
  font-size: var(--size-h-mid);
  padding-right: 44px;
  line-height: 1.5;
}
.share-modal-note {
  margin-top: 8px;
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
}
.share-list {
  display: grid;
  grid-row-gap: 12px;
  gap: 12px;
  margin-top: 20px;
}

.bookmark-modal .modal-dialog { max-width: 480px; }
.bookmark-modal-body { padding: 24px 20px; }
.bookmark-modal-title {
  font-size: var(--size-h-mid);
  padding-right: 44px;
  line-height: 1.5;
}
.bookmark-modal-lead { margin-top: 8px; }
.bookmark-modal-note,
.bookmark-modal-version {
  margin-top: 8px;
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.7);
}
.bookmark-list { margin-top: 8px; }
.bookmark-device {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-surface);
}
.bookmark-device-title { font-size: var(--size-h-mid); line-height: 1.5; }
.bookmark-group-title {
  margin-top: 12px;
  font-size: var(--size-note);
  font-weight: var(--weight-bold);
}
.bookmark-steps {
  margin-top: 4px;
  padding-left: 1.5em;
  font-size: var(--size-note);
  line-height: 1.7;
}
.bookmark-steps li + li { margin-top: 4px; }

body.modal-open { overflow: hidden; }

.method-modal .modal-dialog { background-color: var(--color-base); }

.method-modal .modal-body {
  max-height: calc(80vh - 64px);
  padding: 20px 16px 24px;
}
.method-modal .modal-body:focus { outline: none; }
.method-modal .modal-body.is-keyfocus:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.method-modal-head {
  padding-right: 40px;
  margin-bottom: 8px;
}

.method-modal-catch {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 6px;
}

.method-modal-title {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-column-gap: 10px;
  gap: 10px;
  align-items: start;
  font-size: var(--size-h-mid);
  line-height: 1.45;
}
.method-modal-title .method-name { line-height: 1.45; }

.method-modal-body > .advice-block:first-child { margin-top: 12px; }

.method-modal-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-column-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--color-line-weak);
  background: #ffffff;
}
.method-modal-nav .btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-size: var(--size-note);
}
.method-modal-nav .btn[disabled] {
  color: rgba(0, 0, 0, 0.35);
  border-color: var(--color-line-weak);
  box-shadow: none;
  cursor: default;
}
.method-modal-count {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
  white-space: nowrap;
}

.note-image {
  width: 100%;
  border: 1px solid var(--color-line-weak);
  border-radius: 8px;
}
.note-image.is-fading {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.note-image.is-fading.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .note-image.is-fading { transition: none; }
}

.item-list {
  display: grid;
  grid-row-gap: 12px;
  gap: 12px;
}

.item-card {
  display: grid;
  grid-row-gap: 10px;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 10px;
  padding: 10px;
}

.item-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-line-weak);
  border-radius: 8px;
}

.item-name {
  font-weight: var(--weight-bold);
}
.item-name .item-link { text-decoration: underline; }
.item-image-link { display: block; }
.item-reason {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.75);
  margin-top: 4px;
}

.steps {
  list-style: none;
  display: grid;
  grid-row-gap: 14px;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-column-gap: 10px;
  gap: 10px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 15px;
  text-align: center;
  line-height: 30px;
}

.step-text { font-weight: var(--weight-bold); }
.step-example {
  font-size: var(--size-note);
  color: rgba(0, 0, 0, 0.75);
  margin-top: 2px;
}

.advice-block { margin-top: 24px; }
.advice-block h4 {
  font-size: var(--size-h-mid);
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid var(--color-accent);
}
.advice-block > p { padding-left: 15px; }
.advice-block .advice-technique { white-space: pre-line; }

.notice {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  display: grid;
  grid-row-gap: 12px;
  gap: 12px;
}

.sitemap-list {
  list-style: none;
  display: grid;
  grid-row-gap: 4px;
  gap: 4px;
}

.sitemap-item {
  border-top: 1px solid var(--color-line-weak);
  padding: 12px 2px;
}
.sitemap-item:first-child { border-top: 0; }

.sitemap-link {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--size-h-mid);
  line-height: 1.5;
}

.sitemap-link.is-disabled {
  display: inline-block;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: line-through;
}

.sitemap-note {
  font-size: var(--size-note);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 2px;
}

.sitemap-note code {
  font-size: 1em;
  background: var(--color-surface);
  border-radius: 4px;
  padding: 1px 5px;
}
