:root {
  --bg: #f7f4ee;
  --ink: #171a1f;
  --muted: #626a72;
  --line: rgba(24, 28, 34, .14);
  --panel: #fffdf8;
  --teal: #1d6f73;
  --gold: #b99249;
  --indigo: #151929;
  --aqua: #8bc6c6;
  --shadow: 0 24px 70px rgba(16, 21, 30, .16);
  --serif: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.ai-akashic-page {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
}
.ai-akashic-page img { max-width: 100%; display: block; }
.ai-akashic-page a { color: inherit; }

.ai-akashic-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(8, 12, 20, .74), rgba(8, 12, 20, 0));
}
.ai-akashic-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}
.ai-akashic-page .brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(139,198,198,.85), rgba(185,146,73,.7));
}
.ai-akashic-page .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.ai-akashic-page .nav a {
  text-decoration: none;
  color: rgba(255,255,255,.9);
}
.ai-akashic-page .nav-cta {
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  padding: 8px 15px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--indigo);
}
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 19, .91) 0%, rgba(8, 11, 19, .72) 38%, rgba(8, 11, 19, .22) 76%),
    linear-gradient(0deg, rgba(8, 11, 19, .75), rgba(8, 11, 19, 0) 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 94px);
  padding-top: 76px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ai-akashic-page h1,
.ai-akashic-page h2,
.ai-akashic-page h3,
.ai-akashic-page p { overflow-wrap: anywhere; }
.nowrap {
  white-space: nowrap;
}
.mobile-title {
  display: none;
}
.ai-akashic-page h1,
.ai-akashic-page h2 {
  font-family: var(--serif);
  letter-spacing: 0;
}
.ai-akashic-page h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.2;
  font-weight: 700;
}
.hero-program-name {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 7px 13px;
  border: 1px solid rgba(185, 146, 73, .62);
  border-radius: 999px;
  color: #f4d897;
  background: rgba(185, 146, 73, .12);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
}
.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 2vw, 19px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.ai-akashic-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  font-family: var(--sans);
  font-size: 15px;
}
.ai-akashic-page .button:hover { transform: translateY(-1px); }
.primary {
  background: var(--gold);
  color: #171510;
}
.ghost {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
}
.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.full { width: 100%; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 1px;
  margin: 46px 0 0;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
}
.hero-meta div {
  padding: 15px 18px;
  background: rgba(8, 12, 20, .34);
}
.hero-meta dt {
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.hero-meta dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.two-column,
.price-layout,
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}
.ai-akashic-page h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.35;
}
.ai-akashic-page h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}
.rich-text p,
.section-heading p,
.price-layout p,
.apply-copy p {
  color: var(--muted);
}
.rich-text p:first-child {
  margin-top: 0;
}

.intro {
  background: var(--panel);
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.realm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.realm-card {
  min-height: 244px;
  padding: 16px 16px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.65);
  overflow: hidden;
}
.realm-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  background: #111722;
}
.realm-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-weight: 700;
}
.realm-card p {
  margin: 14px 0 0;
  color: var(--muted);
}
.realm-card.wide {
  grid-column: span 4;
  min-height: auto;
  display: grid;
  grid-template-columns: 180px 70px 220px 1fr;
  align-items: start;
  gap: 18px;
}
.realm-card.wide img {
  margin-bottom: 0;
}

.flow {
  background: #ece9e0;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(24,28,34,.16);
}
.timeline li:last-child {
  border-bottom: 1px solid rgba(24,28,34,.16);
}
.timeline time {
  color: var(--teal);
  font-weight: 700;
}
.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.mirror {
  background: var(--indigo);
  color: #fff;
}
.mirror-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.mirror h2 {
  color: #fff;
}
.mirror p,
.mirror-list {
  color: rgba(255,255,255,.76);
}
.mirror-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mirror-list li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  position: relative;
}
.mirror-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}
.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pricing {
  background: var(--panel);
}
.value-note {
  background: var(--indigo);
  color: #fff;
  padding: clamp(56px, 7vw, 86px) 0;
}
.value-panel {
  max-width: 900px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.value-panel h2 {
  color: #fff;
}
.value-panel p {
  max-width: 780px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 2vw, 19px);
}
.bonuses {
  background: linear-gradient(180deg, #f7fbfa 0%, #fffdf8 100%);
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bonus-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(16, 21, 30, .08);
}
.bonus-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(197, 158, 78, .28);
  border-radius: 50%;
}
.bonus-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #111722;
  font-weight: 700;
}
.bonus-card h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
}
.bonus-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
}
.author-books {
  background: #f3efe6;
}
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}
.book-list {
  display: grid;
  gap: 18px;
}
.book-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 16px 44px rgba(16, 21, 30, .08);
}
.book-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.book-card:hover,
.book-card:focus-visible {
  border-color: rgba(53, 117, 121, .42);
  box-shadow: 0 20px 54px rgba(16, 21, 30, .12);
  transform: translateY(-2px);
  outline: none;
}
.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(16, 21, 30, .18);
}
.book-label {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.book-card h3,
.profile-card h3 {
  font-family: var(--serif);
  font-size: 24px;
}
.book-card p,
.profile-card p {
  color: var(--muted);
}
.profile-card {
  overflow: hidden;
}
.profile-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 34%;
}
.profile-card > div {
  padding: 24px;
}
.profile-role {
  margin: 8px 0 18px;
  color: var(--ink) !important;
  font-weight: 700;
}
.price-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.price-label {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.price {
  margin: 4px 0 18px;
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 700;
  line-height: 1;
}
.price span {
  font-size: 22px;
}
.price-card ul {
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.ai-akashic-page details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  padding: 18px 22px;
}
.ai-akashic-page summary {
  cursor: pointer;
  font-weight: 700;
}
.ai-akashic-page details p {
  margin: 12px 0 0;
  color: var(--muted);
}
.policy {
  background: #fffdf8;
}
.policy-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 44px rgba(16, 21, 30, .07);
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 34px);
  margin-top: 18px;
}
.policy-grid h3 {
  font-family: var(--serif);
  font-size: 24px;
}
.policy-grid p {
  color: var(--muted);
}

.apply {
  background: #111722;
  color: #fff;
}
.apply h2 {
  color: #fff;
}
.apply-copy p {
  color: rgba(255,255,255,.72);
}
.small-note {
  font-size: 13px;
  color: rgba(255,255,255,.56);
}
.apply-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}
.apply-form label {
  color: #fff;
}
.ai-akashic-page label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.ai-akashic-page input,
.ai-akashic-page select,
.ai-akashic-page textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 13px 14px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font: inherit;
}
.ai-akashic-page textarea {
  resize: vertical;
}
.ai-akashic-page .apply-form select,
.ai-akashic-page .apply-form select option {
  background: #fffdf8 !important;
  color: #111722 !important;
}
.ai-akashic-page .apply-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  padding: 0 46px 0 16px !important;
  line-height: 52px !important;
  background-color: #fffdf8 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #111722 50%),
    linear-gradient(135deg, #111722 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  font-size: 16px !important;
  font-weight: 600;
  overflow: visible;
}

.ai-akashic-page .footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 52px);
  background: #080c14;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.ai-akashic-page .footer p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 12, .72);
}
.modal.is-open {
  display: flex;
}
.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal-panel h2 {
  font-size: 30px;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}
.confirm-body {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  white-space: pre-wrap;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }
  .ai-akashic-page .nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    min-height: 860px;
  }
  .hero-content {
    margin: 0 auto;
    padding-top: 86px;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 11, 19, .74), rgba(8, 11, 19, .88)),
      linear-gradient(90deg, rgba(8, 11, 19, .64), rgba(8, 11, 19, .22));
  }
  .two-column,
  .price-layout,
  .apply-layout,
  .author-layout,
  .bonus-grid,
  .policy-grid,
  .mirror-panel {
    grid-template-columns: 1fr;
  }
  .realm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .realm-card.wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .realm-card.wide img {
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 14px 16px;
  }
  .brand span:last-child {
    display: none;
  }
  .hero {
    min-height: 850px;
  }
  .ai-akashic-page h1 {
    font-size: clamp(30px, 8.8vw, 36px);
  }
  .desktop-title {
    display: none;
  }
  .mobile-title {
    display: inline;
  }
  .hero-lead {
    font-size: 15.5px;
    line-height: 1.85;
  }
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .hero-actions .button {
    width: 100%;
  }
  .realm-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 14px;
  }
  .book-card h3,
  .profile-card h3 {
    font-size: 20px;
  }
  .realm-card.wide {
    grid-column: auto;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .footer {
    display: grid;
  }
  .modal-panel {
    padding: 24px 18px;
  }
}
