/* ==========================================================
   すりーる 小児向けサイト 共通スタイル（仮デザイン）
   デザイン確定後はこのファイルの変数・装飾を差し替える
   ========================================================== */
:root {
  --c-main: #f08c3c;        /* メインオレンジ */
  --c-main-dark: #f2bc00;
  --c-cream: #fff7ec;       /* クリーム */
  --c-green: #cfe6c8;       /* パステルグリーン */
  --c-pink: #f8dde4;        /* パステルピンク */
  --c-text: #333;
  --c-muted: #777;
  --c-border: #ddd;
  --c-footer: #f2bc00;
  --radius: 10px;
  --max-w: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  color: var(--c-text);
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDGothic", "Yu Gothic", sans-serif;
  line-height: 1.8;
  font-size: 16px;
  padding-bottom: 72px; /* フローティングCTA分 */
}
img { max-width: 100%; height: auto; }
a { color: var(--c-main-dark); }
a:hover { color: var(--c-main); }

h1 { font-size: 1.5rem; margin: 0 0 .5em; }
h2 { font-size: 1.25rem; margin: 0 0 .75em; padding-left: .5em; border-left: 5px solid var(--c-main); }
h3 { font-size: 1.05rem; margin: 0 0 .5em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
section { padding: 40px 0; background: #f2bc00; }
.section-alt { background: var(--c-cream); }
.lead { color: var(--c-muted); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff; border-bottom: 1px solid var(--c-border);
}
.logo { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--c-text); }
.logo small { display: block; font-size: .65rem; font-weight: 400; color: var(--c-muted); }
.header-spacer { flex: 1; }
.header-tel {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: 50%;
  background: var(--c-main); color: #fff; text-decoration: none; font-size: .75rem;
}
.menu-btn {
  min-width: 44px; min-height: 44px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
  font-size: 1.2rem; cursor: pointer;
}
.global-nav { background: #f2bc00; border-bottom: 1px solid var(--c-border); }
.global-nav ul { margin: 0; padding: 8px 16px; list-style: none; }
.global-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--c-text); }
.global-nav[hidden] { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 20px;
  border: 2px solid var(--c-text); border-radius: 24px;
  background: #fff; color: var(--c-text);
  font-weight: 700; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.btn-line { background: #6fbf5e; border-color: #6fbf5e; color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--c-cream); text-align: center; padding: 48px 0; }
.hero-char {
  width: 140px; height: 140px; margin: 0 auto 16px;
  border-radius: 50%; background: #fff; border: 2px dashed var(--c-main);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: .8rem;
}
.hero h1 { font-size: 1.6rem; }
.hero .sub { margin: 0 0 24px; }

/* ---------- 汎用パーツ ---------- */
.quote-block {
  background: var(--c-cream); border-radius: var(--radius);
  padding: 24px; text-align: center; font-size: 1.05rem;
}
.accept-block {
  border: 2px solid var(--c-main); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: center;
}
.accept-block .badge {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.card {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px; background: #fff;
}
.card h3 { color: var(--c-main-dark); }
.icon-ph {
  width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--c-green); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--c-muted);
}
.img-ph {
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 8px, #f0f0f0 8px, #f0f0f0 16px);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: .8rem; min-height: 160px; text-align: center;
}

/* ステップ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { display: flex; gap: 12px; }
.steps .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-main); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps .body { flex: 1; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 16px; }
.step-note { margin-top: 8px; padding: 8px 12px; border: 1px dashed var(--c-border); border-radius: 8px; font-size: .85rem; color: var(--c-muted); }

/* FAQ（details） */
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq-item summary {
  padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 8px;
}
.faq-item summary::after { content: "▾"; color: var(--c-main); }
.faq-item[open] summary::after { content: "▴"; }
.faq-item .answer { padding: 0 16px 14px; border-top: 1px dashed var(--c-border); margin: 0; padding-top: 10px; }

/* テーブル */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.info-table th { background: var(--c-cream); width: 32%; font-weight: 700; }

/* パンくず */
.breadcrumb { font-size: .8rem; padding: 10px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--c-muted); }

/* キャラ吹き出し */
.char-comment { display: flex; gap: 12px; align-items: flex-start; }
.char-comment .face {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-main); color: #fff; font-size: .6rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.char-comment .bubble {
  background: var(--c-cream); border-radius: var(--radius); padding: 12px 16px; position: relative;
}

/* ---------- フローティングCTA（モバイル） ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; gap: 8px; padding: 10px 12px;
  background: #fff; border-top: 2px solid var(--c-main);
}
.cta-bar .btn { flex: 1; min-height: 48px; font-size: .95rem; }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-footer); color: #333; padding: 32px 0 24px; font-size: .85rem; }
.site-footer a { color: #333; }
.site-footer .nap { margin: 0 0 16px; font-style: normal; }
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .updated { color: #6b5a00; font-size: .75rem; }

/* ---------- PC ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .menu-btn { display: none; }
  .global-nav { border: none; background: #f2bc00; }
  .global-nav[hidden] { display: block; }
  .global-nav ul { display: flex; gap: 4px; padding: 0; }
  .global-nav a { padding: 8px 10px; }
  .site-header { padding: 12px 32px; }
  .hero { text-align: left; }
  .hero .hero-inner { display: flex; align-items: center; gap: 40px; }
  .hero .hero-text { flex: 1; }
  .hero h1 { font-size: 2.2rem; }
  .hero-char { width: 220px; height: 220px; margin: 0; }
  .btn-row { flex-direction: row; }
  .btn-row .btn { flex: 1; max-width: 280px; }
  .cards-2, .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-pc-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-pc-4 { grid-template-columns: repeat(4, 1fr); }
  .steps-h { grid-template-columns: repeat(4, 1fr); }
  .steps-h li { flex-direction: column; }
  .two-col { display: flex; gap: 40px; align-items: flex-start; }
  .two-col > * { flex: 1; }
}
