/* ぺっときろく 取扱説明書 共通スタイル (ライト/ダーク自動追従) */
:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --surface-sub: #F5F3EF;
  --border: #ECE7E1;
  --text: #33302C;
  --text-sub: #7D766B;
  --accent: #E86556;
  --accent-soft: #FFE4E0;
  --on-accent: #FFFFFF;
  --step-bg: #FFF7F5;
  --badge-blue: #3B82C4;
  --badge-blue-soft: #E1EFFC;
  --shadow: rgba(51, 48, 44, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1815;
    --surface: #282019;
    --surface-sub: #332720;
    --border: #3D2F27;
    --text: #F5ECE7;
    --text-sub: #B0A399;
    --accent: #FF8577;
    --accent-soft: #422A25;
    --on-accent: #241410;
    --step-bg: #2E221C;
    --badge-blue: #7CB2EA;
    --badge-blue-soft: #223347;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #1F1815;
  --surface: #282019;
  --surface-sub: #332720;
  --border: #3D2F27;
  --text: #F5ECE7;
  --text-sub: #B0A399;
  --accent: #FF8577;
  --accent-soft: #422A25;
  --on-accent: #241410;
  --step-bg: #2E221C;
  --badge-blue: #7CB2EA;
  --badge-blue-soft: #223347;
  --shadow: rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.7;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}
.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.global-nav a {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.global-nav a:hover {
  background: var(--surface-sub);
  color: var(--text);
}
.global-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.hero-banner {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 26px;
  text-align: center;
}
.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.hero-banner h1 {
  font-size: 25px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.hero-banner p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-sub);
}
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 18px 72px;
}
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumb a:hover { text-decoration: underline; }
.card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px var(--shadow);
}
.card-section h2 {
  font-size: 19px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.card-section p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
}
.card-section p:last-child { margin-bottom: 0; }
.section-heading {
  font-size: 18px;
  font-weight: 800;
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.want-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .want-nav { grid-template-columns: 1fr; }
}
.want-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 14px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.want-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.want-card .kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.want-card .title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}
.want-card .desc {
  font-size: 13px;
  color: var(--text-sub);
}
.want-card .go {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
}
.feature-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 780px) {
  .feature-index-grid { grid-template-columns: 1fr; }
}
.feature-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 18px var(--shadow);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-link-card .thumb {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-link-card .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.feature-link-card h3 {
  margin: 4px 0 6px;
  font-size: 16.5px;
}
.feature-link-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.feature-link-card .more {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 780px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-shot { max-width: 280px; margin: 0 auto; position: static; }
}
.detail-shot {
  margin: 0;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 76px;
}
.detail-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.detail-shot figcaption {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
  font-weight: 700;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-step {
  background: var(--step-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
}
.flow-step h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}
.flow-step p {
  margin: 0;
  color: var(--text);
  font-size: 13.8px;
}
.want-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.want-tag {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.want-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.faq-card {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.faq-card h3 {
  font-size: 14.5px;
  margin: 0 0 6px;
  color: var(--accent);
}
.faq-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}
.pager-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.pager-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}
.pager-link:hover { border-color: var(--accent); }
.pager-link .dir { font-size: 11.5px; color: var(--accent); font-weight: 800; }
.pager-link .lbl { font-size: 14.5px; font-weight: 800; }
