:root {
  color-scheme: light;
  --navy-950: #061329;
  --navy-900: #0a1d3f;
  --navy-800: #102c59;
  --navy-700: #1a467f;
  --ink: #182130;
  --muted: #667085;
  --line: rgba(14, 36, 70, 0.13);
  --paper: #f7f8f9;
  --silver: #e4e7ea;
  --gold: #efb64c;
  --gold-soft: #fff2cf;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(4, 18, 42, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-900);
}
.skip-link:focus { transform: translateY(0); }

.portal-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(239, 182, 76, 0.18), transparent 23rem),
    radial-gradient(circle at 14% 83%, rgba(54, 112, 188, 0.24), transparent 30rem),
    linear-gradient(145deg, #061329 0%, #0b2148 58%, #102f5e 100%);
  color: #eef4ff;
}

.portal-shell,
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.portal-header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.portal-brand,
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff7d9, #f1b84b 42%, #ac6a14 100%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 0 28px rgba(239,182,76,.34);
}

.portal-kicker,
.eyebrow {
  margin: 0;
  color: #aabbd6;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portal-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 56px;
  padding: 84px 0 46px;
}

.portal-intro h1,
.hero-copy h1,
.section-title {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  letter-spacing: .025em;
}

.portal-intro h1 { font-size: clamp(2.45rem, 5vw, 5rem); line-height: 1.15; }
.portal-intro p:last-child { max-width: 38rem; margin: 0; color: #c6d3e8; font-size: 1.05rem; }

.resource-label {
  margin: 0 0 18px;
  color: #b4c4dd;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .1em;
}

.portal-grid { padding-bottom: 100px; }

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 32px;
  background: rgba(251, 253, 255, .96);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0,0,0,.28);
}

.product-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: 8%;
  top: 8%;
  border: 1px solid rgba(239,182,76,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(239,182,76,.055), 0 0 0 78px rgba(239,182,76,.03);
  pointer-events: none;
}

.product-image {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  background: #cfd4d9;
}
.product-image picture,
.desktop-shot picture,
.mobile-shot picture { display: block; width: 100%; height: 100%; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.product-image figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(6,19,41,.76);
  color: #eef4ff;
  font-size: .74rem;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.product-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 74px);
}

.product-copy h2 {
  margin: 12px 0 6px;
  color: var(--navy-900);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 500;
  line-height: 1.15;
}
.jp-name { color: #5f6f86; font-size: .92rem; letter-spacing: .08em; }
.product-copy > p { margin: 26px 0; color: #4e596b; }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  padding: 7px 12px;
  border: 1px solid rgba(15, 45, 88, .12);
  border-radius: 999px;
  background: #f0f3f7;
  color: #3d4f68;
  font-size: .8rem;
  font-weight: 650;
}

.card-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.card-link { align-self: flex-start; margin-top: 28px; background: var(--navy-900); color: var(--white); }
.card-link::after { content: "→"; font-size: 1.2rem; }
.card-link:hover,
.button:hover { transform: translateY(-2px); }
.card-link:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.portal-footer { padding: 0 0 32px; color: #aebed8; font-size: .85rem; }

/* Detail page */
.detail-page { background: #f7f8f9; }
.site-header { min-height: 74px; color: var(--navy-900); }
.back-link { color: #536178; font-size: .88rem; text-decoration: none; }
.back-link:hover { color: var(--navy-700); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #4a5870; font-size: .88rem; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(239,182,76,.2), transparent 24rem),
    linear-gradient(140deg, #061329, #0b234b 62%, #143a70);
  color: #f5f8ff;
}
.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -130px;
  top: -170px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(255,255,255,.035), 0 0 0 128px rgba(255,255,255,.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  min-height: 690px;
  padding: 72px 0 86px;
}

.hero-copy h1 { margin-top: 12px; font-size: clamp(2.7rem, 5.1vw, 5.6rem); line-height: 1.05; }
.hero-copy .reading { display: block; margin-top: 12px; color: #aebfda; font-size: .9rem; letter-spacing: .08em; }
.first-step-alert { display: grid; gap: 7px; max-width: 39rem; margin-top: 24px; padding: 17px 19px; border: 2px solid var(--gold); border-radius: 14px; background: rgba(239,182,76,.14); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.first-step-alert strong { color: var(--gold); font-size: .85rem; letter-spacing: .08em; }
.first-step-alert span { font-size: 1rem; font-weight: 700; line-height: 1.65; }
.hero-copy .lead { max-width: 39rem; margin: 30px 0 0; color: #d5dfef; font-size: 1.04rem; line-height: 1.95; }
.notice-line { margin: 18px 0 0; color: #b9c8de; font-size: .9rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button-primary { background: var(--gold); color: #18202d; box-shadow: 0 12px 30px rgba(239,182,76,.22); }
.button-secondary { border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.08); color: #fff; }
.button small { font-size: .72rem; font-weight: 650; opacity: .72; }

.app-visual { position: relative; min-height: 520px; }
.desktop-shot {
  position: absolute;
  inset: 7% 0 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  background: #d6dade;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.desktop-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.mobile-shot {
  position: absolute;
  left: -34px;
  bottom: -30px;
  width: 185px;
  height: 400px;
  overflow: hidden;
  border: 8px solid #e8ebee;
  border-radius: 30px;
  background: #d6dade;
  box-shadow: 0 24px 55px rgba(0,0,0,.36);
  transform: rotate(-3.5deg);
}
.mobile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.visual-note {
  position: absolute;
  right: 0;
  bottom: -58px;
  max-width: 33rem;
  margin: 0;
  color: #b9c8de;
  font-size: .78rem;
  line-height: 1.7;
  text-align: right;
}

.section { padding: 96px 0; }
.section-compact { padding: 78px 0; }
.section-dark { background: var(--navy-950); color: #edf4ff; }
.section-silver { background: linear-gradient(135deg, #e5e8eb, #f9fafb 55%, #e1e5e9); }
.section-head { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 50px; align-items: start; margin-bottom: 48px; }
.section-title { color: var(--navy-900); font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.3; }
.section-dark .section-title { color: #fff; }
.section-head p { margin: 0; color: #526075; }
.section-dark .section-head p { color: #b9c8dc; }
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  color: #946a24;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
}
.section-intro { font-size: 1.02rem; line-height: 2; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.74);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.feature-card h3 { margin: 0 0 10px; color: var(--navy-900); font-size: 1.05rem; }
.feature-card p { margin: 0; color: #5c6879; font-size: .93rem; }

.sound-story {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 20px;
  margin-top: 22px;
}
.story-panel {
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82);
}
.story-history {
  background:
    radial-gradient(circle at 90% 9%, rgba(239,182,76,.22), transparent 10rem),
    var(--navy-900);
  color: #edf3fc;
}
.story-panel h3 {
  margin: 0 0 22px;
  color: var(--navy-900);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 500;
}
.story-history h3 { color: #fff; }
.story-panel > p:not(.panel-label) { margin: 0 0 18px; color: #505e72; }
.story-panel > p:last-of-type { margin-bottom: 0; }
.story-history > p:not(.panel-label) { color: #cbd7e8; }
.research-note {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #f5f0e6;
}
.research-note strong { color: var(--navy-900); font-size: .92rem; }
.research-note p { margin: 7px 0 0; color: #5b6574; font-size: .88rem; }
.references {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1.65fr);
  gap: 42px;
  margin-top: 22px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.62);
}
.references-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.65rem;
  font-weight: 500;
}
.reference-columns { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; }
.reference-columns h4 { margin: 0 0 12px; color: #8c6727; font-size: .82rem; letter-spacing: .08em; }
.reference-columns ul { margin: 0; padding-left: 1.2rem; }
.reference-columns li { margin-bottom: 14px; color: #566174; font-size: .86rem; line-height: 1.8; overflow-wrap: anywhere; }
.reference-columns li:last-child { margin-bottom: 0; }
.reference-columns a { color: var(--navy-700); font-weight: 650; text-underline-offset: 3px; }

.fade-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: rgba(255,255,255,.13); }
.fade-step { min-height: 210px; padding: 30px 25px; background: #0a1d3f; }
.fade-step .time { color: var(--gold); font-family: Georgia, serif; font-size: 2.1rem; }
.fade-step h3 { margin: 10px 0 8px; font-size: 1rem; }
.fade-step p { margin: 0; color: #adbed7; font-size: .87rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  color: #9a6b19;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}
.step::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: rgba(154,107,25,.25); }
.step h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 1rem; }
.step p { margin: 0; color: #5c6879; font-size: .9rem; }

.price-heading { margin-bottom: 34px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
}
.price-card-featured { border-color: rgba(239,182,76,.64); background: rgba(239,182,76,.1); }
.price-count { color: #b9c8dc; font-size: .9rem; font-weight: 700; letter-spacing: .08em; }
.price-card strong { margin-top: 4px; color: #fff; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 500; line-height: 1.2; }
.price-card small { margin-top: 12px; color: #d9e3f0; font-size: .8rem; line-height: 1.6; }
.price-note { margin: 20px 0 0; color: #aebed4; font-size: .82rem; }

.save-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.save-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.save-card h3 { margin: 0 0 14px; color: var(--navy-900); font-size: 1.1rem; }
.save-card ol { margin: 0; padding-left: 1.4rem; color: #5a6678; }

.safety-section { padding-bottom: 0; }
.safety-note {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid #dfc991;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff9eb, #ffffff 72%);
  box-shadow: 0 20px 55px rgba(68, 48, 12, .08);
}
.safety-note h2 { margin: 0 0 18px; color: var(--navy-900); font-family: "Yu Mincho", serif; font-size: clamp(1.55rem, 2.8vw, 2.35rem); font-weight: 500; }
.safety-note p:last-child { max-width: 65rem; margin: 0; color: #4f5d70; }

.disclaimer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 38px;
  padding: 38px;
  border: 1px solid #d4dae2;
  border-radius: var(--radius-lg);
  background: #fff;
}
.disclaimer h2 { margin: 0; color: var(--navy-900); font-family: "Yu Mincho", serif; font-size: 1.55rem; line-height: 1.5; }
.disclaimer p { margin: 0 0 13px; color: #566174; font-size: .9rem; }
.disclaimer p:last-child { margin-bottom: 0; }

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), #16477f);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-panel h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; }
.cta-panel p { margin: 8px 0 0; color: #c7d4e7; }

.site-footer { padding: 42px 0; color: #667085; font-size: .84rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #4f6078; }

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .app-visual { animation: rise .72s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 900px) {
  .portal-intro,
  .product-card,
  .hero-grid,
  .section-head,
  .disclaimer,
  .sound-story,
  .references { grid-template-columns: 1fr; }
  .portal-intro { gap: 22px; padding-top: 52px; }
  .product-image { min-height: 380px; }
  .hero-grid { padding-top: 54px; }
  .app-visual { min-height: 500px; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .reference-columns { grid-template-columns: 1fr; }
  .fade-flow { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portal-shell,
  .site-shell { width: min(100% - 28px, 1180px); }
  .portal-header,
  .site-header { min-height: 66px; }
  .site-nav a:not(.back-link) { display: none; }
  .portal-intro { padding: 42px 0 30px; }
  .portal-intro h1 { font-size: 2.5rem; }
  .product-card { border-radius: 24px; }
  .product-image { min-height: 260px; }
  .product-copy { padding: 30px 24px 34px; }
  .hero-grid { min-height: auto; padding: 50px 0 72px; }
  .hero-copy h1 { font-size: 3rem; }
  .app-visual { min-height: 390px; }
  .desktop-shot { inset: 6% 0 0 8%; }
  .mobile-shot { left: -8px; width: 140px; height: 305px; border-width: 6px; }
  .visual-note { bottom: -58px; max-width: 80%; font-size: .72rem; }
  .section,
  .section-compact { padding: 70px 0; }
  .section-head { margin-bottom: 34px; }
  .fade-flow,
  .steps,
  .save-grid { grid-template-columns: 1fr; }
  .fade-step { min-height: auto; }
  .step::after { right: 35%; }
  .disclaimer { gap: 18px; padding: 26px; }
  .cta-panel { padding: 32px 26px; }
  .button-row .button { width: 100%; }
  .footer-row { flex-direction: column; }
}
