.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
}
.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 760;
  letter-spacing: -0.035em;
}
.brand img {
  width: 25px;
  height: 25px;
}
.brand-word {
  font-size: 20px;
  line-height: 1;
}
.brand-meta {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 27px;
}
.nav a {
  color: #bdbdbb;
  font-size: 13px;
  font-weight: 560;
  padding: 10px 0;
  transition: color 0.16s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  outline: 0;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.language-menu {
  position: relative;
}
.language-trigger {
  height: 40px;
  min-width: 116px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  transition:
    background 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out),
    color 0.24s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.language-trigger:hover,
.language-trigger:focus-visible,
.language-menu.is-open .language-trigger {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  transform: translateY(-4px);
  outline: 0;
}
.language-trigger:active {
  transform: translateY(0);
}
.language-prefix {
  display: none;
}
.language-current {
  text-align: left;
  white-space: nowrap;
}
.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}
.language-menu.is-open .language-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.language-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 176px;
  padding: 6px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 0;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0.18s;
}
.language-menu.is-open .language-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.language-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c9c9c7;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.language-option span:last-child {
  font: 10px var(--mono);
  color: var(--muted-2);
}
.language-option:hover,
.language-option:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
  outline: 0;
}
.language-option[aria-selected="true"] {
  color: var(--text);
  background: #171717;
}
.language-option[aria-selected="true"] span:last-child {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.005em;
  cursor: pointer;
  /* ホバー時は影を使わず、少し大きな移動量を滑らかに補間する。 */
  transition:
    background 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out),
    color 0.24s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.btn:hover,
.btn:focus-visible {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-4px);
  outline: 0;
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-primary:active {
  background: var(--accent-pressed);
  transform: translateY(0);
}
.btn-quiet {
  color: var(--muted);
}
.btn-text {
  border-color: transparent;
  background: transparent;
  padding-inline: 2px;
  min-height: 36px;
  color: #d0d0ce;
}
.btn-text:hover,
.btn-text:focus-visible {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transform: none;
}
.header-cta {
  min-height: 40px;
  padding-inline: 15px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition:
    background 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.menu-button:hover,
.menu-button:focus-visible {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  transform: translateY(-4px);
  outline: 0;
}
.menu-button:active {
  transform: translateY(0);
}
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    top 0.2s ease;
}
.menu-button::before {
  top: 15px;
}
.menu-button::after {
  top: 23px;
}
.menu-button[aria-expanded="true"]::before {
  top: 19px;
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"]::after {
  top: 19px;
  transform: rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 24px;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
}
.mobile-menu a:last-child {
  color: var(--accent);
  border-bottom: 0;
}

.section {
  border-top: 1px solid var(--line-soft);
}
.section-inner {
  padding: clamp(84px, 9vw, 132px) 0;
}
.kicker,
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.display {
  margin: 0;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.045em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: clamp(40px, 4.8vw, 64px);
}
h3 {
  font-size: clamp(27px, 2.45vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.copy {
  color: var(--muted);
  max-width: 62ch;
}
.copy strong {
  color: var(--text);
  font-weight: 650;
}
.title-lines {
  display: block;
  min-width: 0;
}
.title-lines > .title-line {
  display: block;
}
.title-lines--mobile {
  display: none;
}
@media (min-width: 761px) {
  .title-lines > .title-line {
    white-space: nowrap;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
[data-reveal="soft"] {
  transform: translateY(12px);
}
[data-reveal].is-visible {
  animation: flux-reveal 0.68s var(--ease-out) var(--reveal-delay, 0ms) both;
}
[data-reveal="soft"].is-visible {
  animation-name: flux-reveal-soft;
}
@keyframes flux-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flux-reveal-soft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #090909;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 36px;
  padding: 68px 0 72px;
}
.footer-brand {
  padding-right: 34px;
}
.footer-brand .brand {
  margin-bottom: 18px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 26ch;
}
.footer-col h4 {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 650;
}
.footer-col a {
  display: block;
  color: #d4d4d2;
  margin: 0 0 12px;
  font-size: 14px;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  outline: 0;
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 28px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  color: var(--muted-2);
  font-size: 11px;
}
.loading-state {
  min-height: 45vh;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 12px;
}
.error-state {
  margin: 120px auto;
  padding: 22px;
  width: min(700px, calc(100% - 40px));
  border: 1px solid #7d252b;
  border-radius: 0;
  color: #e0b3b3;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .faq-answer {
    transition: none !important;
    animation: none !important;
  }
  .faq details[open] .faq-answer {
    height: auto;
    opacity: 1;
  }
  .language-popover {
    transform: none;
    transition: none !important;
  }
  .btn,
  .language-trigger,
  .menu-button,
  .media-control {
    transition: none !important;
  }
  .btn:hover,
  .btn:focus-visible,
  .language-trigger:hover,
  .language-trigger:focus-visible,
  .language-menu.is-open .language-trigger,
  .menu-button:hover,
  .menu-button:focus-visible,
  .media-control:hover,
  .media-control:focus-visible {
    transform: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
