/* 共通: ナビのサブテキスト・モバイルメニュー */
.nav-links a small { display: block; font-size: 0.6rem; font-weight: 400; margin-top: 2px; text-align: center; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #002855; margin: 6px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
header.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
header.open .menu-toggle span:nth-child(2) { opacity: 0; }
header.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    header nav { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #e1e8f0; display: none; }
    header.open nav { display: block; }
    header .nav-links { display: flex; flex-direction: column; gap: 0; padding: 10px 20px 25px; }
    header .nav-links li { width: 100%; text-align: center; padding: 14px 0; border-bottom: 1px solid #f0f4f8; }
    header .nav-links li:last-child { border-bottom: 0; }
    header .nav-links a { font-size: 1rem; }
    header .nav-links .btn-contact-nav, header .nav-links li:last-child a { display: inline-block; }
}

/* 共通: 各ページ下部のお問い合わせCTA */
.cta-section {
    background: linear-gradient(135deg, #002855 0%, #00416b 100%);
    color: #fff;
    padding: 90px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.cta-section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1.5;
}
.cta-section p {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.85;
}
.btn-cta {
    display: inline-block;
    background: #00a8e8;
    color: #fff;
    text-decoration: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 25px rgba(0, 168, 232, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-cta:hover { background: #fff; color: #002855; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
.cta-section .cta-mail { display: block; margin-top: 25px; font-size: 0.85rem; opacity: 0.7; }
.cta-section .cta-mail a { color: #fff; }

@media (max-width: 768px) {
    .cta-section { padding: 70px 20px; }
    .cta-section h2 { font-size: 1.4rem; }
    .btn-cta { padding: 16px 40px; width: 100%; max-width: 320px; }
}

/* CTAの直後のフッターは、間の余白を詰めて色を連続させる */
.cta-section + footer { margin-top: 0; }

/* 固定ヘッダーの下にアンカー先が隠れないようにする */
[id] { scroll-margin-top: 110px; }

/* フッターの事業者情報・プライバシーポリシーへのリンク */
.legal-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.legal-links a { color: #fff; opacity: 0.65; text-decoration: none; font-size: 0.75rem; transition: opacity 0.3s; }
.legal-links a:hover { opacity: 1; text-decoration: underline; }

/* ── 書体 ────────────────────────────────────────────
   見出し: Playfair Display（欧文セリフ）＋ Noto Serif JP（和文明朝）
   本文  : Inter（欧文サンセリフ）＋ Noto Sans JP（和文ゴシック）
   欧文フォントには日本語の字形が無いため、和文フォントを必ず後ろに置く */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.plan-name {
    font-family: 'Playfair Display', 'Noto Serif JP', serif;
    font-weight: 700;
}

/* 明朝は字画が細いため、見出しの字間を少し詰めて締まりを出す */
h1, h2 { letter-spacing: 0.02em; }

/* 数字・英字のみの装飾要素は Playfair のまま */
.reason-number, .action-number, .news-date, .flow-num, .coordinates {
    font-family: 'Playfair Display', serif;
}

/* ロゴはブランドの書体を維持 */
.font-akaya, .logo-text {
    font-family: 'Akaya Telivigala', 'Noto Sans JP', system-ui;
}

/* 小さな文字・UI部品は可読性を優先してサンセリフのまま */
.btn-hero, .btn-cta, .btn-submit, .btn-contact-nav, .btn-data,
.nav-links a, .tank-name, .tank-dim, .plan-price, .plan-note, .plan-size,
.news-label, .flow-badge, .info-label, .spec-text, .q-text, .a-text,
.form-control, .form-group label, .info-table th, .info-table td {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* ── スマートフォンでの操作性 ──────────────────────────────── */
/* フッターのリンクは文字が小さく指で押しにくいため、当たり判定を広げる */
.legal-links a { display: inline-block; padding: 10px 4px; }
.legal-links { gap: 14px 26px; margin-bottom: 12px; }

/* 11px台の文字は小さすぎるため 12px 以上に */
.flow-badge { font-size: 0.75rem; }

/* ── スクロールに連動する演出 ──────────────────────────────
   .js-anim は JavaScript が動く環境でのみ付くため、
   JS無効・動きを抑える設定の場合は最初から通常表示になる */
.js-anim .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.js-anim .reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* 表示し終えたら描画負荷を残さない */
.js-anim .reveal.is-visible { will-change: auto; }

/* ヘッダー: スクロールすると少し縮んで影がつく */
header {
    transition: height 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease,
                background-color 0.35s ease;
}
header .logo-img,
header .logo img {
    transition: height 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
header.is-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.07);
}
header.is-scrolled .logo-img,
header.is-scrolled .logo img { height: 44px; }
header.is-scrolled .logo-text { font-size: 1.5rem; }

/* 動きを抑える設定の場合はヘッダーの変化も止める */
@media (prefers-reduced-motion: reduce) {
    header, header .logo-img, header .logo img { transition: none; }
}
