/* ---- CSS設計方針 ----
      - 変数で色/余白を統一管理
      - モバイルファースト (min-widthで段階拡張)
      - コンポーネント化: .section / .container / .grid / .card / .cta
      - ベースフォントはシステムUIに近いサンセリフ
    */
    :root {
      --brand: #0e4b8a;          /* 信頼感のある濃い青 */
      --brand-2: #1b7f7a;        /* 省エネを想起させるグリーン系 */
      --ink: #1a1a1a;
      --muted: #6b7280;
      --bg: #ffffff;
      --bg-soft: #f5f7fb;
      --accent: #e8f3ff;         /* ヒント/強調の淡青 */
      --accent-2: #e6f5f3;       /* 淡緑 */
      --radius: 14px;
      --shadow: 0 6px 20px rgba(16, 24, 40, 0.07);
      --w: clamp(280px, 92vw, 1080px);
      --gap: 16px;
    }

    html, body { height: 100%; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--bg);
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
      -webkit-text-size-adjust: 100%;
      text-rendering: optimizeLegibility;
    }

    .container { width: var(--w); margin-inline: auto; padding: 0 8px; }
    .section { padding: 40px 0; }
    .section.sm { padding: 28px 0; }
    .section.lg { padding: 64px 0; }

    /* ヒーロー */
    .hero {
      position: relative;
      overflow: clip;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      border-bottom: 1px solid #e6e9f0;
    }
    .hero-wrap { display: grid; gap: 20px; align-items: center; }
    .eyebrow { color: var(--brand-2); font-weight: 700; letter-spacing: .06em; font-size: .9rem; }
    h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.25; margin: 6px 0 10px; }
    .lead { color: var(--muted); font-size: clamp(1rem, 2.8vw, 1.1rem); }

    .hero-card {
      background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
      padding: 18px; display: grid; gap: 12px; align-self: start;
    }
    .hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
    .badge { background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 10px; font-size: .86rem; }

    .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
    .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
    .btn-primary { background: var(--brand); color: #fff; }
    .btn-secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
    .btn span.ico { font-size: 1.2em; line-height: 1; }

    .hero-illus { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
    .hero-illus img { width: 100%; height: auto; display: block; }

    /* グリッド */
    .grid { display: grid; gap: var(--gap); }
    @media (min-width: 720px) {
      .hero-wrap { grid-template-columns: 1.1fr 1fr; }
      .grid.cols-2 { grid-template-columns: 1fr 1fr; }
      .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    }

    /* カード */
    .card { background: #fff; border: 1px solid #eef1f6; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
    .card h3 { margin: 4px 0 8px; font-size: 1.1rem; }
    .card p { margin: 0; color: var(--muted); }

    /* セクションタイトル */
    .st { font-size: clamp(1.2rem, 3.2vw, 1.6rem); margin: 0 0 14px; }
    .st .sub { display: block; color: var(--muted); font-size: .95rem; font-weight: 500; margin-top: 4px; }

    /* 表 */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: 10px; overflow: hidden; }
    th, td { padding: 12px 10px; border-bottom: 1px solid #eef1f6; text-align: left; vertical-align: top; }
    thead th { background: #f0f6ff; font-weight: 700; color: #0f172a; }
    tbody tr:hover { background: #fbfdff; }

    /* 計算フォーム */
    .calc { display: grid; gap: 12px; }
    .calc label { font-weight: 700; font-size: .92rem; }
    .calc input,
    .calc select {
      width: 100%;
      max-width: 200px;  /* ← ここを追加 */
      box-sizing: border-box;
    }
    /* 主軸/送り 参考情報だけ広げる */
    #preset_info {
      max-width: 500px;   /* ← お好みで 350px〜500px に調整可能 */
    }
    .calc .result { background: #0e4b8a; color: #fff; border-radius: 12px; padding: 12px; font-weight: 700; display: grid; gap: 4px; }
    .note { font-size: .85rem; color: var(--muted); }

    /* FAQ */
    details { background: #fff; border: 1px solid #eef1f6; border-radius: var(--radius); padding: 12px 14px; }
    details + details { margin-top: 10px; }
    summary { cursor: pointer; font-weight: 700; }

    /* フッター */
    .footer-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
    .footer-cta .card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
    .footer-cta a.btn { box-shadow: 0 4px 14px rgba(0,0,0,.18); }

    /* 余白の微調整 */
    .mt-4 { margin-top: 16px; }
    .mt-6 { margin-top: 24px; }
    .mt-8 { margin-top: 32px; }

    /* アニメーション軽減 */
    @media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition: none !important; }
    }

    /* ==== Nikkoサイト風のブランドスキン調整 ==== */
    :root {
      --brand: #0b3a74;   /* コーポレート紺 */
      --brand-2: #0e9a6c; /* エメラルド系アクセント */
    }

    /* 見出しの太さ・字間 */
    h1, .st { font-weight: 700; letter-spacing: .02em; }

    /* カードをフラット寄りに */
    .card {
      border-radius: 8px;
      box-shadow: none;
      border: 1px solid #e0e5eb;
    }

    /* 入力欄の見た目 */
    .calc input,
    .calc select {
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      padding: 6px 8px;
    }
    #preset_info {
      max-width: 500px;
    }

    /* フッターをシンプルに */
    .footer-cta {
      background: var(--brand);
      color: #fff;
    }
    .footer-cta .card {
      background: transparent;
      border: none;
      color: #fff;
    }



/* ===== Nikko site taste add-on ===== */
:root{
  --brand: #0b3a74;   /* corporate navy */
  --brand-2: #0e9a6c; /* emerald accent */
  --ink: #111827;
  --muted: #6b7280;
}

/* Header */
.nikko-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}
.nikko-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 8px;
}
.nikko-logo{
  display:inline-block;
  font-weight:800;
  font-size:1.05rem;
  color:var(--brand);
  text-decoration:none;
}
.nikko-nav{
  display:flex; gap:18px; align-items:center;
}
.nikko-nav a{
  color:#243445;
  text-decoration:none;
  font-weight:600;
}
.nikko-nav a:hover{ text-decoration:underline; }
.nikko-cta{ padding:8px 14px; }

/* Footer */
.nikko-footer{
  background:#0f172a;
  color:#cbd5e1;
  padding:22px 0;
}
.nikko-footer__inner{
  display:flex; align-items:center; justify-content:space-between;
}
.nikko-footer__links a{
  color:#cbd5e1; text-decoration:none; margin-left:16px;
}
.nikko-footer__links a:hover{ text-decoration:underline; }

/* Flatter cards/buttons to match corporate site */
.card{ box-shadow:none; border-radius:8px; border:1px solid #e5e7eb; }
.btn{ border-radius:999px; }
.footer-cta{ background:var(--brand); }
.footer-cta .btn.btn-secondary{ background:#fff; color:var(--brand); border-color:#fff; }

/* Inputs: compact numbers, wider preset info */
.calc input, .calc select{ max-width:200px; }
#preset_info{ max-width:520px; }

.gx-card{border-left:4px solid var(--brand-2);}

/* カタログ電気仕様セクションの文字を少し小さく */
#catalog .card p,
#catalog .card td,
#catalog .card li {
  font-size: 0.9rem;   /* 全体を少し小さめに */
  line-height: 1.5;    /* 読みやすさを確保 */
}

#catalog .card h3 {
  font-size: 1.1rem;   /* 見出しはバランスを保ちつつ少し小さめ */
}
.brand-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #003566; /* ブランドカラーに調整可能 */
  margin-bottom: 0.25rem;
}
