:root {
  --site-max: 1180px;
}

.site-page {
  margin: 0;
  background: var(--color-bg, #f6f1e7);
  color: var(--color-text, #1b2328);
}

.container {
  width: min(calc(100% - 40px), var(--site-max));
  margin-inline: auto;
}

.narrow-container { max-width: 840px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, .96);
  border-bottom: 1px solid var(--color-border, #a7a093);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--color-text, #1b2328);
  text-decoration: none;
  line-height: 1.1;
}

.brand-mark { width: 46px; height: 46px; color: var(--color-primary, #075b61); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand strong { display: block; font-size: 1.08rem; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; color: var(--color-text-muted, #4f585f); font-size: var(--font-size-small); }
.header-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.header-view-settings { flex: 0 0 auto; }
.header-account { flex: 0 0 auto; }
.header-action { flex: 0 0 auto; min-height: 48px; }

html[data-view-size="extra-large"] .header-nav { display: none; }
html[data-view-size="extra-large"] .header-view-settings { margin-left: auto; }
html[data-view-size="extra-large"] .brand small { display: none; }

@media (max-width: 900px) {
  html[data-view-size="extra-large"] .brand-name-full { display: none; }
  html[data-view-size="extra-large"] .brand-name-compact { display: inline; }
  html[data-view-size="extra-large"] .header-action { display: none; }
}

.first-setup-backdrop {
  position: fixed;
  z-index: 9690;
  inset: 0;
  background: rgba(23, 32, 28, .54);
}
.first-setup-backdrop[hidden],
.first-setup[hidden],
.first-setup__page[hidden] { display: none !important; }
body.first-setup-open { overflow: hidden; }
.first-setup {
  position: fixed;
  z-index: 9700;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(43rem, calc(100% - 1rem));
  max-height: calc(100vh - 1rem);
  grid-template-rows: auto auto auto;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 3px solid var(--color-border-strong);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-dialog);
}
.first-setup__header { padding: .9rem 1.15rem .7rem; border-bottom: 2px solid var(--color-border); }
.first-setup__header .eyebrow { margin-bottom: .15rem; }
.first-setup__header h2 { margin: 0; font-size: 1.45rem; line-height: 1.3; }
.first-setup__header > p:last-child { margin: .15rem 0 0; color: var(--color-text-muted); font-size: var(--font-size-small); }
.first-setup__page { min-height: 0; padding: .8rem 1.15rem; overflow: hidden; }
.first-setup__page[data-first-setup-page="main"] { display: grid; gap: .65rem; }
.first-setup__levels { min-width: 0; margin: 0; padding: 0; border: 0; }
.first-setup__levels legend { margin-bottom: .35rem; font-weight: 900; }
.first-setup__level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.first-setup__level { position: relative; min-width: 0; cursor: pointer; }
.first-setup__level input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.first-setup__level > span {
  display: grid;
  position: relative;
  min-height: 6rem;
  align-content: center;
  gap: .15rem;
  padding: .55rem .7rem;
  border: 3px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-surface-soft);
}
.first-setup__level strong,
.first-setup__level small { display: block; }
.first-setup__level strong { font-size: 1rem; }
.first-setup__level small { color: var(--color-text-muted); font-size: .76rem; line-height: 1.45; }
.first-setup__level input:focus-visible + span { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.first-setup__level input:checked + span { color: var(--color-primary-text); border-color: var(--color-border-strong); background: var(--color-primary); box-shadow: inset 0 -4px 0 var(--color-accent); }
.first-setup__level input:checked + span small { color: inherit; }
.first-setup__level input:checked + span strong::after {
  content: " ✓ 選択中";
  display: block;
  margin-top: .12rem;
  font-size: .72rem;
}
.first-setup__visual-open {
  appearance: none;
  display: grid;
  width: 100%;
  min-height: 3rem;
  align-content: center;
  padding: .5rem .75rem;
  border: 2px solid var(--color-border-strong);
  border-radius: 12px;
  color: var(--color-text);
  background: var(--color-surface-strong);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.first-setup__visual-open::after { content: "開く ›"; grid-area: 1 / 2 / 3 / 3; align-self: center; margin-left: .7rem; white-space: nowrap; }
.first-setup__visual-open small { display: block; color: var(--color-text-muted); font-size: .72rem; font-weight: 700; }
.first-setup__privacy { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem .7rem; align-items: start; }
.first-setup__privacy > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-text-muted);
  font-size: .72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}
.first-setup__privacy > a {
  min-height: 2.4rem;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  overflow-wrap: anywhere;
  white-space: normal;
}
.first-setup__analytics { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: .45rem; align-items: start; cursor: pointer; }
.first-setup__analytics input { width: 1.25rem; height: 1.25rem; }
.first-setup__analytics span { min-width: 0; overflow-wrap: anywhere; }
.first-setup__analytics strong,
.first-setup__analytics small { display: block; }
.first-setup__analytics strong { font-size: .78rem; }
.first-setup__analytics small { color: var(--color-text-muted); font-size: .72rem; line-height: 1.35; }
.first-setup__visual-page { display: grid; gap: .8rem; align-content: center; }
.first-setup__visual-page h3 { margin: 0; font-size: 1.25rem; }
.first-setup__visual-page p { margin: .2rem 0 0; line-height: 1.55; }
.first-setup__visual-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.first-setup__visual-options .choice { min-height: 5.4rem; }
.first-setup__visual-page > .button { justify-self: start; }
.first-setup__actions { padding: .65rem 1.15rem; border-top: 2px solid var(--color-border); background: var(--color-surface-soft); border-radius: 0 0 20px 20px; }
.first-setup__actions .button { width: 100%; min-height: 3rem; }

.hero { overflow: hidden; padding-top: clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr); gap: clamp(46px, 7vw, 90px); align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--color-primary-dark, #064b50); font-size: .92rem; font-weight: 800; letter-spacing: .06em; }
.eyebrow span { color: var(--color-highlight-text, #7a2718); }
.eyebrow .eyebrow-copy { color: inherit; }
.hero h1 { margin: 0; font-size: clamp(2.65rem, 5.5vw, 5.25rem); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { display: inline-block; color: var(--color-primary, #075b61); font-size: .9em; white-space: nowrap; }
.hero-title-break { display: none; }
.hero-lead { max-width: 650px; margin: 26px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.85; }
html[data-audience="senior"] .hero h1 span { white-space: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.count-badge { display: inline-grid; min-width: 2.4em; min-height: 1.8em; margin-left: 8px; place-items: center; border-radius: 999px; background: var(--color-primary-soft, #dcece9); color: var(--color-primary-dark, #064b50); font-size: var(--font-size-small); }
.last-project-note { margin: 14px 0 0; color: var(--color-text-muted, #3d4943); font-weight: 700; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--color-text-muted, #4f585f); font-weight: 700; }
.hero-checks li::before { content: '✓'; margin-right: 7px; color: var(--color-primary, #075b61); font-weight: 900; }
.more-introduction-link { display: inline-flex; min-height: 48px; align-items: center; margin-top: 14px; }
.compatibility-alert { margin-top: 18px; padding: 14px; border: 2px solid var(--color-danger, #9b2828); background: #fff; color: var(--color-danger, #9b2828); font-weight: 700; }

.hero-visual { position: relative; max-width: 560px; margin: 0 auto; padding: 16px 28px 36px 8px; }
.sample-back { position: absolute; inset: 38px 8px 8px 42px; transform: rotate(3deg); border: 2px solid #877c6b; background: #d7cfbf; border-radius: 4px; }
.sample-paper { position: relative; min-height: 610px; padding: 34px; transform: rotate(-1.2deg); border: 1px solid #908778; border-radius: 3px; background: #fffefa; box-shadow: 0 24px 70px rgba(54, 45, 30, .2); color: #171a1f; }
.sample-paper header { text-align: center; }
.sample-paper header p { margin: 0 0 3px; font-size: var(--font-size-small); font-weight: 700; }
.sample-paper h2 { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.55rem); letter-spacing: .08em; }
.sample-rule { height: 5px; margin: 15px 0 17px; background: #075b61; }
.sample-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.sample-photo { position: relative; min-height: 220px; overflow: hidden; border: 1px solid #344147; border-radius: 4px; }
.sample-layout .sample-photo { grid-column: 1 / -1; grid-row: 3; min-height: 170px; }
.sample-photo svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.sample-photo span { position: absolute; inset: auto 0 0; padding: 8px; background: rgba(23,26,31,.88); color: #fff; font-size: var(--font-size-small); font-weight: 700; }
.sample-article { padding: 12px; border: 1px solid #aeb4bb; border-radius: 4px; background: #fff; }
.sample-article-main { min-height: 150px; }
.sample-article h3 { margin: 0 0 8px; color: #075b61; font-size: 1rem; }
.sample-article p { margin: 0; font-family: serif; font-size: var(--font-size-small); line-height: 1.72; }
.visual-note { position: absolute; right: 0; bottom: 0; margin: 0; padding: 12px 16px; border: 2px solid var(--color-primary, #075b61); border-radius: 999px; background: #fff; color: var(--color-primary-dark, #064b50); font-size: var(--font-size-small); font-weight: 800; box-shadow: 0 10px 24px rgba(19,67,70,.14); display: none; }

.trust-strip { padding: clamp(30px, 5vw, 58px) 0; background: var(--color-surface-soft, #f1ede3); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trust-card {
  min-width: 0;
  display: grid;
  min-height: 9.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--color-border, #a7a093);
  border-radius: 24px;
  background: var(--color-surface, #fffdf8);
  box-shadow: 0 10px 28px rgba(35, 52, 44, .08);
}
.trust-card--primary { border-color: var(--color-primary, #075b61); background: var(--color-primary-soft, #dcece9); }
.trust-card__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--color-primary, #075b61); color: var(--color-primary-text, #fff); font-size: 1.2rem; font-weight: 900; }
.trust-card strong, .trust-card span { display: block; }
.trust-card strong { color: var(--color-primary-dark, #064b50); font-size: 1.1rem; }
.trust-card div > span { margin-top: 6px; color: var(--color-text-muted, #4f585f); font-size: var(--font-size-small); line-height: 1.6; }
.trust-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.trust-points li { min-width: 0; min-height: 4.75rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; padding: 12px 16px; border: 2px solid var(--color-border, #a7a093); border-radius: 17px; background: var(--color-surface, #fffdf8); box-shadow: 0 8px 22px rgba(35, 52, 44, .07); }
.trust-points strong { min-width: 0; overflow-wrap: anywhere; }
.trust-points__icon { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary-soft, #dcece9); color: var(--color-primary-dark, #064b50); font-weight: 900; }

.section-heading { max-width: 760px; margin: 0 auto clamp(38px, 5vw, 62px); text-align: center; }
.section-heading h2, .accessibility-grid h2, .support-grid h2, .final-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p:last-child, .section-lead { font-size: 1.08rem; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 285px; padding: 30px 26px; overflow: hidden; border: 1px solid var(--color-border, #a7a093); border-radius: 18px; background: var(--color-surface, #fffdf8); }
.feature-number { position: absolute; right: 18px; top: 10px; color: var(--color-primary-decorative, #708a80); font-size: 4.4rem; font-weight: 900; line-height: 1; }
.feature-card h3 { position: relative; margin: 110px 0 12px; font-size: 1.28rem; }
.feature-card p { position: relative; margin: 0; line-height: 1.8; }

.steps-section { background: var(--color-primary-dark, #064b50); color: #fff; }
.steps-section .eyebrow { color: #fff; }
.steps-section h2 { color: #fff; }
.steps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps-list li { position: relative; padding: 26px 22px; border: 2px solid rgba(255,255,255,.75); border-radius: 16px; background: rgba(255,255,255,.07); }
.steps-list li > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #fff; color: var(--color-primary-dark, #064b50); font-size: 1.25rem; font-weight: 900; }
.steps-list strong { display: block; margin-top: 20px; font-size: 1.3rem; }
.steps-list p { margin: 8px 0 0; line-height: 1.75; }
.center-action { margin-top: 38px; text-align: center; }

.accessibility-grid, .support-grid, .final-cta-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.plain-check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.plain-check-list li { padding-left: 34px; position: relative; font-weight: 700; }
.plain-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary, #075b61); font-size: 1.3em; }
.contrast-demo { display: grid; gap: 14px; padding: clamp(24px, 4vw, 44px); border: 3px solid var(--color-text, #1b2328); border-radius: 20px; background: var(--color-surface, #fffdf8); }
.demo-label { margin: 0; font-size: var(--font-size-small); font-weight: 800; }
.demo-example { display: grid; gap: 2px; min-height: 64px; margin: 0; padding: 12px 16px; border: 2px solid var(--color-border-strong, #35433c); border-radius: 10px; background: var(--color-surface-soft, #f8f4eb); }
.demo-example span { color: var(--color-text-muted, #3d4943); font-size: var(--font-size-small); }
.demo-status { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; padding: 16px; border: 2px solid var(--color-success, #1b684d); border-radius: 10px; background: #e9f4ee; color: #164f3c; }
.demo-status > span:first-child { grid-row: 1 / 3; font-size: 1.5rem; font-weight: 900; }
.demo-status > span:last-child { font-size: var(--font-size-small); }

.support-section { background: var(--color-warm-soft, #efe4d2); }
.support-card { padding: 28px; border: 2px solid var(--color-text, #1b2328); border-radius: 16px; background: var(--color-surface, #fffdf8); }
.support-card h3 { margin-top: 0; }
.support-card p { line-height: 1.8; }
.support-card a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--color-primary-dark, #064b50);
  font-weight: 800;
  text-underline-offset: 5px;
}

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--color-border, #a7a093); border-radius: 12px; background: var(--color-surface, #fffdf8); }
.faq-list summary { padding: 20px 56px 20px 22px; cursor: pointer; font-size: 1.05rem; font-weight: 800; }
.faq-list details p { margin: 0; padding: 0 22px 22px; line-height: 1.85; }
.final-cta { background: var(--color-warm-soft, #efe4d2); }
.final-cta-inner { grid-template-columns: 1fr auto; }
.final-cta p { line-height: 1.8; }

.site-footer { padding: 48px 0; background: #17282a; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 60px; }
.site-footer a, .site-footer .link-button { color: #fff; }
.site-footer p { margin: 8px 0; }
.site-footer nav { display: grid; gap: 11px; align-content: start; }
.site-footer nav a,
.site-footer nav .link-button {
  display: flex;
  min-height: 48px;
  align-items: center;
}
.site-footer .footer-grid > div > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35); }
.link-button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-align: left; cursor: pointer; }

.consent-banner { position: fixed; z-index: 100; right: 20px; bottom: 20px; left: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; max-width: 920px; max-height: calc(100vh - 40px); margin: auto; padding: 22px; border: 3px solid var(--color-text, #1b2328); border-radius: 14px; background: #fff; color: #1b2328; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin: 0 0 7px; font-size: 1.15rem; }
.consent-banner p { margin: 0 0 6px; line-height: 1.65; }
.consent-copy { min-width: 0; min-height: 0; overflow-y: auto; }
.consent-actions { display: flex; gap: 10px; align-items: end; }
.consent-actions .button { min-height: 56px; }
.noscript-message { margin: 0; padding: 18px; background: #9b2828; color: #fff; text-align: center; font-weight: 800; }

@media (min-width: 981px) {
  .hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.4rem); }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-actions .button { min-width: 0; padding-inline: 14px; font-size: 1rem; }
  .hero-actions .button:last-child { grid-column: 1 / -1; }
  .hero-actions .count-badge,
  .hero-checks { display: none; }
}

@media (min-width: 981px) and (min-height: 801px) {
  .hero-title-break { display: block; }
}

@media (min-width: 981px) and (max-height: 640px) {
  .hero { min-height: calc(100vh - 81px); padding: 28px 0; }
  .hero-grid { grid-template-columns: minmax(0, 900px); justify-content: center; }
  .hero-copy { text-align: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.35rem); }
  .hero-lead { margin: 14px auto 0; line-height: 1.55; }
  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }
  .hero-actions .button:last-child { grid-column: auto; }
  .last-project-note { margin-top: 8px; }
  .more-introduction-link { margin-top: 4px; }
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-view-settings { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-checks { justify-content: center; }
  .hero-visual { width: min(100%, 590px); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--site-max)); }
  .site-header { position: static; }
  .header-inner { min-height: 70px; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small { display: none; }
  .header-action { display: none; }
  .header-account { display: inline-flex; min-width: 0; padding-inline: .55rem; }
  .hero { display: flex; min-height: calc(100vh - 70px); align-items: center; padding: 18px 0 26px; }
  .hero-copy { text-align: left; }
  .hero .eyebrow { margin-bottom: 6px; }
  .hero h1 { font-size: clamp(1.85rem, 9.4vw, 3rem); line-height: 1.18; letter-spacing: -.025em; }
  .hero h1 br { display: none; }
  .hero-lead { margin-top: 10px; font-size: 1rem; line-height: 1.58; }
  .hero-actions { display: grid; gap: 9px; margin-top: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button--large { min-height: 56px; padding-block: 8px; }
  .last-project-note { margin-top: 8px; font-size: var(--font-size-small); }
  .hero-checks { display: none; }
  .more-introduction-link { margin-top: 6px; }
  .hero-visual { display: none; }
  .feature-grid, .steps-list, .accessibility-grid, .support-grid, .final-cta-inner { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 80px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { min-height: 0; }
  .trust-points { grid-column: 1; grid-template-columns: 1fr; }
  .final-cta-inner .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
  .consent-banner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; right: 10px; bottom: 10px; left: 10px; gap: 12px; max-height: calc(100vh - 20px); padding: 16px; overflow: hidden; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: var(--font-size-small); }
  .header-view-settings { padding-inline: 8px; }
  .more-introduction-link { display: none; }

  html[data-audience="senior"][data-view-size="extra-large"] .header-inner,
  html[data-audience="senior"][data-view-size="extra-large"] .brand,
  html[data-audience="senior"][data-view-size="extra-large"] .hero-grid,
  html[data-audience="senior"][data-view-size="extra-large"] .hero-copy,
  html[data-audience="senior"][data-view-size="extra-large"] .hero-actions {
    min-width: 0;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .brand-mark {
    display: none;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .header-view-settings,
  html[data-audience="senior"][data-view-size="extra-large"] .header-account {
    padding-inline: .35rem;
    font-size: .78rem;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .hero h1 span {
    display: inline;
    white-space: normal;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .hero-actions {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .hero-actions .button {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[data-view-size="extra-large"] .hero-actions .button--large {
    padding-inline: 8px;
    font-size: 1rem;
    line-height: 1.35;
  }

  html[data-view-size="extra-large"] .hero-actions .count-badge {
    display: none;
  }
}

@media (max-width: 360px) {
  .header-inner {
    min-height: 62px;
    padding-block: 6px;
  }
  .brand-mark { display: none; }
  .brand { min-width: 0; }
  .header-view-settings,
  .header-account { padding-inline: .35rem; font-size: .78rem; }
  .brand { justify-content: flex-start; }

  html[data-audience="senior"][data-view-size="extra-large"] .brand-mark {
    display: block;
    flex: 0 0 36px;
  }

  html[data-audience="senior"][data-view-size="extra-large"] .brand > span:last-child {
    display: none;
  }

  .hero { min-height: calc(100vh - 62px); padding-top: 10px; }
}

@media (max-width: 430px) and (max-height: 620px) {
  .first-setup { width: calc(100% - .5rem); max-height: calc(100vh - .5rem); border-radius: 14px; }
  .first-setup__header { padding: .45rem .65rem .35rem; }
  .first-setup__header .eyebrow { display: none; }
  .first-setup__header h2 { font-size: 1.02rem; }
  .first-setup__header > p:last-child { margin-top: 0; font-size: .75rem; line-height: 1.3; }
  .first-setup__page { padding: .45rem .65rem; }
  .first-setup__page[data-first-setup-page="main"] { gap: .38rem; }
  .first-setup__levels legend { margin-bottom: .18rem; font-size: .78rem; line-height: 1.3; }
  .first-setup__level-grid { gap: .35rem; }
  .first-setup__level > span { min-height: 5.9rem; padding: .35rem .42rem; border-width: 2px; }
  .first-setup__level strong { font-size: .78rem; line-height: 1.25; }
  .first-setup__level small { font-size: .75rem; line-height: 1.28; }
  .first-setup__level input:checked + span strong::after { font-size: .68rem; }
  .first-setup__visual-open { min-height: 2.55rem; padding: .32rem .45rem; border-width: 2px; font-size: .75rem; line-height: 1.3; }
  .first-setup__visual-open small { font-size: .75rem; line-height: 1.3; }
  .first-setup__visual-open::after { margin-left: .3rem; font-size: .75rem; }
  .first-setup__privacy { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
  .first-setup__privacy > p { font-size: .75rem; line-height: 1.3; }
  .first-setup__privacy > a { min-height: 1.8rem; font-size: .75rem; }
  .first-setup__analytics { gap: .3rem; }
  .first-setup__analytics input { width: 1rem; height: 1rem; }
  .first-setup__analytics strong { font-size: .75rem; line-height: 1.3; }
  .first-setup__analytics small { font-size: .75rem; line-height: 1.3; }
  .first-setup__visual-page { gap: .55rem; }
  .first-setup__visual-page .eyebrow { margin: 0; font-size: .75rem; }
  .first-setup__visual-page h3 { font-size: .95rem; }
  .first-setup__visual-page p { font-size: .75rem; }
  .first-setup__visual-options { grid-template-columns: 1fr; gap: .4rem; }
  .first-setup__visual-options .choice { min-height: 3.8rem; }
  .first-setup__visual-page > .button { min-height: 2.6rem; font-size: .75rem; }
  .first-setup__actions { padding: .4rem .65rem; border-radius: 0 0 14px 14px; }
  .first-setup__actions .button { min-height: 2.65rem; font-size: .78rem; }

  .hero .eyebrow,
  .hero-lead,
  .last-project-note,
  .more-introduction-link {
    display: none;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: 1.65rem;
  }

  .hero-actions {
    margin-top: 0;
  }
}

/* 横向きの小画面では、説明を削らず左右へ分けて箱内スクロールを避ける。 */
@media (min-width: 431px) and (max-height: 430px) {
  .first-setup {
    width: min(54rem, calc(100% - .5rem));
    max-height: calc(100vh - .5rem);
    border-radius: 14px;
  }
  .first-setup__header { padding: .4rem .7rem .3rem; }
  .first-setup__header .eyebrow { display: none; }
  .first-setup__header h2 { font-size: 1rem; }
  .first-setup__header > p:last-child { margin-top: 0; font-size: .75rem; line-height: 1.25; }
  .first-setup__page { padding: .3rem .7rem; }
  .first-setup__page[data-first-setup-page="main"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: .35rem .7rem;
    align-content: center;
  }
  .first-setup__levels { grid-row: 1 / span 2; }
  .first-setup__levels legend { margin-bottom: .18rem; font-size: .75rem; line-height: 1.25; }
  .first-setup__level-grid { gap: .35rem; }
  .first-setup__level > span { min-height: 5.4rem; padding: .3rem .4rem; border-width: 2px; }
  .first-setup__level strong { font-size: .75rem; line-height: 1.2; }
  .first-setup__level small { font-size: .75rem; line-height: 1.25; }
  .first-setup__level input:checked + span strong::after { font-size: .68rem; }
  .first-setup__visual-open {
    grid-column: 2;
    min-height: 2.45rem;
    padding: .28rem .45rem;
    border-width: 2px;
    font-size: .75rem;
    line-height: 1.25;
  }
  .first-setup__visual-open small,
  .first-setup__visual-open::after { font-size: .75rem; line-height: 1.25; }
  .first-setup__visual-open small { display: none; }
  .first-setup__visual-open::after { margin-left: .3rem; }
  .first-setup__privacy {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: .08rem .4rem;
  }
  .first-setup__privacy > p { grid-column: 1; grid-row: auto; font-size: .75rem; line-height: 1.2; }
  .first-setup__privacy > a { min-height: 1.5rem; grid-column: 1; grid-row: auto; font-size: .75rem; }
  .first-setup__analytics { gap: .3rem; }
  .first-setup__privacy > .first-setup__analytics { grid-column: 1; grid-row: auto; align-self: start; }
  .first-setup__analytics input { width: 1rem; height: 1rem; }
  .first-setup__analytics strong,
  .first-setup__analytics small { font-size: .75rem; line-height: 1.25; }
  .first-setup__visual-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .4rem .7rem; align-items: center; }
  .first-setup__visual-page > div:first-child { grid-column: 1; }
  .first-setup__visual-page .eyebrow { margin: 0; font-size: .75rem; }
  .first-setup__visual-page h3 { font-size: .95rem; }
  .first-setup__visual-page p { font-size: .75rem; line-height: 1.35; }
  .first-setup__visual-options { height: 5rem; grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: .4rem; }
  .first-setup__visual-options .choice { min-height: 4.4rem; gap: .35rem; padding: .35rem .45rem; font-size: .75rem; line-height: 1.25; }
  .first-setup__visual-options .choice input { width: 1rem; height: 1rem; }
  .first-setup__visual-options .choice strong,
  .first-setup__visual-options .choice small { font-size: .75rem; line-height: 1.25; }
  .first-setup__visual-page > .button { min-height: 2.55rem; font-size: .75rem; }
  .first-setup__actions { padding: .35rem .7rem; border-radius: 0 0 14px 14px; }
  .first-setup__actions .button { min-height: 2.55rem; font-size: .78rem; }
}

@media (max-width: 720px) and (max-height: 440px) and (orientation: landscape) {
  .hero {
    min-height: calc(100vh - 70px);
    align-items: flex-start;
    padding: 8px 0;
  }
  .hero .eyebrow,
  .hero-lead,
  .last-project-note,
  .more-introduction-link {
    display: none;
  }
  .hero h1 {
    margin-bottom: 8px;
    font-size: 1.45rem;
    line-height: 1.15;
  }
  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }
  .hero-actions .button--large {
    min-height: 56px;
    padding-inline: 4px;
    font-size: .9rem;
    line-height: 1.3;
  }
  .hero-actions .count-badge { display: none; }
}

@supports (height: 100svh) {
  .first-setup { max-height: calc(100svh - 1rem); }
  @media (max-width: 720px) {
    .hero { min-height: calc(100svh - 70px); }
    .consent-banner { max-height: calc(100svh - 20px); }
  }

  @media (max-width: 360px) {
    .hero { min-height: calc(100svh - 62px); }
  }

  @media (max-width: 430px) and (max-height: 620px) {
    .first-setup { max-height: calc(100svh - .5rem); }
  }

  @media (min-width: 431px) and (max-height: 430px) {
    .first-setup { max-height: calc(100svh - .5rem); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-paper { transform: none; }
}
