/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 05 2026 | 05:29:03 */
/* ==================================================
   お問い合わせ・診療相談ページCSS
   対象: /contact/ page-id-37
   対象: /inquiries_consultations/ page-id-4565
================================================== */

/* 001. お問い合わせ関連ページ：ページスコープ */
body.page-id-37,
body.page-id-4565 {
    --contact-navy: #06344a;
    --contact-navy-hover: #082f42;
    --contact-ink: #26343d;
    --contact-muted: #68747c;
    --contact-gold: #9a7b45;
    --contact-gold-soft: #d7c8a8;
    --contact-border: #e6dfd2;
    --contact-paper: #fffdfa;
    --contact-soft: #fbfaf7;
    --contact-alert-bg: #fff8f5;
    --contact-alert-border: #ead9d2;
    --contact-red: #b83242;
}

/* 002. お問い合わせ関連ページ：背景 */
body.page-id-37 #content,
body.page-id-37 .site-content,
body.page-id-37 .content-wrapper,
body.page-id-4565 #content,
body.page-id-4565 .site-content,
body.page-id-4565 .content-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, var(--contact-soft) 100%) !important;
}

/* 003. お問い合わせ関連ページ：本文幅 */
body.page-id-37 .entry-content,
body.page-id-4565 .entry-content .consultation-page {
    max-width: 920px;
    margin: 0 auto;
    padding-bottom: 56px;
}

/* 004. お問い合わせ関連ページ：大見出し */
body.page-id-37 .entry-content > h2,
body.page-id-4565 .consultation-page > h2 {
    position: relative;
    margin: 0 0 24px;
    padding: 4px 0 18px 24px;
    border-bottom: 1px solid var(--contact-border);
    color: var(--contact-navy);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

body.page-id-37 .entry-content > h2::before,
body.page-id-4565 .consultation-page > h2::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 18px;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #b79a60 0%, var(--contact-gold-soft) 100%);
}

/* 005. お問い合わせ関連ページ：導入ボックス */
body.page-id-37 .entry-content > .wp-block-columns.has-background,
body.page-id-4565 .consultation-page .wp-block-columns.has-background {
    margin: 22px 0 32px;
    padding: 34px 42px;
    background: var(--contact-paper) !important;
    border: 1px solid var(--contact-border);
    border-left: 1px solid var(--contact-border);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(6, 52, 74, 0.06);
    box-sizing: border-box;
    align-items: center;
    gap: 36px;
}

/* 006. お問い合わせ関連ページ：導入文章カラム */
body.page-id-37 .entry-content > .wp-block-columns.has-background > .wp-block-column[style*="72%"],
body.page-id-4565 .consultation-page .wp-block-columns.has-background > .wp-block-column[style*="72%"] {
    padding-left: 18px;
}

/* 007. お問い合わせ関連ページ：導入本文 */
body.page-id-37 .entry-content > .wp-block-columns.has-background p,
body.page-id-4565 .consultation-page .wp-block-columns.has-background p {
    margin: 0 0 22px;
    color: var(--contact-navy);
    font-size: 18px;
    line-height: 1.9;
    font-weight: 700;
    letter-spacing: 0;
}

body.page-id-37 .entry-content > .wp-block-columns.has-background p:last-child,
body.page-id-4565 .consultation-page .wp-block-columns.has-background p:last-child {
    margin-bottom: 0;
    color: #7a6b52;
    font-size: 16.5px;
    font-weight: 600;
}

/* 008. お問い合わせ関連ページ：導入リンク */
body.page-id-37 .entry-content > .wp-block-columns.has-background a,
body.page-id-4565 .consultation-page .wp-block-columns.has-background a {
    color: #8a6f3d;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(154, 123, 69, 0.35);
    text-underline-offset: 4px;
}

/* 009. お問い合わせ関連ページ：導入画像 */
body.page-id-37 .entry-content > .wp-block-columns.has-background .wp-block-image,
body.page-id-4565 .consultation-page .wp-block-columns.has-background .wp-block-image {
    margin: 0;
    text-align: center;
}

body.page-id-37 .entry-content > .wp-block-columns.has-background img,
body.page-id-4565 .consultation-page .wp-block-columns.has-background img {
    width: 180px;
    max-width: 180px;
    height: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 010. お問い合わせページ：電話案内 */
body.page-id-37 .contact-page-guide {
    margin: 0 0 28px;
}

body.page-id-37 .contact-alert {
    margin: 24px 0 20px;
    padding: 14px 18px;
    background: var(--contact-alert-bg);
    border: 1px solid var(--contact-alert-border);
    border-radius: 6px;
    box-sizing: border-box;
}

body.page-id-37 .contact-alert p {
    margin: 0 0 10px;
    color: var(--contact-ink);
    font-size: 15.5px;
    line-height: 1.8;
    font-weight: 700;
}

body.page-id-37 .contact-alert p:last-child {
    margin-bottom: 0;
}

/* 011. お問い合わせページ：電話番号ボックス */
body.page-id-37 .contact-phone-box {
    margin: 22px 0;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(6, 52, 74, 0.07);
    box-sizing: border-box;
}

body.page-id-37 .contact-phone-label {
    margin: 0 0 8px;
    color: var(--contact-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

body.page-id-37 .contact-phone-box a {
    display: inline-block;
    padding: 11px 30px;
    color: #ffffff;
    background: var(--contact-navy);
    border-radius: 999px;
    font-size: clamp(26px, 3.4vw, 32px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(6, 52, 74, 0.16);
}

body.page-id-37 .contact-phone-box a:hover {
    background: var(--contact-navy-hover);
}

/* 012. お問い合わせページ：補助リンク */
body.page-id-37 .contact-alt-form {
    margin: 24px 0 0;
    text-align: center;
    color: var(--contact-ink);
    font-size: 14px;
    line-height: 1.8;
}

body.page-id-37 .contact-alt-form a {
    color: #8a6f3d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 013. お問い合わせフォーム：カード */
body.page-id-37 .wpcf7 {
    margin-top: 24px;
}

body.page-id-37 .wpcf7 form {
    margin: 0;
}

body.page-id-37 .contact-form-modern {
    margin: 26px 0 56px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(6, 52, 74, 0.08);
}

/* 014. お問い合わせフォーム：セクション */
body.page-id-37 .contact-form-modern .cf7-section {
    margin: 0 0 42px;
    padding: 0 0 34px;
    border-bottom: 1px solid var(--contact-border);
}

body.page-id-37 .contact-form-modern .cf7-section:last-of-type {
    margin-bottom: 28px;
}

body.page-id-37 .contact-form-modern .cf7-section-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0 0 24px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--contact-gold-soft);
}

body.page-id-37 .contact-form-modern .cf7-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: #ffffff;
    background: var(--contact-navy);
    border-radius: 50%;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

body.page-id-37 .contact-form-modern .cf7-section-main {
    color: var(--contact-navy);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.45;
}

body.page-id-37 .contact-form-modern .cf7-section-note {
    margin: 6px 0 0;
    color: var(--contact-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* 015. お問い合わせフォーム：入力グリッド */
body.page-id-37 .contact-form-modern .cf7-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

body.page-id-37 .contact-form-modern .cf7-field {
    min-width: 0;
}

body.page-id-37 .contact-form-modern .cf7-field-short {
    max-width: 280px;
}

body.page-id-37 .contact-form-modern .cf7-section:nth-of-type(3) .cf7-field {
    grid-column: 1 / -1;
}

/* 016. お問い合わせフォーム：ラベル */
body.page-id-37 .contact-form-modern .cf7-label {
    margin: 0 0 7px;
    color: var(--contact-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
}

body.page-id-37 .contact-form-modern .cf7-required {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    color: #ffffff;
    background: var(--contact-red);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: 1px;
}

/* 017. お問い合わせフォーム：入力欄 */
body.page-id-37 .contact-form-modern input[type="text"],
body.page-id-37 .contact-form-modern input[type="email"],
body.page-id-37 .contact-form-modern input[type="tel"],
body.page-id-37 .contact-form-modern input[type="number"],
body.page-id-37 .contact-form-modern select,
body.page-id-37 .contact-form-modern textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    color: var(--contact-ink);
    background: #ffffff;
    border: 1px solid #d6d0c4;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1.6;
}

body.page-id-37 .contact-form-modern input[type="text"]:focus,
body.page-id-37 .contact-form-modern input[type="email"]:focus,
body.page-id-37 .contact-form-modern input[type="tel"]:focus,
body.page-id-37 .contact-form-modern input[type="number"]:focus,
body.page-id-37 .contact-form-modern select:focus,
body.page-id-37 .contact-form-modern textarea:focus {
    outline: none;
    border-color: var(--contact-navy);
    box-shadow: 0 0 0 3px rgba(6, 52, 74, 0.12);
}

body.page-id-37 .contact-form-modern .cf7-note {
    margin: 6px 0 0;
    color: #7a6b52;
    font-size: 13.5px;
    line-height: 1.65;
}

/* 018. お問い合わせフォーム：選択項目 */
body.page-id-37 .contact-form-modern .wpcf7-list-item {
    margin: 0 18px 6px 0;
}

body.page-id-37 .contact-form-modern input[type="radio"],
body.page-id-37 .contact-form-modern input[type="checkbox"] {
    margin-right: 6px;
    transform: translateY(1px);
}

/* 019. お問い合わせフォーム：生年月日 */
body.page-id-37 .contact-form-modern .cf7-inline-date {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.page-id-37 .contact-form-modern .cf7-inline-date span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.page-id-37 .contact-form-modern .cf7-inline-date input {
    width: 90px;
}

body.page-id-37 .contact-form-modern textarea {
    min-height: 240px;
}

/* 020. お問い合わせフォーム：送信 */
body.page-id-37 .contact-form-modern .cf7-submit-area {
    text-align: center;
}

body.page-id-37 .contact-form-modern input[type="submit"] {
    display: inline-block;
    min-width: 240px;
    padding: 14px 34px;
    color: #ffffff;
    background: var(--contact-navy);
    border: 1px solid var(--contact-navy);
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6, 52, 74, 0.18);
}

body.page-id-37 .contact-form-modern input[type="submit"]:hover {
    background: var(--contact-navy-hover);
    border-color: var(--contact-navy-hover);
}

/* 021. お問い合わせフォーム：エラー */
body.page-id-37 .contact-form-modern .wpcf7-not-valid {
    border-color: var(--contact-red) !important;
    background: #fffafa;
}

body.page-id-37 .contact-form-modern .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: var(--contact-red);
    font-size: 13.5px;
    font-weight: 600;
}

body.page-id-37 .contact-form-modern .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 8px;
    font-weight: 700;
}

/* 022. 診療相談ページ：本文 */
body.page-id-4565 .consultation-page > p,
body.page-id-4565 .consultation-page .wp-block-paragraph {
    color: var(--contact-ink);
}

body.page-id-4565 .consultation-page strong {
    color: var(--contact-navy);
    font-weight: 800;
}

body.page-id-4565 .consultation-page a {
    color: #8a6f3d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-id-4565 .consultation-page p:has(a[href*="/contact"]) {
    margin: 30px 0;
    padding: 18px 22px;
    background: var(--contact-alert-bg);
    border: 1px solid var(--contact-alert-border);
    border-radius: 8px;
    color: var(--contact-ink);
}

/* 023. 診療相談ページ：ボタン */
body.page-id-4565 .consultation-page .wp-block-buttons {
    margin: 32px 0;
}

body.page-id-4565 .consultation-page .wp-block-button {
    width: auto !important;
    text-align: center;
}

body.page-id-4565 .consultation-page .wp-block-button__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 320px;
    min-height: 56px;
    padding: 15px 42px !important;
    color: #ffffff !important;
    background: var(--contact-navy) !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(6, 52, 74, 0.18);
}

body.page-id-4565 .consultation-page .wp-block-button__link strong {
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
}

body.page-id-4565 .consultation-page .wp-block-button__link::before,
body.page-id-4565 .consultation-page .wp-block-button__link::after {
    content: none !important;
    display: none !important;
}

body.page-id-4565 .consultation-page .wp-block-button__link:hover {
    color: #ffffff !important;
    background: var(--contact-navy-hover) !important;
}

/* 024. 診療相談ページ：医師一覧 */
body.page-id-4565 .consultation-page .wp-block-table {
    margin: 34px 0 56px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(6, 52, 74, 0.08);
    box-sizing: border-box;
}

body.page-id-4565 .consultation-page .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

body.page-id-4565 .consultation-page .wp-block-table td {
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--contact-border);
    color: var(--contact-ink);
    font-size: 15.5px;
    line-height: 1.7;
    vertical-align: middle;
}

body.page-id-4565 .consultation-page .wp-block-table td:first-child strong {
    color: var(--contact-navy);
    font-size: 16px;
    font-weight: 800;
}

body.page-id-4565 .consultation-page .wp-block-table tr:last-child td {
    border-bottom: none;
}

body.page-id-4565 .consultation-page .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--contact-soft);
}

body.page-id-4565 .consultation-page .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: #ffffff;
}

/* 025. お問い合わせ関連ページ：スマホ */
@media (max-width: 768px) {
    body.page-id-37 .entry-content,
    body.page-id-4565 .entry-content .consultation-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.page-id-37 .entry-content > h2,
    body.page-id-4565 .consultation-page > h2 {
        padding-left: 18px;
        font-size: 25px;
    }

    body.page-id-37 .entry-content > .wp-block-columns.has-background,
    body.page-id-4565 .consultation-page .wp-block-columns.has-background {
        padding: 22px 20px;
        gap: 20px;
        border-left-width: 1px;
    }

    body.page-id-37 .entry-content > .wp-block-columns.has-background > .wp-block-column[style*="72%"],
    body.page-id-4565 .consultation-page .wp-block-columns.has-background > .wp-block-column[style*="72%"] {
        padding-left: 0;
    }

    body.page-id-37 .entry-content > .wp-block-columns.has-background p,
    body.page-id-4565 .consultation-page .wp-block-columns.has-background p {
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 1.85;
    }

    body.page-id-37 .entry-content > .wp-block-columns.has-background p:last-child,
    body.page-id-4565 .consultation-page .wp-block-columns.has-background p:last-child {
        font-size: 15px;
    }

    body.page-id-37 .entry-content > .wp-block-columns.has-background img,
    body.page-id-4565 .consultation-page .wp-block-columns.has-background img {
        width: 140px;
        max-width: 140px;
    }

    body.page-id-37 .contact-phone-box {
        padding: 18px;
    }

    body.page-id-37 .contact-phone-box a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    body.page-id-37 .contact-form-modern {
        padding: 20px;
        border-radius: 10px;
    }

    body.page-id-37 .contact-form-modern .cf7-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.page-id-37 .contact-form-modern .cf7-section:nth-of-type(3) .cf7-field {
        grid-column: auto;
    }

    body.page-id-37 .contact-form-modern .cf7-field-short {
        max-width: none;
    }

    body.page-id-37 .contact-form-modern .cf7-section-title {
        gap: 12px;
    }

    body.page-id-37 .contact-form-modern .cf7-section-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    body.page-id-37 .contact-form-modern .cf7-inline-date {
        flex-direction: column;
        align-items: flex-start;
    }

    body.page-id-37 .contact-form-modern .cf7-inline-date input,
    body.page-id-37 .contact-form-modern input[type="submit"] {
        width: 100%;
    }

    body.page-id-4565 .consultation-page .wp-block-button__link {
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-id-4565 .consultation-page .wp-block-table {
        padding: 16px;
        overflow-x: auto;
    }

    body.page-id-4565 .consultation-page .wp-block-table td {
        padding: 12px 10px;
        font-size: 14.5px;
    }
}