:root {
  --paper: #fbf3df;
  --paper-strong: #fffaf0;
  --ink: #2f2438;
  --muted: #675a70;
  --line: #e4d2a4;
  --gold: #bc9232;
  --purple: #d9c8f0;
  --purple-deep: #5b3f83;
  --shadow: 0 14px 34px rgba(78, 54, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(217, 200, 240, 0.5), transparent 30%),
    linear-gradient(180deg, #fff8e9 0%, var(--paper) 46%, #f7eddd 100%);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}

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

picture {
  display: block;
  max-width: 100%;
}

a {
  color: #553c83;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 10px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid rgba(188, 146, 50, 0.28);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  font: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 14px;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.top-image {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.top-image picture,
.top-image img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.top-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.primary-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.primary-links a {
  display: block;
  border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.primary-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(75, 45, 100, 0.12);
}

.primary-links img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.section {
  padding: clamp(44px, 7vw, 76px) 16px;
}

.inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

h1,
h2,
h3,
h4,
p,
li,
dt,
dd,
strong,
a {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-break: strict;
}

main,
section,
article,
div {
  max-width: 100%;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.35;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.4;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.45;
  letter-spacing: 0;
}

h4 {
  margin: 0 0 6px;
  color: #6a4e0f;
  font-size: 17px;
}

p {
  margin: 0 0 1em;
}

.intro,
.relaxed,
.steps,
.characters {
  background: rgba(255, 250, 240, 0.58);
}

.lead-copy {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.lead-copy p {
  font-size: clamp(17px, 4.4vw, 22px);
}

.heroic-strip {
  padding: 24px 16px 40px;
}

.heroic-strip .inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.heroic-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.heroic-strip picture,
.heroic-strip img {
  display: block;
  width: 100%;
}

.heroic-strip img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.relaxed p,
.section-heading p {
  font-size: clamp(16px, 4vw, 19px);
}

.step-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step-block:last-child {
  border-bottom: 1px solid var(--line);
}

.step-block p {
  margin-bottom: 0.58em;
}

.section-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid picture,
.gallery-grid img {
  display: block;
  width: 100%;
}

.gallery-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(78, 54, 28, 0.1);
}

.character-profile {
  padding: clamp(22px, 5vw, 34px) 0;
  border-top: 1px solid var(--line);
}

.character-profile:last-child {
  border-bottom: 1px solid var(--line);
}

.character-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.character-head picture,
.character-head img {
  width: 160px;
}

.character-head img {
  border-radius: 8px;
}

.quote {
  color: var(--purple-deep);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  line-height: 1.65;
}

.character-profile section {
  margin: 0 0 18px;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(188, 146, 50, 0.5);
}

.join-cta {
  background: linear-gradient(180deg, rgba(217, 200, 240, 0.3), rgba(255, 250, 240, 0.92));
}

.join-figures {
  display: grid;
  grid-template-columns: minmax(90px, 180px) 1fr minmax(90px, 180px);
  align-items: center;
  gap: 14px;
}

.join-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 22px;
  border: 1px solid #9e7420;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3cf78, #c6922c);
  color: #2d1e05;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(122, 83, 18, 0.18);
}

.page-title {
  padding: clamp(42px, 8vw, 76px) 16px 32px;
}

.page-title .inner {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.content-panel,
.faq-list article,
.price-tier,
.legal-list,
.contact-panel {
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 10px 22px rgba(78, 54, 28, 0.08);
}

.content-panel + .content-panel,
.faq-list article + article {
  margin-top: 18px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-tier ul,
.content-panel ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.legal-list {
  display: grid;
  gap: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(228, 210, 164, 0.75);
}

.legal-list div:last-child {
  border-bottom: 0;
}

.legal-list dt {
  font-weight: 700;
}

.legal-list dd {
  margin: 0;
}

.static-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.static-form input,
.static-form textarea {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  font: inherit;
}

.static-form textarea {
  min-height: 180px;
  resize: vertical;
}

.site-footer {
  padding: 28px 16px;
  border-top: 1px solid var(--line);
  background: #fff7e6;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: none;
    margin-top: 8px;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: var(--shadow);
    width: auto;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .site-nav a {
    padding: 9px 6px;
  }

  .primary-links,
  .heroic-strip .inner,
  .gallery-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .top-image {
    margin-top: 16px;
  }

  .character-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .character-head img {
    width: 74vw;
    max-width: 220px;
    margin: 0 auto;
  }

  .character-head picture {
    width: 74vw;
    max-width: 220px;
    margin: 0 auto;
  }

  .join-figures {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .join-figures img {
    width: 52vw;
    max-width: 160px;
  }

  .join-figures picture {
    width: 52vw;
    max-width: 160px;
  }

  .join-button {
    width: 100%;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--paper-strong);
  border: 2px solid var(--purple-deep);
  transform: translateY(-150%);
  clip-path: inset(50%);
}

.skip-link:focus {
  transform: translateY(0);
  clip-path: none;
}

:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 700;
}

.tier-action {
  margin-top: 20px;
}

.tier-action .button {
  padding: 12px;
  width: 100%;
  font-size: 15px;
}

.participation-note {
  max-width: 920px;
  margin: 20px auto 0;
  padding: 14px 20px;
  background: rgba(255, 250, 240, 0.85);
  border-block: 1px solid var(--line);
  text-align: center;
}

.participation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-free { border-color: var(--gold); }
.plan-vip { background: #f5effb; }
.plan-tag, .page-kicker { color: var(--muted); font-size: 14px; }
.plan-price { font-size: 32px; font-weight: 700; }
.plan-price span { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
.plan-note { margin-top: 22px; }
.button-secondary { background: var(--paper-strong); color: var(--purple-deep); border-color: #9174b2; box-shadow: none; }
.chapter-links li + li { margin-top: 12px; }
.doctrine-body, #plans, #vip, #inquiry, #about, #steps, #gallery, #characters, #join { scroll-margin-top: 110px; }

@media (max-width: 760px) {
  .participation-grid { grid-template-columns: 1fr; }
}

.service-note {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: #fff8e9;
}

.form-status {
  margin-top: 20px;
}

.email-preview {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.email-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  background: #fffdf8;
  padding: 16px;
}

.page-back {
  margin-top: 28px;
}

.doctrine-body ul {
  margin-bottom: 20px;
}

html:not(.js) #contact-form {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 360px) {
  body {
    font-size: 15.5px;
  }

  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }
}
