:root {
  --navy-950: #071735;
  --navy-900: #0b2148;
  --navy-800: #13335f;
  --ink: #17223a;
  --muted: #667089;
  --ivory: #fffaf0;
  --paper: #fffdf8;
  --white: #ffffff;
  --coral: #ff6f68;
  --coral-dark: #d94d4d;
  --gold: #f4c85a;
  --lavender: #b7a9e8;
  --line: #e8e0d2;
  --shadow: 0 22px 60px rgba(7, 23, 53, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(244, 200, 90, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff8ea 0, var(--paper) 35rem, #ffffff 100%);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: radial-gradient(rgba(11, 33, 72, 0.16) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
}

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

a {
  color: var(--navy-800);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--coral-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(255, 111, 104, 0.45);
  outline-offset: 3px;
}

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

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

.site-header {
  color: var(--white);
  background:
    radial-gradient(circle at 76% -20%, rgba(183, 169, 232, 0.5), transparent 24rem),
    radial-gradient(circle at 14% 20%, rgba(244, 200, 90, 0.22), transparent 18rem),
    var(--navy-950);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--content), calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-name {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-950);
  background: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 23, 53, 0.98), rgba(19, 51, 95, 0.94)),
    var(--navy-950);
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 31rem;
  height: 31rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(255, 255, 255, 0.025),
    0 0 0 9rem rgba(255, 255, 255, 0.018);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 88px);
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.25rem, 5.2vw, 4.9rem);
  letter-spacing: 0.035em;
  line-height: 1.15;
}

.hero-lead {
  max-width: 44rem;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: var(--navy-950);
  background: var(--gold);
  box-shadow: 0 10px 28px rgba(244, 200, 90, 0.25);
}

.button-primary:hover {
  color: var(--navy-950);
  background: #ffd978;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.button-coral {
  color: var(--white);
  background: var(--coral-dark);
}

.button-outline-dark {
  color: var(--navy-900);
  background: var(--white);
  border-color: #cfc8bc;
}

.hero-logo {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 42px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.hero-logo img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 10%, rgba(244, 200, 90, 0.18), transparent 17rem),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.page-hero-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 62px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.page-hero p:last-child {
  max-width: 48rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--white);
}

.main-content {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 84px) 0;
}

.section-heading {
  margin: 0 0 28px;
}

.section-heading .eyebrow {
  color: var(--coral-dark);
}

.section-heading h2,
.content-card h2,
.form-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.35;
}

.section-heading p {
  max-width: 44rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.home-grid,
.two-column,
.card-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.home-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
}

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

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

.content-card,
.form-card,
.widget-stage,
.notice {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.content-card,
.form-card {
  padding: clamp(24px, 4vw, 42px);
}

.content-card h3 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.content-card p:first-child,
.content-card h2:first-child,
.content-card h3:first-child {
  margin-top: 0;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.feature-card::after {
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  content: "";
  background: var(--accent, var(--gold));
  border-radius: 50%;
  opacity: 0.18;
}

.accent-gold {
  --accent: var(--gold);
}

.accent-coral {
  --accent: var(--coral);
}

.accent-lavender {
  --accent: var(--lavender);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--navy-950);
  background: var(--accent, var(--gold));
  border-radius: 14px;
  font-weight: 900;
}

.widget-stage {
  min-height: 420px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.92));
}

.widget-stage .sekkaku-fortune-widget {
  margin: 0 auto;
}

.fact-list,
.check-list,
.plain-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.check-list li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
}

.fact-list li::before,
.check-list li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 20px;
  height: 20px;
  color: var(--navy-950);
  content: "\2713";
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 62px;
  padding: 6px 0 6px 76px;
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--white);
  content: counter(steps, decimal-leading-zero);
  background: var(--navy-900);
  border-radius: 18px;
  font-weight: 900;
}

.step-list strong {
  display: block;
  color: var(--navy-950);
}

.notice {
  padding: 22px 24px;
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-md);
}

.notice.warning {
  border-left-color: var(--coral);
}

.notice p {
  margin: 0;
}

.notice-spaced {
  margin-top: 24px;
}

.section-tight-top {
  padding-top: 0;
}

.form-card form,
.form-grid {
  display: grid;
  gap: 22px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--navy-950);
  font-size: 0.92rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc8bc;
  border-radius: 10px;
}

.field input[type="color"] {
  min-height: 54px;
  padding: 5px;
}

.field textarea {
  min-height: 250px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  resize: vertical;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.terms {
  padding: 22px;
  color: var(--muted);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.terms h3 {
  margin: 0 0 10px;
  color: var(--navy-950);
}

.terms ul {
  margin-bottom: 0;
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.copy-status {
  align-self: center;
  min-height: 1.5em;
  color: var(--coral-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.faq-list details {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq-list summary {
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 850;
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.error-shell {
  min-height: 54vh;
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 800px;
  text-align: center;
}

.error-code {
  display: inline-flex;
  padding: 6px 13px;
  color: var(--coral-dark);
  background: #fff0ed;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.error-card h1 {
  margin: 20px 0 0;
  color: var(--navy-950);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.25;
}

.error-card > p:not(.error-code) {
  max-width: 42rem;
  margin: 18px auto 0;
  color: var(--muted);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
  border-top: 4px solid var(--gold);
}

.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 26px;
}

.footer-grid {
  grid-template-columns: 1fr 1fr 1.35fr;
}

.footer-group h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.footer-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-mark {
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 16px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .site-nav a {
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
  }

  .hero-inner,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(68vw, 340px);
  }

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

  .footer-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .hero-inner,
  .page-hero-inner,
  .main-content,
  .footer-inner {
    width: min(100% - 24px, var(--content));
  }

  .brand img {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .brand-kicker {
    font-size: 0.64rem;
  }

  .brand-name {
    font-size: 1.16rem;
  }

  .site-nav ul,
  .two-column,
  .card-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-group:last-child,
  .field-full {
    grid-column: auto;
  }

  .hero-inner {
    padding: 48px 0 58px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .button-row,
  .code-actions,
  .footer-bottom {
    display: grid;
  }

  .button,
  .hero-actions .button,
  .button-row .button,
  .code-actions .button {
    width: 100%;
  }

  .content-card,
  .form-card,
  .widget-stage {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .footer-bottom {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
