/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page: #FFF8F5;
  --white: #FFFFFF;
  --text: #212121;
  --text-sub: #757575;
  --border: #E8E8E8;
  --shadow: 0 2px 10px rgba(0,0,0,0.07);
  --radius: 14px;
  --bottom-nav-h: 64px;
  --header-h: 57px;
  --tab-bar-h: 52px;

  /* ===== テーマカラー（管理画面から上書き可能） ===== */
  --theme-hero-from:   #0d9488;
  --theme-hero-to:     #10b981;
  --theme-accent:      #f59e0b;
  --theme-cta-from:    #f97316;
  --theme-cta-to:      #fbbf24;
  --theme-primary:     #0d9488;   /* teal系 */
  --theme-primary-lt:  #ccfbf1;   /* light teal */
}

html { font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Animations ===== */
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.5;  transform: scale(1.2); }
}
@keyframes twinkle-slow {
  0%, 100% { opacity: 0.1;  transform: scale(1); }
  50%       { opacity: 0.4;  transform: scale(1.15); }
}
.animate-twinkle      { animation: twinkle      2.4s ease-in-out infinite; }
.animate-twinkle-slow { animation: twinkle-slow 3.6s ease-in-out infinite; }

/* ===== Header ===== */
.header {
  background: var(--white);
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 500px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 8px;
}
.header-logo {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  text-decoration: none;
}
.header-logo-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #ffedd5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header-logo-icon i { color: #f97316; font-size: 18px; }
.header h1 { font-size: 14px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.header p  { font-size: 11px; font-weight: 500; color: #f97316; line-height: 1.2; margin-top: 1px; }
.header-menu {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f9fafb; border-radius: 10px;
  transition: background 0.15s;
}
.header-menu:active { background: #e5e7eb; }
.header-menu i { color: #4b5563; font-size: 20px; }

/* ===== Tab Bar ===== */
.tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--white);
}
.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 8px 0;
  max-width: 500px;
  margin: 0 auto;
  align-items: flex-end;
  gap: 4px;
}
.tabs::-webkit-scrollbar { display: none; }

/* Indicator bar */
.tab-indicator {
  height: 4px;
  width: 100%;
  transition: background-color 0.3s ease;
}

/* Tab buttons */
.tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 10px 10px 0 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.tab-btn i { font-size: 14px; }
.tab-btn.inactive { opacity: 0.72; }
.tab-btn.inactive:hover { opacity: 0.88; }

/* Bob animation for active tab */
@keyframes tab-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.tab-btn.active { animation: tab-bob 2.8s ease-in-out infinite; opacity: 1; }

/* Per-category tab colors */
.tab-top.active    { background: var(--theme-accent); }
.tab-top.inactive  { background: #fcd34d; }
.tab-mochimono.active   { background: #84cc16; }
.tab-mochimono.inactive { background: #a3e635; }
.tab-soukei.active      { background: #10b981; }
.tab-soukei.inactive    { background: #34d399; }
.tab-kenko.active       { background: #f43f5e; }
.tab-kenko.inactive     { background: #fb7185; }
.tab-shokuji.active     { background: #f59e0b; }
.tab-shokuji.inactive   { background: #fbbf24; }
.tab-seikatsu.active    { background: #14b8a6; }
.tab-seikatsu.inactive  { background: #2dd4bf; }
.tab-sonota.active      { background: #ec4899; }
.tab-sonota.inactive    { background: #f472b6; }

/* ===== Main ===== */
.main {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 0 8px;
}

/* ===== Tab Sections ===== */
.tab-section { display: none; }
.tab-section.active { display: block; }

/* Slide in animation */
@keyframes slideInRight {
  from { transform: translateX(28px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-28px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.tab-section.slide-in-right { animation: slideInRight 0.22s ease-out forwards; }
.tab-section.slide-in-left  { animation: slideInLeft  0.22s ease-out forwards; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--theme-hero-from) 0%, var(--theme-hero-to) 100%);
  padding: 24px 20px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-circle-tr {
  position: absolute; top: -64px; right: -64px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  pointer-events: none;
}
.hero-circle-bl {
  position: absolute; bottom: -56px; left: -48px;
  width: 128px; height: 128px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  pointer-events: none;
}
.hero-star {
  position: absolute; color: white; pointer-events: none; user-select: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); border-radius: 50px;
  padding: 4px 12px; margin-bottom: 16px;
}
.hero-badge i { color: white; font-size: 14px; }
.hero-badge span { color: white; font-size: 12px; font-weight: 500; }
.hero h2 {
  color: white; font-size: 24px; font-weight: 700;
  line-height: 1.35; margin-bottom: 8px;
}
.hero-sub {
  color: rgba(255,255,255,0.85); font-size: 13px;
  line-height: 1.75; margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--theme-primary);
  font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 12px;
  transition: background 0.15s;
}
.btn-primary i { font-size: 16px; }
.btn-primary:active { background: #f0fdf8; }

/* ===== Section wrapper ===== */
.home-section { padding: 20px 16px 0; }
.home-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.home-section-header-left { display: flex; align-items: center; gap: 8px; }
.home-section-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.home-section-icon.teal  { background: #ccfbf1; }
.home-section-icon.teal i  { color: #0d9488; font-size: 13px; }
.home-section-icon.orange { background: #ffedd5; }
.home-section-icon.orange i { color: #f97316; font-size: 13px; }
.home-section-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.home-section-count { font-size: 12px; color: #9ca3af; }

/* ===== Usage card (collapsible) ===== */
.usage-card {
  background: white; border-radius: 16px;
  margin-bottom: 10px; overflow: hidden;
}
.usage-card-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; width: 100%;
}
.usage-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--theme-primary-lt); color: var(--theme-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.usage-card-icon i { font-size: 20px; }
.usage-card-title { font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.35; }
.usage-card-body  { font-size: 13px; color: #6b7280; line-height: 1.7; margin-top: 3px; }
.usage-card-chevron {
  margin-left: auto; flex-shrink: 0;
  color: #9ca3af; font-size: 20px;
  transition: transform 0.3s ease;
  align-self: center;
}
.usage-card.open .usage-card-chevron { transform: rotate(180deg); }

.usage-card-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.usage-card.open .usage-card-expand { grid-template-rows: 1fr; opacity: 1; }
.usage-card-expand-overflow { overflow: hidden; }
.usage-card-expand-inner { padding: 0 16px 16px; }

.install-img { border-radius: 12px; width: 100%; margin-bottom: 16px; }
.install-block { margin-bottom: 14px; }
.install-block-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #374151;
  margin-bottom: 10px;
}
.install-block-title i { font-size: 14px; }
.install-steps { display: flex; flex-direction: column; gap: 6px; }
.install-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #6b7280; line-height: 1.5;
}
.install-step-num {
  width: 16px; height: 16px; flex-shrink: 0;
  background: var(--theme-primary-lt); color: var(--theme-primary);
  border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.install-detail-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--theme-primary);
  margin-top: 8px;
}

/* ===== News ===== */
.news-card {
  background: white; border-radius: 16px; overflow: hidden;
}
.news-card-header {
  width: 100%; text-align: left; padding: 14px 16px; cursor: pointer;
}
.news-card-top {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap;
}
.badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
}
.badge-media { background: #fef9c3; color: #a16207; }
.badge-new   { background: #fb7185; color: white; }
.news-card-date { font-size: 11px; color: #9ca3af; margin-left: auto; }
.news-card-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.news-card-title { font-size: 13px; font-weight: 600; color: #1f2937; line-height: 1.4; flex: 1; }
.news-card-thumb-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.news-card-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.news-card-thumb img { width: 56px; height: 56px; object-fit: cover; object-position: top; }
.news-card-chevron { color: #9ca3af; font-size: 20px; transition: transform 0.3s ease; }
.news-card.open .news-card-chevron { transform: rotate(180deg); }

.news-card-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.news-card.open .news-card-expand { grid-template-rows: 1fr; opacity: 1; }
.news-card-expand-overflow { overflow: hidden; }
.news-card-expand-inner { padding: 0 16px 16px; }
.news-full-img-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.news-full-img { width: 100%; height: auto; object-position: top; display: block; }
.news-zoom-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.news-zoom-btn i { color: white; font-size: 16px; }
.news-body-wrap {
  background: #fff7ed; border-radius: 12px; padding: 12px;
  font-size: 13px; color: #4b5563; line-height: 1.9;
  margin-bottom: 12px;
}
.news-body-wrap p + p { margin-top: 8px; }
.btn-news-shop {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px;
  background: #fb923c; color: white;
  font-size: 14px; font-weight: 700;
  border-radius: 12px; transition: background 0.15s;
}
.btn-news-shop:active { background: #ea580c; }
.btn-news-shop i { font-size: 14px; }

/* ===== CTA ===== */
.cta-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 16px 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cta-inner { position: relative; }
.cta-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cta-icon {
  width: 28px; height: 28px;
  background: #ccfbf1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cta-icon i { color: #0d9488; font-size: 15px; }
.cta-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.cta-section p { font-size: 13px; color: #6b7280; line-height: 1.8; margin-bottom: 16px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 12px;
  transition: opacity 0.15s;
  border: none; cursor: pointer;
}
.btn-cta:active { opacity: 0.8; }
.btn-cta i { font-size: 15px; }
.btn-cta-primary {
  background: #0d9488; color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.btn-cta-outline {
  background: #f3f4f6; color: #374151;
}

/* ===== FAQ tab section padding ===== */
#tab-mochimono, #tab-soukei, #tab-kenko, #tab-shokuji, #tab-seikatsu, #tab-sonota {
  padding: 8px 14px 8px;
}

/* ===== FAQ Category Header ===== */
.faq-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  margin-bottom: 10px;
}
.faq-cat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.faq-cat-label  { font-size: 15px; font-weight: 700; }
.faq-cat-desc   { font-size: 12px; margin-top: 1px; }

/* ===== Per-category theme colors ===== */
/* 持ち物 — lime */
#tab-mochimono .faq-cat-icon { background: #f7fee7; color: #65a30d; }
#tab-mochimono .faq-cat-label { color: #4d7c0f; }
#tab-mochimono .faq-cat-desc  { color: #84cc16; }
#tab-mochimono .q-mark        { background: #84cc16; }
#tab-mochimono .faq-answer-inner { background: #f7fee7; }
#tab-mochimono .faq-item      { border-left: 3px solid #a3e635; }

/* 送迎 — emerald */
#tab-soukei .faq-cat-icon { background: #ecfdf5; color: #059669; }
#tab-soukei .faq-cat-label { color: #065f46; }
#tab-soukei .faq-cat-desc  { color: #10b981; }
#tab-soukei .q-mark        { background: #10b981; }
#tab-soukei .faq-answer-inner { background: #ecfdf5; }
#tab-soukei .faq-item      { border-left: 3px solid #34d399; }

/* 健康・安全 — rose */
#tab-kenko .faq-cat-icon { background: #fff1f2; color: #e11d48; }
#tab-kenko .faq-cat-label { color: #9f1239; }
#tab-kenko .faq-cat-desc  { color: #f43f5e; }
#tab-kenko .q-mark        { background: #f43f5e; }
#tab-kenko .faq-answer-inner { background: #fff1f2; }
#tab-kenko .faq-item      { border-left: 3px solid #fb7185; }

/* 食事 — amber */
#tab-shokuji .faq-cat-icon { background: #fffbeb; color: #d97706; }
#tab-shokuji .faq-cat-label { color: #92400e; }
#tab-shokuji .faq-cat-desc  { color: #f59e0b; }
#tab-shokuji .q-mark        { background: #f59e0b; }
#tab-shokuji .faq-answer-inner { background: #fffbeb; }
#tab-shokuji .faq-item      { border-left: 3px solid #fbbf24; }

/* 生活・行事 — teal */
#tab-seikatsu .faq-cat-icon { background: #f0fdfa; color: #0d9488; }
#tab-seikatsu .faq-cat-label { color: #134e4a; }
#tab-seikatsu .faq-cat-desc  { color: #14b8a6; }
#tab-seikatsu .q-mark        { background: #14b8a6; }
#tab-seikatsu .faq-answer-inner { background: #f0fdfa; }
#tab-seikatsu .faq-item      { border-left: 3px solid #2dd4bf; }

/* その他 — pink */
#tab-sonota .faq-cat-icon { background: #fdf2f8; color: #db2777; }
#tab-sonota .faq-cat-label { color: #831843; }
#tab-sonota .faq-cat-desc  { color: #ec4899; }
#tab-sonota .q-mark        { background: #ec4899; }
#tab-sonota .faq-answer-inner { background: #fdf2f8; }
#tab-sonota .faq-item      { border-left: 3px solid #f472b6; }

/* ===== FAQ Category description ===== */
.faq-category-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin: 0 2px 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.q-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.q-text { flex: 1; }
.q-thumb {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
}
.chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: #bbb;
  transition: transform 0.28s ease;
}
.faq-item.open .chevron { transform: rotate(180deg); }

/* Grid-based accordion (smooth height) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-answer-overflow { overflow: hidden; }
.faq-answer-inner {
  padding: 12px 14px 16px 46px;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.faq-answer-inner img { border-radius: 8px; margin-top: 12px; width: 100%; }
.faq-answer-inner p + p { margin-top: 8px; }
.faq-note {
  font-size: 11px; color: #9E9E9E;
  margin-top: 8px; line-height: 1.6;
}

/* ===== Pagination dots ===== */
.dot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px 0 4px;
}
.dot {
  height: 8px;
  border-radius: 50px;
  transition: all 0.2s ease;
  background: #d1d5db;
  width: 8px;
}
.dot.active {
  width: 16px;
  background: var(--dot-color, #f59e0b);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  transition: color 0.15s;
  padding: 6px 0;
}
.nav-item i { font-size: 22px; }
.nav-item.active { color: #f59e0b; }

/* ===== Bottom Sheet Modal ===== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet-overlay.open { pointer-events: all; opacity: 1; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 500px;
  background: white;
  border-radius: 24px 24px 0 0;
  max-height: 85svh; overflow-y: auto;
  padding: 16px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px;
  background: #e5e7eb; border-radius: 9999px;
  margin: 0 auto 16px;
}
.sheet-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 20px;
}
.sheet-header-left { display: flex; align-items: center; gap: 10px; }
.sheet-header-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #ccfbf1;
  display: flex; align-items: center; justify-content: center;
}
.sheet-header-icon i { color: #0d9488; font-size: 20px; }
.sheet-header-title { font-size: 16px; font-weight: 700; color: #111827; }
.sheet-header-sub   { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sheet-close {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #f3f4f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sheet-close i { color: #6b7280; font-size: 18px; }

/* Steps */
.sheet-steps { display: flex; flex-direction: column; }
.sheet-step  { display: flex; gap: 12px; }
.sheet-step-left {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.sheet-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #14b8a6; color: white;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sheet-step-line {
  width: 2px; flex: 1; min-height: 16px;
  background: #ccfbf1; margin: 4px 0;
}
.sheet-step:last-child .sheet-step-line { display: none; }
.sheet-step-body { padding-bottom: 16px; flex: 1; }
.sheet-step-icon-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.sheet-step-icon-row i { color: #0d9488; font-size: 16px; }
.sheet-step-title { font-size: 14px; font-weight: 700; color: #111827; }
.sheet-step-desc  { font-size: 13px; color: #6b7280; line-height: 1.7; margin-top: 3px; }

/* Tip box */
.sheet-tip {
  background: #fff7ed; border-radius: 14px;
  padding: 12px 14px; margin-top: 4px;
  display: flex; gap: 8px; align-items: flex-start;
}
.sheet-tip i { color: #fb923c; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.sheet-tip p { font-size: 12px; color: #9a3412; line-height: 1.7; }

/* ===== Chat Bot ===== */
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--ai   { justify-content: flex-start; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; object-position: top;
  flex-shrink: 0; border: 1.5px solid #ccfbf1;
}
.chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 18px;
  font-size: 14px; line-height: 1.6;
}
.chat-bubble--user { background: #0d9488; color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble--ai   { background: #f3f4f6; color: #1a1a1a; border-bottom-left-radius: 4px; }

/* ===== Question Form Sheet ===== */
.form-header {
  position: sticky; top: 0; background: white;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 14px; margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6; z-index: 1;
}
.form-header-left { display: flex; align-items: center; gap: 10px; }
.form-header-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ffedd5;
  display: flex; align-items: center; justify-content: center;
}
.form-header-icon i { color: #f97316; font-size: 18px; }
.form-header-title { font-size: 14px; font-weight: 700; color: #111827; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.form-required { color: #f43f5e; margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: #f9fafb;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  padding: 11px 14px; font-size: 14px;
  font-family: inherit; color: #111827;
  outline: none; transition: border-color 0.15s;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #fb923c;
}
.form-input::placeholder, .form-textarea::placeholder { color: #9ca3af; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-textarea { resize: none; line-height: 1.6; }
.form-char-count {
  text-align: right; font-size: 11px;
  color: #9ca3af; margin-top: 4px;
}
.form-char-count.over { color: #f43f5e; }

.btn-submit {
  width: 100%; padding: 13px;
  background: #f97316; color: white;
  font-size: 15px; font-weight: 700;
  border-radius: 12px; margin-top: 4px;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
}
.btn-submit:disabled { opacity: 0.6; }
.btn-submit:not(:disabled):active { background: #ea580c; }

/* Thanks screen */
.form-thanks {
  display: none; text-align: center; padding: 32px 0 16px;
}
.form-thanks.show { display: block; }
.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #dcfce7; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.thanks-icon i { color: #16a34a; font-size: 32px; }
.thanks-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.thanks-body  { font-size: 13px; color: #6b7280; line-height: 1.8; margin-bottom: 24px; }
.btn-thanks-close {
  display: inline-block; background: #f97316; color: white;
  font-size: 14px; font-weight: 700; padding: 12px 32px;
  border-radius: 12px; font-family: inherit;
}

/* ===== Utility ===== */
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }

/* ===== Loading spinner ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   ステップ型レイアウト (layout = "step")
   ============================================================ */

/* タブバーを非表示 */
body.layout-step .tabs-wrap { display: none; }
body.layout-step .main       { padding-top: 0; }

/* ===== ステップバー ===== */
.step-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  transition: color 0.2s;
}
.step-item.active { color: var(--theme-primary, #0d9488); }
.step-item.done   { color: var(--theme-primary, #0d9488); opacity: 0.6; }
.step-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.step-item.active .step-dot { background: var(--theme-primary, #0d9488); }
.step-item.done   .step-dot { background: var(--theme-primary, #0d9488); }
.step-arrow {
  color: #d1d5db;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== Step 1: カテゴリ選択 ===== */
.step-prompt {
  padding: 18px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.step-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 24px;
}
.step-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.step-cat-btn:active {
  transform: scale(0.98);
  background: var(--theme-primary-lt, #f0fdfa);
  border-color: var(--theme-primary, #0d9488);
}
.step-cat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--theme-primary-lt, #f0fdfa);
  flex-shrink: 0;
}
.step-cat-icon i {
  color: var(--theme-primary, #0d9488);
  font-size: 20px;
}
.step-cat-info { flex: 1; }
.step-cat-name { font-size: 13px; font-weight: 700; }
.step-cat-desc { font-size: 11px; color: #999; margin-top: 2px; font-weight: 400; }
.step-cat-count {
  font-size: 11px;
  color: #bbb;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== Step 2: FAQ一覧 ===== */
.step-back-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--theme-primary-lt, #f0fdfa);
  border-bottom: 1px solid var(--border);
}
.step-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-primary, #0d9488);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.step-cat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 8px;
}
.step-cat-heading-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--theme-primary-lt, #f0fdfa);
  display: flex; align-items: center; justify-content: center;
}
.step-cat-heading-icon i { color: var(--theme-primary, #0d9488); font-size: 18px; }
.step-cat-heading-text h3 { font-size: 14px; font-weight: 700; }
.step-cat-heading-text p  { font-size: 11px; color: #999; margin-top: 1px; }

.step-faq-list { padding: 0 12px 24px; }

/* ステップ型のアコーディオンアイテム */
.step-faq-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.step-faq-item.open { border-color: var(--theme-primary, #0d9488); }
.step-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.step-q-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--theme-primary, #0d9488);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-q-text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}
.step-q-chevron {
  font-size: 18px;
  color: #bbb;
  flex-shrink: 0;
  transition: transform 0.25s;
  margin-top: 2px;
}
.step-faq-item.open .step-q-chevron { transform: rotate(180deg); }
.step-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.step-faq-item.open .step-faq-a { max-height: 600px; }
.step-faq-a-inner {
  padding: 0 14px 14px 46px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
}
.step-faq-a-inner p { margin-bottom: 6px; }
.step-faq-a-inner p:last-child { margin-bottom: 0; }
.step-faq-a-inner img {
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

/* ===== アニメーション ===== */
@keyframes step-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes step-slide-back {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-page { animation: step-slide-in 0.2s ease; }
.step-page.slide-back { animation: step-slide-back 0.2s ease; }

/* ============================================================
   カードグリッド型レイアウト
============================================================ */
body.layout-card-grid .tabs-wrap { display: none; }

.cg-hero {
  background: linear-gradient(135deg, var(--theme-hero-from, #0D9488), var(--theme-hero-to, #10B981));
  padding: 22px 16px 26px; color: #fff; position: relative; overflow: hidden;
}
.cg-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.22); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.cg-hero-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.cg-hero-sub   { font-size: 12px; opacity: .85; }

.cg-search-wrap { padding: 14px 16px 4px; }
.cg-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cg-search i { font-size: 18px; color: #9ca3af; flex-shrink: 0; }
.cg-search input {
  border: none; outline: none; font-size: 14px; font-family: inherit;
  width: 100%; background: transparent; color: var(--text);
}
.cg-search input::placeholder { color: #9ca3af; }

.cg-section { padding: 14px 16px; }
.cg-section-title {
  font-size: 12px; font-weight: 700; color: #6b7280;
  margin-bottom: 10px; display: flex; align-items: center; gap: 5px;
}

.cg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cg-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 16px 12px; text-align: center; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cg-card:active { transform: scale(0.95); }
.cg-card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cg-card-name  { font-size: 13px; font-weight: 700; color: var(--text); }
.cg-card-count { font-size: 11px; color: #6b7280; }

/* ボトムシート */
.cg-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.cg-sheet-overlay.open { opacity: 1; pointer-events: all; }
.cg-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  min-height: 72dvh; max-height: 90dvh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.cg-sheet-overlay.open .cg-sheet { transform: translateY(0); }
.cg-sheet-handle { width: 40px; height: 4px; background: #d1d5db; border-radius: 2px; margin: 12px auto 0; }
.cg-sheet-header {
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1;
}
.cg-sheet-header-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.cg-sheet-header-name  { font-size: 15px; font-weight: 700; flex: 1; }
.cg-sheet-header-count { font-size: 12px; color: #6b7280; }
.cg-sheet-close {
  background: none; border: none; font-size: 22px; color: #6b7280; cursor: pointer; padding: 4px;
}
.cg-sheet-item { border-bottom: 1px solid var(--border); }
.cg-sheet-item:last-child { border-bottom: none; }
.cg-sheet-q {
  width: 100%; padding: 13px 16px; display: flex; align-items: flex-start; gap: 10px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
}
.cg-sheet-q-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.cg-sheet-q-text  { font-size: 14px; font-weight: 600; flex: 1; line-height: 1.5; }
.cg-sheet-chevron { font-size: 18px; color: #9ca3af; transition: transform 0.2s; flex-shrink: 0; }
.cg-sheet-item.open .cg-sheet-chevron { transform: rotate(180deg); }
.cg-sheet-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.cg-sheet-item.open .cg-sheet-a { max-height: 800px; }
.cg-sheet-a-inner {
  padding: 0 16px 14px 48px; font-size: 13px; color: #6b7280; line-height: 1.7;
}
.cg-sheet-a-inner p { margin: 0 0 6px; }
.cg-sheet-a-inner p:last-child { margin: 0; }
.cg-sheet-a-inner img { width: 100%; border-radius: 10px; margin-top: 8px; }

/* ============================================================
   ドロワーメニュー
============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.32,.72,0,1);
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.drawer-header-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-hero-from,#0D9488), var(--theme-hero-to,#10B981));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.drawer-header-icon i { font-size: 20px; color: #fff; }
.drawer-header-text { flex: 1; min-width: 0; }
.drawer-school-name { font-size: 14px; font-weight: 700; color: #1f2937; line-height: 1.3; }
.drawer-school-sub  { font-size: 11px; color: #6b7280; margin-top: 1px; }
.drawer-close {
  background: none; border: none; font-size: 22px; color: #9ca3af;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 env(safe-area-inset-bottom, 16px); }
.drawer-section-label {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 16px 4px;
}
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; font-size: 14px; font-weight: 600; color: #1f2937;
  cursor: pointer; text-decoration: none; transition: background 0.12s;
  border-radius: 0;
}
.drawer-item:hover, .drawer-item:active { background: #f9fafb; }
.drawer-item i { font-size: 18px; color: #6b7280; width: 22px; text-align: center; flex-shrink: 0; }
.drawer-cat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; font-size: 13px; font-weight: 600; color: #374151;
  cursor: pointer; transition: background 0.12s;
}
.drawer-cat-item:hover { background: #f9fafb; }
.drawer-cat-dot {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.drawer-cat-count { margin-left: auto; font-size: 11px; color: #9ca3af; }

/* ============================================================
   検索ファースト型レイアウト
============================================================ */
body.layout-search-first .tabs-wrap { display: none; }

.sf-hero {
  background: linear-gradient(135deg, var(--theme-hero-from,#0D9488), var(--theme-hero-to,#10B981));
  padding: 28px 16px 32px;
}
.sf-hero-lead {
  font-size: 18px; font-weight: 700; color: #fff; text-align: center;
  margin-bottom: 16px; line-height: 1.4;
}
.sf-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 13px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.sf-search-box i { font-size: 20px; color: #9ca3af; flex-shrink: 0; }
.sf-search-box input {
  border: none; outline: none; font-size: 15px; font-family: inherit;
  width: 100%; background: transparent; color: #1f2937;
}
.sf-search-box input::placeholder { color: #9ca3af; }
.sf-search-clear {
  background: none; border: none; font-size: 18px; color: #9ca3af;
  cursor: pointer; padding: 0; display: none; flex-shrink: 0;
}

.sf-chips-wrap {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: var(--header-h, 56px); z-index: 10;
}
.sf-chips {
  display: flex; gap: 6px; padding: 10px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  border: 1.5px solid #e5e7eb; background: #fff; color: #6b7280;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
  display: flex; align-items: center; gap: 5px;
}
.sf-chip.active {
  background: var(--theme-primary, #0D9488); border-color: var(--theme-primary, #0D9488);
  color: #fff;
}

.sf-results { padding: 8px 0; }
.sf-cat-head {
  padding: 14px 16px 6px; font-size: 12px; font-weight: 700; color: #6b7280;
  display: flex; align-items: center; gap: 6px;
}
.sf-cat-head-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sf-item {
  border-bottom: 1px solid #f3f4f6; margin: 0 12px;
  border-radius: 0;
}
.sf-item:last-of-type { border-bottom: none; }
.sf-item-q {
  width: 100%; padding: 13px 4px; display: flex; align-items: flex-start; gap: 10px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
}
.sf-item-q-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.sf-item-q-text  { font-size: 14px; font-weight: 600; flex: 1; line-height: 1.5; color: #1f2937; }
.sf-item-chevron { font-size: 18px; color: #9ca3af; transition: transform 0.2s; flex-shrink: 0; }
.sf-item.open .sf-item-chevron { transform: rotate(180deg); }
.sf-item-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sf-item.open .sf-item-a { max-height: 800px; }
.sf-item-a-inner {
  padding: 0 4px 14px 32px; font-size: 13px; color: #6b7280; line-height: 1.7;
}
.sf-item-a-inner p { margin: 0 0 6px; }
.sf-item-a-inner p:last-child { margin: 0; }
.sf-item-a-inner img { width: 100%; border-radius: 10px; margin-top: 8px; }

.sf-empty {
  text-align: center; padding: 48px 16px; color: #9ca3af; font-size: 14px;
}
.sf-empty i { font-size: 40px; display: block; margin-bottom: 10px; }

/* ハイライト */
.sf-highlight { background: #fef08a; border-radius: 2px; }

/* ============================================================
   スクロール型レイアウト
============================================================ */
body.layout-scroll .tabs-wrap { display: none; }

.sc-cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 14px;
  gap: 6px;
}
.sc-cat-nav::-webkit-scrollbar { display: none; }

.sc-cat-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
  display: flex; align-items: center; gap: 5px;
}
.sc-cat-btn.active {
  background: var(--theme-primary, #0D9488);
  border-color: var(--theme-primary, #0D9488);
  color: #fff;
}

.sc-section { padding: 0 0 8px; }
.sc-section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 12px;
  border-left: 4px solid;
  margin: 0 12px 4px;
}
.sc-section-head-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.sc-section-head-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.sc-section-head-count { margin-left: auto; font-size: 11px; color: #9ca3af; font-weight: 600; }

.sc-item { border-bottom: 1px solid #f3f4f6; margin: 0 12px; }
.sc-item-q {
  width: 100%; padding: 13px 4px; display: flex; align-items: flex-start; gap: 10px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: inherit;
}
.sc-item-q-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.sc-item-q-text { font-size: 14px; font-weight: 600; flex: 1; line-height: 1.5; color: #1f2937; }
.sc-item-chevron { font-size: 18px; color: #9ca3af; transition: transform 0.2s; flex-shrink: 0; }
.sc-item.open .sc-item-chevron { transform: rotate(180deg); }
.sc-item-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sc-item.open .sc-item-a { max-height: 600px; }
.sc-item-a-inner {
  padding: 0 4px 14px 32px; font-size: 13px; color: #6b7280; line-height: 1.7;
}
.sc-item-a-inner p { margin: 0 0 6px; }
.sc-item-a-inner p:last-child { margin: 0; }
.sc-item-a-inner img { width: 100%; border-radius: 10px; margin-top: 8px; }

/* ===== Chat FAB ===== */
#chatFab {
  position: fixed;
  bottom: 80px; right: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; height: 64px;
  background: #fff;
  border: 2px solid #0d9488;
  border-radius: 50%;
  color: #0d9488;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,148,136,0.2), 0 1px 4px rgba(0,0,0,0.08);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
#chatFab i { font-size: 24px; line-height: 1; }
#chatFab span { font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0; }
#chatFab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(13,148,136,0.35);
}
#chatFab:active { transform: scale(0.96); }
