/* =========================================================================
   Pixubus EX help site — design system
   本家 Pixubus と同じ文芸誌トーン(クリーム紙 × 明朝 × インクブルー × ゴールド)を
   そのまま継承。差し色のアンバーは「現像」のニュアンスに。
   Cormorant Garamond のみ self-host、和文は OS フォントにフォールバック=完全オフライン。
   → file:// で直接開いても、アプリの /docs 配信でも、Cloudflare Pages でも同じく動く。
   ========================================================================= */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-500italic.woff2') format('woff2'); }

:root {
  --paper: #f6f3ec;       /* クリーム紙 */
  --paper-2: #efe9dc;     /* 一段沈めた紙 */
  --ink: #1f1d1a;         /* 本文 */
  --ink-deep: #14131a;    /* 見出し */
  --card: #ffffff;
  --card-hover: #f0ece3;
  --line: #d7d3c9;
  --line-soft: #e6e1d6;
  --accent: #3a5dc6;      /* インクブルー(Inkubus と共通) */
  --accent-deep: #2c47a0;
  --gold: #b8893f;        /* 三日月・約物・ラベル */
  --amber: #df8a36;       /* 柴犬の暖色(Pixubus の差し色) */
  --amber-soft: #f0a85a;
  --muted: #6b6b6b;

  --serif-jp: 'Shippori Mincho B1', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  --serif-latin: 'Cormorant Garamond', 'Shippori Mincho B1', Georgia, serif;
  --sans-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'DM Mono', 'Menlo', Consolas, monospace;

  --maxw: 1280px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 19, 26, 0.04), 0 8px 30px rgba(20, 19, 26, 0.06);
  --shadow-lift: 0 4px 12px rgba(20, 19, 26, 0.08), 0 22px 50px rgba(20, 19, 26, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans-jp); font-size: 16px; line-height: 1.85; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* ごく薄い紙のざらつき(オフライン data-uri) */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
::selection { background: rgba(58, 93, 198, 0.16); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

/* ---------- header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.4rem;
  padding: 0.8rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(10px); border-bottom: 1px solid var(--line-soft);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-deep); flex-shrink: 0; }
.nav__mark { flex-shrink: 0; width: 32px; height: 32px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 6px rgba(20, 19, 26, 0.12); }
.nav__name { font-family: var(--serif-latin); font-size: 1.32rem; font-weight: 600; letter-spacing: 0.04em; }
.nav__name b { font-weight: 600; color: var(--ink-deep); }
.nav__links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; flex-wrap: wrap; }
.nav__link { color: var(--ink); font-size: 0.875rem; letter-spacing: 0.03em; padding: 0.3rem 0.6rem; border-bottom: 1.5px solid transparent; transition: color 0.18s, border-color 0.18s; }
.nav__link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav__link.is-here { color: var(--accent); border-bottom-color: var(--accent); }
.nav__cta { font-size: 0.84rem; padding: 0.35rem 0.95rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }
.nav__cta:hover { background: var(--accent); color: #fff !important; }
/* ハンバーガー: デスクトップは details を透過し通常の横並び nav。SP は下の @media で ☰ ドロップダウン */
.nav__menu { display: contents; }
.nav__toggle { display: none; list-style: none; }
.nav__toggle::-webkit-details-marker { display: none; }

/* ---------- doc layout ---------- */
.doc { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.8rem); padding: 2rem clamp(1rem, 4vw, 2rem) 4.5rem; position: relative; z-index: 1; }
.doc--plain { display: block; max-width: 1000px; padding-inline: clamp(1.5rem, 5vw, 3.5rem); }

.side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; }
.side__grp { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 0.4rem; }
.side__grp:first-child { margin-top: 0; }
.side__link { display: block; color: var(--ink); font-size: 0.88rem; padding: 0.3rem 0.7rem; border-left: 2px solid var(--line); transition: all 0.16s; }
.side__link:hover { color: var(--accent); border-left-color: var(--accent); background: var(--card-hover); }
.side__link.is-here { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 7%, transparent); }

.toc { display: none; }
.toc__t { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem; }
.toc a { display: block; color: var(--muted); padding: 0.22rem 0 0.22rem 0.7rem; border-left: 2px solid var(--line); transition: all 0.16s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }

/* ---------- content ---------- */
.main { min-width: 0; position: relative; z-index: 1; }
.crumb { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin: 0 0 1rem; }
.crumb a { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif-jp); color: var(--ink-deep); font-weight: 600; line-height: 1.34; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0.2rem 0 0.5rem; }
.nb { white-space: nowrap; }
.lead { color: var(--muted); font-size: 1.02rem; margin: 0 0 1.8rem; max-width: 64ch; word-break: auto-phrase; }
.muted { color: var(--muted); }
/* OS 別の手順をまとめる帯(llama.cpp 準備ページ等で使用) */
.osband { display: flex; align-items: center; gap: 0.7rem; margin: 2.6rem 0 0.4rem; padding: 0.55rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, #fbfaf6, var(--card)); box-shadow: var(--shadow); }
.osband__ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.osband__ic svg { width: 18px; height: 18px; color: var(--accent-deep); }
.osband__t { font-family: var(--serif-jp); font-weight: 700; color: var(--ink-deep); font-size: 1.18rem; line-height: 1.2; }
.osband__tag { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 0.12rem; }
.osband--rec { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 2px 14px color-mix(in srgb, var(--accent) 10%, transparent); }
/* 「○/×」早見の小さなドット */
.yn { font-family: var(--mono); font-weight: 700; }
.yn--y { color: #2a8a5a; }
.yn--n { color: #c0533b; }
.hero__sub, figcaption, .card__d, .sister-band__d { word-break: auto-phrase; }
/* セクション見出し: 全幅の細い下線 + 左端に短い金→橙アクセント(クリアで読みやすく) */
h2 { font-size: 1.5rem; margin: 2.8rem 0 0.95rem; padding-bottom: 0.42rem; border-bottom: 1px solid var(--line); position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 2.4rem; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--amber)); }
h3 { font-size: 1.1rem; color: var(--accent-deep); margin: 1.8rem 0 0.4rem; padding-left: 0.7rem; border-left: 3px solid var(--gold); }
p { margin: 0.7rem 0; }
ul, ol { padding-left: 1.35rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--gold); }
strong, b { color: var(--ink-deep); font-weight: 700; }
.latin { font-family: var(--serif-latin); font-weight: 500; }

code { font-family: var(--mono); font-size: 0.84em; padding: 0.08em 0.42em; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line-soft); color: var(--accent-deep); overflow-wrap: anywhere; }
pre { background: #fbfaf6; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; overflow: auto; margin: 1rem 0; font-size: 0.85rem; line-height: 1.65; box-shadow: var(--shadow); }
pre code { background: none; border: none; padding: 0; color: #2a2a30; }

table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans-jp); color: var(--ink-deep); font-weight: 700; background: var(--paper-2); }
tr:hover td { background: color-mix(in srgb, var(--accent) 3%, transparent); }

/* ---------- callouts ---------- */
.callout { margin: 1.2rem 0; padding: 0.85rem 1.1rem 0.85rem 2.5rem; border-radius: 10px; position: relative; font-size: 0.93rem; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--shadow); }
.callout::before { content: "✦"; position: absolute; left: 0.85rem; top: 0.82rem; color: var(--accent); }
.callout--warn { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, var(--card)); }
.callout--warn::before { content: "▲"; color: var(--amber); }
.callout--tip { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--card)); }
.callout--tip::before { content: "💡"; }

/* ---------- chips / badge ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.chip { font-size: 0.82rem; padding: 0.26rem 0.7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.badge { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; padding: 0.12em 0.6em; border-radius: 999px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); vertical-align: middle; }
/* 手順の丸番号(丸数字グリフより大きく・高コントラストで視認性を上げる) */
.stepn { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--sans-jp); font-weight: 700; font-size: 0.92rem; line-height: 1; vertical-align: middle; margin: 0 0.16em 0 0.04em; box-shadow: 0 1px 2px rgba(20,19,26,.18); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.card { display: block; padding: 1.15rem 1.25rem; border-radius: var(--radius); color: inherit; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.2s, border-color 0.18s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card__ic { font-size: 1.3rem; }
.card__t { display: block; font-family: var(--serif-jp); font-weight: 600; color: var(--ink-deep); margin: 0.4rem 0 0.25rem; font-size: 1.04rem; }
.card__d { font-size: 0.86rem; color: var(--muted); }

/* ---------- system requirements ---------- */
.oslist { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin: 0.2rem 0 1.3rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.oschip { font-family: var(--sans-jp); font-size: 0.85rem; letter-spacing: 0; text-transform: none; padding: 0.26rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-deep); box-shadow: var(--shadow); }
.reqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.2rem 0; }
.reqcard { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 1.3rem 1.45rem; box-shadow: var(--shadow); }
.reqcard--core { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 2px 14px color-mix(in srgb, var(--accent) 10%, transparent); }
.reqcard--opt { background: color-mix(in srgb, var(--card) 70%, var(--paper-2)); }
.reqcard--opt .stepn { background: var(--muted); }
.reqcard__head { display: flex; align-items: flex-start; gap: 0.5rem; }
.reqcard__ttl { font-family: var(--serif-jp); font-weight: 600; font-size: 1.1rem; color: var(--ink-deep); line-height: 1.3; }
.reqcard__tag { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.06em; color: var(--gold); margin-top: 0.15rem; }
.reqcard__plus { font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0; }
.reqlist { list-style: none; padding: 0; margin: 0.7rem 0 0; }
.reqlist li { position: relative; padding-left: 1.5rem; margin: 0.55rem 0; font-size: 0.93rem; line-height: 1.55; color: var(--ink); }
.reqlist li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; color: var(--gold); font-weight: 700; }
@media (max-width: 640px) { .reqgrid { grid-template-columns: 1fr; } }

/* ---------- figure / diagram ---------- */
.fig { margin: 1.6rem 0; padding: 1.4rem 1.2rem 0.7rem; border-radius: var(--radius); background: linear-gradient(180deg, #fbfaf6, var(--card)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; font-family: var(--mono); }
/* SVG tokens (light) */
.s-box { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.s-box-amber { fill: color-mix(in srgb, var(--amber) 12%, #fff); stroke: var(--amber); stroke-width: 1.5; }
.s-box-sky { fill: color-mix(in srgb, var(--accent) 9%, #fff); stroke: var(--accent); stroke-width: 1.5; }
.s-label { fill: var(--ink-deep); font-family: var(--sans-jp); font-size: 16px; font-weight: 600; }
.s-sub { fill: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.s-flow { stroke: var(--gold); stroke-width: 1.8; fill: none; }
.s-arrow { fill: var(--gold); }

/* ---------- timeline ---------- */
.tl__ver { font-family: var(--serif-latin); font-weight: 600; color: var(--accent); font-size: 1.05rem; }

/* ---------- hero (landing) ---------- */
.hero { position: relative; padding: clamp(2rem, 6vw, 4.2rem) 0 2rem; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(80% 78% at 82% 12%, rgba(58, 93, 198, 0.10), transparent 64%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: center; }
.hero__eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.hero__title { font-family: var(--serif-jp); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.28; margin: 0.7rem 0; color: var(--ink-deep); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.hero__title em { font-style: normal; font-family: var(--serif-latin); color: var(--accent); letter-spacing: 0.02em; }
.hero__sub { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 0.6rem 0 1.4rem; }
.hero__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.4rem; border-radius: 999px; font-family: var(--sans-jp); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(58, 93, 198, 0.26); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink-deep); background: var(--card); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__art { position: relative; display: grid; place-items: center; min-height: 300px; padding: 1rem 0; }
.hero__dog { width: min(330px, 82%); position: relative; z-index: 2; filter: drop-shadow(0 16px 30px rgba(20, 19, 26, 0.16)); animation: floaty 6s ease-in-out infinite; }
.hero__halo { position: absolute; inset: 0; z-index: 1; background: radial-gradient(closest-side, rgba(240, 168, 90, 0.22), transparent 70%); filter: blur(8px); }
.pixstars { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pixstars i { position: absolute; width: 6px; height: 6px; background: var(--amber-soft); border-radius: 1px; opacity: 0; animation: twinkle 4s ease-in-out infinite; }

/* ---------- hero: banner showcase (concept image, TOP) ---------- */
.hero--banner { padding: clamp(1.3rem, 3.2vw, 2.2rem) 0 0.8rem; }
.hero--banner .hero__intro { max-width: 720px; margin: 0 auto; text-align: center; }
.hero--banner .hero__title { font-size: clamp(1.85rem, 4vw, 2.8rem); margin: 0.4rem 0 0.45rem; }
.hero--banner .hero__sub { font-size: 0.97rem; max-width: 50ch; margin: 0.45rem auto 1rem; }
.hero--banner .hero__cta { justify-content: center; }
.hero__showcase { position: relative; margin: 1.35rem auto 0; max-width: 940px; }
.hero__showcase .hero__halo { position: absolute; inset: 3% 0 7%; z-index: 0; background: radial-gradient(56% 76% at 50% 44%, rgba(240, 168, 90, 0.22), transparent 72%); filter: blur(24px); }
.hero__banner { position: relative; z-index: 2; display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-lift); }

/* ---------- concept image figure (flow / features) ---------- */
.concept { margin: 1.7rem 0; position: relative; }
.concept__img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.concept figcaption { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 0.65rem; font-family: var(--mono); }

/* ---------- 実際の画面(スクショ)+ クリック拡大ライトボックス(CSS のみ) ---------- */
.shot { margin: 1.5rem 0 0; }
.shot__frame { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #14131a; transition: box-shadow 0.2s, transform 0.18s; }
.shot__frame:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.shot__frame img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; }
.shot--lead { max-width: 940px; margin-inline: auto; }
.shot--step { max-width: 620px; margin-inline: auto; }
.shots__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 1.6rem); margin-top: 1.5rem; }
@media (max-width: 620px) { .shots__row { grid-template-columns: 1fr; } }

/* 未表示時は display:none(常時 fixed+backdrop を残さない=iOS のスクロール時レイアウト崩れ回避 + 画像の即ロードも防ぐ)。:target で開く */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 3.5vmin; background: rgba(15, 14, 18, 0.9); backdrop-filter: blur(3px); }
.lightbox:target { display: flex; animation: lb-fade 0.22s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__close { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox img { position: relative; max-width: 95vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }

.stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stat__n { font-family: var(--serif-latin); font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1; }
.stat__l { font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- sister product band (Inkubus 誘導) ---------- */
.sister-band { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.3rem; box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.sister-band:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.sister-band__img { flex: 0 0 248px; width: 248px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.sister-band__body { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.sister-band__t { font-family: var(--serif-jp); font-weight: 600; font-size: 1.08rem; color: var(--ink-deep); }
.sister-band__d { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.sister-band__d .more { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); margin-top: 3rem; background: var(--paper-2); position: relative; z-index: 1; }
.foot__in { max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; }
.foot__brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.foot__brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot__brand b { font-family: var(--serif-latin); font-size: 1.1rem; color: var(--ink-deep); }
.foot p { color: var(--muted); font-size: 0.84rem; margin: 0.2rem 0; }
.foot__col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem; }
.foot__col a { display: block; color: var(--ink); font-size: 0.86rem; padding: 0.18rem 0; }
.foot__col a:hover { color: var(--accent); }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.78rem; }

/* ---------- glossary: 画面一覧(screen-map) ---------- */
.screen-map { display: grid; gap: 1rem; margin: 1.3rem 0; }
.screen-grp { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem 1.2rem; background: var(--card); box-shadow: var(--shadow); }
.screen-grp__h { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.screen-flow { display: grid; gap: 0.6rem; }
.screen-step { display: flex; align-items: center; gap: 0.9rem; }
.snum { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: 1.1rem; line-height: 1; flex-shrink: 0; box-shadow: 0 2px 7px rgba(20, 19, 26, 0.16); }
.snum--1 { background: var(--amber); }
.snum--2 { background: var(--accent); }
.snum--3 { background: #2a8a5a; }
.screen-step__b b { display: block; font-size: 0.98rem; color: var(--ink-deep); }
.screen-step__b span { font-size: 0.84rem; color: var(--muted); }
.screen-note { font-size: 0.82rem; color: var(--muted); margin: 0.85rem 0 0; padding-left: 3.1rem; }
.screen-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.screen-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.7rem 0.85rem; background: var(--bg); }
.screen-card b { display: block; font-size: 0.92rem; color: var(--ink-deep); }
.screen-card span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) { .screen-cards { grid-template-columns: 1fr; } }

/* ---------- animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(6px) scale(0.7); } 45% { opacity: 0.95; transform: translateY(-4px) scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .doc { grid-template-columns: 196px minmax(0, 1fr); }
  .toc { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 0; padding: 0.5rem 0; }
  .hero__dog { width: min(220px, 52%); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .doc { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .side__grp { width: 100%; margin: 0.4rem 0 0; }
  .side__link { border-left: none; }
  .nav { gap: 0.6rem; }
  /* ハンバーガー(☰): リンクをドロップダウンに収納。ヘッダーは ロゴ + ☰ だけでスッキリ */
  .nav__menu { display: block; position: relative; margin-left: auto; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--line); background: var(--card); color: var(--ink-deep); font-size: 1.15rem;
  }
  .nav__toggle:hover { border-color: var(--accent); color: var(--accent); }
  .nav__links {
    position: absolute; right: 0; top: calc(100% + 0.5rem); margin: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0.1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lift); padding: 0.5rem; min-width: 13rem; z-index: 60;
  }
  .nav__menu:not([open]) .nav__links { display: none; }
  .nav__link { padding: 0.55rem 0.7rem; white-space: nowrap; border-bottom: none; border-radius: 7px; }
  .nav__link:hover, .nav__link.is-here { background: var(--card-hover); border-bottom-color: transparent; }
  .nav__cta { margin-top: 0.35rem; text-align: center; white-space: nowrap; }
  .foot__in { grid-template-columns: 1fr; }
  .sister-band { flex-direction: column; align-items: flex-start; }
  .sister-band__img { flex: none; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
}
