:root {
  color-scheme: light dark;
  --night: #17151b;
  --night-2: #211e26;
  --ink: #403a4b;
  --muted: #756f7d;
  --paper: #f9f7fa;
  --paper-soft: #f3f1f5;
  --paper-deep: #e7e0e9;
  --plum: #62566d;
  --plum-soft: #907392;
  --blue: #6f799c;
  --sage: #6f7f71;
  --warm: #9e7e57;
  --rose: #9b5f69;
  --line: #e3dde6;
  --line-dark: #3a3440;
  --white: #fff;
  --shadow: 0 28px 80px rgba(42, 34, 48, 0.14);
  --shadow-soft: 0 14px 44px rgba(42, 34, 48, 0.1);
  --page: 1160px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Avenir Next", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: var(--sans);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(144, 115, 146, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(111, 121, 156, 0.1), transparent 30rem),
    linear-gradient(rgba(98, 86, 109, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 86, 109, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
}

p,
li {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid #a8b3d6;
  outline-offset: 4px;
}

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

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

.site-header {
  position: relative;
  z-index: 5;
  color: rgba(255, 255, 255, 0.82);
  background: var(--night);
}

.nav {
  width: min(var(--page), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-language {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 118px) 20px clamp(76px, 10vw, 132px);
  color: var(--white);
  background:
    radial-gradient(circle at 74% 10%, rgba(111, 121, 156, 0.23), transparent 26rem),
    radial-gradient(circle at 18% 82%, rgba(144, 115, 146, 0.22), transparent 30rem),
    var(--night);
}

.hero::after {
  position: absolute;
  right: -9rem;
  bottom: -18rem;
  width: 42rem;
  height: 42rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.02),
    0 0 0 10rem rgba(255, 255, 255, 0.018);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--page), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: #c9b8d1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9.5em;
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 6.3vw, 5.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 37rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--night);
  background: #e7e0e9;
  border: 1px solid #e7e0e9;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button-dark {
  color: var(--white);
  background: var(--plum);
  border: 1px solid var(--plum);
}

.button-disabled {
  cursor: default;
  opacity: 0.72;
}

.button-disabled:hover {
  transform: none;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
  list-style: none;
}

.hero-notes li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  content: "";
  background: #a8b3d6;
  border-radius: 50%;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  position: absolute;
  inset: 22px -18px -18px 22px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
}

.hero-media img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.section {
  padding: clamp(76px, 10vw, 132px) 20px;
}

.section-inner {
  width: min(var(--page), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(34px, 6vw, 66px);
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  overflow: hidden;
  background: rgba(249, 247, 250, 0.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
  grid-column: span 7;
}

.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  grid-column: span 5;
}

.feature-card:nth-child(5) {
  grid-column: 1 / -1;
  min-height: 230px;
}

.feature-card:nth-child(5) p {
  max-width: 62rem;
}

.feature-card:nth-child(5) p + p {
  margin-top: 12px;
}

.feature-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  background: var(--paper-deep);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
}

.feature-card p {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-card::after {
  position: absolute;
  right: -58px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  content: "";
  border: 22px solid rgba(98, 86, 109, 0.055);
  border-radius: 50%;
}

.rhythm-section {
  color: rgba(255, 255, 255, 0.82);
  background: var(--night-2);
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.rhythm-layout h2 {
  color: var(--white);
}

.rhythm-layout .section-heading {
  margin-bottom: 0;
}

.rhythm-layout .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.day-rhythm {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
}

.day-rhythm::before {
  position: absolute;
  top: 62px;
  bottom: 62px;
  left: 54px;
  width: 1px;
  content: "";
  background: linear-gradient(#c5a7c4, #c9ab7b, #a8b3d6);
}

.rhythm-item {
  position: relative;
  min-height: 92px;
  padding: 18px 20px 18px 54px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}

.rhythm-item + .rhythm-item {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.rhythm-item::before {
  position: absolute;
  left: 17px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--night-2);
  border: 3px solid #c5a7c4;
  border-radius: 50%;
}

.rhythm-item:nth-child(2)::before {
  border-color: #c9ab7b;
}

.rhythm-item:nth-child(3)::before {
  border-color: #a8b3d6;
}

.rhythm-item strong {
  color: var(--white);
  font-size: 1rem;
}

.rhythm-item span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.privacy-band {
  position: relative;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 9vw, 112px);
  align-items: start;
}

.privacy-statement {
  position: sticky;
  top: 30px;
  padding: 34px;
  color: var(--white);
  background: var(--plum);
  border-radius: 30px 30px 30px 8px;
  box-shadow: var(--shadow);
}

.privacy-statement img {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 20px;
}

.privacy-statement h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.18;
}

.privacy-statement p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}

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

.privacy-item {
  padding: 24px 26px;
  background: rgba(249, 247, 250, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.privacy-item h3 {
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.privacy-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-strip a {
  padding: 8px 13px;
  color: var(--plum);
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.support-callout {
  padding-top: 0;
}

.support-panel {
  position: relative;
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.support-panel::after {
  position: absolute;
  top: -84px;
  right: 12%;
  width: 220px;
  height: 220px;
  content: "";
  border: 36px solid rgba(111, 121, 156, 0.07);
  border-radius: 50%;
}

.support-panel h2 {
  max-width: 14em;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.support-panel p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 46px 20px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--night);
}

.footer-inner {
  width: min(var(--page), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 0.86rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.document-hero {
  padding: clamp(64px, 9vw, 106px) 20px clamp(52px, 7vw, 80px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(111, 121, 156, 0.22), transparent 25rem),
    var(--night);
}

.document-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.document-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.1;
}

.document-hero p {
  max-width: 44rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
}

.document-wrap {
  width: min(900px, calc(100% - 40px));
  margin: clamp(40px, 7vw, 80px) auto;
}

.document {
  padding: clamp(28px, 6vw, 64px);
  background: rgba(249, 247, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.document section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.35;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.document p,
.document li {
  color: #5f5966;
}

.document ul,
.document ol {
  padding-left: 1.4em;
}

.document a {
  color: #58658c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.document-note {
  padding: 20px 22px;
  color: var(--ink);
  background: #eee8f0;
  border-left: 4px solid var(--plum-soft);
  border-radius: 4px 16px 16px 4px;
}

.document-note p:last-child {
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  color: var(--white);
  background: var(--plum);
  border-radius: 24px;
}

.contact-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.contact-card strong,
.contact-card a {
  color: var(--white);
}

.contact-card > div {
  min-width: 0;
}

.contact-card a {
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq summary {
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 750;
}

.faq details p {
  padding: 0 20px 20px;
  margin-bottom: 0;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

.hero-copy[data-reveal] {
  animation: reveal-in 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media[data-reveal] {
  animation: reveal-in 760ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open] {
    display: flex;
  }

  .nav-links a {
    padding: 10px 8px;
    color: var(--ink);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--plum);
  }

  .nav-language {
    margin-top: 8px;
    text-align: center;
    border-color: var(--line);
  }

  .hero-inner,
  .rhythm-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 64px;
  }

  .hero-media {
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .feature-card:nth-child(n) {
    grid-column: span 6;
  }

  .feature-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .privacy-statement {
    position: relative;
    top: auto;
  }
}

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

  .brand {
    font-size: 0.9rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero-media::before {
    inset: 12px -8px -8px 12px;
  }

  .hero-media img {
    border-radius: 20px;
  }

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

  .feature-grid {
    display: block;
  }

  .feature-card + .feature-card {
    margin-top: 14px;
  }

  .feature-card {
    min-height: auto;
    padding: 25px;
  }

  .feature-number {
    margin-bottom: 26px;
  }

  .day-rhythm {
    padding: 18px;
  }

  .day-rhythm::before {
    left: 38px;
  }

  .rhythm-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding-left: 42px;
  }

  .rhythm-item::before {
    left: 14px;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }

  .support-panel .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

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

  .document-wrap {
    width: min(100% - 24px, 900px);
  }

  .document {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #f3eff6;
    background: var(--night);
  }

  body::before {
    opacity: 0.45;
  }

  .section:not(.rhythm-section),
  .document-wrap {
    color: #f3eff6;
  }

  .section-heading p,
  .support-panel p {
    color: #b8b0c0;
  }

  .feature-card,
  .privacy-item,
  .support-panel,
  .document,
  .faq details {
    color: #f3eff6;
    background: rgba(41, 37, 46, 0.94);
    border-color: var(--line-dark);
  }

  .feature-card p,
  .privacy-item p,
  .document p,
  .document li,
  .faq details p {
    color: #b8b0c0;
  }

  .feature-card h3,
  .privacy-item h3,
  .document h2,
  .document h3,
  .faq summary {
    color: #f3eff6;
  }

  .feature-number,
  .source-strip a {
    color: #e7dce9;
    background: #3b3340;
  }

  .document section + section {
    border-color: var(--line-dark);
  }

  .document-note {
    color: #f3eff6;
    background: #332a33;
  }
}
