/* Keyscene の HP。黒を基調にした Liquid Glass（すりガラスの面・縁の光・指したところの光）。
   動き: 読み込み中のスケルトン → 入ってくる動き、スクロールで現れる、ナビの帯が縮む、メニュー・モーダル・アコーディオン。
   「視差効果を減らす」が ON のときは動きをなくす。site/content.mjs・scripts/build-site.mjs・site/assets/site.js */

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

:root {
  --bg: #050507;
  --text: #f4f4f7;
  --sub: #bdbdc6;
  --muted: #8e8e98;
  --link: #cf9bff;
  --accent: #a12ee0;
  --accent-2: #b94cf5;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(22, 22, 28, 0.62);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: dark;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  /* 背景は html に塗る（body に塗ると奥の光が隠れる） */
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Helvetica Neue', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:lang(en) body {
  line-height: 1.65;
}

/* 奥の光（ガラスの向こうに見えるもの）。ゆっくり動く */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 18%, rgba(161, 46, 224, 0.22), transparent 70%),
    radial-gradient(34% 30% at 82% 30%, rgba(56, 92, 255, 0.16), transparent 70%),
    radial-gradient(40% 36% at 60% 88%, rgba(124, 58, 237, 0.14), transparent 70%);
  filter: blur(40px);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.02);
  }
}

a {
  color: var(--link);
  text-decoration-color: rgba(207, 155, 255, 0.4);
  text-underline-offset: 0.2em;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.01em;
}
img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 300;
  padding: 4px 8px;
  background: var(--bg);
}

.pad {
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.inner {
  max-width: 1080px;
  margin: 0 auto;
}
.inner-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.muted {
  color: var(--muted);
}

/* ---- ガラス ---- */

.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 55%), var(--glass);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.45);
}
/* 後ろをぼかすのは、ほかの物の上に浮く面だけ（ナビ・メニュー・モーダル・パンくずリスト）。
   すべての面でぼかすと、スクロールや動きが重くなる */
.gnav,
.menu-sheet,
.modal-panel,
.crumbs {
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
/* 縁の光（上と左が明るい） */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.08) 32%,
    rgba(255, 255, 255, 0.03) 60%,
    rgba(255, 255, 255, 0.18)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}
/* 指したところの光（site.js が --mx・--my を入れる） */
.lit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.1),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.lit:hover::after {
  opacity: 1;
}

/* ---- 読み込み中のスケルトン（全体） ---- */

.skeleton {
  display: none;
}
html.is-loading body {
  overflow: hidden;
}
html.is-loading .skeleton,
html.sk-leaving .skeleton {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: 12px max(16px, env(safe-area-inset-left, 0px));
}
html.sk-leaving .skeleton {
  opacity: 0;
  transform: scale(1.01);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  pointer-events: none;
}
.sk {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(255, 255, 255, 0) 70%
    )
    rgba(255, 255, 255, 0.05);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
.sk-nav {
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sk-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.sk-word {
  width: 84px;
  height: 14px;
}
.sk-space {
  flex: 1;
}
.sk-page {
  max-width: 1080px;
  margin: 72px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sk-hero {
  display: flex;
  align-items: center;
  gap: 22px;
}
.sk-icon {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
.sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-title {
  width: min(320px, 70%);
  height: 44px;
}
.sk-line {
  height: 14px;
}
.w25 {
  width: 25%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w70 {
  width: 70%;
}
.w80 {
  width: 80%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}
.sk-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.sk-btn {
  width: 140px;
  height: 44px;
  border-radius: 999px;
}
.sk-block {
  margin-top: 24px;
  height: min(56vw, 600px);
  border-radius: 28px;
}
.sk-crumb {
  width: 200px;
  height: 36px;
  border-radius: 999px;
}
.sk-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 12px;
}
.sk-card {
  height: 220px;
  border-radius: 24px;
}

/* ---- 入ってくる動き・スクロールで現れる動き（JavaScript があるときだけ） ---- */

html.js [data-enter] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}
html.js.is-ready [data-enter] {
  animation: enter 0.9s var(--ease) var(--d, 0ms) forwards;
}
@keyframes enter {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms),
    filter 0.8s var(--ease) var(--d, 0ms);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---- 上のナビ（浮いたガラスの帯） ---- */

.gnav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}
.gnav {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 60px;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 60%),
    rgba(14, 14, 18, 0.5);
  transition:
    max-width 0.5s var(--ease),
    min-height 0.5s var(--ease),
    background-color 0.5s,
    box-shadow 0.5s;
}
html.scrolled .gnav {
  max-width: 920px;
  min-height: 52px;
  background-color: rgba(10, 10, 14, 0.72);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand svg {
  flex: none;
  border-radius: 7px;
  transition: transform 0.5s var(--spring);
}
.brand:hover svg {
  transform: rotate(-8deg) scale(1.08);
}
.gnav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.gnav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--sub);
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}
.gnav-links a:hover,
.gnav-links a[aria-current] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.lang a,
.lang span[aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sub);
  text-decoration: none;
}
.lang a:hover {
  color: var(--text);
}
.lang span[aria-current] {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lang .sep {
  display: none;
}
.burger,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.2s var(--spring);
}
.burger:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.burger:active,
.icon-button:active {
  transform: scale(0.92);
}
.burger {
  display: none;
}
/* 2本の線（メニューの中では × になる） */
.burger-icon {
  position: relative;
  width: 18px;
  height: 12px;
}
.burger-icon i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--spring);
}
.burger-icon i:first-child {
  top: 2px;
}
.burger-icon i:last-child {
  bottom: 2px;
}
dialog.menu.open .burger-icon.is-x i:first-child {
  transform: translateY(3.2px) rotate(45deg);
}
dialog.menu.open .burger-icon.is-x i:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}
@media (max-width: 760px) {
  .gnav-links,
  .gnav > .lang {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* ---- ダイアログ（メニュー・モーダル）。site.js が open・closing を付ける ---- */

dialog {
  color: var(--text);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background 0.35s,
    backdrop-filter 0.35s;
}
dialog.open::backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

dialog.menu {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 12px max(16px, env(safe-area-inset-left, 0px));
  border: 0;
  background: transparent;
  overflow: visible;
}
.menu-sheet {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 18px 20px;
  border-radius: 30px;
  background-color: var(--glass-strong);
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transform-origin: top center;
  transition:
    opacity 0.35s var(--ease),
    transform 0.5s var(--spring);
}
dialog.menu.open .menu-sheet {
  opacity: 1;
  transform: none;
}
.menu-top {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-bottom: 6px;
}
.menu-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.menu-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
  transition-delay: calc(80ms + var(--i) * 45ms);
}
dialog.menu.open .menu-list li {
  opacity: 1;
  transform: none;
}
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s;
}
.menu-list a:hover {
  background: rgba(255, 255, 255, 0.07);
}
.menu .lang {
  width: max-content;
}

dialog.modal {
  width: min(1200px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.modal-panel {
  padding: 14px;
  border-radius: 28px;
  background-color: var(--glass-strong);
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  filter: blur(6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.55s var(--spring),
    filter 0.35s var(--ease);
}
dialog.modal.open .modal-panel {
  opacity: 1;
  transform: none;
  filter: none;
}
.modal-panel figure {
  margin: 0;
}
.modal-panel img {
  display: block;
  margin: 0 auto;
  max-height: calc(100vh - 140px);
  width: auto;
  border-radius: 14px;
}
.modal-panel figcaption {
  padding: 12px 52px 4px 8px;
  color: var(--sub);
  font-size: 14px;
}
.modal-close {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
}

/* ---- ボタン ---- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(161, 46, 224, 0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.35s var(--spring),
    box-shadow 0.35s;
}
.pill:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 14px 36px rgba(161, 46, 224, 0.45);
}
.pill:active {
  transform: scale(0.96);
}
.pill.soon {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.pill.soon:hover {
  transform: none;
}
.text-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.2s var(--spring);
}
.text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.text-button:active {
  transform: scale(0.95);
}

/* ---- 画面の画像（ガラスの面に置く。押すと拡大） ---- */

.stage {
  padding: clamp(6px, 1.4vw, 14px);
  border-radius: 30px;
  transition: transform 0.6s var(--ease);
}
.stage img {
  display: block;
  margin: 0 auto;
}
.zoom {
  display: block;
  border-radius: 18px;
  cursor: zoom-in;
}
.zoom img {
  transition: transform 0.7s var(--ease);
}
.stage:hover .zoom img {
  transform: scale(1.012);
}

/* ---- トップ ---- */

.hero {
  padding-block: 64px 24px;
}
.hero-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-head svg {
  flex: none;
  border-radius: 18px;
  box-shadow:
    0 12px 40px rgba(161, 46, 224, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-5px);
  }
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero .lead {
  margin: 12px 0 0;
  max-width: 38em;
  color: var(--sub);
  font-size: 18px;
  line-height: 1.7;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.hero-shot {
  margin-top: 48px;
}
@media (max-width: 560px) {
  .hero {
    padding-top: 40px;
  }
  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-head svg {
    width: 60px;
    height: 60px;
  }
}

.section {
  padding-block: 72px;
}
.section h2,
.faq-head h2 {
  margin: 0 0 32px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
}
.section p {
  margin: 0 0 12px;
  color: var(--sub);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 56px;
  align-items: center;
  padding-block: 36px;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text {
  order: 2;
}
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-text p {
  margin: 0;
}
.feature.wide {
  grid-template-columns: minmax(0, 1fr);
}
.feature.wide .feature-text {
  max-width: 44em;
}
@media (max-width: 760px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip .feature-text {
    order: 0;
  }
}

.more-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.more-list > div {
  padding: 24px 26px;
  border-radius: 24px;
  transition:
    transform 0.5s var(--spring),
    opacity 0.8s var(--ease) var(--d, 0ms),
    filter 0.8s var(--ease) var(--d, 0ms);
}
.more-list > div.in:hover {
  transform: translateY(-4px);
}
.more-list dt {
  font-weight: 700;
}
.more-list dd {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 15px;
}
@media (max-width: 900px) {
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .more-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  padding: 26px 28px;
}
.panel p:last-child {
  margin-bottom: 0;
}

.specs {
  margin: 0;
  padding: 6px 28px;
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 0;
}
.specs > div + div {
  border-top: 1px solid var(--line);
}
.specs dt {
  font-weight: 600;
}
.specs dd {
  margin: 0;
  color: var(--sub);
}
@media (max-width: 560px) {
  .specs > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- よくある質問（アコーディオン。site.js が開け閉めを動かす） ---- */

.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.faq-head h2 {
  margin: 0;
}
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
details.acc {
  border-radius: 20px;
}
details.acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  border-radius: 20px;
}
details.acc summary::-webkit-details-marker {
  display: none;
}
details.acc summary span {
  flex: 1;
  min-width: 0;
}
details.acc summary svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.45s var(--spring);
}
details.acc[open]:not(.closing) summary svg {
  transform: rotate(180deg);
}
details.acc .answer {
  overflow: hidden;
}
details.acc .answer p {
  margin: 0;
  padding: 0 54px 20px 22px;
  color: var(--sub);
}

/* ---- サポート・プライバシーポリシー・ライセンス ---- */

main.page {
  padding-block: 28px 88px;
}
.crumbs {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  font-size: 14px;
}
.crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
}
.crumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 12px 0 10px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--sub);
  text-decoration: none;
  transition: background 0.2s;
}
.crumbs a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.crumbs svg {
  border-radius: 4px;
}
.crumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}

.page-head {
  margin-bottom: 36px;
}
.page-head h1,
.doc h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.page-head p {
  margin: 12px 0 0;
  color: var(--sub);
}
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.columns > section {
  padding: 28px;
  border-radius: 26px;
}
.columns h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.4;
}
.columns p {
  margin: 0 0 12px;
  color: var(--sub);
}
.columns ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--sub);
}
.columns .link-list {
  list-style: none;
  padding: 0;
}
.columns .address {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 760px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.faq-section {
  padding-top: 40px;
}

.doc .stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.doc .stack > .crumbs {
  align-self: flex-start;
  margin-bottom: 4px;
}
.doc .date {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.doc .intro {
  margin: 0;
}
.summary-box {
  padding: 22px 26px;
}
.summary-box .title {
  margin: 0 0 6px;
  font-weight: 700;
}
.summary-box ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--sub);
}
.doc section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}
.doc section p {
  margin: 0;
  color: var(--sub);
}

.oss-box {
  padding: 28px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oss-box h2 {
  margin: 0;
  font-size: 24px;
}
.oss-box h3 {
  margin: 0;
  font-size: 16px;
}
.oss-box p {
  margin: 0;
  color: var(--sub);
}
.oss-facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr;
  gap: 6px 24px;
}
.oss-facts dt {
  color: var(--muted);
}
.oss-facts dd {
  margin: 0;
}
.oss-part {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.oss-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.oss-box .note {
  font-size: 13px;
  color: var(--muted);
}
.oss-list {
  margin: 4px 0 0;
  padding: 4px 22px;
  list-style: none;
  border-radius: 22px;
}
.oss-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  font-size: 15px;
}
.oss-row + .oss-row {
  border-top: 1px solid var(--line);
}
.oss-row .name {
  font-weight: 600;
}
.oss-row .what {
  color: var(--sub);
}
.oss-row a {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .oss-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---- フッター ---- */

.footer {
  padding-block: 24px 28px;
}
.footer-panel {
  padding: 22px 26px;
  border-radius: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 14px;
}
.footer-top .brand {
  font-size: 15px;
}
.footer-panel p {
  margin: 0 0 4px;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--sub);
  text-decoration: none;
  transition: background 0.2s;
}
.footer-links a:hover,
.footer-links a[aria-current] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- 見つからない ---- */

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.not-found-panel {
  max-width: 560px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-radius: 30px;
}
.not-found h1 {
  margin: 0;
  font-size: 28px;
}
.not-found p {
  margin: 0;
  color: var(--muted);
}

/* ---- 動きを減らす ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js [data-enter],
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
