@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --header-bg: rgba(243,244,246,.78);
  --nav-bg: rgba(255,255,255,.62);
  --nav-hover: rgba(255,255,255,.95);
  --button-text: #fff;
  --feature-bg: linear-gradient(115deg,rgba(255,255,255,.94),rgba(226,237,232,.7));
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #202124;
  --subtext: #666b73;
  --border: #d8dce2;
  --hover: #eceff2;
  --footer-bg: #eef0f3;
  --accent: #a9c7bb;
  --max-width: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family:
    "Inter",
    "Hiragino Sans",
    "Yu Gothic UI",
    "Noto Sans JP",
    sans-serif;
  background:
    radial-gradient(
      circle at 50% -100px,
      rgba(169, 199, 187, 0.13),
      transparent 420px
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 10px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  object-fit: cover;
  border-radius: 8px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 5px 14px rgba(32, 33, 36, 0.12);
}

.header-nav {
  flex-wrap: wrap;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--subtext);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--nav-hover);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 82px 0 66px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: max(calc((100% - var(--max-width)) / 2), 20px);
  top: -150px;
  border-radius: 50%;
  background: rgba(169, 199, 187, 0.12);
  filter: blur(10px);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  animation: hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero p {
  margin: 18px 0 0;
  max-width: 580px;
  color: var(--subtext);
  font-size: 17px;
  line-height: 1.8;
  animation: hero-in 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  padding: 62px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 14px 0 0;
  color: var(--subtext);
  line-height: 1.8;
}

main section { margin-bottom: 52px; }

.content { padding-top: 52px; }

.section-title {
  margin: 0 0 17px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card {
  overflow-wrap: anywhere;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 27px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.025),
    0 10px 28px rgba(0, 0, 0, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.055);
}

.card h2,
.card h3 { margin-top: 0; }

.card p,
.card li { line-height: 1.8; }

.card + .card { margin-top: 18px; }

.info-list {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.025);
}

.info-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 20px;
  gap: 20px;
  align-items: center;
  padding: 22px 20px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    padding-left 0.25s ease;
}

.info-link + .info-link {
  border-top: 1px solid var(--border);
}

.info-link:hover {
  background: var(--hover);
  padding-left: 24px;
}

.info-link strong { font-size: 16px; }

.info-link span {
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.7;
}

.arrow {
  text-align: right;
  font-size: 18px;
  transition: transform 0.25s ease;
}

.info-link:hover .arrow {
  transform: translateX(3px);
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--text);
  color: var(--button-text);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(32, 33, 36, 0.14);
}

.button:active { transform: translateY(0); }

.note {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  margin-top: 68px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtext);
  font-size: 13px;
}

.footer-links {
  flex-wrap: wrap;
  align-items: center;
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
}

.social-link svg { flex: none; }

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .header-inner {
    min-height: 56px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
    min-width: 0;
  }

  .brand img {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
  }

  .header-nav {
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
  }

  .header-nav a {
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero { padding: 58px 0 48px; }

  .page-header { padding: 46px 0 34px; }

  .content { padding-top: 38px; }

  main section { margin-bottom: 42px; }

  .card {
    padding: 22px;
    border-radius: 15px;
  }

  .card:hover { transform: none; }

  .info-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    grid-template-areas:
      "title arrow"
      "description arrow";
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 20px;
  }

  .info-link:hover {
    padding-left: 20px;
  }

  .info-link strong {
    grid-area: title;
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .info-link > span:not(.arrow) {
    grid-area: description;
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--subtext);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .info-link .arrow {
    grid-area: arrow;
    align-self: center;
    justify-self: end;
    position: static;
    transform: none;
    color: var(--subtext);
  }

  .info-link:hover .arrow {
    transform: translateX(3px);
  }

  .footer-inner {
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .header-nav a {
    padding: 7px 7px;
    font-size: 11px;
  }

  .brand { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Shared language navigation and analytics preferences. */
:focus-visible { outline: 3px solid #5b8271; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--surface); color: var(--text); padding: 12px; z-index: 300; }
.skip-link:focus { top: 8px; }
.analytics-settings { border: 0; padding: 4px 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.consent-panel { position: fixed; z-index: 200; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 6px 14px; width: 100%; max-height: 50dvh; overflow-y: auto; padding: 6px 20px; background: var(--surface); color: var(--text); border-top: 1px solid var(--border); box-shadow: 0 -3px 18px #2021240d; }
.consent-panel[hidden] { display: none; }
.consent-panel h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent-panel p { min-width: 0; margin: 0; line-height: 1.5; font-size: 13px; }
.consent-panel > p:first-of-type { grid-column: 1; grid-row: 1; }
.consent-panel [role="status"] { color: var(--subtext); font-size: 12px; }
.consent-panel [role="status"]:not(:empty)::before { content: " · "; }
.consent-panel [role="status"]:empty { display: none; }
.consent-actions { grid-column: 2; grid-row: 1; display: flex; gap: 8px; }
.consent-choice { min-width: 88px; min-height: 34px; padding: 7px 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.consent-close { grid-column: 3; grid-row: 1; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--subtext); font: inherit; font-size: 22px; cursor: pointer; }
.consent-choice:hover, .consent-close:hover { background: var(--hover); }
@media (max-width: 640px) {
  .consent-panel { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px; padding: 8px 14px; }
  .consent-close { grid-column: 2; align-self: start; }
  .consent-actions { grid-column: 1 / -1; grid-row: 2; }
}
@media (pointer: coarse) { .consent-choice, .consent-close { min-height: 44px; } }
@media (max-width: 420px) { .header-nav { width: 100%; justify-content: center; } }

/* System preference also works when JavaScript is unavailable. */
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  color-scheme: dark;
  --bg: #151b24;
  --surface: #202a37;
  --surface-soft: rgba(32,42,55,.94);
  --text: #edf1f6;
  --subtext: #b8c2d0;
  --border: #425063;
  --hover: #2e3b4c;
  --footer-bg: #19222e;
  --accent: #a9c7bb;
  --header-bg: rgba(21,27,36,.9);
  --nav-bg: rgba(32,42,55,.85);
  --nav-hover: #334254;
  --button-text: #151b24;
  --feature-bg: linear-gradient(115deg,#243140,#273d3c);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151b24;
  --surface: #202a37;
  --surface-soft: rgba(32,42,55,.94);
  --text: #edf1f6;
  --subtext: #b8c2d0;
  --border: #425063;
  --hover: #2e3b4c;
  --footer-bg: #19222e;
  --accent: #a9c7bb;
  --header-bg: rgba(21,27,36,.9);
  --nav-bg: rgba(32,42,55,.85);
  --nav-hover: #334254;
  --button-text: #151b24;
  --feature-bg: linear-gradient(115deg,#243140,#273d3c);
}

.theme-control { position: relative; z-index: 1; flex-shrink: 0; margin-left: 4px; }
.theme-control summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--nav-bg); color: var(--text); font-size: 12px; font-weight: 600; }
.theme-control summary::-webkit-details-marker { display: none; }
.theme-control summary::before { content: '◐'; margin-right: 6px; font-size: 17px; }
.theme-control summary:hover { background: var(--hover); }
.theme-options { position: absolute; right: 0; top: calc(100% + 8px); width: 190px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px #0003; }
.theme-options button { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; padding: 10px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.theme-options button:hover, .theme-options button[aria-pressed="true"] { background: var(--hover); }
.theme-options button[aria-pressed="true"]::after { content: '✓'; float: right; }
.header-nav { margin-left: auto; }
@media (max-width: 640px) {
  .brand { order: 1; }
  .theme-control { order: 2; margin-left: auto; }
  .header-nav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
}

/* Neutral site palette; app artwork keeps its own colors. */
:root {
 --bg:#f5f5f6; --surface:#fff; --surface-soft:rgba(255,255,255,.8);
 --text:#202124; --subtext:#66686d; --border:#dcdde0; --accent:#9c9ea5;
 --header-bg:rgba(245,245,246,.88); --nav-bg:rgba(255,255,255,.65); --nav-hover:#fff;
 --footer-bg:#eeeef0; --feature-bg:linear-gradient(115deg,#fff,#eeeef0);
}
:root[data-theme="dark"] {
 --bg:#19191c; --surface:#242428; --surface-soft:rgba(36,36,40,.94);
 --text:#efeff1; --subtext:#b9b9c1; --border:#414147; --accent:#8c8c96;
 --header-bg:rgba(25,25,28,.9); --nav-bg:rgba(36,36,40,.85); --nav-hover:#333338;
 --footer-bg:#151518; --feature-bg:linear-gradient(115deg,#242428,#2a2a2f);
}
@media (prefers-color-scheme:dark) { :root:not([data-theme]) {
 --bg:#19191c; --surface:#242428; --surface-soft:rgba(36,36,40,.94);
 --text:#efeff1; --subtext:#b9b9c1; --border:#414147; --accent:#8c8c96;
 --header-bg:rgba(25,25,28,.9); --nav-bg:rgba(36,36,40,.85); --nav-hover:#333338;
 --footer-bg:#151518; --feature-bg:linear-gradient(115deg,#242428,#2a2a2f);
} }
body { background:var(--bg); }
.hero::after { display:none; }
