/* MEO GEAR Help Center — Original Design
   Brand palette derived from MEO GEAR logo (blue→green gradient) */

:root {
  --brand-blue: #3FA7E0;
  --brand-green: #5BBE56;
  --brand-gradient: linear-gradient(135deg, #3FA7E0 0%, #5BBE56 100%);
  --text-primary: #1A1F2E;
  --text-secondary: #5A6573;
  --text-muted: #8993A4;
  --border: #E5EAF0;
  --border-strong: #C9D2DE;
  --surface: #FFFFFF;
  --surface-alt: #F7F9FB;
  --surface-hover: #EEF3F8;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 30, 50, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 30, 50, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface-alt);
  color: var(--text-primary);
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.header-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(63, 167, 224, 0.15);
}

.header-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238993A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ============== Breadcrumb ============== */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #F4F8FC 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.08;
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.hero-search-block {
  max-width: 640px;
  margin: 0 auto;
}

.hero-search-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 10px;
  text-align: center;
}

.hero-search {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.hero-search-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ============== Hero下の STEP A/B 大きなパスカード ============== */
.path-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.path-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(63, 167, 224, 0.18);
  border-color: var(--brand-blue);
}

.path-card .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.path-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--text-primary);
  line-height: 1.4;
}

.path-card .desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex-grow: 1;
}

.path-card .items {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.path-card .items li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-card .items li:last-child {
  border-bottom: none;
}

.path-card .items li::before {
  content: '✓';
  color: var(--brand-green);
  font-weight: 700;
}

.path-card .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  align-self: stretch;
}

.path-card .cta-btn::after {
  content: '→';
  font-size: 16px;
}

.path-card:hover .cta-btn {
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .path-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .path-card { padding: 24px 20px; }
  .path-card h3 { font-size: 20px; }
}

/* ============== サブページへの説明+ボタン (登録直後の設定など) ============== */
.sub-page-link-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #F0F8FF 0%, #F0FFF4 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.sub-page-link-card .icon {
  font-size: 48px;
  flex-shrink: 0;
}

.sub-page-link-card .content {
  flex-grow: 1;
}

.sub-page-link-card .label {
  display: inline-block;
  padding: 2px 10px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.sub-page-link-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text-primary);
}

.sub-page-link-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.sub-page-link-card .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.sub-page-link-card .cta-btn::after {
  content: '→';
}

.sub-page-link-card .cta-btn:hover {
  filter: brightness(1.08);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .sub-page-link-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sub-page-link-card .icon { font-size: 36px; }
  .sub-page-link-card .cta-btn { width: 100%; justify-content: center; }
}

.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 24px 0 56px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: border-color .15s, box-shadow .15s;
}

.hero-search input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(63, 167, 224, 0.15), var(--shadow-md);
}

.hero-search::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ============== Anchor nav (top-level: 登録前 / 登録後) — ボタン風 ============== */
/* Used in sub-pages (pre-registration.html etc.) */
.anchor-nav {
  background: linear-gradient(180deg, #fff 0%, #F8FAFD 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.anchor-nav-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #3FA7E0 0%, #5BBE56 100%);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(63, 167, 224, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.anchor-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(63, 167, 224, 0.4);
  filter: brightness(1.05);
}

.anchor-nav a:active {
  transform: translateY(0);
}

.anchor-nav a .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  letter-spacing: 0.5px;
}

.anchor-nav .divider {
  display: none;
}

/* インラインアンカーナビ (検索バーの直下に配置) */
.anchor-nav-inline {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px auto 0;
  max-width: 720px;
}

.anchor-nav-inline a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #3FA7E0 0%, #5BBE56 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(63, 167, 224, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.anchor-nav-inline a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(63, 167, 224, 0.45);
  filter: brightness(1.05);
}

.anchor-nav-inline a:active {
  transform: translateY(0);
}

.anchor-nav-inline a .badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  letter-spacing: 0.8px;
}

@media (max-width: 720px) {
  .anchor-nav-inline { flex-direction: column; gap: 10px; max-width: 100%; }
  .anchor-nav-inline a { width: 100%; justify-content: center; padding: 12px 20px; }
}

/* phase-divider のCTAボタンと説明文 */
.phase-description {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.phase-cta-wrap {
  text-align: center;
  margin: 0 0 16px;
}

.phase-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #3FA7E0 0%, #5BBE56 100%);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(63, 167, 224, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.phase-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(63, 167, 224, 0.4);
  filter: brightness(1.05);
}

/* sub-nav inside 登録後 section — ボタン風・センター配置 */
.sub-anchor-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 40px;
  padding: 20px;
  background: linear-gradient(135deg, #F4F8FC 0%, #EEF3F8 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.sub-anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--brand-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
}

.sub-anchor-nav a:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(63, 167, 224, 0.3);
}

.sub-anchor-nav a:active {
  transform: translateY(0);
}

/* ============== Anchor buttons (in sub-pages) — センター配置・大きめボタン ============== */
.anchor-buttons {
  background: linear-gradient(180deg, #F8FAFD 0%, #fff 100%);
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
}

.anchor-buttons-inner {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.anchor-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--brand-blue);
  box-shadow: 0 3px 10px rgba(63, 167, 224, 0.12);
  transition: all 0.15s ease;
  font-size: 14px;
}

.anchor-btn:hover {
  background: linear-gradient(135deg, #3FA7E0 0%, #5BBE56 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(63, 167, 224, 0.35);
}

.anchor-btn:active {
  transform: translateY(-1px);
}

.anchor-btn .btn-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--bg-soft);
  color: var(--brand-blue);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.anchor-btn:hover .btn-num {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.anchor-btn .btn-label {
  font-size: 14px;
}

@media (max-width: 720px) {
  .anchor-buttons-inner { gap: 10px; }
  .anchor-btn { padding: 12px 18px; font-size: 13px; }
  .anchor-btn .btn-num { min-width: 30px; font-size: 10px; }
}

/* Section divider for 登録前 / 登録後 */
.phase-divider {
  text-align: center;
  margin: 48px 0 24px;
}

.phase-divider h2 {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 24px;
  position: relative;
}

.phase-divider h2::before,
.phase-divider h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--border);
}
.phase-divider h2::before { right: 100%; }
.phase-divider h2::after { left: 100%; }

.phase-divider .lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Pre-registration cards */
.pre-reg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pre-reg-card {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}

.pre-reg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--brand-blue);
}

.pre-reg-card .step-num {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(63, 167, 224, 0.1);
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.pre-reg-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.pre-reg-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.pre-reg-card .meta {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .pre-reg-grid { grid-template-columns: 1fr; }
  .anchor-nav-inner { gap: 4px; }
  .anchor-nav a { padding: 8px 12px; font-size: 13px; }
}

/* Video embed */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
  margin: 0 0 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 16px 0 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.video-chapters li {
  list-style: none;
  display: flex;
  gap: 10px;
}

.video-chapters .time {
  font-family: var(--font-mono, monospace);
  color: var(--brand-blue);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 56px;
}

@media (max-width: 720px) {
  .video-chapters { grid-template-columns: 1fr; }
}

/* ============== Section ============== */
.section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 28px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.section-heading .accent {
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--brand-gradient);
  margin-right: 12px;
  transform: translateY(3px);
}

/* ============== Category grid ============== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  color: inherit;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  text-decoration: none;
}

/* 上段: アイコン (左) + ラベル&タイトル (右) */
.category-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card-title-block {
  flex-grow: 1;
  min-width: 0;
}

.category-card .article-count {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  line-height: 1.3;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

/* ============== Menu grid (左メニュー別) ============== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.menu-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}

.menu-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.menu-card .num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.menu-card h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.menu-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* ============== Menu page sidebar (article-level) ============== */
.menu-sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: menuitem;
}

.menu-sidebar li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background .12s, color .12s;
  counter-increment: menuitem;
}

.menu-sidebar li a::before {
  content: counter(menuitem, decimal-leading-zero);
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.menu-sidebar li a:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
  text-decoration: none;
}

.menu-sidebar li a.active {
  background: rgba(63, 167, 224, 0.08);
  color: var(--brand-blue);
  font-weight: 500;
}

.menu-sidebar li a.active::before { color: var(--brand-blue); }

/* ============== Screenshot placeholder ============== */
.screenshot {
  margin: 24px 0;
  padding: 0;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #F4F8FC 0%, #EEF3F8 100%);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.screenshot-placeholder .icon {
  font-size: 28px;
  opacity: 0.6;
}

.screenshot-placeholder .label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.screenshot-placeholder .note {
  font-size: 12px;
  color: var(--text-muted);
}

.screenshot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.screenshot figcaption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* ============== Step cards (numbered procedure) ============== */
.step-block {
  position: relative;
  padding: 20px 24px 20px 64px;
  margin: 12px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  counter-increment: stepcounter;
}

.step-block::before {
  content: counter(stepcounter);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-list {
  counter-reset: stepcounter;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.step-block h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-block p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============== Parameter / spec tables ============== */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-body table thead {
  background: var(--surface-alt);
}

.article-body table th,
.article-body table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body table th {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.article-body table tr:hover {
  background: var(--surface-alt);
}

/* ============== Picture preview area ============== */
.path-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(63, 167, 224, 0.1);
  color: var(--brand-blue);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 0;
}

.path-pill::before {
  content: "📍 ";
}

/* ============== Required badge ============== */
.required-badge {
  display: inline-block;
  padding: 1px 6px;
  background: #E0533F;
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 4px;
}

/* ============== TOC inside article ============== */
.article-toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-toc h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.article-toc ul {
  margin: 0;
  padding: 0 0 0 20px;
}

.article-toc li {
  margin: 4px 0;
  font-size: 14px;
}

.article-toc li a {
  color: var(--text-primary);
}

/* ============== Popular articles ============== */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.article-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s;
}

.article-list a:nth-child(odd) { border-right: 1px solid var(--border); }
.article-list a:last-child,
.article-list a:nth-last-child(2):nth-child(odd) { border-bottom: none; }

.article-list a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.article-list .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
}

/* ============== Article body ============== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}

.sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 12px;
  padding: 0 12px;
}

.sidebar ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.sidebar li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: background .12s, color .12s;
}

.sidebar li a:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar li a.active {
  background: rgba(63, 167, 224, 0.08);
  color: var(--brand-blue);
  font-weight: 500;
}

.article-body {
  min-width: 0;
}

/* Single-column article layout (used when no sidebar) */
.article-single {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.article-body h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-body p { margin: 0 0 16px; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.article-body li { margin: 4px 0; }

.article-body code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

.article-body pre {
  background: #1A1F2E;
  color: #E5EAF0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.callout {
  padding: 16px 20px;
  border-left: 4px solid var(--brand-blue);
  background: var(--surface-alt);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.75;
}

.callout.warning { border-left-color: #E8A33F; background: #FFF8EC; }
.callout.danger { border-left-color: #E0533F; background: #FDECEA; }

/* Callout の見出し: ラベル部分をブロックで分離 (スマホで読みやすい) */
.callout-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.callout-title + p {
  margin: 0;
}

/* Diagram figures (timeline / flow / comparison) */
.diagram-figure {
  margin: 20px 0;
  text-align: center;
}
.diagram-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.timeline-diagram {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  text-align: left;
  max-width: 720px;
  width: 100%;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.timeline-row .time {
  flex: 0 0 130px;
  display: inline-block;
  padding: 4px 10px;
  background: #1976d2;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}
.timeline-row .arrow {
  color: #1976d2;
  font-weight: 700;
}
.timeline-row .event {
  flex: 1;
  color: var(--text-primary);
}

/* Flow steps (horizontal arrow chain) */
.flow-chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin: 18px 0;
}
.flow-step {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 220px;
}
.flow-step strong {
  display: block;
  font-size: 12px;
  color: #1976d2;
  margin-bottom: 4px;
}
.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #1976d2;
  font-weight: 700;
  padding: 0 8px;
}
@media (max-width: 720px) {
  .flow-chain { flex-direction: column; align-items: stretch; }
  .flow-step { max-width: none; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
}

/* Side-by-side comparison cards */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.compare-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.compare-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1976d2;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 6px;
}
.compare-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.compare-card.warn {
  background: #fff3e0;
  border-color: #ffb74d;
}
.compare-card.warn h4 { color: #e65100; border-bottom-color: #ffe0b2; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}
.search-result {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-primary, #222);
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: background 0.12s ease;
}
.search-result:last-child {
  border-bottom: none;
}
.search-result:hover,
.search-result:focus {
  background: #f3f8ff;
}
.search-result-title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  color: #1565c0;
}
.search-result-page {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary, #666);
}
.search-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary, #666);
  text-align: center;
}
.hero-search,
.header-search {
  position: relative;
}

.article-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============== Footer ============== */
.site-footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-brand strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============== Responsive ============== */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-list { grid-template-columns: 1fr; }
  .article-list a:nth-child(odd) { border-right: none; }
  .layout-with-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .header-search { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
}

@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .brand-logo img { height: 30px; }
  .header-inner { height: 60px; }
  .hero h1 { font-size: 22px; }
  .article-body h1 { font-size: 24px; }
  .container { padding: 0 16px; }
}
