:root {
  --ink: #17332a;
  --muted: #587266;
  --green: #1f8a5b;
  --green-dark: #146a45;
  --blue: #2f6fe0;
  --violet: #7656d6;
  --line: #cfe2d7;
  --bg: #f6fbf8;
  --tint: #e9f5ee;
  --surface: #ffffff;
  --code-bg: #142a22;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.9 Poppins, "Noto Sans JP", sans-serif;
}
a { color: var(--blue); }
code {
  padding: 0.05em 0.35em;
  border-radius: 6px;
  background: #dcefe4;
  color: #12442f;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }
.keep { display: inline-block; }

/* ---------- header ---------- */
.topbar {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffffcc;
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; }
.topbar span { color: var(--green); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; }
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--green-dark);
  background: #ffffffd9;
  box-shadow: 0 3px 12px #18332a14;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.portal-link:hover { background: #fff; transform: translateY(-2px); }
.portal-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- common ---------- */
section { padding: 72px 0; }
.tint { background: var(--tint); }
.eyebrow { margin: 0 0 0.4rem; color: var(--green); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; }
h1 {
  margin: 0.4rem 0 1.1rem;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.05em;
}
h1 em, h2 em { font-style: normal; color: var(--green); }
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: auto-phrase;
}
h3 { line-height: 1.5; }
.lead { max-width: 820px; color: var(--muted); font-size: 1.05rem; }
.small { color: var(--muted); font-size: 0.86rem; }
.kicker { margin: 0 0 4px; color: var(--green); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }

.hero { padding: 56px 0 64px; background: linear-gradient(135deg, #ffffff, #e2f4ea 60%, #e6ecff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
.hero-art { display: block; width: 100%; height: auto; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.jump a, .jump button {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jump a:first-child { border-color: var(--green); background: var(--green); color: #fff; }
.jump a:hover, .jump button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #1f8a5b22; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px #1f5a3e0d;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0 0 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card--tip { border-style: dashed; background: #fbfffd; }
.num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.notice {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 8px solid var(--green);
  border-radius: 6px;
  background: #e2f6ea;
}
.notice--warn { border-left-color: #e2733a; background: #fff1e8; }
.sub { margin: 2.6rem 0 0.4rem; font-size: 1.3rem; }

.flow {
  margin-top: 8px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}
.flow__title { margin: 0 0 6px; color: #9fe0bd; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }
.flow ol { margin: 0; padding-left: 1.3em; }
.flow b { color: #b9f0d2; }

/* ---------- two types ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.card--bound { border-color: #8fd0ad; background: #f2fcf6; }
.card--standalone { border-color: #b6c6f2; background: #f4f7ff; }
.mini { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.8rem; font-weight: 800; }
.mini__file {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 0.8rem;
  border: 2px solid #3d7fe0;
  border-radius: 6px 14px 6px 6px;
  background: #fff;
  color: #2e5fb3;
}
.mini__script {
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  background: var(--violet);
  color: #fff;
}
.mini--bound .mini__script { position: relative; margin-left: -22px; box-shadow: 0 0 0 3px #f2fcf6; }

.table-wrap { overflow-x: auto; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: #dff1e7; font-size: 0.82rem; }
.compare tbody th { width: 22%; color: var(--green-dark); white-space: nowrap; }
.compare tr:last-child > * { border-bottom: 0; }
.compare td[rowspan], .compare th[rowspan] { border-right: 1px solid var(--line); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 44px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  counter-increment: step;
}
.steps li::before {
  position: absolute;
  top: 12px;
  left: 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  content: "STEP " counter(step);
}
.steps b { line-height: 1.5; }
.steps span { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ---------- code ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 26px; }
.code-block { overflow: hidden; border-radius: 16px; background: var(--code-bg); box-shadow: 0 10px 28px #0d2a1f22; }
.code-block + .code-block, .two .code-block + .form-mock { margin-top: 16px; }
.two > .code-block + .code-block { margin-top: 0; }
.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: #0d1f18;
  color: #a6d8bd;
  font-size: 0.78rem;
  font-weight: 700;
}
.copy {
  flex: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid #3f6e58;
  border-radius: 99px;
  background: transparent;
  color: #d9f5e6;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.18s ease;
}
.copy:hover { background: #24443a; }
.copy:focus-visible { outline: 2px solid #9fe0bd; outline-offset: 2px; }
.code-block pre, .result pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #e3f6ec;
  font: 0.82rem/1.75 Consolas, "SFMono-Regular", Menlo, monospace;
}
.code-block code, .result pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.code-block .c { color: #8fbfa6; }
#calendar .code-block { margin-top: 8px; }

.terms { margin: 20px 0 0; }
.terms dt { margin-top: 12px; font-weight: 800; }
.terms dd { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }

/* doc mock */
.doc-mock { margin: 0; overflow: hidden; border: 1px solid #c9d6ea; border-radius: 16px; background: #eef2f8; }
.doc-mock__bar { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 16px; background: #fff; font-size: 0.82rem; }
.doc-mock__bar .is-new { padding: 0 0.5rem; border-radius: 6px; background: #e3edff; color: #1d4fb8; font-weight: 800; }
.doc-mock__menu { margin: -2px 0 0 auto; width: max-content; max-width: 90%; margin-right: 18%; padding: 6px 14px; border: 1px solid #d5dce8; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px #2a3b5a26; font-size: 0.8rem; }
.doc-mock__page { margin: 14px 18px 0; padding: 22px 26px 18px; border-radius: 6px 6px 0 0; background: #fff; font-size: 0.82rem; }
.doc-mock__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 500; }
.doc-mock table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.doc-mock th, .doc-mock td { height: 1.9em; padding: 2px 8px; border: 1px solid #c6ccd6; text-align: left; font-weight: 400; }
.doc-mock th { width: 28%; }
.doc-mock__h { margin: 10px 0 4px; font-size: 1.05rem; }
.doc-mock__line { height: 0.7em; margin: 0; border-bottom: 1px dashed #d7dde6; }
.doc-mock figcaption { padding: 10px 16px; background: #fff; color: var(--muted); font-size: 0.82rem; }

/* calendar sync */
.sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 26px 0 0; }
.sync__box { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; font-size: 0.86rem; }
.sync__box b { font-size: 1rem; }
.sync__box span { padding: 4px 10px; border-radius: 8px; background: #ffffffcc; }
.sync__box--cal { border: 2px solid #8eb3f3; background: #eaf1ff; }
.sync__box--sheet { border: 2px solid #8fd0ad; background: #e8f8ee; }
.sync__arrows { display: grid; gap: 8px; color: var(--green-dark); font-size: 0.85rem; font-weight: 800; text-align: center; }
.sync__arrows span { padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }

/* web api flow */
.api-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 26px 0 0; }
.api-flow__node { display: grid; gap: 2px; padding: 16px 18px; border: 2px solid #b6c6f2; border-radius: 18px; background: #fff; text-align: center; }
.api-flow__node span { color: var(--muted); font-size: 0.82rem; }
.api-flow__node--gas { border-color: #b9a6ef; background: #f6f2ff; }
.api-flow__node--sheet { border-color: #8fd0ad; background: #effaf3; }
.api-flow__arrow { display: grid; gap: 4px; color: var(--green-dark); font-size: 0.8rem; font-weight: 800; text-align: center; }

/* sheet mock */
.sheet-mock { margin-top: 24px; overflow-x: auto; border: 1px solid #c8d7cf; border-radius: 14px; background: #fff; }
.sheet-mock__tab { display: inline-block; margin: 8px 0 0 10px; padding: 2px 14px; border-radius: 8px 8px 0 0; background: #e2f6ea; color: var(--green-dark); font-size: 0.8rem; font-weight: 800; }
.sheet-mock table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.86rem; }
.sheet-mock th, .sheet-mock td { padding: 6px 10px; border: 1px solid #dfe6e2; text-align: left; }
.sheet-mock thead th, .sheet-mock tbody th { background: #f3f6f4; color: #6b7c73; font-size: 0.76rem; font-weight: 700; }
.sheet-mock tbody th { width: 36px; text-align: center; }
.sheet-mock .ck { width: 64px; color: #fff; text-align: center; }
.sheet-mock .ck::before { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 2px solid #9aa9a1; border-radius: 3px; content: ""; vertical-align: middle; }
.sheet-mock .ck.is-on { font-size: 0; }
.sheet-mock .ck.is-on::before { border-color: var(--green); background: var(--green); color: #fff; font-size: 12px; content: "✓"; }

.two--code { margin-top: 20px; }
.result { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-top: 24px; }
.result__json { overflow: hidden; border-radius: 16px; background: var(--code-bg); }
.result__label { margin: 0; padding: 8px 16px; background: #0d1f18; color: #a6d8bd; font-size: 0.78rem; font-weight: 700; }
.result__view { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.result__view .result__label { background: #e2f6ea; color: var(--green-dark); }
.notice-list { margin: 0; padding: 12px 16px; list-style: none; }
.notice-list li { display: grid; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.notice-list li + li { margin-top: 8px; }
.notice-list time { color: var(--green); font-size: 0.78rem; font-weight: 800; }
.notice-list span { color: var(--muted); font-size: 0.86rem; }

/* form mock */
.form-mock { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 0.88rem; }
.form-mock p { margin: 0; }
.form-mock__title { font-size: 1.05rem; font-weight: 800; }
.form-mock__field { display: grid; gap: 2px; font-weight: 700; }
.form-mock__field i { padding: 4px 10px; border: 1px solid #b9d3c3; border-radius: 8px; font-style: normal; font-weight: 400; }
.form-mock__radio { display: flex; gap: 14px; }
.form-mock__radio span::before { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border: 2px solid #9aa9a1; border-radius: 50%; content: ""; vertical-align: -1px; }
.form-mock__radio .is-on::before { border-color: var(--green); background: radial-gradient(var(--green) 45%, #fff 50%); }
.form-mock__btn { padding: 6px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; text-align: center; }
.form-mock__ok { padding: 6px 10px; border-radius: 8px; background: #e2f6ea; color: var(--green-dark); font-weight: 700; }

/* download */
.download { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.download__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download__btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--green-dark); }
.download__btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.download__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* sources */
.sources { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.sources h2 { margin: 0; color: var(--ink); font-size: 1rem; }
.sources p { margin: 6px 0 0; }
.sources ul { margin: 8px 0 0; padding-left: 1.2em; }

/* ---------- footer ---------- */
.guide-footer { padding: 2rem 0; border-top: 1px solid var(--line); background: #dcefe4; color: var(--muted); }
.footer-content { display: flex; align-items: center; gap: 1rem; }
.page-pagination { display: flex; gap: 0.75rem; margin-left: auto; }
.page-pagination a {
  display: grid;
  gap: 0.1rem;
  min-width: 13rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #a9d3bb;
  border-radius: 14px;
  background: #f6fcf8;
  color: var(--green-dark);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.page-pagination a:hover { background: #fff; transform: translateY(-2px); }
.page-pagination small { font-size: 0.7rem; font-weight: 700; }
.page-pagination strong { font-size: 0.84rem; }

/* ---------- launcher & to top ---------- */
.gas-lab-dock {
  position: sticky;
  bottom: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5em;
  padding: 0.7rem 1rem;
  border-top: 1px solid #9fd8b8;
  background: #1f8a5bee;
  backdrop-filter: blur(10px);
}
.gas-lab-dock button {
  padding: 0.7rem 1.2rem;
  border: 1px solid #d3f0df;
  border-radius: 99px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gas-lab-dock button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #0b3a2455; }
.gas-lab-dock button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gas-lab-dock span { margin-left: 0.6rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
/* iPhone などの Safari では、sticky で下に貼った要素が、ツールバーの出入りで画面の途中に止まることがある。
   iOS だけ画面に固定し、ページ下端の内容が隠れないよう同じ高さの余白を足す */
@supports (-webkit-touch-callout: none) {
  .gas-lab-dock {
    position: fixed;
    right: 0;
    left: 0;
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  }
  body { padding-bottom: calc(5em + env(safe-area-inset-bottom)); }
}

#toTop {
  position: fixed;
  z-index: 900;
  right: 1.3rem;
  bottom: 6rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #b9e6cc;
  border-radius: 50%;
  background: #1f8a5bed;
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 22px #0d3a2640;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  translate: 0 10px;
  transition: opacity 0.22s ease, translate 0.22s ease, background 0.18s ease;
}
#toTop.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }
#toTop:hover { background: var(--green-dark); }
#toTop:focus-visible { outline: 3px solid #ff8a5b; outline-offset: 3px; }

/* ---------- simulator dialog ---------- */
dialog#gas-lab {
  width: min(1080px, calc(100% - 24px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px #0b241a55;
}
dialog#gas-lab::backdrop { background: #0b1f1799; }
.lab-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.lab-head h2 { margin: 0; font-size: 1.05rem; }
#close-lab, #reset-lab {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
#close-lab:hover, #reset-lab:hover { background: var(--tint); }
.lab-content { padding: 14px 18px 18px; }
.lab-notice { padding: 10px 14px; border-radius: 12px; background: #fff4e5; font-size: 0.8rem; line-height: 1.7; }
.lab-notice p { margin: 0; }
.lab-notice p + p { margin-top: 4px; }
.lab-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.lab-chapters button {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.lab-chapters button[aria-current="step"] { border-color: var(--green); background: var(--green); color: #fff; }
.lab-chapters button.is-done { color: var(--green-dark); }
.lab-status { margin-top: 10px; }
#lab-progress { margin: 0; color: var(--green); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; }
#lab-task { margin: 0; font-size: 1.05rem; }
.lab-hint { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.lab-stage-wrap { position: relative; margin-top: 10px; }
.lab-stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid #c9d4cf;
  border-radius: 14px;
  background: #dfe6e2;
  font-size: 13px;
  line-height: 1.5;
}
.lab-explanation { min-height: 1.7em; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--tint); font-size: 0.88rem; line-height: 1.7; }
.lab-explanation:empty { display: none; }
.lab-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

.guided {
  outline: 3px solid #ff4b4b !important;
  outline-offset: 2px;
  animation: lab-guided 1.3s ease-in-out infinite;
}
.guide-label {
  position: absolute;
  z-index: 30;
  max-width: min(260px, 80%);
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 2px solid #ff4b4b;
  border-radius: 8px;
  background: #d92f2f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  pointer-events: none;
}
.guide-label::before {
  position: absolute;
  top: -8px;
  left: calc(var(--ax, 20px) - 7px);
  width: 12px;
  height: 12px;
  border-top: 2px solid #ff4b4b;
  border-left: 2px solid #ff4b4b;
  background: #d92f2f;
  content: "";
  transform: rotate(45deg);
}
.guide-label.is-above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.guide-label[hidden] { display: none; }
.guide-label.is-nudge { animation: lab-nudge 0.4s; }
@keyframes lab-guided { 50% { box-shadow: 0 0 0 7px #ff4b4b33; } }
@keyframes lab-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes lab-pop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes lab-win-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes lab-blink { 50% { opacity: 0; } }

/* ----- simulated screens (prefix: sim-) ----- */
.sim-browser { position: absolute; inset: 10px; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #1d2b2433; }
.sim-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #dee3ea; }
.sim-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 220px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #3b4652;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.sim-tab.is-active { background: #fff; color: #1d2733; font-weight: 700; }
.sim-tab i { flex: none; width: 12px; height: 14px; border-radius: 2px; background: #4285f4; }
.sim-tab i.is-sheet { background: #0f9d58; }
.sim-tab i.is-script { background: #7656d6; }
.sim-tab i.is-page { background: #9aa6b2; }
.sim-addr { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #e3e7ec; background: #fff; }
.sim-addr button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #4a5562; font: inherit; font-size: 15px; cursor: default; }
.sim-addr span { flex: 1; min-width: 0; padding: 4px 12px; overflow: hidden; border-radius: 99px; background: #f0f3f6; color: #4a5562; white-space: nowrap; text-overflow: ellipsis; }
.sim-body { position: relative; flex: 1; min-height: 0; overflow: auto; background: #f8fafc; }

.sim-app-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; background: #fff; }
.sim-app-icon { flex: none; width: 22px; height: 28px; border-radius: 3px; background: #4285f4; }
.sim-app-icon.is-sheet { background: #0f9d58; }
.sim-app-title { font-size: 15px; }
.sim-menubar { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 2px 44px 6px; background: #fff; border-bottom: 1px solid #e3e7ec; }
.sim-menu-wrap { position: relative; display: inline-flex; }
.sim-menubar > span:not(.sim-menu-wrap), .sim-menu-item {
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f2a36;
  font: inherit;
  font-size: 13px;
  cursor: default;
}
.sim-menubar .is-open { background: #e3ebf7; }
.sim-menubar .is-added { color: #1d4fb8; font-weight: 700; animation: lab-pop 0.4s ease; }
.sim-dropdown {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 210px;
  padding: 6px 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px #1d2b2440;
  animation: lab-pop 0.18s ease;
}
.sim-dropdown.is-right { right: 0; left: auto; }
.sim-dropdown > *, .sim-ed-menu > * { white-space: nowrap; }
.sim-dropdown button, .sim-dropdown span {
  padding: 6px 16px;
  border: 0;
  background: transparent;
  color: #1f2a36;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: default;
}
.sim-dropdown .is-muted { color: #8a95a1; }
.sim-dropdown hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #e3e7ec; }

.sim-docpage { width: min(560px, calc(100% - 40px)); min-height: 300px; margin: 16px auto; padding: 28px 34px; background: #fff; box-shadow: 0 1px 4px #1d2b2426; }
.sim-docpage p { margin: 0 0 6px; }
.sim-doc-title { font-size: 24px; animation: lab-pop 0.4s ease; }
.sim-doc-h { margin-top: 10px !important; font-size: 16px; font-weight: 700; animation: lab-pop 0.4s ease; }
.sim-docpage table { width: 100%; margin: 8px 0; border-collapse: collapse; animation: lab-pop 0.4s ease; }
.sim-docpage td { height: 24px; padding: 2px 8px; border: 1px solid #bfc6d0; }
.sim-docpage td:first-child { width: 30%; }
.sim-doc-placeholder { color: #9aa4ae; }

.sim-sheet { padding: 0; }
.sim-sheet table { border-collapse: collapse; background: #fff; font-size: 12px; }
.sim-sheet th, .sim-sheet td { min-width: 90px; height: 24px; padding: 2px 8px; border: 1px solid #e0e4e8; text-align: left; white-space: nowrap; }
.sim-sheet thead th, .sim-sheet tbody th { min-width: 34px; background: #f1f3f5; color: #6b7682; font-weight: 400; text-align: center; }
.sim-sheet-tabs { position: sticky; bottom: 0; display: flex; gap: 2px; padding: 4px 10px; border-top: 1px solid #e0e4e8; background: #f1f3f5; }
.sim-sheet-tabs span { padding: 2px 12px; border-radius: 4px; background: #fff; color: #0b8043; font-weight: 700; }

/* script editor */
.sim-editor { display: grid; grid-template-columns: 170px 1fr; height: 100%; min-height: 0; }
.sim-ed-side { padding: 8px; border-right: 1px solid #e3e7ec; background: #fff; }
.sim-ed-side p { margin: 0 0 4px; color: #6b7682; font-size: 11px; font-weight: 700; }
.sim-ed-side span { display: block; padding: 4px 8px; border-radius: 6px; background: #e8f0fe; color: #1a56c6; }
.sim-ed-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sim-ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #e3e7ec; background: #fff; }
.sim-ed-bar .sim-ed-name { margin-right: auto; font-weight: 700; }
.sim-ed-bar button {
  padding: 4px 10px;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
  background: #fff;
  color: #1f2a36;
  font: inherit;
  font-size: 12px;
  cursor: default;
}
.sim-ed-bar .is-primary { border-color: #1a73e8; background: #1a73e8; color: #fff; font-weight: 700; }
.sim-ed-wrap { position: relative; flex: 1; min-height: 0; }
.sim-ed-code {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  color: #1f2a36;
  font: 12px/1.65 Consolas, "SFMono-Regular", Menlo, monospace;
  text-align: left;
  white-space: pre;
  overflow: auto;
  cursor: text;
}
.sim-ed-code .caret { display: inline-block; width: 1px; height: 1.1em; background: #1f2a36; vertical-align: -2px; animation: lab-blink 1s step-end infinite; }
.sim-ed-status { padding: 4px 10px; border-top: 1px solid #e3e7ec; background: #fff; color: #188038; font-size: 12px; }
.sim-ed-status:empty { display: none; }
.sim-ed-menu { position: absolute; z-index: 6; top: 36px; right: 10px; display: grid; width: max-content; min-width: 180px; padding: 6px 0; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px #1d2b2440; animation: lab-pop 0.18s ease; }
.sim-ed-menu button, .sim-ed-menu span { padding: 6px 16px; border: 0; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: default; }
.sim-ed-menu .is-muted { color: #8a95a1; }

/* dialogs inside the simulation */
.sim-overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 14px; background: #1d2b2466; animation: lab-pop 0.2s ease; }
.sim-modal { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #1d2b2455; animation: lab-win-in 0.25s ease; }
.sim-modal h4 { margin: 0 0 8px; font-size: 16px; }
.sim-modal p { margin: 0 0 8px; color: #3b4652; }
.sim-modal .sim-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.sim-modal button, .sim-linkbtn {
  padding: 6px 14px;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
  background: #fff;
  color: #1a56c6;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
}
.sim-modal .is-primary { border-color: #1a73e8; background: #1a73e8; color: #fff; }
.sim-linkbtn { display: inline-block; padding: 2px 4px; border: 0; text-decoration: underline; }
.sim-google { margin-bottom: 6px; color: #5f6368; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.sim-warn { display: flex; gap: 8px; align-items: flex-start; }
.sim-warn::before { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #d93025; color: #fff; font-weight: 800; content: "!"; }
.sim-account { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px !important; border: 1px solid #e3e7ec !important; border-radius: 8px !important; color: #1f2a36 !important; text-align: left; }
.sim-account i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #7656d6; color: #fff; font-style: normal; font-weight: 800; }
.sim-account small { display: block; color: #6b7682; font-weight: 400; }
.sim-scopes { margin: 6px 0; padding-left: 1.2em; color: #3b4652; }
.sim-form { display: grid; gap: 8px; margin: 10px 0; }
.sim-form label { display: grid; gap: 2px; color: #6b7682; font-size: 12px; }
.sim-form label span, .sim-select {
  display: block;
  padding: 6px 10px;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
  background: #fff;
  color: #1f2a36;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.sim-select { width: 100%; cursor: default; }
.sim-select::after { float: right; content: "▾"; }
.sim-options { display: grid; margin-top: 2px; border: 1px solid #d5dbe2; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px #1d2b2430; }
.sim-options button { padding: 6px 10px; border: 0; border-radius: 0; color: #1f2a36; font-weight: 400; text-align: left; }
.sim-type { display: flex; align-items: center; gap: 8px; }
.sim-gear { width: 30px; height: 30px; padding: 0 !important; border-radius: 50% !important; font-size: 16px !important; }
.sim-url { display: block; margin: 4px 0 8px; padding: 6px 10px; border-radius: 6px; background: #f1f3f5; color: #1f2a36; font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.sim-copied { color: #188038; font-weight: 700; }

/* text editor + result page in chapter 4 */
.sim-notepad { display: flex; flex-direction: column; height: 100%; background: #fff; }
.sim-notepad__bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #e3e7ec; }
.sim-notepad__bar b { margin-right: auto; }
.sim-notepad__bar button { padding: 4px 10px; border: 1px solid #d5dbe2; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; cursor: default; }
.sim-notepad__bar .is-primary { border-color: #1f8a5b; background: #1f8a5b; color: #fff; font-weight: 700; }
.sim-notepad pre { margin: 0; padding: 10px 12px; font: 12px/1.65 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sim-notepad .sim-line { display: block; border-radius: 4px; cursor: text; }
.sim-notepad .is-filled { background: #e2f6ea; animation: lab-pop 0.3s ease; }
.sim-page { max-width: 520px; margin: 16px auto; padding: 0 16px; }
.sim-page h5 { margin: 0 0 8px; font-size: 20px; }
.sim-page ul { margin: 0; padding: 0; list-style: none; }
.sim-page li { margin-bottom: 8px; padding: 10px 12px; border: 1px solid #cfe3d6; border-radius: 10px; background: #fff; animation: lab-pop 0.35s ease backwards; }
.sim-page li:nth-child(2) { animation-delay: 0.12s; }
.sim-page time { display: block; color: #1f8a5b; font-size: 11px; font-weight: 800; }
.sim-page .sim-loading { color: #6b7682; }
.sim-done { position: absolute; inset: auto 14px 14px; z-index: 8; padding: 10px 14px; border-radius: 10px; background: #17332a; color: #fff; font-size: 13px; animation: lab-pop 0.3s ease; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .api-flow { grid-template-columns: 1fr; }
  .api-flow__arrow { grid-auto-flow: column; justify-content: center; gap: 12px; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .wrap { width: calc(100% - 32px); }
  .hero-grid, .two, .pair, .cards, .cards--2, .result, .download { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: auto; }
  .sync { grid-template-columns: 1fr; }
  .sync__arrows { grid-auto-flow: column; justify-content: center; }
  .compare tbody th { white-space: normal; }
  .footer-content { align-items: flex-start; flex-direction: column; }
  .page-pagination { width: 100%; margin-left: 0; }
  .page-pagination a { width: 100%; min-width: 0; }
  .site-copyright { align-self: center; }
  .gas-lab-dock { min-height: 4.2em; }
  .gas-lab-dock span { display: none; }
  #toTop { right: 1rem; bottom: 5.2rem; }
  .lab-content { padding: 12px; }
  .lab-stage { min-height: 470px; font-size: 12px; }
  .sim-browser { inset: 6px; }
  .sim-editor { grid-template-columns: 1fr; }
  .sim-ed-side { display: none; }
  .sim-menubar { padding: 2px 8px 6px; }
  .sim-docpage { padding: 18px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Official product icon, aligned with the first title line. */
.gas-title-brand{display:inline-flex;align-items:center;gap:.22em}
.gas-title-icon{display:block;flex:none;width:.85em;height:.85em;object-fit:contain}

.gas-section-heading{display:flex;align-items:flex-start;gap:.35em}
.gas-section-heading>img{flex:none;width:.78em;height:.78em;margin-top:.27em;object-fit:contain}
.gas-section-heading>span{min-width:0}

.gas-type-figure{margin:1.2rem 0 0;text-align:center}
.gas-type-figure img{display:block;width:100%;max-width:380px;height:auto;margin:auto;object-fit:contain}
.gas-type-figure figcaption{margin-top:.35rem;color:var(--muted);font-size:.8rem;font-weight:700}

/* ドキュメントの差し込みフォーム */
.docs-form-demo{margin:2rem 0;border:1px solid #b9d8ca;border-radius:16px;overflow:hidden;background:#fff}
.docs-form-layout{display:grid;grid-template-columns:1fr minmax(180px,32%);min-height:310px;background:#edf1ef}
.docs-template{margin:20px;padding:24px;background:white;line-height:2.5;box-shadow:0 2px 9px #193d2512}
.docs-panel,.sim-doc-panel{padding:16px;background:#fff;border-left:1px solid #ccd8d2;font-size:14px}
.docs-panel label,.sim-doc-panel label{display:block;margin:14px 0}
.docs-panel label span{display:block;border:1px solid #b5c8be;border-radius:5px;padding:7px;margin-top:5px}
.docs-panel b,.sim-doc-panel button{display:block;background:#26835e;color:#fff;padding:10px;border-radius:6px;border:0}
.docs-form-demo figcaption{padding:14px;font-size:.85rem}
.docs-steps li{margin:1rem 0;line-height:1.9}.docs-code{margin:20px 0}.docs-code summary{cursor:pointer;font-weight:700;padding:12px}
.sim-doc-workspace{display:flex;align-items:stretch}.sim-doc-workspace .sim-docpage{flex:1;min-width:0}.sim-doc-panel{width:230px;flex-shrink:0}.sim-doc-panel input,.sim-doc-panel textarea{box-sizing:border-box;width:100%;padding:7px;font:inherit;border:1px solid #b5c8be;border-radius:4px}.sim-doc-panel textarea{min-height:80px}
@media(max-width:600px){.docs-form-layout{grid-template-columns:1fr 46%}.docs-template{margin:10px;padding:12px;font-size:14px}.docs-panel{padding:10px;font-size:12px}.sim-doc-panel{width:44%;padding:10px;font-size:12px}.sim-doc-workspace .sim-docpage{padding:14px;margin:10px}.docs-form-demo .doc-mock__bar{font-size:11px;white-space:normal}}

/* 表そのものの幅を固定し、外側だけを画面幅に収める。 */
.table-wrap.gas-type-comparison{position:relative;box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.gas-type-comparison table.compare{table-layout:fixed;width:1200px;min-width:1200px;max-width:none}
.gas-type-comparison .compare th,.gas-type-comparison .compare td{box-sizing:border-box}
.gas-type-comparison .compare th:first-child{width:240px}
.gas-type-comparison .compare thead th:not(:first-child){width:400px}
.gas-type-comparison .compare thead th,.gas-type-comparison .compare tbody th{white-space:nowrap}
.gas-type-comparison .compare td{overflow-wrap:break-word;word-break:normal}
.gas-type-comparison .compare code{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.gas-type-comparison:focus-visible{outline:3px solid var(--green-dark);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.gas-type-comparison .scroll-hint-icon:before{animation:none}}

/* 実画面を主役にし、立体イメージは左上の小さなバッジにする。 */
.gas-type-visual{position:relative;margin-top:1.8rem}
.gas-type-figure .gas-type-screenshot{width:100%;max-width:none;height:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.gas-type-badge{position:absolute;left:-8px;top:-24px;display:grid;place-items:center;width:88px;height:70px;border:2px solid var(--line);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:4px 5px 4px 0px #173c256b;pointer-events:none}
.gas-type-badge img{width:100%;max-width:none;height:100%;margin:0;object-fit:contain}
@media(max-width:600px){.gas-type-badge{width:68px;height:54px;left:-5px;top:-20px;border-radius:14px}}

/* Real authorization screenshots: keep controls legible and offer full-size originals. */
.auth-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.auth-steps li{min-width:0;padding:48px 22px 22px;gap:12px}
.auth-steps li::before{left:22px;top:17px}
.auth-steps li>b{font-size:1.13rem}
.auth-steps p{margin:0;font-size:.94rem;line-height:1.9}
.auth-steps figure{margin:0}
.auth-steps figure+figure{margin-top:10px}
.auth-steps figure a{display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.auth-steps img{display:block;width:100%;height:auto}
.auth-steps figcaption{font-size:.8rem;color:var(--muted);line-height:1.8;margin-top:8px}
.auth-steps a:focus-visible{outline:3px solid var(--green-dark);outline-offset:4px}
.auth-photo-note{margin-top:22px}
@media(max-width:760px){.auth-steps{grid-template-columns:1fr}.auth-steps li{padding:46px 16px 18px}.auth-steps li::before{left:16px}}

.docs-live-shot{margin:20px 0 28px;max-width:100%;min-width:0}.docs-live-shot a{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.docs-live-shot img{display:block;width:100%;height:auto}.docs-live-shot figcaption{margin-top:8px;color:var(--muted);font-size:.83rem;line-height:1.8}.docs-live-shot a:focus-visible{outline:3px solid var(--green-dark);outline-offset:4px}

.photo-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:#eef7f2;color:#173c25;box-sizing:border-box}
.photo-viewer[open]{display:flex;flex-direction:column}.photo-viewer::backdrop{background:#173c25cc}
.photo-viewer__bar{position:sticky;top:0;flex:none;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #b8d5c4;z-index:1}
.photo-viewer__bar button{min-height:44px;padding:10px 18px;border:2px solid #287c58;border-radius:24px;background:#fff;color:#173c25;font:700 15px 'Noto Sans JP',sans-serif;cursor:pointer}
.photo-viewer__body{flex:1;min-height:0;overflow:auto;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.photo-viewer__body img{display:block;width:100%;max-width:1600px;height:auto;margin:auto}.photo-viewer-open{overflow:hidden}

/* Keep each illustrated step compact on laptops and fluid on phones. */
ol.docs-steps {
    padding: 0;
    list-style-position: inside;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 2em 3em;
    text-align: justify;
}
ol.docs-steps > li {
    min-width: 0;
    margin: 0;
    border-bottom: 1px solid #2c9164;
}
.calendar-steps .docs-live-shot img,
.webapi-steps .docs-live-shot img { max-height: 320px; object-fit: contain; }

/* 06の本文の横に置く飾りのイラスト */
.eyecatch-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 32px; align-items: center; }
.eyecatch-row > * { min-width: 0; }
.eyecatch-row--table { margin-top: 20px; }
.eyecatch-row--table .table-wrap { margin-top: 0; }
.section-eyecatch { display: block; width: 150px; height: auto; }
@media (max-width: 760px) {
  .eyecatch-row { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; }
  .section-eyecatch { width: 88px; }
  .eyecatch-row--table { grid-template-columns: 1fr; }
  .eyecatch-row--table .section-eyecatch { display: none; }
}

/* 手順からリンクしたコード欄の位置とリンクの目印 */
.docs-code[id]{scroll-margin-top:24px}
.code-jump{text-decoration:underline;text-underline-offset:.2em;font-weight:700}

/* 拡大画像：押したカードの画像がそのまま拡大して開き、閉じるとカードの位置へ戻る（image-viewer.js） */
.photo-viewer{transition:background-color 320ms ease}
.photo-viewer::backdrop{background:transparent}
.photo-viewer.is-zooming{background-color:transparent}
.photo-viewer__bar{transition:transform 320ms cubic-bezier(.2,.8,.2,1),opacity 240ms ease}
.photo-viewer.is-zooming .photo-viewer__bar{transform:translateY(-100%);opacity:0}
.photo-viewer__body{position:relative}
.photo-viewer__body img{opacity:0;transition:opacity 200ms ease-out}
.photo-viewer__body img.is-ready{opacity:1}
.photo-viewer.is-zoom-motion .photo-viewer__body img{transition:none}
.photo-viewer__ghost{position:fixed;z-index:3;margin:0;pointer-events:none;border-radius:10px;box-shadow:0 24px 60px rgba(23,60,37,.35);transform-origin:0 0;will-change:transform}
.photo-viewer__loading{position:absolute;top:40px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px}
.photo-viewer__loading[hidden],.photo-viewer__error[hidden]{display:none}
.photo-viewer__spinner{width:22px;height:22px;border:3px solid #c9dfd2;border-top-color:#287c58;border-radius:50%;animation:photo-spinner 700ms linear infinite}
.photo-viewer__error{text-align:center;margin:32px 0}
@keyframes photo-spinner{to{transform:rotate(360deg)}}
.docs-live-shot a,#auth figure a{cursor:zoom-in;transition:transform 180ms ease,box-shadow 180ms ease}
.docs-live-shot a:hover,#auth figure a:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(23,60,37,.18)}
.docs-live-shot a.is-opening,#auth figure a.is-opening{animation:photo-card-press 280ms ease-out}
.docs-live-shot a.is-source img,#auth figure a.is-source img{visibility:hidden}
@keyframes photo-card-press{35%{transform:scale(.95)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.photo-viewer,.photo-viewer__bar,.photo-viewer__body img,.docs-live-shot a,#auth figure a{transition:none}.photo-viewer__spinner,.docs-live-shot a.is-opening,#auth figure a.is-opening{animation:none}.docs-live-shot a:hover,#auth figure a:hover{transform:none}}

/* 07「このページで試す」 */
.api-tester { margin-top: 2.4rem; padding: 4px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.api-tester .sub { margin-top: 1.4rem; }
.api-tester__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-top: 16px; }
.api-tester__field { display: grid; gap: 6px; min-width: 0; }
.api-tester__label { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.api-tester__field input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 0.92rem; }
.api-tester__field input:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.api-tester__action { display: grid; gap: 6px; justify-items: start; }
.api-tester__action button { padding: 12px 26px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.api-tester__action button:disabled { opacity: 0.6; cursor: progress; }
.api-tester__status { min-height: 1.8em; margin: 14px 0 0; color: var(--green-dark); font-weight: 700; }
.api-tester__list:empty { display: none; }
.api-tester__list { margin-top: 8px; padding: 0; }
.api-tester__list b { margin: 2px 0; }
.tester-guide { justify-self: start; padding: 2px 10px; border: 2px solid #d93025; border-radius: 6px; background: #d93025; color: #fff; font-size: 0.78rem; font-weight: 800; line-height: 1.6; }
@media (max-width: 760px) {
  .api-tester { padding: 2px 16px 18px; }
  .api-tester__form { grid-template-columns: 1fr; }
}
