/* =========================================================
   zeirishi compare — shared design system
   Navy base + emerald accent + gold premium
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Shippori+Mincho:wght@500;600;700&display=swap');

:root {
  /* Navy scale */
  --navy-900: #14233f;
  --navy-800: #1b3358;
  --navy-700: #244272;
  --navy-600: #305a90;
  --navy-500: #4a6fa1;

  /* Accent — navy-blue (interactive) */
  --accent: #2a4d80;
  --accent-dark: #1b3358;
  --accent-soft: #eef3fb;

  /* Premium — gold (top listings only) */
  --gold: #b1812a;
  --gold-line: #d8b257;
  --gold-soft: #fbf5e6;
  --gold-soft-2: #f6ecd2;

  /* Badge — orange (おすすめ) */
  --badge: #df7c20;

  /* Ink & neutrals (cool, airy) */
  --ink: #1b2740;
  --ink-soft: #3c4d68;
  --muted: #6a7890;
  --muted-2: #97a3b6;
  --line: #e4e9f1;
  --line-soft: #eef2f8;
  --bg: #f3f7fd;
  --surface: #ffffff;

  /* Star */
  --star: #f4a623;

  /* Type */
  --sans: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --mincho: "Shippori Mincho", "Noto Serif JP", serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16,34,64,.06), 0 2px 8px rgba(16,34,64,.05);
  --shadow-md: 0 6px 24px rgba(16,34,64,.10);
  --shadow-nav: 0 1px 0 rgba(16,34,64,.06);

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--mincho); font-weight: 600; }

.eyebrow {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 600;
}

/* ---------------- Header ---------------- */
/* ヘッダーが sticky で最上部に居座るため、#specialty 等のアンカーへ飛ぶと
   見出しがヘッダーの下に潜って読めなくなる。その分だけ手前で止める。 */
html { scroll-padding-top: 84px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-h1 { margin: 0; display: flex; align-items: center; font-size: inherit; line-height: 0; }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 32px; } }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  color: #fff; font-family: var(--mincho); font-weight: 700; font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-name { font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--navy-900); }
.brand-name b { color: var(--accent); }
.brand-sub { display:block; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 500; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--line-soft); color: var(--navy-800); }
.nav a.active { color: var(--accent-dark); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: 15px; padding: 11px 20px;
  transition: transform .08s ease, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--navy-800); color: #fff; box-shadow: 0 2px 0 rgba(16,29,53,.45); }
.btn-accent:hover { background: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-500); background: var(--line-soft); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }

.icon-btn-menu {
  display: none; width: 42px; height: 42px;
  border: 0; background: none; color: var(--navy-800);
  align-items: center; justify-content: center;
}

/* ---------------- Stars ---------------- */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.star-full { color: var(--star); }
.star-empty { color: #d9dee7; }
.rating-num { font-weight: 900; font-size: 16px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.rating-count { font-size: 12.5px; color: var(--muted); }

/* ---------------- Tags ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  white-space: nowrap;
}
.tag.alt { background: #eef2f9; color: var(--navy-700); }
.tag.outline { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-900); color: #c3cee0; margin-top: 80px;
  padding: 56px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .footer-col-title { color: #fff; font-size: 13.5px; letter-spacing: .04em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { font-size: 13.5px; color: #aebbd2; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 20px; }
.footer-brand p { font-size: 13px; color: #93a3c0; max-width: 30ch; margin: 14px 0 0; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #8493b3;
}

/* ---------------- Utility ---------------- */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 12px; letter-spacing: .01em; color: var(--navy-900); font-weight: 900; }
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------------- Mobile menu (全ページ共通・既定は非表示) ---------------- */
.mmenu { position: fixed; inset: 0; z-index: 90; display: none; }
.mmenu.open { display: block; }
.mmenu .ov { position: absolute; inset: 0; background: rgba(10,20,40,.5); }
.mmenu .panel { position: absolute; top: 0; right: 0; width: min(82vw, 320px); height: 100%; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.mmenu .panel a { padding: 13px 12px; border-radius: 10px; font-weight: 700; color: var(--navy-800); }
.mmenu .panel a:hover { background: var(--line-soft); }
.mmenu .panel a.btn-accent, .mmenu .panel a.btn-navy { color: #fff; }
.mmenu .panel a.btn-accent:hover, .mmenu .panel a.btn-navy:hover { background: var(--navy-900); color: #fff; }
.mclose { align-self: flex-end; background: none; border: 0; font-size: 26px; color: var(--muted); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-ghost { display: none; }
  .icon-btn-menu { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 34px 0; }
  .section-head { margin-bottom: 22px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .wrap { padding: 0 18px; }
  .section { padding: 26px 0; }
  .section-head { margin-bottom: 18px; }
  .site-footer { margin-top: 44px; padding: 38px 0 24px; }
}

/* =========================================================
   相談リスト（一括相談）— 追加ボタン & 下部トレイ（全ページ共通）
   ========================================================= */
.soudan-add { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 13px; border-radius: 10px; padding: 10px; cursor: pointer; transition: all .12s; }
.soudan-add:hover { background: var(--accent); color: #fff; }
.soudan-add.added { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.soudan-add svg { width: 15px; height: 15px; }

.soudan-tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: var(--navy-900); color: #fff; transform: translateY(110%); transition: transform .25s ease; box-shadow: 0 -8px 30px rgba(8,18,40,.3); }
.soudan-tray.show { transform: translateY(0); }
.soudan-tray .inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; position: relative; }
.soudan-tray .summary { font-size: 12.5px; color: #9fb0cd; white-space: nowrap; }
.soudan-tray .summary b { color: #6fe0bb; font-size: 16px; }
.soudan-slots { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.soudan-slot { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 700; }
.soudan-slot.empty { color: #6f80a0; border-style: dashed; font-weight: 500; }
.soudan-slot button { background: none; border: 0; color: #9fb0cd; font-size: 16px; line-height: 1; padding: 0; cursor: pointer; }
.soudan-slot button:hover { color: #fff; }
.soudan-go.disabled { opacity: .45; pointer-events: none; }

/* 管理者専用：カードの編集ボタン */
.zsi-edit-btn { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--gold-line); background: var(--gold-soft); color: #8a6516; font-weight: 800; font-size: 13px; border-radius: 10px; padding: 8px; }
.zsi-edit-btn:hover { background: var(--gold-soft-2); }
.zsi-edit-btn svg { width: 14px; height: 14px; }
.soudan-close { position: absolute; top: 4px; right: 0; background: none; border: 0; color: #9fb0cd; font-size: 18px; line-height: 1; padding: 4px; cursor: pointer; }
.soudan-close:hover { color: #fff; }
@media (max-width: 860px) {
  .soudan-tray .inner { flex-wrap: wrap; gap: 10px; }
  .soudan-tray .summary { width: 100%; }
  .soudan-go { width: 100%; text-align: center; }
}
