/* GEOFRAME 紹介ページ。外部のフォント・スクリプト・CDNは使わない（システムフォントだけ）。 */
:root {
  --bg: #f6f2ea;
  --paper: #fffdf8;
  --ink: #1f2a2e;
  --muted: #55646a;
  --line: #ddd4c4;
  --accent: #1d5b66;
  --accent-ink: #ffffff;
  --warm: #b9772a;
  --code-bg: #1f2a2e;
  --code-ink: #f3ece0;
  --radius: 14px;
  --shell: 1080px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans CJK JP", "Noto Sans JP", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  font-size: 1rem;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #0f3f48; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* ヘッダー */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 1.1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.92rem; }
.topbar nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; }
.topbar nav a:hover { color: var(--accent); text-decoration: underline; }

/* ヒーロー */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  margin: 0 0 0.75rem; color: var(--warm); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.35;
  font-size: clamp(1.9rem, 5.2vw, 3.3rem); letter-spacing: 0.02em; max-width: 20em;
}
.hero h1 span { color: var(--accent); }
.hero-lead { margin: 1.5rem 0 0; max-width: 40rem; font-size: 1.06rem; color: #2f3d42; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #0f3f48; color: var(--accent-ink); transform: translateY(-1px); }
.text-link { font-weight: 600; }

.hero-figure { margin: 2.5rem 0 0; }
.hero-figure img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }

/* セクション */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { margin-bottom: 2rem; max-width: 42rem; }
.section-head h2 {
  margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.4;
}
.section-head p:not(.eyebrow) { margin: 0.75rem 0 0; color: var(--muted); }

/* 図 */
.diagram {
  margin: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.diagram figcaption { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; grid-template-columns: repeat(4, 1fr); }
.pipe li { position: relative; padding: 1.1rem 1rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; }
.pipe li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(100% + 0.35rem); top: 50%; width: 1.5rem; height: 2px;
  background: var(--accent); transform: translateY(-50%);
}
.pipe li:not(:last-child)::before {
  content: ""; position: absolute; left: calc(100% + 1.2rem); top: 50%; width: 0.6rem; height: 0.6rem;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg);
}
.pipe .core { background: var(--ink); color: #fff; }
.pipe .core small { color: #d9d2c3; }
.pipe b { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; }
.pipe small { display: block; margin-top: 0.35rem; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }
.pipe code { font-size: 0.78rem; }
.pipe .core code { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (max-width: 48rem) {
  .pipe { grid-template-columns: 1fr; gap: 2.2rem; }
  .pipe li:not(:last-child)::after { left: 50%; top: calc(100% + 0.3rem); width: 2px; height: 1.2rem; transform: translateX(-50%); }
  .pipe li:not(:last-child)::before { left: 50%; top: calc(100% + 0.9rem); transform: translateX(-50%) rotate(135deg); }
}

/* 機能 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.micro { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--warm); text-transform: uppercase; }
.feature h3 { margin: 0.4rem 0 0.6rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.feature p { margin: 0; font-size: 0.96rem; color: #36464c; }

/* 流れ */
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.flow li { counter-increment: step; padding: 1.4rem 1.3rem; border-top: 3px solid var(--accent); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.flow li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--warm); font-size: 0.85rem; }
.flow h3 { margin: 0.2rem 0 0.5rem; font-family: var(--serif); font-size: 1.1rem; }
.flow p { margin: 0; font-size: 0.95rem; color: #36464c; }

/* 外部との通信 */
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--warm); border-radius: var(--radius); padding: 1.5rem 1.5rem; }
.notice h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.1rem; }
.notice ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.notice li { margin: 0.35rem 0; }

/* 導入 */
.setup-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.setup-grid h3 { margin: 0 0 0.6rem; font-family: var(--serif); font-size: 1.1rem; }
.setup-grid ul { margin: 0; padding-left: 1.2rem; }
.setup-grid li { margin: 0.4rem 0; }
pre {
  margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; background: var(--code-bg); color: var(--code-ink);
  border-radius: var(--radius); font-size: 0.86rem; line-height: 1.7;
}
pre:focus-visible { outline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { background: #ece4d4; padding: 0.1em 0.4em; border-radius: 5px; }
.note { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq-section { background: #efe8da; }
.faq-list { display: grid; gap: 0.75rem; max-width: 50rem; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 700; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--warm); }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 1.25rem 1.2rem; color: #36464c; font-size: 0.97rem; }

/* 文書への導線 */
.doc-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.doc-links a {
  display: block; padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.doc-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc-links strong { display: block; color: var(--accent); }
.doc-links span { font-size: 0.88rem; color: var(--muted); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-block: 2rem 3rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted);
}

@media (max-width: 40rem) {
  .shell { width: min(100% - 1.75rem, var(--shell)); }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .doc-links a:hover { transform: none; }
}
