/* Ranchu Japan — Earth design system
   Space above, paper below. Ink for text and actions, the lotus gradient for meaning. */

:root {
  color-scheme: light;
  --space: #04070c;
  --space-2: #0a1018;
  --ink: #12161c;
  --ink-2: #4a5360;
  --ink-3: #7a838f;
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --white: #ffffff;
  --line: rgba(18, 22, 28, 0.09);
  --line-2: rgba(18, 22, 28, 0.16);
  --line-dark: rgba(255, 255, 255, 0.14);
  --mint: #9aeba6;
  --aqua: #60d3d2;
  --sky: #3dc2ee;
  --lotus: linear-gradient(100deg, #9aeba6 0%, #60d3d2 52%, #3dc2ee 100%);
  --focus: #3dc2ee;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(18, 22, 28, 0.04), 0 8px 28px rgba(18, 22, 28, 0.06);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@supports (word-break: auto-phrase) {
  h1,
  h2,
  h3 {
    word-break: auto-phrase;
  }
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */

.gh {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.gh__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--wrap);
  height: 52px;
  margin-inline: auto;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.gh[data-tone="dark"] .gh__bar {
  background: rgba(8, 12, 18, 0.32);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gh__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gh__mark {
  width: 34px;
  height: auto;
}

.gh__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.gh__nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.86;
  transition: opacity 0.2s, background 0.2s;
}

.gh__nav a:hover,
.gh__nav a[aria-current="page"] {
  opacity: 1;
  background: rgba(127, 127, 127, 0.12);
}

.gh__nav .gh__cta {
  margin-left: 8px;
  padding: 9px 18px;
  opacity: 1;
  background: var(--ink);
  color: #fff;
}

.gh__nav .gh__cta:hover {
  background: #000;
}

.gh[data-tone="dark"] .gh__cta {
  background: #fff;
  color: var(--ink);
}

.gh[data-tone="dark"] .gh__cta:hover {
  background: #e9f7f4;
}

.gh__menu {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.gh__menu i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.gh__menu i:first-of-type {
  top: 17px;
}

.gh__menu i:last-of-type {
  top: 25px;
}

.gh__menu[aria-expanded="true"] i:first-of-type {
  top: 21px;
  transform: rotate(45deg);
}

.gh__menu[aria-expanded="true"] i:last-of-type {
  top: 21px;
  transform: rotate(-45deg);
}

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

  .gh__bar {
    position: relative;
  }

  .gh__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .gh__nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .gh__nav a {
    padding: 14px 16px;
    font-size: 16px;
  }

  .gh__nav .gh__cta,
  .gh[data-tone="dark"] .gh__nav .gh__cta {
    margin: 6px 0 0;
    text-align: center;
    background: var(--ink);
    color: #fff;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: #000;
}

.btn--line {
  border-color: var(--line-2);
  background: var(--white);
  color: var(--ink);
}

.btn--line:hover {
  border-color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: #e9f7f4;
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- footer */

.gf {
  padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--space);
  color: rgba(255, 255, 255, 0.82);
}

.gf__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 28px 40px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.gf__brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.gf__brand strong {
  color: #fff;
  font-size: 16px;
}

.gf__brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.gf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-content: start;
  font-size: 14px;
}

.gf__links a {
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.78);
}

.gf__links a:hover {
  color: #fff;
}

.gf__meta {
  display: flex;
  align-items: start;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.gf__star {
  position: relative;
  width: 32px;
  height: 32px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.gf__star span {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(190, 235, 255, 0.55);
  animation: twinkle 3.6s ease-in-out infinite;
}

.gf__star:hover span {
  box-shadow: 0 0 10px 4px rgba(190, 235, 255, 0.8);
}

.gf__legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

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

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