:root {
  --bg: #F2EFE8;
  --surface: #ECE7DD;
  --surface-light: #F8F6F1;
  --text: #2B2E2C;
  --muted: #666A66;
  --line: #D8D2C7;
  --action: #3F514A;
  --memory: #8A745D;
  --future: #6C7F7C;
  --kv-bg: #eeeae2;
  --max-width: 1200px;
}
[data-theme="dark"] {
  --bg: #0F1821;
  --surface: #17232E;
  --surface-light: #1B2834;
  --text: #E2E7EA;
  --muted: #A0ABB3;
  --line: rgba(191, 207, 217, .16);
  --action: #C6D4D9;
  --memory: #B9A58F;
  --future: #79AEB5;
  --kv-bg: #101821;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0F1821;
    --surface: #17232E;
    --surface-light: #1B2834;
    --text: #E2E7EA;
    --muted: #A0ABB3;
    --line: rgba(191, 207, 217, .16);
    --action: #C6D4D9;
    --memory: #B9A58F;
    --future: #79AEB5;
    --kv-bg: #101821;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 82px;
  color: var(--text);
}
 .header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand, .kv-wordmark {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .11em;
}
.brand { font-size: 19px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 30px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: .12em;
  cursor: pointer;
}
.theme-icon { font-size: 15px; line-height: 1; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle:focus-visible {
  outline: 1px solid var(--future);
  outline-offset: 5px;
}
.nav a, .text-link, .feature-card, .way a, .links-grid a { transition: opacity .2s ease, transform .2s ease; }
.nav a:hover, .text-link:hover, .way a:hover, .links-grid a:hover { opacity: .58; }

.key-visual {
  position: relative;
  height: clamp(650px, 74vh, 900px);
  overflow: hidden;
  background: var(--kv-bg);
}
.key-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.key-visual-picture, .key-visual-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.key-visual-picture img { object-fit: cover; object-position: center; }
.key-visual-picture-dark { display: none; }
[data-theme="dark"] .key-visual-picture-light { display: none; }
[data-theme="dark"] .key-visual-picture-dark { display: block; }
[data-theme="light"] .key-visual-picture-light { display: block; }
[data-theme="light"] .key-visual-picture-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .key-visual-picture-light { display: none; }
  :root:not([data-theme]) .key-visual-picture-dark { display: block; }
}
.kv-wordmark {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - min(1200px, calc(100% - 48px))) / 2));
  top: 18%;
  font-size: clamp(52px, 6vw, 86px);
  line-height: 1;
}
.kv-stars i {
  position: absolute;
  z-index: 2;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--future);
  opacity: .16;
  box-shadow: 0 0 0 rgba(108, 127, 124, 0);
  animation: star-twinkle 5.6s ease-in-out infinite;
  transform-origin: center;
}
.kv-stars i::before,
.kv-stars i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  color: var(--future);
  opacity: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(.25);
  transform-origin: center;
}
.kv-stars i::before {
  width: 1px;
  height: 9px;
}
.kv-stars i::after {
  width: 9px;
  height: 1px;
}
.kv-stars i:nth-child(1) { left: 22%; top: 28%; animation-delay: -0.8s; }
.kv-stars i:nth-child(2) { left: 72%; top: 19%; animation-delay: -2.4s; }
.kv-stars i:nth-child(3) { left: 81%; top: 43%; animation-delay: -4.1s; }
.kv-stars i:nth-child(4) { left: 55%; top: 61%; animation-delay: -1.6s; }
.kv-stars i:nth-child(1)::before,
.kv-stars i:nth-child(1)::after { animation-delay: -0.8s; }
.kv-stars i:nth-child(2)::before,
.kv-stars i:nth-child(2)::after { animation-delay: -2.4s; }
.kv-stars i:nth-child(3)::before,
.kv-stars i:nth-child(3)::after { animation-delay: -4.1s; }
.kv-stars i:nth-child(4)::before,
.kv-stars i:nth-child(4)::after { animation-delay: -1.6s; }
.kv-stars i::before,
.kv-stars i::after {
  animation: star-ray 5.6s ease-in-out infinite;
}
@keyframes star-twinkle {
  0%, 72%, 100% {
    opacity: .16;
    transform: scale(.8);
    box-shadow: 0 0 0 rgba(108, 127, 124, 0);
  }
  78% {
    opacity: .62;
    transform: scale(1);
    box-shadow: 0 0 4px 1px rgba(108, 127, 124, .16);
  }
  81% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow:
      0 0 3px 1px rgba(248, 246, 241, .7),
      0 0 9px 3px rgba(108, 127, 124, .2);
  }
  85% {
    opacity: .42;
    transform: scale(.95);
    box-shadow: 0 0 4px 1px rgba(108, 127, 124, .1);
  }
  90% {
    opacity: .2;
    transform: scale(.84);
    box-shadow: none;
  }
}
@keyframes star-ray {
  0%, 76%, 87%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.25);
  }
  80% {
    opacity: .45;
    transform: translate(-50%, -50%) scale(.72);
  }
  81% {
    opacity: .92;
    transform: translate(-50%, -50%) scale(1);
  }
  83% {
    opacity: .35;
    transform: translate(-50%, -50%) scale(.65);
  }
}

.hero { padding: 88px 0 96px; max-width: 860px; margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--future);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
}
.hero h1, .section-heading h2, .about h2, .links-section h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.35;
}
.hero h1 { font-size: clamp(40px, 5vw, 66px); }
.hero h1 span { display: inline; }
.hero-copy { max-width: 680px; margin: 30px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { margin-top: 30px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--action); font-size: 13px; font-weight: 500; }

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 80px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading h2, .about h2, .links-section h2 { font-size: clamp(30px, 3.2vw, 46px); }
.section-intro { margin: 0; color: var(--muted); font-size: 14px; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.feature-card { display: block; }
.feature-card:hover { transform: translateY(-3px); }
.feature-media {
  margin: 0 0 22px;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: var(--surface);
}
.feature-media img { height: 100%; object-fit: cover; }
.feature-meta {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--future); font-size: 10px; letter-spacing: .15em; font-weight: 500;
}
.feature-meta span:last-child { font-size: 18px; letter-spacing: 0; transition: transform .2s ease; }
.feature-card:hover .feature-meta span:last-child { transform: translate(3px, -3px); }
.feature-card h3 { margin: 7px 0 9px; font-size: 21px; line-height: 1.5; font-weight: 500; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.ways { overflow: hidden; }
.ways .section-heading { grid-template-columns: 1fr; }
.ways-list { position: relative; }
.way {
  width: min(760px, 78%);
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  position: relative;
}
.way:nth-child(2) { margin-left: 10%; }
.way:nth-child(3) { margin-left: 20%; }
.way-number { position: absolute; right: 0; top: 25px; color: var(--line); font-family: Georgia, serif; font-size: 36px; }
.way-role { margin: 0 0 8px; color: var(--memory); font-size: 10px; letter-spacing: .14em; }
.way h3 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
.way > p:not(.way-role) { max-width: 540px; margin: 15px 0 18px; color: var(--muted); font-size: 14px; }
.way a { color: var(--action); font-size: 12px; font-weight: 500; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.about-copy { color: var(--muted); font-size: 15px; }
.about-copy p { margin: 0 0 24px; }
.about-copy .privacy-note { margin-top: 28px; font-size: 12px; color: #7b7e79; }

.links-section { padding: 96px 0 72px; border-top: 1px solid var(--line); }
.links-section h2 { margin-bottom: 38px; }
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.links-grid a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 68px; padding: 0 8px 0 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.links-grid a:nth-child(odd) { margin-right: 34px; }
.links-grid a:nth-child(even) { margin-left: 34px; }
.links-grid a span:last-child { color: var(--muted); }

.footer {
  min-height: 112px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--line);
}
.footer p { margin: 0; }

@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .featured-grid { gap: 22px; }
  .about { gap: 56px; }
}
@media (max-width: 767px) {
  .wrap, .header-inner { width: min(calc(100% - 48px), var(--max-width)); }
  .site-header { height: 64px; }
  .brand { font-size: 17px; }
  .nav { display: none; }
  .header-actions { gap: 0; }
  .theme-toggle { padding: 7px 0 7px 10px; }
  .key-visual { height: clamp(560px, 74svh, 760px); }
  .key-visual-picture img { object-position: center top; }
  .kv-wordmark { left: 24px; top: 14%; font-size: clamp(46px, 15vw, 64px); }
  .hero { width: min(calc(100% - 48px), 680px); padding: 68px 0 76px; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 42px); line-height: 1.38; }
  .hero h1 span { display: block; white-space: nowrap; }
  .hero-copy { font-size: 15px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 32px; }
  .featured-grid { grid-template-columns: 1fr; gap: 46px; }
  .feature-card h3 { font-size: 20px; }
  .way, .way:nth-child(2), .way:nth-child(3) { width: 100%; margin-left: 0; }
  .way { padding: 28px 0 32px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .links-section { padding: 72px 0 60px; }
  .links-grid { grid-template-columns: 1fr; }
  .links-grid a:nth-child(odd), .links-grid a:nth-child(even) { margin: 0; }
  .footer { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Typography safeguards: keep short Japanese phrases together and avoid orphaned fragments. */
.hero-copy,
.section-intro,
.feature-card h3,
.feature-card p,
.way h3,
.way > p:not(.way-role),
.about h2,
.about-copy,
.links-section h2,
.privacy-page h1,
.privacy-page h2,
.privacy-page p,
.privacy-page li {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

.feature-card h3,
.way h3,
.about h2,
.links-section h2 {
  text-wrap: balance;
}

.privacy-page {
  max-width: 820px;
  padding-top: 120px;
}
.privacy-page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.privacy-updated { margin: 0 0 56px; color: var(--muted); font-size: 12px; }
.privacy-page h2 {
  margin: 52px 0 14px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  text-wrap: balance;
}
.privacy-page p,
.privacy-page li { color: var(--muted); font-size: 14px; }
.privacy-page ul { padding-left: 1.4em; }
.privacy-page .section-link { color: var(--action); }

@media (max-width: 767px) {
  .hero-copy,
  .section-intro,
  .feature-card p,
  .way > p:not(.way-role),
  .about-copy,
  .privacy-page p,
  .privacy-page li {
    line-height: 1.75;
  }
  .feature-card h3 { max-width: 18em; }
  .way > p:not(.way-role) { max-width: 30em; }
  .about h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .privacy-page { padding-top: 92px; }
  .privacy-page h1 { font-size: clamp(29px, 8.5vw, 38px); }
  .privacy-updated { margin-bottom: 40px; }
  .privacy-page h2 { margin-top: 40px; font-size: 19px; }
}

/* Shared directional arrow: one geometry, orientation only changes. */
.arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  flex: 0 0 auto;
}
.arrow::after {
  content: "";
  display: block;
  width: 13px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: translate(-4px, 8px) rotate(-45deg);
}
.arrow-external { transform: translateY(1px); }
.arrow-down { transform: rotate(135deg) translate(-1px, -1px); }

.feature-meta .arrow {
  width: 9px;
  height: 9px;
}
.feature-meta .arrow::after { width: 12px; }

.links-grid a > .arrow { color: var(--muted); }

/* Arrow fix: use one stable chevron shape; no pseudo-element shaft. */
.arrow {
  display: inline-block;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 0;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  vertical-align: middle;
}
.arrow::after { content: none; display: none; }
.arrow-external { transform: rotate(0deg); }
.arrow-down { transform: rotate(135deg); margin-left: 7px; }
.feature-meta .arrow { width: 10px; height: 10px; }

/* CECIL directional icons — Lucide-style inline SVG geometry. */
.icon-arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vertical-align: -0.18em;
}
.icon-arrow-down { margin-left: 7px; }
.feature-meta .icon-arrow { width: 17px; height: 17px; }
.links-grid .icon-arrow { width: 17px; height: 17px; color: var(--muted); }

/* Mobile scale correction — reduce oversized headings and section rhythm. */
@media (max-width: 767px) {
  .hero h1 { font-size: clamp(30px, 7.8vw, 36px); line-height: 1.34; }
  .section-heading h2,
  .links-section h2 { font-size: clamp(25px, 6.8vw, 30px); }
  .way h3 { font-size: 24px; }
  .about h2 { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.42; }
  .feature-card h3 { font-size: 18px; line-height: 1.45; }
  .section { padding: 56px 0; }
  .links-section { padding: 56px 0 48px; }
  .section-heading { margin-bottom: 26px; }
  .featured-grid { gap: 38px; }
  .way { padding: 24px 0 26px; }
  .about { gap: 26px; }
  .hero { padding: 58px 0 64px; }
  .hero-copy { font-size: 14px; }
  .section-intro,
  .feature-card p,
  .way > p:not(.way-role),
  .about-copy { font-size: 14px; }
  .icon-arrow,
  .feature-meta .icon-arrow,
  .links-grid .icon-arrow { width: 15px; height: 15px; }
}

/* Density pass — keep the KV spacious, tighten the content that follows. */
.hero { padding: 80px 0 72px; }
.section { padding: 76px 0; }
.section-heading { margin-bottom: 36px; }
.way { padding: 24px 0 28px; }
.about-copy p { margin-bottom: 20px; }
.about-copy .privacy-note { margin-top: 22px; }
.links-section { padding: 76px 0 60px; }
.links-section h2 { margin-bottom: 30px; }
.footer { min-height: 96px; }

@media (max-width: 767px) {
  .hero { padding: 50px 0 44px; }
  .hero-copy { margin-top: 22px; }
  .hero-actions { margin-top: 24px; }

  .section { padding: 42px 0; }
  .section-heading { margin-bottom: 22px; }
  .featured-grid { gap: 28px; }
  .feature-media { margin-bottom: 16px; }
  .feature-card h3 { margin: 6px 0 7px; }
  .feature-card p { line-height: 1.68; }

  .way { padding: 20px 0 22px; }
  .way > p:not(.way-role) { margin: 12px 0 14px; line-height: 1.68; }

  .about { gap: 20px; }
  .about-copy p { margin-bottom: 16px; }
  .about-copy .privacy-note { margin-top: 18px; }

  .links-section { padding: 44px 0 40px; }
  .links-section h2 { margin-bottom: 24px; }
  .links-grid a { min-height: 58px; }

  .footer { min-height: 88px; }
}

/* Final rhythm pass for the top page: reduce empty travel between sections. */
.hero { padding: 68px 0 60px; }
.section { padding: 64px 0; }
.links-section { padding: 64px 0 52px; }
.section-heading { margin-bottom: 30px; }

@media (max-width: 767px) {
  .hero { padding: 42px 0 36px; }
  .hero-copy { margin-top: 18px; }
  .hero-actions { margin-top: 20px; }

  .section { padding: 34px 0; }
  .section-heading { margin-bottom: 18px; }

  .featured-grid { gap: 22px; }
  .feature-media { margin-bottom: 14px; }

  .ways .section-heading { margin-bottom: 14px; }
  .way { padding: 17px 0 18px; }

  .about { gap: 16px; }
  .about-copy p { margin-bottom: 14px; }
  .about-copy .privacy-note { margin-top: 14px; }

  .links-section { padding: 36px 0 34px; }
  .links-section h2 { margin-bottom: 20px; }
  .links-grid a { min-height: 54px; }

  .footer { min-height: 78px; }
}

/* Desktop Ways refinement — keep asymmetry, reduce the empty staircase. */
@media (min-width: 901px) {
  .ways-list { max-width: 980px; }
  .way {
    width: min(720px, 74%);
    padding: 22px 0 24px;
  }
  .way:nth-child(2) { margin-left: 6%; }
  .way:nth-child(3) { margin-left: 12%; }
  .way-number {
    top: 18px;
    font-size: 32px;
  }
  .way h3 { font-size: 26px; }
  .way > p:not(.way-role) {
    max-width: 600px;
    margin: 12px 0 14px;
    line-height: 1.7;
  }
}

/* Privacy — quiet archive / specification layout */
.privacy-body { background: var(--bg); }
.privacy-header { position: relative; }
.privacy-home-link { display: inline-flex; align-items: center; gap: 8px; }
.privacy-home-link .icon-arrow { width: 14px; height: 14px; }
.privacy-main { border-top: 1px solid var(--line); }
.privacy-page { max-width: 980px; padding-top: 92px; padding-bottom: 88px; }
.privacy-hero { padding-bottom: 58px; }
.privacy-hero h1 {
  max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 64px);
  line-height: 1.3; font-weight: 400; letter-spacing: -.04em;
}
.privacy-mobile-break { display: none; }
.privacy-meta {
  display: grid; grid-template-columns: minmax(0, 560px) auto;
  gap: 48px; align-items: end; margin-top: 28px; color: var(--muted);
  font-size: 13px;
}
.privacy-meta p, .privacy-meta time { margin: 0; }
.privacy-meta time { white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
.privacy-sections { border-top: 1px solid var(--line); }
.privacy-item {
  display: grid; grid-template-columns: 64px minmax(0, 680px);
  gap: 28px; padding: 34px 0 38px; border-bottom: 1px solid var(--line);
}
.privacy-number {
  color: var(--memory); font-family: Georgia, serif; font-size: 12px;
  letter-spacing: .08em; padding-top: 7px;
}
.privacy-item h2 {
  margin: 0 0 14px; font-size: 21px; line-height: 1.5;
  font-weight: 500; letter-spacing: -.02em; text-wrap: balance;
}
.privacy-item p, .privacy-item li {
  color: var(--muted); font-size: 14px; line-height: 1.85;
}
.privacy-item p { margin: 0 0 14px; }
.privacy-item p:last-child { margin-bottom: 0; }
.privacy-item ul { margin: 12px 0 18px; padding-left: 1.25em; }
.privacy-external {
  display: inline-flex; align-items: center; gap: 8px; color: var(--action); font-weight: 500;
}
.privacy-external .icon-arrow { width: 15px; height: 15px; }

@media (max-width: 767px) {
  .privacy-page { padding-top: 54px; padding-bottom: 54px; }
  .privacy-hero { padding-bottom: 36px; }
  .privacy-hero h1 { font-size: clamp(30px, 8vw, 36px); line-height: 1.38; }
  .privacy-mobile-break { display: block; }
  .privacy-meta { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; line-height: 1.7; }
  .privacy-item { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 26px 0 28px; }
  .privacy-number { font-size: 10px; padding-top: 6px; }
  .privacy-item h2 { font-size: 18px; margin-bottom: 10px; }
  .privacy-item p, .privacy-item li { font-size: 13px; line-height: 1.78; }
  .privacy-item ul { margin: 10px 0 16px; }
}

/* Mobile footer navigation alignment */
@media (max-width: 767px) {
  .footer > a {
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
  }
}

/* Mobile footer: keep copyright and navigation on one baseline */
@media (max-width: 767px) {
  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .footer > p {
    min-width: 0;
    margin: 0;
  }
  .footer > a {
    align-self: auto;
    margin-left: auto;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }
}


/* Apps index — quiet catalogue separate from Featured. */
.apps .section-heading { margin-bottom: 24px; }
.apps-list { border-top: 1px solid var(--line); }
.app-row {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.5fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 104px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
a.app-row {
  transition: opacity .2s ease, transform .2s ease;
}
a.app-row:hover {
  opacity: .68;
  transform: translateX(3px);
}
.app-heading { min-width: 0; }
.app-heading h3 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.app-status {
  color: var(--future);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
}
.app-status-pending { color: var(--memory); }
.app-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.app-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--action);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.app-action .icon-arrow { width: 15px; height: 15px; }
.app-row-pending { opacity: .72; }
.app-action-pending { color: var(--muted); }

@media (max-width: 767px) {
  .apps .section-heading { margin-bottom: 14px; }
  .app-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    min-height: 0;
    padding: 17px 0 18px;
  }
  .app-heading h3 { font-size: 17px; }
  .app-row > p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.68;
  }
  .app-action {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 11px;
  }
}


/* Keep only the section boundary after the Apps list. */
.apps-list .app-row:last-child {
  border-bottom: 0;
}


/* App attributes — text-only metadata, intentionally not pill/badge UI. */
.app-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.app-attribute {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .app-kicker {
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .app-attribute {
    font-size: 9px;
  }
}


/* Brand statement — keep Explore / Inquire as a quiet Cecil signature. */
.kv-brand {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - min(1200px, calc(100% - 48px))) / 2));
  top: 18%;
}
.kv-brand .kv-wordmark {
  position: static;
  left: auto;
  top: auto;
}
.kv-tagline {
  margin-top: 12px;
  color: var(--future);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1;
}

@media (max-width: 767px) {
  .kv-brand {
    left: 24px;
    top: 14%;
  }
  .kv-brand .kv-wordmark {
    font-size: clamp(46px, 15vw, 64px);
  }
  .kv-tagline {
    margin-top: 10px;
    font-size: 9px;
  }
}


/* Writing / Local content indexes — real work replaces the former Ways explanation. */
.writing .section-heading,
.local .section-heading { margin-bottom: 24px; }

.content-list { border-top: 1px solid var(--line); }
.content-row {
  display: grid;
  grid-template-columns: minmax(240px, .92fr) minmax(0, 1.3fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 118px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s ease, transform .2s ease;
}
.content-row:hover {
  opacity: .68;
  transform: translateX(3px);
}
.content-heading { min-width: 0; }
.content-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
}
.content-number {
  color: var(--memory);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .08em;
}
.content-attribute {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .14em;
}
.content-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.content-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.content-action,
.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--action);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.content-action { justify-self: end; }
.content-action .icon-arrow,
.section-more .icon-arrow { width: 15px; height: 15px; }
.section-more {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

@media (max-width: 767px) {
  .writing .section-heading,
  .local .section-heading { margin-bottom: 14px; }
  .content-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 18px 0 19px;
  }
  .content-kicker { gap: 10px; margin-bottom: 6px; }
  .content-heading h3 { font-size: 17px; line-height: 1.5; }
  .content-row > p {
    grid-column: 1;
    font-size: 13px;
    line-height: 1.68;
  }
  .content-action {
    justify-self: start;
    margin-top: 2px;
    font-size: 11px;
  }
  .section-more { padding-top: 14px; }
  .section-more a { font-size: 11px; }
}


/* Theme switch must remain legible over the illustrated key visual. */
.theme-toggle {
  color: var(--text);
  font-weight: 500;
}
[data-theme="light"] .theme-toggle {
  text-shadow: 0 1px 7px rgba(248, 246, 241, .98), 0 0 2px rgba(248, 246, 241, .95);
}
[data-theme="dark"] .theme-toggle {
  text-shadow: 0 1px 6px rgba(15, 24, 33, .92);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle {
    text-shadow: 0 1px 7px rgba(248, 246, 241, .98), 0 0 2px rgba(248, 246, 241, .95);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle {
    text-shadow: 0 1px 6px rgba(15, 24, 33, .92);
  }
}

/* Featured item type is subordinate metadata, not a section eyebrow. */
.feature-meta {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
}
.feature-meta .icon-arrow {
  color: var(--muted);
  opacity: .8;
}


/* Unified index action placement — Apps / Writing / Local share one mobile rhythm. */
@media (max-width: 767px) {
  .app-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-row > p {
    grid-column: 1;
    grid-row: auto;
  }
  .app-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
    align-self: auto;
    margin-top: 2px;
  }

  .content-action {
    justify-self: end;
    margin-top: 2px;
  }
}


/* Hero category shortcuts — the three real content entrances. */
.hero-category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-category-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "en arrow"
    "ja arrow";
  gap: 4px 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 20px;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-category-nav a + a {
  border-left: 1px solid var(--line);
}
.hero-category-nav a:hover {
  opacity: .68;
  transform: translateY(2px);
}
.hero-category-en {
  grid-area: en;
  color: var(--future);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
}
.hero-category-ja {
  grid-area: ja;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.hero-category-nav .icon-arrow {
  grid-area: arrow;
  width: 15px;
  height: 15px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  .hero-category-nav {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .hero-category-nav a {
    min-height: 66px;
    padding: 13px 0;
  }
  .hero-category-nav a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hero-category-en {
    font-size: 9px;
  }
  .hero-category-ja {
    font-size: 13px;
  }
}


/* Elsewhere groups — organize destinations without importing service-brand iconography. */
.link-groups {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.link-group { min-width: 0; }
.link-group-title {
  margin: 0 0 10px;
  color: var(--future);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .16em;
}
.link-group-list {
  border-top: 1px solid var(--line);
}
.link-group-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  transition: opacity .2s ease, transform .2s ease;
}
.link-group-list a:hover {
  opacity: .58;
  transform: translateX(2px);
}
.link-group-list .icon-arrow {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .link-groups {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 767px) {
  .link-groups {
    gap: 24px;
    padding-top: 18px;
  }
  .link-group-title {
    margin-bottom: 8px;
  }
  .link-group-list a {
    min-height: 50px;
    font-size: 13px;
  }
}


/* Mobile hero shortcuts stay horizontal: three equal category entrances. */
@media (max-width: 767px) {
  .hero-category-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-category-nav a {
    min-height: 82px;
    padding: 12px 10px;
    text-align: left;
  }
  .hero-category-nav a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .hero-category-ja {
    font-size: 12px;
    line-height: 1.45;
  }
  .hero-category-nav .icon-arrow {
    width: 13px;
    height: 13px;
  }
}

/* Elsewhere hierarchy: group heading is parent, services are visibly nested. */
.link-group-list a {
  padding-left: 12px;
}
@media (max-width: 767px) {
  .link-group-list a {
    padding-left: 14px;
  }
}


/* Hero category shortcuts — minimal text-only index. */
.hero-category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border: 0;
}
.hero-category-nav a {
  display: block;
  min-height: 0;
  padding: 10px 0;
  border: 0 !important;
  color: var(--future);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: left;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-category-nav a:hover {
  opacity: .58;
  transform: translateY(1px);
}
.hero-category-nav .hero-category-en,
.hero-category-nav .hero-category-ja,
.hero-category-nav .icon-arrow {
  display: none;
}

@media (max-width: 767px) {
  .hero-category-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
  }
  .hero-category-nav a {
    min-height: 0;
    padding: 8px 0;
    border: 0 !important;
    font-size: 9px;
    text-align: left;
  }
}


/* Hero category shortcuts — inline table of contents, not a 3-column UI block. */
.hero-category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 24px;
  border: 0;
}
.hero-category-nav a {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  color: var(--future);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: left;
}
.hero-category-separator {
  color: var(--line);
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 767px) {
  .hero-category-nav {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-top: 22px;
  }
  .hero-category-nav a {
    min-height: 0;
    padding: 0;
    border: 0 !important;
    font-size: 9px;
    text-align: left;
  }
  .hero-category-separator {
    font-size: 9px;
  }
}


/* Privacy contact links — quiet inline links, unlike document CTA links. */
.privacy-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.privacy-contact-links a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.privacy-contact-links a:hover {
  opacity: .62;
}
.privacy-contact-links span {
  color: var(--line);
  font-size: 11px;
}


/* Privacy contact links — deliberately understated. */
.privacy-contact-links {
  gap: 8px;
  margin-top: 8px;
}
.privacy-contact-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .01em;
  border-bottom: 0;
  padding-bottom: 0;
}
.privacy-contact-links a:hover {
  color: var(--text);
  opacity: 1;
}
.privacy-contact-links span {
  color: var(--line);
  font-size: 10px;
}


/* Privacy contact links — smaller and lightly accented. */
.privacy-contact-links a {
  color: var(--future);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
}
.privacy-contact-links span {
  color: var(--muted);
  font-size: 9px;
}


/* Language switch — quiet utility navigation shared by Japanese and English pages. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  white-space: nowrap;
}
.language-switch a {
  color: var(--muted);
  transition: color .2s ease, opacity .2s ease;
}
.language-switch a:hover {
  color: var(--text);
}
.language-current {
  color: var(--text);
  font-weight: 500;
}
.language-separator {
  color: var(--line);
}
@media (max-width: 767px) {
  .header-actions { gap: 12px; }
  .language-switch { font-size: 9px; gap: 5px; }
  .theme-toggle { padding-left: 0; }
}


/* English typography — avoid Japanese-specific forced line breaks and improve wrapping. */
html[lang="en"] .hero h1,
html[lang="en"] .section-heading h2,
html[lang="en"] .feature-card h3,
html[lang="en"] .app-heading h3,
html[lang="en"] .content-heading h3,
html[lang="en"] .about h2,
html[lang="en"] .links-section h2,
html[lang="en"] .privacy-hero h1,
html[lang="en"] .privacy-item h2 {
  text-wrap: balance;
}

html[lang="en"] .hero-copy,
html[lang="en"] .section-intro,
html[lang="en"] .feature-card p,
html[lang="en"] .app-row > p,
html[lang="en"] .content-row > p,
html[lang="en"] .about-copy p,
html[lang="en"] .privacy-meta p,
html[lang="en"] .privacy-item p,
html[lang="en"] .privacy-item li {
  text-wrap: pretty;
}


/* Light-mode header utilities — stronger contrast over the illustrated key visual. */
[data-theme="light"] .language-switch,
[data-theme="light"] .language-switch a,
[data-theme="light"] .language-current,
[data-theme="light"] .theme-toggle {
  color: #3F4747;
}

[data-theme="light"] .language-separator {
  color: #697171;
}

[data-theme="light"] .theme-icon {
  color: #596161;
}

[data-theme="light"] .theme-toggle {
  text-shadow: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .language-switch,
  :root:not([data-theme]) .language-switch a,
  :root:not([data-theme]) .language-current,
  :root:not([data-theme]) .theme-toggle {
    color: #3F4747;
  }

  :root:not([data-theme]) .language-separator {
    color: #697171;
  }

  :root:not([data-theme]) .theme-icon {
    color: #596161;
  }

  :root:not([data-theme]) .theme-toggle {
    text-shadow: none;
  }
}


/* Light-mode key-visual utilities — soft backdrop for mixed photographic backgrounds. */
.header-utilities {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  isolation: isolate;
}

[data-theme="light"] .header-utilities::before {
  content: "";
  position: absolute;
  inset: -7px -10px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(248, 246, 241, .72);
  filter: blur(5px);
}

[data-theme="light"] .header-utilities .language-switch,
[data-theme="light"] .header-utilities .language-switch a,
[data-theme="light"] .header-utilities .language-current,
[data-theme="light"] .header-utilities .theme-toggle {
  color: #252C2B;
  font-weight: 600;
}

[data-theme="light"] .header-utilities .language-separator {
  color: #56605E;
}

[data-theme="light"] .header-utilities .theme-icon {
  color: #414B49;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .header-utilities::before {
    content: "";
    position: absolute;
    inset: -7px -10px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(248, 246, 241, .72);
    filter: blur(5px);
  }

  :root:not([data-theme]) .header-utilities .language-switch,
  :root:not([data-theme]) .header-utilities .language-switch a,
  :root:not([data-theme]) .header-utilities .language-current,
  :root:not([data-theme]) .header-utilities .theme-toggle {
    color: #252C2B;
    font-weight: 600;
  }

  :root:not([data-theme]) .header-utilities .language-separator {
    color: #56605E;
  }

  :root:not([data-theme]) .header-utilities .theme-icon {
    color: #414B49;
  }
}


/* Refine light-mode utility backdrop — keep the contrast aid nearly invisible. */
[data-theme="light"] .header-utilities::before {
  inset: -3px -5px;
  border-radius: 10px;
  background: rgba(248, 246, 241, .42);
  filter: blur(2px);
}

[data-theme="light"] .header-utilities .language-switch,
[data-theme="light"] .header-utilities .language-switch a,
[data-theme="light"] .header-utilities .language-current,
[data-theme="light"] .header-utilities .theme-toggle {
  font-weight: 500;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .header-utilities::before {
    inset: -3px -5px;
    border-radius: 10px;
    background: rgba(248, 246, 241, .42);
    filter: blur(2px);
  }

  :root:not([data-theme]) .header-utilities .language-switch,
  :root:not([data-theme]) .header-utilities .language-switch a,
  :root:not([data-theme]) .header-utilities .language-current,
  :root:not([data-theme]) .header-utilities .theme-toggle {
    font-weight: 500;
  }
}


/* Final light-mode utility backdrop trim — reduce vertical footprint further. */
[data-theme="light"] .header-utilities::before {
  inset: -1px -4px;
  border-radius: 8px;
  background: rgba(248, 246, 241, .36);
  filter: blur(1px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .header-utilities::before {
    inset: -1px -4px;
    border-radius: 8px;
    background: rgba(248, 246, 241, .36);
    filter: blur(1px);
  }
}


/* Keep the top-right utility group physically compact. */
.header-utilities .theme-toggle {
  padding-top: 0;
  padding-bottom: 0;
}


/* Light-mode utility backdrop — final subtle opacity adjustment. */
[data-theme="light"] .header-utilities::before {
  background: rgba(248, 246, 241, .28);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .header-utilities::before {
    background: rgba(248, 246, 241, .28);
  }
}
