@font-face {
  font-family: "Shippori Mincho B1";
  src: url("fonts/shippori-mincho-b1-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/zen-maru-gothic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/zen-maru-gothic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --base: #fff;
  --paper: #f7f6f2;
  --wash: #f4fafd;
  --line: #d9e8f0;
  --deep: #14383a;
  --ink: #3a4648;
  --sea: #2f3e40;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--ink); font: 500 1rem/1.9 var(--maru); letter-spacing: .03em; }
.wrap { width: min(45rem, calc(100% - 2rem)); margin-inline: auto; min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 800; color: var(--sea); line-height: 1.48; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem,6vw,2.75rem); margin: .12em 0 .38em; }
h2 { font-size: clamp(1.6rem,4.5vw,2rem); margin: .15em 0 .65em; }
h3 { font-size: clamp(1.15rem,3vw,1.35rem); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--deep); text-underline-offset: .18em; }
button, summary, a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #397d9e; outline-offset: 3px; }
.hero { position: relative; padding: 0 0 1.05rem; background: linear-gradient(var(--paper) 45%,var(--base) 95%); }
.hero-video { width: min(100%,70rem); margin-inline: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 45%; background: #e9eeee; }
.hero-note { position: relative; margin-top: -3.5rem; padding: 1.5rem 1.35rem; border: 1px solid var(--line); background: var(--base); }
.aya-wave { position: absolute; right: 1rem; top: -5.6rem; width: auto; height: 6.35rem; pointer-events: none; }
.hand { width: auto; max-width: 100%; height: 1.55rem; object-fit: contain; object-position: left center; }
.hero .hand { height: 1.72rem; }
nav { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin-top: 1rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.chapter { padding-block: clamp(2.2rem,6vw,4rem); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: .85rem .05rem .95rem 2.65rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { position: absolute; top: .9rem; left: .12rem; display: grid; place-items: center; width: 1.73rem; height: 1.73rem; background: #e8f3f8; color: var(--deep); content: counter(step); font: 800 1rem/1 var(--mincho); }
.steps p { font-size: .97rem; }
.prepare-input { display: grid; grid-template-columns: minmax(0,13rem) minmax(0,1fr); gap: 1.25rem; align-items: start; }
.prepare-input img { width: 100%; }
.gemini-setup { margin-top: 1.8rem; }
.gemini-steps { margin-top: .85rem; }
.gemini-steps h4 { margin: 0 0 .2rem; font: 800 1.15rem/1.45 var(--mincho); color: var(--sea); }
.gemini-steps img { width: min(100%,28rem); height: auto; margin-top: .65rem; border: 1px solid var(--line); }
.gemini-result { margin-top: 1.1rem; }
.gemini-result figcaption { margin-bottom: .6rem; font-weight: 700; }
.gemini-result video { width: min(100%,15rem); aspect-ratio: 9/16; object-fit: contain; background: #20252d; }
summary { color: var(--deep); cursor: pointer; font-weight: 700; padding: .65rem .85rem; }
article video { width: 100%; aspect-ratio: 9/16; object-fit: contain; background: #20252d; }
.prompt { display: grid; justify-items: start; gap: .42rem; min-width: 0; margin-top: .5rem; }
code { display: block; width: 100%; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; padding: .52rem .67rem; background: #eef7fb; border-left: 2px solid #83afc5; color: #244957; font: 500 .89rem/1.6 var(--maru); }
.prompt-toggle { border: 1px solid var(--line); }
.prompt-toggle summary { min-height: 44px; background: var(--wash); }
.prompt-toggle .prompt { margin: 0; padding: .65rem .85rem .85rem; }
.command-short code { font: .84rem/1.55 Menlo, monospace; }
button { min-height: 44px; max-width: 100%; padding: .48rem .79rem; border: 0; color: white; background: var(--deep); font: 700 .91rem/1.4 var(--maru); cursor: pointer; }
button:hover { background: #22535a; }
.copy-state:empty { display: none; }
.copy-state { color: #28566d; font-size: .85rem; }
.commands { background: var(--wash); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.35rem; margin-top: 1.4rem; }
.cards article {
  display: grid;
  grid-template: auto / minmax(0,9rem) minmax(0,1fr);
  align-items: center;
  min-width: 0;
  padding: clamp(1.15rem,4vw,1.75rem);
  gap: clamp(1.05rem,4vw,1.8rem);
  background: var(--base);
  border: 1px solid var(--line);
}
.card-body { display: flex; flex-direction: column; gap: .36rem; min-width: 0; }
.card-body p { margin: .18rem 0 .55rem; font-size: .9rem; }
.cards button { padding-inline: 1rem; }
.interior-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
.interior-inputs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 48rem) {
  .hero { padding-top: 2rem; }
  .hero-video { aspect-ratio: 16/9; }
  .hero-note { margin-top: -4.6rem; padding: 2.2rem; }
  .aya-wave { height: 8rem; top: -7.2rem; right: 1.4rem; }
}
@media (max-width: 30rem) {
  .prepare-input { grid-template-columns: minmax(0,1fr); }
  .prepare-input figure { width: min(100%,19rem); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.chapter-toggle { margin: 0; }
.chapter-toggle > summary { list-style: none; padding: 0; }
.chapter-toggle > summary::-webkit-details-marker { display: none; }
.chapter-title {
  display: grid;
  grid-template-columns: .75rem minmax(0,1fr) auto;
  gap: clamp(.5rem,2vw,1rem);
  align-items: center;
  min-height: 8.5rem;
  margin: 0;
  padding: clamp(.75rem,3vw,1.4rem);
  background: var(--base);
  border: 1px solid var(--line);
  font-size: clamp(1.5rem,6.7vw,2.75rem);
  line-height: 1.32;
}
.chapter-title::before {
  content: "";
  width: .58rem;
  height: .58rem;
  border-right: 2px solid var(--deep);
  border-bottom: 2px solid var(--deep);
  transform: translateY(-2px) rotate(45deg);
}
.chapter-toggle[open] > summary .chapter-title::before { transform: translateY(2px) rotate(-135deg); }
.chapter-title > span { min-width: 0; }
.chapter-aya { justify-self: end; width: auto; height: clamp(7.2rem,23vw,10.5rem); }
.chapter-content { padding-top: 1.25rem; }
.gift-follow-up-card { padding: clamp(1.25rem,5vw,2.4rem); border: 1px solid var(--line); background: var(--wash); }
.gift-follow-up-card a { font-weight: 700; }
.gift-follow-up-help { margin-top: .9rem; font-size: .93rem; }
@media (max-width: 30rem) {
  .cards article { grid-template-columns: minmax(0,1fr); }
  .cards article video { width: min(100%,10.5rem); justify-self: center; }
}
