@charset "UTF-8";

/*-------------------------------------------
基本設定
-------------------------------------------*/

:root {
  --ink: #101724;
  --ink-2: #202d40;
  --paper: #f2f5f2;
  --white: #ffffff;
  --mint: #9cf1d8;
  --muted: #9caebb;
  --line: #314052;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button {
  font: inherit;
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

[tabindex]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100% - 56px, 1320px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -60px;
  left: 20px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--mint);
}

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

/*-------------------------------------------
ヘッダーと導入
-------------------------------------------*/

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.wordmark {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.wordmark-dot {
  color: var(--mint);
}

.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-header p span {
  margin-inline: 10px;
  color: var(--mint);
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-block: 54px 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--mint);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.3vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.075em;
}

.intro h1 em {
  color: var(--mint);
  font-style: normal;
}

.intro-lead {
  max-width: 340px;
  margin: 0 0 7px;
  color: #c7d5dc;
  line-height: 1.9;
}

/*-------------------------------------------
見本カード
-------------------------------------------*/

.library {
  padding-bottom: 96px;
}

.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.library-heading h2 {
  margin: 0;
  font-size: inherit;
}

.library-heading span {
  color: var(--muted);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sample-card {
  min-width: 0;
  padding: clamp(22px, 2.7vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-2);
}

.sample-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.sample-meta span + span {
  color: var(--muted);
}

.sample-copy {
  min-height: 112px;
  padding-top: 19px;
}

.sample-copy h3 {
  margin: 0 0 5px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.05em;
}

.sample-copy p {
  margin: 0;
  color: #b9c9d3;
  font-size: 0.94rem;
}

.demo-stage {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}

.sample-tip {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.code-open {
  margin-top: 14px;
  padding: 9px 13px;
  border: 1px solid #688277;
  border-radius: 6px;
  color: var(--mint);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}

.code-open:hover {
  color: var(--ink);
  background: var(--mint);
}

/*-------------------------------------------
ハンバーガーメニューの見本
-------------------------------------------*/

.demo-stage-menu {
  padding: 18px;
  background: #aee5d8;
}

.menu-shell {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f6ed;
}

.menu-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding-inline: 20px;
  border-bottom: 1px solid #d6dfd9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 280ms ease, top 280ms ease;
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 23px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.menu-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100% - 58px);
  padding: 24px;
}

.menu-scene p {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1.07;
}

.menu-scene span {
  margin-top: 20px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.menu-panel {
  position: absolute;
  z-index: 2;
  inset: 58px 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: min(76%, 330px);
  padding: 28px;
  color: var(--white);
  background: var(--ink);
  box-shadow: -18px 0 35px #10172435;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 380ms cubic-bezier(.2,.8,.2,1), visibility 380ms;
}

.menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.menu-panel a {
  width: fit-content;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.menu-panel a:hover {
  color: var(--mint);
}

/*-------------------------------------------
タブメニューの見本
-------------------------------------------*/

.demo-stage-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #d9e4f1;
}

.tab-demo {
  width: min(100%, 440px);
  min-height: 244px;
  padding: 16px;
  border: 1px solid #d9e1e5;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 40px #21344b1b;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 8px;
  background: #eaf0f3;
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #667886;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 180ms, background 180ms, box-shadow 180ms;
}

.tab-button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px #1423361a;
}

.tab-panel {
  padding: 19px 10px 6px;
  animation: panel-in 280ms ease both;
}

.tab-panel span {
  display: block;
  margin-bottom: 8px;
  color: #547575;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.tab-panel strong {
  display: block;
  font-size: 1.36rem;
  line-height: 1.25;
  letter-spacing: -0.06em;
}

.tab-panel p {
  margin: 8px 0 0;
  color: #657581;
  font-size: 0.77rem;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-------------------------------------------
アコーディオンの見本
-------------------------------------------*/

.demo-stage-accordion {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e5e9dc;
}

.accordion-demo {
  width: min(100%, 450px);
  padding: 18px 24px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 16px 34px #29372b17;
}

.demo-overline {
  margin: 0 0 14px;
  color: #618077;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.accordion-demo details {
  border-top: 1px solid #dce4de;
}

.accordion-demo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.accordion-demo summary::-webkit-details-marker {
  display: none;
}

.accordion-demo summary span {
  color: #477d6e;
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 220ms ease;
}

.accordion-demo details[open] summary span {
  transform: rotate(45deg);
}

.accordion-demo details p {
  margin: -2px 0 13px;
  color: #61716d;
  font-size: 0.78rem;
  animation: panel-in 250ms ease both;
}

/*-------------------------------------------
モーダルの見本
-------------------------------------------*/

.demo-stage-modal {
  display: grid;
  place-items: center;
  padding: 22px;
  background: #ddd9ef;
}

.modal-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: min(100%, 390px);
  height: 100%;
  padding: 25px;
  border-radius: 8px;
  color: var(--white);
  background: #272747;
}

.modal-demo > span {
  color: #b7c4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.modal-demo strong {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.09em;
  line-height: 1.08;
}

.modal-demo button, .dialog-action {
  min-height: 43px;
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: var(--mint);
  font-size: 0.85rem;
  font-weight: 900;
}

.modal-demo button:hover, .dialog-action:hover {
  background: #bafce9;
}

.demo-dialog {
  width: min(100% - 36px, 480px);
  max-height: min(90vh, 600px);
  padding: clamp(28px, 5vw, 48px);
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 80px #0005;
}

.demo-dialog::backdrop {
  background: #0a1325ba;
  backdrop-filter: blur(5px);
}

.demo-dialog[open] {
  animation: dialog-in 260ms ease both;
}

.demo-dialog h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.08em;
}

.demo-dialog > p:not(.demo-overline) {
  margin: 0 0 24px;
  color: #52606b;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #edf1ef;
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*-------------------------------------------
通知トーストの見本
-------------------------------------------*/

.sample-card-wide {
  grid-column: 1 / -1;
}

.sample-card-wide .demo-stage {
  height: 260px;
}

.demo-stage-toast {
  display: grid;
  place-items: center;
  background: #d6e7e8;
}

.toast-demo {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100% - 42px, 600px);
  padding: 25px 28px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 45px #12354720;
}

.toast-demo-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  font-weight: 900;
}

.toast-demo p {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.toast-demo button {
  padding: 10px 17px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.toast-demo button:hover {
  background: #314a63;
}

.toast-message {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 12px 15px;
  border: 1px solid #dce4e1;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px #1538422a;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-message > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 900;
}

.toast-message p {
  margin: 0;
  line-height: 1.35;
}

.toast-message strong, .toast-message small {
  display: block;
}

.toast-message strong {
  font-size: 0.78rem;
}

.toast-message small {
  color: #687982;
  font-size: 0.66rem;
}

/*-------------------------------------------
パララックスの見本
-------------------------------------------*/

.demo-stage-parallax {
  isolation: isolate;
  background: #c9e9d9;
  cursor: crosshair;
}

.parallax-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #b4e8dc 0%, #e5f4e1 68%, #ffedbd 100%);
}

.parallax-layer {
  position: absolute;
  pointer-events: none;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.parallax-sun {
  top: 34px;
  right: 65px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff2b0;
  box-shadow: 0 0 0 22px #fff7cb56, 0 0 70px #fff0a5;
}

.parallax-hill-back {
  right: -12%;
  bottom: -82px;
  width: 115%;
  height: 220px;
  border-radius: 50% 50% 0 0;
  background: #8bbbae;
  transform-origin: bottom;
}

.parallax-hill-front {
  left: -17%;
  bottom: -139px;
  width: 135%;
  height: 258px;
  border-radius: 50% 50% 0 0;
  background: #347868;
  transform-origin: bottom;
}

.parallax-caption {
  z-index: 1;
  top: 42px;
  left: 38px;
  color: #163e3d;
}

.parallax-caption span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.parallax-caption strong {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  letter-spacing: -0.08em;
  line-height: 1.04;
}

/*-------------------------------------------
スライド・カルーセルの見本
-------------------------------------------*/

.demo-stage-carousel {
  display: flex;
  flex-direction: column;
  background: #dce5ec;
}

.carousel-viewport {
  height: calc(100% - 66px);
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 7px;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 27px;
  color: var(--white);
}

.carousel-slide span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.carousel-slide strong {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.08em;
  line-height: 1.05;
}

.carousel-slide-one {
  background: radial-gradient(circle at 85% 22%, #baffdf 0 14%, transparent 14.5%), #214856;
}

.carousel-slide-two {
  background: radial-gradient(circle at 79% 30%, #ffbd96 0 16%, transparent 16.5%), #743c50;
}

.carousel-slide-three {
  background: radial-gradient(circle at 84% 27%, #d8c9ff 0 15%, transparent 15.5%), #47437d;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 0 18px;
}

.carousel-controls > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.1rem;
}

.carousel-controls > button:hover {
  background: var(--mint);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #98a9b2;
}

.carousel-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 99px;
  background: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/*-------------------------------------------
フェードインの見本
-------------------------------------------*/

.demo-stage-fade {
  padding: 28px;
  background: #eee8db;
}

.fade-stack {
  color: #4b3f42;
}

.fade-item {
  display: block;
}

.fade-stage-enhanced .fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.fade-stage-enhanced.is-active .fade-item {
  opacity: 1;
  transform: translateY(0);
}

.fade-stage-enhanced .fade-item:nth-child(2) {
  transition-delay: 140ms;
}

.fade-stage-enhanced .fade-item:nth-child(3) {
  transition-delay: 280ms;
}

.fade-stage-enhanced .fade-item:nth-child(4) {
  transition-delay: 420ms;
}

.fade-stage-enhanced.is-replaying .fade-item {
  animation: fade-replay 560ms ease both;
}

.fade-stage-enhanced.is-replaying .fade-item:nth-child(2) {
  animation-delay: 140ms;
}

.fade-stage-enhanced.is-replaying .fade-item:nth-child(3) {
  animation-delay: 280ms;
}

.fade-stage-enhanced.is-replaying .fade-item:nth-child(4) {
  animation-delay: 420ms;
}

@keyframes fade-replay {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-number {
  margin-bottom: 20px;
  color: #88716c;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.fade-stack strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.08em;
  line-height: 1.05;
}

.fade-line {
  width: 90px;
  height: 3px;
  margin-top: 15px;
  background: #d58b70;
}

.fade-stack p {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-stage-fade button {
  position: absolute;
  right: 19px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid #b5a59d;
  border-radius: 6px;
  color: #4b3f42;
  background: #fff9;
  font-size: 0.72rem;
  font-weight: 800;
}

.demo-stage-fade button:hover {
  background: var(--white);
}

/*-------------------------------------------
ホバーエフェクトの見本
-------------------------------------------*/

.demo-stage-hover {
  padding: 15px;
  background: #d8dcf3;
}

.hover-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  padding: 25px;
  border-radius: 6px;
  color: var(--white);
  background: #343765;
}

.hover-tile::before {
  position: absolute;
  inset: 0;
  background: #b3e8dc;
  content: "";
  transform: translateY(101%);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-tile > * {
  position: relative;
  z-index: 1;
}

.hover-tile-overline {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.hover-tile strong {
  font-size: clamp(2rem, 4.5vw, 3.55rem);
  letter-spacing: -0.08em;
  line-height: 1.03;
  transition: transform 460ms ease;
}

.hover-tile-arrow {
  position: absolute;
  right: 25px;
  bottom: 16px;
  font-size: 2.1rem;
  transition: transform 460ms ease;
}

.hover-tile-reveal {
  position: absolute;
  bottom: 30px;
  left: 25px;
  opacity: 0;
  font-size: 0.8rem;
  font-weight: 800;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.hover-tile:hover,
.hover-tile:focus-visible {
  color: #243946;
}

.hover-tile:hover::before,
.hover-tile:focus-visible::before {
  transform: translateY(0);
}

.hover-tile:hover strong,
.hover-tile:focus-visible strong {
  transform: translateY(-46px);
}

.hover-tile:hover .hover-tile-arrow,
.hover-tile:focus-visible .hover-tile-arrow {
  transform: translate(7px, -7px);
}

.hover-tile:hover .hover-tile-reveal,
.hover-tile:focus-visible .hover-tile-reveal {
  opacity: 1;
  transform: translateY(0);
}

/*-------------------------------------------
コード表示モーダル
-------------------------------------------*/

.code-dialog {
  width: min(100% - 32px, 900px);
  max-height: 90dvh;
  padding: 25px;
  border: 1px solid #3d5162;
  border-radius: 14px;
  color: var(--white);
  background: #152131;
  box-shadow: 0 30px 80px #0008;
}

.code-dialog::backdrop {
  background: #07111dd9;
  backdrop-filter: blur(5px);
}

.code-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.code-dialog-overline {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.code-dialog h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.code-dialog-header > button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #597184;
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 1.5rem;
}

.code-dialog-header > button:hover {
  color: var(--ink);
  background: var(--mint);
}

.code-dialog-note {
  margin: 10px 0 22px;
  color: #b9cbd5;
  font-size: 0.82rem;
}

.code-tab-list {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #476070;
}

.code-tab-list button {
  min-width: 85px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px 6px 0 0;
  color: #a9bac6;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.code-tab-list button[aria-selected="true"] {
  color: var(--ink);
  background: var(--mint);
}

.code-file-name {
  margin: 13px 0 8px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 800;
}

.code-dialog pre {
  max-height: min(52dvh, 550px);
  margin: 0;
  overflow: auto;
  padding: 18px;
  border: 1px solid #2d4052;
  border-radius: 7px;
  background: #0d1724;
  font-size: 0.78rem;
  line-height: 1.6;
  tab-size: 2;
}

.code-dialog code {
  color: #d8eee8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/*-------------------------------------------
フッター・レスポンシブ
-------------------------------------------*/

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.site-footer .shell span:first-child {
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: -0.05em;
}

@media (max-width: 900px) {
  .intro {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .intro-lead {
    max-width: 600px;
  }
  .sample-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 32px, 1320px);
  }
  .header-inner {
    min-height: 68px;
  }
  .site-header p {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
  .intro {
    padding-block: 36px 42px;
  }
  .intro h1 {
    font-size: clamp(2.65rem, 10.5vw, 4rem);
  }
  .sample-card {
    padding: 20px;
  }
  .sample-copy {
    min-height: 100px;
  }
  .demo-stage {
    height: 280px;
  }
  .sample-meta {
    font-size: 0.64rem;
  }
  .toast-demo {
    flex-wrap: wrap;
    gap: 14px;
  }
  .toast-demo p {
    flex-basis: calc(100% - 70px);
  }
  .toast-demo button {
    margin-left: 62px;
  }
  .toast-message {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-width: 0;
  }

  .parallax-caption {
    left: 25px;
  }

  .carousel-slide {
    padding: 20px;
  }

  .fade-stack strong {
    font-size: 2.5rem;
  }

  .hover-tile {
    padding: 20px;
  }

  .hover-tile-reveal {
    left: 20px;
  }

  .code-dialog {
    padding: 18px;
  }

  .code-tab-list button {
    min-width: 0;
    flex: 1;
    padding-inline: 8px;
  }
}

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