:root {
  --paper: #f5efe2;
  --paper-strong: #efe6d2;
  --paper-soft: #fbf8f0;
  --ink: #171512;
  --ink-soft: #5f564a;
  --line: rgba(23, 21, 18, 0.08);
  --gold: #b48b45;
  --raw: #1f8b62;
  --filter: #c96d2b;
  --imported: #667080;
  --card-shadow: 0 18px 40px rgba(66, 48, 29, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 139, 69, 0.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(122, 104, 72, 0.08), transparent 22%),
    linear-gradient(180deg, #fcfaf5 0%, var(--paper) 56%, #f0e7d8 100%);
  font-family: "Zen Kaku Gothic New", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 240, 0.75);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.hero-grid,
.split-grid,
.cta-inner {
  display: grid;
  gap: 24px;
}

.header-inner {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 1rem;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(58, 43, 25, 0.18);
}

.site-nav,
.footer-nav,
.hero-actions,
.hero-chips,
.feature-grid,
.class-grid,
.future-grid {
  display: flex;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 64px 0 36px;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Zen Old Mincho", serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 1.03;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
}

.hero-lead,
.section-heading p,
.legal-intro,
.legal-section p,
.ranking-note p,
.timeline-card p,
.future-card p,
.faq-list p,
.support-card p,
.support-card li {
  color: var(--ink-soft);
  line-height: 1.9;
}

.hero-actions {
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 24px rgba(23, 21, 18, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid rgba(23, 21, 18, 0.12);
}

.hero-chips {
  gap: 10px;
  margin-top: 24px;
}

.hero-chips span,
.class-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 21, 18, 0.08);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.wall-panel {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 232, 214, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(122, 104, 72, 0.03) 0,
      rgba(122, 104, 72, 0.03) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(122, 104, 72, 0.03) 0,
      rgba(122, 104, 72, 0.03) 1px,
      transparent 1px,
      transparent 48px
    );
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.wall-panel::before,
.wall-panel::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  filter: blur(12px);
}

.wall-panel::before {
  width: 180px;
  height: 180px;
  top: -22px;
  right: -30px;
}

.wall-panel::after {
  width: 120px;
  height: 120px;
  left: -18px;
  bottom: -18px;
}

.hero-icon-card,
.mini-frame {
  position: absolute;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(57, 44, 31, 0.15);
}

.hero-icon-card {
  top: 44px;
  left: 58px;
  width: min(78%, 360px);
  background: linear-gradient(145deg, #fdf9f1, #efe3cd);
  padding: 20px;
  transform: rotate(-5deg);
}

.hero-icon-card img {
  border-radius: 26px;
}

.mini-frame {
  background:
    linear-gradient(145deg, rgba(246, 230, 197, 0.96), rgba(222, 195, 142, 0.95));
}

.mini-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 231, 221, 0.96));
  box-shadow: inset 0 0 0 1px rgba(83, 62, 34, 0.08);
}

.mini-frame::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 12px;
  background: linear-gradient(140deg, #3a4f72, #d46844 52%, #f1d07d);
}

.mini-frame-a {
  width: 140px;
  height: 180px;
  top: 72px;
  right: 56px;
  transform: rotate(7deg);
}

.mini-frame-b {
  width: 126px;
  height: 162px;
  right: 114px;
  bottom: 72px;
  transform: rotate(-6deg);
}

.mini-frame-c {
  width: 110px;
  height: 140px;
  left: 32px;
  bottom: 74px;
  transform: rotate(9deg);
}

.mini-frame-d {
  width: 132px;
  height: 166px;
  right: 42px;
  bottom: 156px;
  transform: rotate(3deg);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(235, 224, 205, 0.44));
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.feature-grid,
.future-grid {
  gap: 18px;
}

.feature-card,
.future-card,
.ranking-note,
.timeline-card,
.legal-container,
.support-card,
.class-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--card-shadow);
}

.feature-card,
.future-card {
  flex: 1 1 240px;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-card h3,
.future-card h3,
.class-card h3,
.ranking-note h3,
.timeline-item span,
.support-card h2,
.legal-section h2 {
  margin-bottom: 10px;
}

.class-grid {
  gap: 18px;
}

.class-card {
  flex: 1 1 280px;
  padding: 22px;
  border-radius: 28px;
}

.class-card strong {
  display: inline-block;
  margin-top: 14px;
}

.class-raw {
  border-color: rgba(31, 139, 98, 0.22);
}

.class-filter {
  border-color: rgba(201, 109, 43, 0.22);
}

.class-imported {
  border-color: rgba(102, 112, 128, 0.22);
}

.ranking-note {
  margin-top: 22px;
  border-radius: 28px;
  padding: 24px;
}

.split-grid {
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
}

.timeline-card {
  border-radius: 28px;
  padding: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item span {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
}

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

.faq-list details,
.support-card {
  border-radius: 22px;
  padding: 22px 24px;
}

.faq-list details summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list details summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 14px 0 0;
}

.cta {
  padding: 0 0 82px;
}

.cta-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(32, 29, 25, 0.96), rgba(80, 59, 34, 0.96));
  color: #fff;
  box-shadow: 0 18px 40px rgba(34, 26, 18, 0.22);
}

.cta-inner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.footer-nav {
  justify-content: center;
  gap: 18px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-main {
  padding: 76px 0 96px;
}

.legal-container {
  max-width: 820px;
  border-radius: 32px;
  padding: 30px 30px 18px;
}

.legal-section {
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 28px;
}

.support-card + .support-card {
  margin-top: 16px;
}

.support-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.support-mail a,
.legal-container a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .wall-panel {
    min-height: 460px;
  }

  .hero-icon-card {
    left: 28px;
    width: 72%;
  }

  .cta-inner {
    text-align: center;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-actions,
  .hero-chips {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .wall-panel {
    min-height: 380px;
    padding: 22px;
  }

  .hero-icon-card {
    left: 18px;
    top: 24px;
    width: 72%;
    padding: 14px;
  }

  .mini-frame-a {
    width: 100px;
    height: 130px;
    right: 22px;
    top: 34px;
  }

  .mini-frame-b {
    width: 92px;
    height: 118px;
    right: 62px;
    bottom: 36px;
  }

  .mini-frame-c {
    width: 84px;
    height: 106px;
    left: 8px;
    bottom: 28px;
  }

  .mini-frame-d {
    width: 100px;
    height: 126px;
    right: 14px;
    bottom: 122px;
  }

  .legal-container {
    padding: 22px 20px 14px;
  }
}
