@charset "UTF-8";
/*
Theme Name: かなもり歯科スタイル（スマホ最適化・統一感重視）
Description: スマホで見たときの美しさと読みやすさを最優先に設計
Version: 6.0
*/

/* ========================================
   1. ベースカラー（清潔感のあるネイビー＋ゴールド）
   ======================================== */
:root {
    --main-navy: #1a2a3a;
    --main-navy-light: #f0f4f8;
    --main-navy-mid: #e2e8f0;
    --accent-gold: #b8860b;
    --accent-gold-light: #f5eed6;
    --accent-gold-pale: #faf6eb;
    --white: #ffffff;
    --text-dark: #222222;
    --text-gray: #555555;
    --text-light: #777777;
    --border-light: #e8edf2;

    /* スマホとPCで共通の基準サイズ */
    --font-base: 16px;
    --font-small: 14px;
    --font-large: 20px;
    --font-xl: 26px;

    /* 角丸・影の統一 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(26, 42, 58, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 42, 58, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 42, 58, 0.10);
    --shadow-gold: 0 4px 16px rgba(184, 134, 11, 0.20);
    --shadow-gold-hover: 0 6px 24px rgba(184, 134, 11, 0.12);
}

/* ========================================
   2. 全体の基本設定（すべてのデバイスで一貫）
   ======================================== */
html {
    font-size: var(--font-base);
    -webkit-text-size-adjust: 100%;
}
body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Georgia', 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.04em;
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
}

/* スマホでタップ時の青いハイライトを除去 */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   3. 見出し（洗練された装飾に統一）
   ======================================== */
.c-heading h2 {
    font-family: 'Georgia', 'Noto Sans JP', sans-serif;
    color: var(--main-navy);
    font-size: var(--font-xl) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    line-height: 1.4;
}
.c-heading h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

/* サブ見出し（h3） */
.c-heading h3,
[data-structure*="heading"] h3 {
    font-family: 'Georgia', 'Noto Sans JP', sans-serif;
    color: var(--main-navy);
    font-size: var(--font-large) !important;
    font-weight: 700;
    border-left: 4px solid var(--accent-gold);
    padding-left: 16px;
    margin: 32px 0 20px;
    line-height: 1.5;
}

/* h4 以降 */
.c-heading h4,
[data-structure*="heading"] h4 {
    font-family: 'Georgia', 'Noto Sans JP', sans-serif;
    color: var(--main-navy);
    font-size: var(--font-base) !important;
    font-weight: 700;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-light);
}

/* 通常の太字（strong） */
strong,
b {
    color: var(--main-navy);
    font-weight: 700;
}

/* ========================================
   4. 段落・本文（すべてのデバイスで読みやすく）
   ======================================== */
p,
li,
td,
th,
[class*="text"],
[class*="description"] {
    font-size: var(--font-base) !important;
    line-height: 1.9 !important;
    color: var(--text-dark);
}
/* 小さな注釈など */
small,
[class*="small"] {
    font-size: var(--font-small) !important;
    color: var(--text-light);
}

/* リンク */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
a:hover {
    opacity: 0.8;
}

/* リスト */
ul, ol {
    padding-left: 1.5em;
    margin: 16px 0;
}
li {
    margin-bottom: 8px;
}
ul li::marker {
    color: var(--accent-gold);
}

/* ========================================
   5. ★最重要：ボタン（全デバイスで統一感）★
   ======================================== */
.c-btn a,
.c-btn input,
.c-btn .btn-customform-submit,
.c-btn button {
    background-color: var(--accent-gold) !important;
    color: var(--white) !important;
    font-family: 'Georgia', 'Noto Sans JP', sans-serif;
    font-size: var(--font-large) !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    border-radius: var(--radius-md) !important;
    border: 2px solid var(--accent-gold) !important;
    box-shadow: var(--shadow-gold) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    display: inline-block !important;
    letter-spacing: 0.1em !important;
    transform: none !important;
    width: auto !important;
    min-width: 200px;
    cursor: pointer;
}
.c-btn a:hover,
.c-btn input:hover,
.c-btn .btn-customform-submit:hover,
.c-btn button:hover {
    background-color: transparent !important;
    color: var(--accent-gold) !important;
    box-shadow: var(--shadow-gold-hover) !important;
    transform: translateY(-2px) !important;
}
.c-btn a:active,
.c-btn input:active,
.c-btn .btn-customform-submit:active,
.c-btn button:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ゴーストボタン */
.c-btn--ghost a,
.c-btn--ghost input,
.c-btn--ghost .btn-customform-submit,
.c-btn--ghost button {
    background-color: transparent !important;
    color: var(--main-navy) !important;
    border: 2px solid var(--main-navy) !important;
    box-shadow: none !important;
}
.c-btn--ghost a:hover,
.c-btn--ghost input:hover,
.c-btn--ghost .btn-customform-submit:hover,
.c-btn--ghost button:hover {
    background-color: var(--main-navy) !important;
    color: var(--white) !important;
}

/* ========================================
   6. 非表示（SmaSurf Quick Search など）
   ======================================== */
[class*="SmaSurf"],
[class*="Quick Search"],
[style*="SmaSurf"] {
    display: none !important;
}

/* ========================================
   7. 料金表（すべてのデバイスで見やすく）
   ======================================== */
div[data-structure*="price"],
div[data-structure*="料金"],
table[class*="price"],
table[class*="料金"] {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 24px 0 !important;
    font-size: var(--font-base) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
}
div[data-structure*="price"] th,
div[data-structure*="料金"] th,
table[class*="price"] th,
table[class*="料金"] th {
    background-color: var(--main-navy-light) !important;
    color: var(--main-navy) !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid var(--accent-gold) !important;
    text-align: left !important;
    font-size: var(--font-base) !important;
}
div[data-structure*="price"] td,
div[data-structure*="料金"] td,
table[class*="price"] td,
table[class*="料金"] td {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: var(--font-base) !important;
}
div[data-structure*="price"] tr:nth-child(even) td,
div[data-structure*="料金"] tr:nth-child(even) td,
table[class*="price"] tr:nth-child(even) td,
table[class*="料金"] tr:nth-child(even) td {
    background-color: var(--main-navy-light) !important;
}
div[data-structure*="price"] tr:last-child td,
div[data-structure*="料金"] tr:last-child td {
    border-bottom: none !important;
}

/* ========================================
   8. 口コミ・実績（カード風に統一）
   ======================================== */
div[data-structure*="voice"],
div[data-structure*="口コミ"],
div[data-structure*="お客様の声"] {
    background-color: var(--white) !important;
    border: 1px solid var(--border-light) !important;
    border-left: 4px solid var(--accent-gold) !important;
    padding: 24px !important;
    margin: 24px 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}
div[data-structure*="voice"] .p-card-voice-bordered__img img,
div[data-structure*="口コミ"] .p-card-voice-bordered__img img {
    border: 3px solid var(--accent-gold) !important;
    border-radius: 50% !important;
    max-width: 80px !important;
    box-shadow: var(--shadow-sm) !important;
}
div[data-structure*="voice"] p,
div[data-structure*="口コミ"] p,
div[data-structure*="お客様の声"] p {
    font-size: var(--font-base) !important;
    color: var(--text-gray) !important;
}

/* ========================================
   9. 比較表（すべてのデバイスで見やすく）
   ======================================== */
table[class*="比較"],
div[data-structure*="比較"] table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 24px 0 !important;
    font-size: var(--font-base) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
}
table[class*="比較"] th,
div[data-structure*="比較"] th {
    background-color: var(--main-navy) !important;
    color: var(--white) !important;
    padding: 14px 16px !important;
    font-weight: 700 !important;
    font-size: var(--font-base) !important;
}
table[class*="比較"] td,
div[data-structure*="比較"] td {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: var(--font-base) !important;
}
table[class*="比較"] tr:nth-child(even) td,
div[data-structure*="比較"] tr:nth-child(even) td {
    background-color: var(--main-navy-light) !important;
}
table[class*="比較"] tr:last-child td {
    border-bottom: none !important;
}

/* ========================================
   10. 予約導線・お問い合わせ（特別に強調）
   ======================================== */
div[data-structure*="reservation"],
div[data-structure*="予約"],
div[data-structure*="contact"],
div[data-structure*="お問い合わせ"] {
    background: linear-gradient(135deg, var(--main-navy) 0%, #243447 100%) !important;
    padding: 36px 28px !important;
    margin: 36px 0 !important;
    color: var(--white) !important;
    text-align: center !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    position: relative;
    overflow: hidden;
}
div[data-structure*="reservation"]::before,
div[data-structure*="予約"]::before,
div[data-structure*="contact"]::before,
div[data-structure*="お問い合わせ"]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}
div[data-structure*="reservation"] .c-heading h2,
div[data-structure*="予約"] .c-heading h2,
div[data-structure*="contact"] .c-heading h2,
div[data-structure*="お問い合わせ"] .c-heading h2 {
    color: var(--white) !important;
    border-bottom-color: rgba(255,255,255,0.15) !important;
    font-size: var(--font-xl) !important;
}
div[data-structure*="reservation"] .c-heading h2::after,
div[data-structure*="予約"] .c-heading h2::after,
div[data-structure*="contact"] .c-heading h2::after,
div[data-structure*="お問い合わせ"] .c-heading h2::after {
    background-color: var(--accent-gold) !important;
}
div[data-structure*="reservation"] .c-btn a,
div[data-structure*="予約"] .c-btn a,
div[data-structure*="contact"] .c-btn a,
div[data-structure*="お問い合わせ"] .c-btn a {
    font-size: var(--font-xl) !important;
    padding: 16px 40px !important;
    min-width: 240px;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35) !important;
}
div[data-structure*="reservation"] .c-btn a:hover,
div[data-structure*="予約"] .c-btn a:hover,
div[data-structure*="contact"] .c-btn a:hover,
div[data-structure*="お問い合わせ"] .c-btn a:hover {
    box-shadow: 0 6px 28px rgba(184, 134, 11, 0.25) !important;
}
div[data-structure*="reservation"] p,
div[data-structure*="予約"] p,
div[data-structure*="contact"] p,
div[data-structure*="お問い合わせ"] p {
    color: rgba(255,255,255,0.9) !important;
    font-size: var(--font-base) !important;
}

/* ========================================
   11. アクセス情報（シンプルに統一）
   ======================================== */
div[data-structure*="access"],
div[data-structure*="map"],
div[data-structure*="アクセス"] {
    background-color: var(--white) !important;
    border: 1px solid var(--border-light) !important;
    padding: 24px !important;
    margin: 24px 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}
div[data-structure*="access"] p,
div[data-structure*="map"] p,
div[data-structure*="アクセス"] p {
    font-size: var(--font-base) !important;
}

/* ========================================
   12. すべての斜め・変形を強制解除
   ======================================== */
[class*="skew"],
[style*="transform: skew"],
[style*="clip-path: polygon"] {
    transform: none !important;
    clip-path: none !important;
}

/* ========================================
   13. 画像・メディアの統一スタイル
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ========================================
   14. フォーム要素の統一
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    font-size: var(--font-base) !important;
    padding: 12px 14px !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1) !important;
}

/* ========================================
   15. ★スマホ最適化（統一感を徹底）★
   ======================================== */
@media only screen and (max-width: 599px) {
    /* ベースフォントサイズ */
    html {
        font-size: 15px;
    }
    body {
        font-size: 15px;
        line-height: 1.8;
    }

    /* 見出し：スマホ用に最適化 */
    .c-heading h2 {
        font-size: 22px !important;
        padding-bottom: 12px;
        margin-bottom: 20px;
        letter-spacing: 0.06em;
    }
    .c-heading h2::after {
        width: 48px;
        height: 2px;
    }
    .c-heading h3,
    [data-structure*="heading"] h3 {
        font-size: 18px !important;
        padding-left: 14px;
        margin: 24px 0 14px;
        border-left-width: 3px;
    }
    .c-heading h4,
    [data-structure*="heading"] h4 {
        font-size: 15px !important;
        margin: 20px 0 10px;
    }

    /* 段落・本文：スマホで読みやすく */
    p,
    li,
    td,
    th,
    [class*="text"],
    [class*="description"] {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    small,
    [class*="small"] {
        font-size: 13px !important;
    }

    /* ボタン：スマホでは全幅に */
    .c-btn a,
    .c-btn input,
    .c-btn .btn-customform-submit,
    .c-btn button {
        font-size: 17px !important;
        padding: 16px 20px !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        min-width: unset !important;
        border-radius: var(--radius-md) !important;
        letter-spacing: 0.08em !important;
    }
    /* 予約エリアのボタンは特に大きく */
    div[data-structure*="reservation"] .c-btn a,
    div[data-structure*="予約"] .c-btn a,
    div[data-structure*="contact"] .c-btn a,
    div[data-structure*="お問い合わせ"] .c-btn a {
        font-size: 19px !important;
        padding: 18px 20px !important;
        width: 100% !important;
        display: block !important;
        min-width: unset !important;
    }

    /* 予約エリアの余白調整 */
    div[data-structure*="reservation"],
    div[data-structure*="予約"],
    div[data-structure*="contact"],
    div[data-structure*="お問い合わせ"] {
        padding: 28px 20px !important;
        margin: 28px 0 !important;
        border-radius: var(--radius-md) !important;
    }
    div[data-structure*="reservation"] .c-heading h2,
    div[data-structure*="予約"] .c-heading h2,
    div[data-structure*="contact"] .c-heading h2,
    div[data-structure*="お問い合わせ"] .c-heading h2 {
        font-size: 22px !important;
    }

    /* 料金表・比較表：横スクロール対応 */
    div[data-structure*="price"] table,
    div[data-structure*="料金"] table,
    table[class*="比較"],
    div[data-structure*="比較"] table {
        font-size: 14px !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm) !important;
    }
    div[data-structure*="price"] th,
    div[data-structure*="price"] td,
    div[data-structure*="料金"] th,
    div[data-structure*="料金"] td,
    table[class*="比較"] th,
    table[class*="比較"] td,
    div[data-structure*="比較"] th,
    div[data-structure*="比較"] td {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    /* 口コミ：スマホ用に調整 */
    div[data-structure*="voice"],
    div[data-structure*="口コミ"],
    div[data-structure*="お客様の声"] {
        padding: 20px !important;
        margin: 20px 0 !important;
        border-left-width: 3px;
        border-radius: var(--radius-sm) !important;
    }
    div[data-structure*="voice"] p,
    div[data-structure*="口コミ"] p,
    div[data-structure*="お客様の声"] p {
        font-size: 15px !important;
    }
    div[data-structure*="voice"] .p-card-voice-bordered__img img,
    div[data-structure*="口コミ"] .p-card-voice-bordered__img img {
        max-width: 60px !important;
    }

    /* アクセス：スマホ用に調整 */
    div[data-structure*="access"],
    div[data-structure*="map"],
    div[data-structure*="アクセス"] {
        padding: 20px !important;
        margin: 20px 0 !important;
        border-radius: var(--radius-sm) !important;
    }

    /* 全体の余白を詰める */
    [class*="u-mb"] {
        margin-bottom: 16px !important;
    }
    [class*="u-mt"] {
        margin-top: 16px !important;
    }
    [class*="u-p"] {
        padding: 16px !important;
    }

    /* フォーム */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 14px 12px !important;
        font-size: 16px !important; /* iOSズーム防止 */
    }
}

/* ========================================
   16. タブレット（中画面）向け調整
   ======================================== */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
    .c-btn a,
    .c-btn input,
    .c-btn .btn-customform-submit,
    .c-btn button {
        font-size: 19px !important;
        padding: 14px 36px !important;
        min-width: 180px;
    }
    .c-heading h2 {
        font-size: 28px !important;
    }
}
/* ========================================
   15. メニュー（ナビゲーション）の文字色を白に
   ======================================== */
/* ヘッダーのナビゲーションリンク */
.p-header-nav a,
.p-header-nav-floating a,
.p-m_navigationMenu a,
.p-header-nav-floating-btn a,
[class*="header"] [class*="nav"] a,
[class*="navigation"] a,
[class*="menu"] a {
    color: #ffffff !important;
}

/* ハンバーガーメニュー（スマホ）のリンクも白に */
.p-m_navigationMenu a,
.p-m_navigationMenu li a,
[class*="sp-menu"] a,
[class*="drawer"] a {
    color: #ffffff !important;
}

/* ホバー時はゴールドに（オプション・任意） */
.p-header-nav a:hover,
.p-m_navigationMenu a:hover,
[class*="navigation"] a:hover {
    color: var(--accent-gold) !important;
}