/*
Theme Name: ひだまりこどもクリニック
Author: Gemini
Description: 小児科向けのクリーンな独自テーマ（高さ450px・センター配置版）
Version: 1.9
*/

/* --- 基本設定 --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #444;
    margin: 0;
    line-height: 1.6;
    background-color: #fdfdfd;
}

h1, h2, h3 { color: #d88000; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー・ナビゲーション --- */
header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* ロゴ左・メニュー右 */
    align-items: center;
}

.header-logo .logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #d88000;
    display: block;
}

.header-logo .logo-sub {
    font-size: 0.75rem;
    color: #888;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ナビゲーションを横並びに固定 */
.header-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px;
}

.header-nav ul li a {
    color: #444;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.header-nav ul li a:hover {
    color: #d88000;
}

/* 電話とボタンのグループ */
.header-info-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-info-group .tel {
    color: #d88000;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- メインビジュアル（高さ450px & センター配置） --- */
.main-visual {
    width: 100%;
    height: 450px; /* 450pxに設定 */
    overflow: hidden;
    position: relative;
    background-color: #e0f4ff;
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* ご要望通りセンター配置 */
    display: block;
}

/* 吹き出しの配置 */
.main-visual-content {
    position: absolute;
    top: 40px;
    left: 10%;
    z-index: 10;
}

.main-visual-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 35px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(216, 128, 0, 0.15);
    border: 3px solid #ffedcc;
    position: relative;
}

.main-visual-text::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 40px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid rgba(255, 255, 255, 0.95);
}

.main-visual-text h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #d88000;
    line-height: 1.4;
}

.main-visual-text p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}



/* --- 下部レイアウト（診療時間・アクセス） --- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.flow-item {
    background: #fff8ee;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #ffedcc;
}

.section-title { text-align: center; font-size: 1.8rem; margin: 60px 0 30px; }

.bottom-info-flex {
    display: flex !important;
    gap: 40px;
    margin: 60px auto;
}

.bottom-schedule, .bottom-access { flex: 1; min-width: 0; }

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #ffedcc;
    border-radius: 15px;
    overflow: hidden;
}
.schedule-table th { background: #ffedcc; padding: 12px 5px; font-size: 0.85rem; }
.schedule-table td { padding: 12px 5px; text-align: center; border-top: 1px solid #ffedcc; }

.btn-reserve {
    background: #ffb347;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
    .header-flex { flex-direction: column; gap: 10px; }
    .header-right { flex-direction: column; gap: 15px; }
    .main-visual { height: 350px; }
}

@media (max-width: 768px) {
    .flow-grid { grid-template-columns: 1fr; }
    .bottom-info-flex { flex-direction: column !important; }
}
/* --- フッター全体の背景と文字色 --- */
footer {
    background-color: #f9f8f1; /* 薄いベージュ系の背景 */
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
    color: #444;
}

/* レイアウトを左右に分ける */
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* --- 左側：電話・住所セクション --- */
.footer-left {
    flex: 1;
}

.footer-tel-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* アイコン（スマホ風）の再現 */
.footer-tel-icon {
    width: 60px;
    height: 60px;
    background-color: #2bb9ba; /* ターコイズグリーン */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* アイコン内の白い四角 */
.footer-tel-icon::after {
    content: '';
    width: 25px;
    height: 35px;
    border: 3px solid #fff;
    border-radius: 5px;
}

.footer-tel-content {
    display: flex;
    flex-direction: column;
}

.footer-tel-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
}

.footer-tel-number {
    font-size: 2rem; /* 電話番号を大きく */
    font-weight: bold;
    color: #2bb9ba;
    line-height: 1;
}

.footer-address {
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Google Map ボタン風 */
.btn-map {
    background-color: #8cc63f; /* 黄緑 */
    color: #fff !important;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- 右側：診療補足セクション --- */
.footer-right {
    flex: 1;
    border-left: 1px solid #ddd;
    padding-left: 40px;
}

.footer-notes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-notes li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* --- コピーライト --- */
.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
    border-top: none;
    text-align: left;
}

/* --- レスポンシブ --- */
@media (max-width: 800px) {
    .footer-flex {
        flex-direction: column;
    }
    .footer-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 30px;
    }
    .footer-tel-number {
        font-size: 1.8rem;
    }
}

/* --- ヘッダー・ナビゲーション最新調整版 --- */
header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* 要素間の最低限の隙間 */
}

/* ロゴ部分：改行を防ぎ、色をターコイズに */
.header-logo {
    flex-shrink: 0; /* ロゴが潰れないように固定 */
}

.header-logo .logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #2bb9ba; /* ターコイズグリーン */
    white-space: nowrap; /* 改行を強制的に防ぐ */
    display: block;
    line-height: 1.2;
}

.header-logo .logo-sub {
    font-size: 0.7rem;
    color: #888;
    display: block;
}

/* 右側グループ：メニューとコンタクトを横並びに */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1; /* 空いたスペースを埋める */
    justify-content: flex-end;
}

/* ナビゲーション：文字を少し小さくして収める */
.header-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px;
}

.header-nav ul li a {
    color: #555;
    font-size: 0.85rem; /* 1行に収めるため少し小さく */
    font-weight: bold;
    white-space: nowrap;
}

/* 電話とボタンのグループ */
.header-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-info-group .tel {
    color: #2bb9ba;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* アイコンが重なっている場合は、background-imageなどを確認して削除するか以下で微調整 */
.header-info-group .tel::before {
    content: '☎';
    margin-right: 4px;
}

/* WEB予約ボタン：丸みを帯びたデザイン */
.btn-reserve {
    background: #ffb347;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px; /* 綺麗なカプセル型に */
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(255, 179, 71, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 90px;
}

/* レスポンシブ：入り切らなくなったら2段にする */
@media (max-width: 1150px) {
    .header-nav ul {
        gap: 10px;
    }
    .header-nav ul li a {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {
    .header-flex {
        flex-direction: column;
        padding: 10px 0;
    }
    .header-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
}

/* --- 当院からのお願い（カスタム投稿用）のデザイン --- */
.notice-list {
    list-style: none;
    padding: 0;
}

.notice-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

/* フッターとお揃いの■マーク */
.notice-item::before {
    content: '■';
    position: absolute;
    left: 0;
    color: #e6c88e; /* ゴールドベージュ */
    font-size: 0.8rem;
    top: 2px;
}

.notice-item a {
    color: #444;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.notice-item a:hover {
    color: #2bb9ba; /* ターコイズ */
}

/* --- 当院からのお願い（カスタム投稿）専用デザイン --- */
.important-notices-section {
    padding-top: 40px;
}

.notice-card-list {
    background: #fff8f0; /* ほんのり暖かいオレンジ背景 */
    padding: 30px;
    border-radius: 20px;
    border: 2px dashed #e6c88e;
}

.notice-card-item {
    padding: 12px 0;
    border-bottom: 1px solid #ffedcc;
}

.notice-card-item:last-child { border-bottom: none; }

.notice-card-item a {
    display: flex;
    align-items: center;
    color: #444;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.notice-card-item a:hover { color: #2bb9ba; }

.notice-marker {
    color: #e6c88e;
    margin-right: 15px;
    font-size: 0.8rem;
}

/* --- 通常のお知らせデザイン --- */
.news-list {
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    width: 120px;
    flex-shrink: 0;
}

.news-link a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.news-link a:hover {
    color: #2bb9ba;
    text-decoration: underline;
}

/* 区切り線 */
.section-divider {
    border: none;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* セクションタイトル共通調整 */
.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: #2bb9ba; /* ターコイズグリーンで統一 */
    margin-bottom: 30px;
    position: relative;
}

/* --- 詳細ページ共通レイアウト --- */
.page-layout {
    padding: 60px 20px;
    max-width: 800px; /* 読みやすい幅に制限 */
}

.post-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #2bb9ba;
    padding-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.post-label {
    background: #e6c88e;
    color: #fff;
    padding: 2px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
}

.post-date {
    font-size: 0.9rem;
    color: #888;
}

.post-title {
    font-size: 2rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* 記事本文のデザイン */
.post-body {
    line-height: 2;
    font-size: 1.1rem;
    color: #444;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 1.5rem;
    color: #2bb9ba;
    border-left: 5px solid #2bb9ba;
    padding-left: 15px;
    margin: 40px 0 20px;
}

/* 戻るボタン */
.post-footer {
    margin-top: 60px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 40px;
    background: #f0f0f0;
    color: #666;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-back:hover {
    background: #2bb9ba;
    color: #fff !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .post-title { font-size: 1.5rem; }
    .page-layout { padding: 40px 20px; }
}

/* --- アーカイブ（一覧）ページ専用 --- */
.page-header {
    background-color: #f9f8f1; /* フッターとお揃いの背景 */
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    color: #2bb9ba; /* ターコイズ */
    font-size: 1.8rem;
    margin: 0;
}

.archive-list {
    max-width: 900px;
    margin: 0 auto;
}

.archive-item {
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.archive-item:hover {
    background-color: #fffcf5;
}

.archive-link {
    display: block;
    padding: 20px 10px;
    text-decoration: none;
    color: inherit;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.archive-date {
    font-size: 0.9rem;
    color: #888;
    font-family: 'Arial', sans-serif;
}

.archive-category {
    font-size: 0.75rem;
    background: #ffedcc;
    color: #d88000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.archive-item-title {
    font-size: 1.1rem;
    margin: 0;
    color: #444;
    line-height: 1.5;
}

/* ページネーションのデザイン */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #eee;
    border-radius: 5px;
    color: #2bb9ba;
    text-decoration: none;
}

.pagination .current {
    background: #2bb9ba;
    color: #fff;
    border-color: #2bb9ba;
}

/* お知らせ一覧ボタンの調整 */
.news-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-block;
    padding: 10px 30px;
    background-color: #fff;
    border: 2px solid #2bb9ba;
    color: #2bb9ba !important;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-more:hover {
    background-color: #2bb9ba;
    color: #fff !important;
}

/* --- 404エラーページのデザイン --- */
.error-404 {
    padding: 100px 20px;
    text-align: center;
}

.error-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #f9f8f1;
    color: #e6c88e;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

.error-content .page-title {
    color: #2bb9ba;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.error-message {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* 戻るボタンの強調 */
.btn-back-home {
    display: inline-block;
    padding: 15px 50px;
    background-color: #2bb9ba;
    color: #fff !important;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(43, 185, 186, 0.3);
    transition: transform 0.2s;
}

.btn-back-home:hover {
    transform: translateY(-3px);
    background-color: #24a0a1;
}

/* 電話連絡の案内ボックス */
.error-contact-box {
    margin-top: 60px;
    padding: 30px;
    background-color: #fdfdfd;
    border: 2px dashed #eee;
    border-radius: 20px;
    display: inline-block;
}

.error-contact-box p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.error-contact-box .tel {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2bb9ba;
}

@media (max-width: 768px) {
    .error-404 { padding: 60px 20px; }
    .error-contact-box .tel { font-size: 1.5rem; }
}

/* --- 受診の流れ（3ステップ） --- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0 60px;
}

.flow-item {
    background: #fff;
    padding: 40px 25px 30px;
    text-align: center;
    border-radius: 20px;
    border: 2px solid #f9f8f1;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.flow-item:hover {
    transform: translateY(-5px);
    border-color: #2bb9ba;
}

/* ステップ番号 */
.flow-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2bb9ba; /* ターコイズ */
    color: #fff;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(43, 185, 186, 0.3);
}

.flow-item h3 {
    color: #2bb9ba;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.flow-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- お問い合わせフォームのデザイン --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.form-group .required {
    background: #ff7e7e;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 入力フィールド */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fdfdfd;
}

.contact-form textarea {
    height: 150px;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.contact-form input[type="submit"] {
    background: #2bb9ba; /* ターコイズ */
    color: #fff;
    font-weight: bold;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(43, 185, 186, 0.3);
    transition: 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #24a0a1;
    transform: translateY(-2px);
}

/* エラーメッセージ等の調整 */
.wpcf7-not-valid-tip { color: #ff7e7e; font-size: 0.9rem; margin-top: 5px; }
.wpcf7-response-output { border-radius: 10px; margin-top: 20px !important; }

/* 固定ページタイトルの背景デザイン（archive.phpと共通） */
.page-header {
    background-color: #f9f8f1;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    color: #2bb9ba;
    font-size: 1.8rem;
    margin: 0;
}

/* --- FAQのデザイン --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.4rem;
    color: #2bb9ba;
    border-bottom: 2px solid #2bb9ba;
    padding-bottom: 10px;
    margin-bottom: 25px;
    position: relative;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

/* 質問（Q） */
.faq-question {
    padding: 18px 20px;
    font-weight: bold;
    color: #444;
    background: #f9f8f1; /* 優しいベージュ */
    position: relative;
    padding-left: 50px;
    display: block;
    cursor: default;
}

.faq-question::before {
    content: "Q";
    position: absolute;
    left: 20px;
    color: #e6c88e;
    font-size: 1.4rem;
    font-family: 'Arial', sans-serif;
    top: 50%;
    transform: translateY(-50%);
}

/* 回答（A） */
.faq-answer {
    padding: 20px;
    line-height: 1.8;
    color: #666;
    border-top: 1px solid #eee;
    position: relative;
    padding-left: 50px;
    margin: 0;
}

.faq-answer::before {
    content: "A";
    position: absolute;
    left: 20px;
    color: #2bb9ba;
    font-size: 1.4rem;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

@media (max-width: 768px) {
    .faq-question, .faq-answer {
        padding-left: 45px;
        font-size: 0.95rem;
    }
    .faq-question::before, .faq-answer::before {
        left: 15px;
    }
}

/* --- 乳児健診ページのデザイン --- */
.kensin-container {
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #2bb9ba;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #e6c88e;
}

.kensin-section {
    margin-bottom: 60px;
}

/* 健診カードのレイアウト */
.kensin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kensin-card {
    background: #fff;
    border: 2px solid #f9f8f1;
    padding: 25px;
    border-radius: 15px;
}

.kensin-card h3 {
    color: #e6c88e;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.kensin-card ul {
    list-style: none;
    padding: 0;
}

.kensin-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-weight: bold;
}

.note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* 持ち物リスト（チェックボックス風） */
.info-box {
    background-color: #f9f8f1;
    padding: 30px;
    border-radius: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check-list li::before {
    content: '✔';
    color: #2bb9ba;
    margin-right: 10px;
    font-weight: bold;
}

/* 予約エリア */
.kensin-time-info {
    text-align: center;
    background: #fff;
    border: 2px solid #2bb9ba;
    padding: 30px;
    border-radius: 20px;
}

.btn-area {
    margin-top: 25px;
}

.btn-reserve {
    display: inline-block;
    background: #2bb9ba;
    color: #fff !important;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-reserve:hover {
    background: #24a0a1;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .kensin-grid, .check-list {
        grid-template-columns: 1fr;
    }
}

/* --- 予防接種ページのデザイン --- */
.vaccine-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ワクチン名のグリッド表示 */
.vaccine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.vaccine-grid li {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.vaccine-grid li::before {
    content: "💉";
    margin-right: 8px;
    font-size: 0.8rem;
}

/* 注意事項エリア */
.caution-area {
    background: #fff5f5; /* ほんのり赤みのある警告色 */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #ffeded;
}

.caution-content p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #d63031;
}

/* 予約バナー */
.reserve-banner {
    margin-top: 60px;
    background: #f9f8f1;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
}

.reserve-banner p {
    font-weight: bold;
    margin-bottom: 20px;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .vaccine-grid {
        grid-template-columns: 1fr;
    }
}

/* イラスト版の微調整 */
.greeting-photo img {
    width: 100%;
    height: auto;
    border-radius: 30px; /* 少し角丸を強めて優しく */
    background-color: #fdfdfd;
    border: 5px solid #f9f8f1; /* 額縁のような縁取り */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* --- ごあいさつページのデザイン --- */
.greeting-main {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.greeting-photo {
    flex: 0 0 35%; /* 写真の幅を35%に固定 */
}

.greeting-photo img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.greeting-text {
    flex: 1;
}

.greeting-text p {
    line-height: 2;
    margin-bottom: 20px;
}

.doctor-signature {
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 30px !important;
}

.doctor-signature span {
    font-size: 1.5rem;
    margin-left: 10px;
}

/* プロフィール詳細 */
.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.profile-title {
    font-size: 1.2rem;
    color: #2bb9ba;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.profile-title::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: #e6c88e;
    margin-right: 10px;
    border-radius: 2px;
}

.profile-list {
    list-style: none;
    padding: 0;
}

.profile-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.profile-list li span {
    font-weight: bold;
    color: #888;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .greeting-main {
        flex-direction: column;
        gap: 30px;
    }
    .greeting-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .greeting-photo {
        width: 80%; /* スマホでは横幅いっぱいにせず少し小さめに */
        margin: 0 auto 20px;
    }
}

/* --- ハンバーガーボタン --- */
.hamburger-menu {
    display: none; /* PCでは隠す */
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 10000;
    cursor: pointer;
    background: #2bb9ba;
    border-radius: 5px;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    width: 25px;
    height: 2px;
    background: #fff;
    left: 7.5px;
    transition: 0.3s;
}

.hamburger-menu span:nth-child(1) { top: 12px; }
.hamburger-menu span:nth-child(2) { top: 19px; }
.hamburger-menu span:nth-child(3) { top: 26px; }

/* ボタンが押された時の「×」アニメーション */
.hamburger-menu.is-active span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
.hamburger-menu.is-active span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* --- スマホ用ナビゲーション本体 --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 最初は画面の外 */
    width: 70%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: 0.4s;
    padding-top: 80px;
}

.mobile-nav.is-active {
    right: 0; /* 画面内に出てくる */
}

.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav ul li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #444;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

/* オーバーレイ（背景を暗くする） */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.nav-overlay.is-active { display: block; }

/* スマホ時のみ表示 */
@media (max-width: 768px) {
    .hamburger-menu { display: block; }
    /* PC用ナビゲーションがある場合はここで display: none; にする */
}

.mobile-nav {
    /* ...既存のコード... */
    z-index: 10001 !important; /* ボタン(10000)よりさらに上に */
    visibility: visible;
}

/* mobile-nav.is-active の部分を書き換え */
.mobile-nav.is-active {
    right: 0 !important;
    display: block !important;
    visibility: visible !important;
    z-index: 100000 !important;
}

/* ついでにオーバーレイも強制表示 */
.nav-overlay.is-active {
    display: block !important;
    z-index: 99999 !important;
}

/* スマホ（画面幅768px以下）の時に適用 */
@media (max-width: 768px) {
    /* キャッチコピーとテキストを囲んでいるエリアごと非表示にする */
    .main-visual-text {
        display: none !important;
    }

    /* もし背景の黒ずみ（オーバーレイ）なども .main-visual-content についているなら */
    /* .main-visual-content { display: none; } でもOKです */
}

.contact-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
}

.confirm-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-back {
    background: #ccc !important;
}

/* 既存のフォームスタイルに以下を追加・調整 */

.confirm-notice {
    text-align: center;
    margin-bottom: 20px;
    color: #2bb9ba;
    font-weight: bold;
}

.confirm-box {
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 1.5rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-back {
    background: #999 !important;
}

.thanks-message {
    text-align: center;
    padding: 40px 0;
    line-height: 1.8;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
}

/* フォーム全体 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fdfcf7; /* 薄いクリーム色 */
    border-radius: 12px;
}

/* ボタン（CF7のデザインを再現） */
.wpcf7-submit {
    background: #2bb9ba !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 50px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 50px !important; /* 丸いボタン */
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 0 auto;
}

.wpcf7-submit:hover {
    background: #239a9b !important;
    transform: translateY(-2px);
}

/* セキュリティ・プライバシー注釈 */
.form-footer-notice {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.ssl-notice {
    color: #2bb9ba;
    font-weight: bold;
    margin-bottom: 10px;
}

/* reCAPTCHA風の見た目 */
.fake-recaptcha {
    margin-top: 15px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
}

.fake-recaptcha img {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.fake-recaptcha p {
    font-size: 10px;
    margin: 0;
    color: #555;
}

/* プライバシーポリシーのスタイル */
.privacy-container {
    padding: 60px 20px;
    background: #fff;
    line-height: 1.8;
    color: #333;
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-container h1.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2bb9ba; /* ロゴカラーに合わせる */
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 1.25rem;
    border-left: 5px solid #2bb9ba;
    padding-left: 15px;
    margin-bottom: 20px;
    color: #444;
}

.privacy-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.info-box {
    background: #fdfcf7;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 10px;
}

.back-to-top {
    text-align: center;
    margin-top: 60px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #999;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #777;
}

.privacy-notice a {
    color: #2bb9ba;
    text-decoration: underline;
    font-weight: bold;
}

.privacy-notice a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.flow-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #2bb9ba;
    margin-bottom: 10px;
}

.flow-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #666;
}

.flow-list {
    position: relative;
}

.flow-step {
    display: flex;
    margin-bottom: 25px;
    background: #fdfcf7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.step-num {
    background: #2bb9ba;
    color: #fff;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content {
    padding: 20px;
    flex: 1;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 強調ステップ（診察準備） */
.flow-step.highlight {
    border: 2px solid #2bb9ba;
}

/* 警告ステップ（電話対応） */
.flow-step.alert {
    border: 2px solid #e74c3c;
}
.flow-step.alert .step-num {
    background: #e74c3c;
}

/* お薬案内（情報） */
.flow-step.info {
    background: #f0f9ff;
}

.pre-visit-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rule-card.highlight {
    border: 2px solid #2bb9ba;
    background: #fdfcf7;
}

.rule-card h3 {
    color: #2bb9ba;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* ステップ図解 */
.step-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.s-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.s-label {
    display: block;
    font-size: 0.75rem;
    color: #2bb9ba;
    font-weight: bold;
}

.pink-text { color: #e91e63; font-weight: bold; }
.blue-text { color: #2196f3; font-weight: bold; }

.caution-text {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
}

/* リスト・説明文 */
.rule-card ul { padding-left: 20px; }
.rule-card li { margin-bottom: 10px; }
.sub-rule { margin-bottom: 15px; line-height: 1.6; }
.small-text { font-size: 0.8rem; color: #666; }

@media (max-width: 768px) {
    .step-flow { grid-template-columns: 1fr; }
}

/* スマホ（画面幅768px以下）の時、メインビジュアル内のテキストを非表示にする */
@media (max-width: 768px) {
    .main-visual-content {
        display: none;
    }
}

.breadcrumb {
    max-width: 1000px; /* メインコンテンツの幅に合わせる */
    margin: 15px auto;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">"; /* 矢印のデザイン */
    margin: 0 10px;
    font-size: 0.7rem;
    color: #ccc;
}

.breadcrumb a {
    color: #2bb9ba; /* ロゴカラー */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* --- スマホ時の表示制御（768px以下） --- */
@media (max-width: 768px) {
    /* 不要要素の非表示 */
    .header-nav, .header-info-group .tel, .main-visual-content {
        display: none !important;
    }

    /* ヘッダー全体の高さを固定 */
    header {
        padding: 0 !important;
        height: 64px; 
    }

    /* 右端の余白を消して、メニューを角に密着させる */
    .header-flex {
        height: 100% !important;
        padding: 0 0 0 12px !important; /* 右側パディングを0に */
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    /* ロゴの調整 */
    .header-logo a {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }
    .header-logo .logo-text {
        font-size: 1.0rem !important;
    }
    .header-logo .logo-sub {
        font-size: 0.6rem !important;
    }

    /* 右側エリア：予約ボタンとメニューを右端に寄せる */
    .header-right {
        height: 100%;
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-left: auto !important; /* これで右端へ移動 */
    }

    /* WEB予約ボタン：センター寄せ */
    .btn-reserve {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 12px !important;
        height: 36px;
        min-width: 85px;
        font-size: 0.75rem !important;
        border-radius: 18px;
        margin: 0 !important;
    }

/* --- スマホ時の表示制御（768px以下） --- */
@media (max-width: 768px) {
    /* 不要要素の非表示 */
    .header-nav, .header-info-group .tel, .main-visual-content {
        display: none !important;
    }

    /* ヘッダー全体の高さを固定 */
    header {
        padding: 0 !important;
        height: 64px; 
    }

    /* 右端の余白を消して、メニューを角に密着させる */
    .header-flex {
        height: 100% !important;
        padding: 0 0 0 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    /* ロゴの調整 */
    .header-logo a {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }
    .header-logo .logo-text {
        font-size: 1.0rem !important;
    }
    .header-logo .logo-sub {
        font-size: 0.6rem !important;
    }

    /* 右側エリア：予約ボタンとメニューを右端に寄せる */
    .header-right {
        height: 100%;
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-left: auto !important;
    }

    /* WEB予約ボタン：センター寄せ */
    .btn-reserve {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 12px !important;
        height: 36px;
        min-width: 85px;
        font-size: 0.75rem !important;
        border-radius: 18px;
        margin: 0 !important;
        -webkit-tap-highlight-color: transparent; /* タップ時の黒ずみ防止 */
    }

    /* メニューボタン：箱の設定（完全中央揃え） */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; 
        align-items: center !important;
        width: 64px !important;
        height: 64px !important;
        background-color: #f68b98 !important;
        cursor: pointer;
        flex-shrink: 0;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent; /* タップ時の黒ずみ防止 */
    }

    /* 3本線：中央配置 */
    .hamburger-menu span {
        display: block !important;
        background-color: #fff !important;
        width: 30px !important;
        height: 3.5px !important;
        border-radius: 2px !important;
        margin: 4px 0 !important;
    }

    /* メインビジュアル */
    .main-visual {
        height: 240px;
    }

    /* --- ハンバーガーメニューの中身（美化＆反転防止版） --- */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        transition: 0.4s ease;
        padding: 20px 0 40px; /* 左右パディングを0にしてタップ領域を広げる */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .mobile-nav.is-active {
        right: 0;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
    }

    .mobile-nav-list li {
        border-bottom: 1px solid #f5f5f5; /* 優しい極薄の線 */
    }

    .mobile-nav-list li a {
        display: block;
        padding: 20px 30px;
        font-size: 1.1rem;
        font-weight: bold;
        color: #444;
        text-decoration: none;
        /* ここが重要：タップ時の黒い反転を消す */
        -webkit-tap-highlight-color: transparent;
    }

    /* タップした瞬間の微かな反応（黒ではなく薄いグレーにする） */
    .mobile-nav-list li a:active {
        background-color: #fafafa;
    }

    /* メニュー内の連絡先・予約エリア */
    .mobile-nav-info {
        margin: 0 10px;
        padding: 10px 10px;
        background: #f0fafa; /* 清潔感のある薄い水色 */
        border-radius: 15px;
        text-align: center;
    }

    .mobile-nav-info .tel {
        display: block;
        font-size: 1.4rem;
        font-weight: bold;
        color: #2bb9ba;
        margin-bottom: 20px;
    }

    .mobile-nav-info .btn-reserve {
        width: 80%;
        height: 54px;
        background: #ffb347 !important; /* 目立つオレンジ */
        font-size: 1.1rem !important;
        color: #fff !important;
        border-radius: 27px;
        box-shadow: 0 4px 10px rgba(255, 179, 71, 0.2);
    }
}

/* --- サイトマップエリア限定：最強設定 --- */

/* 1. リスト全体の枠組み（2列にする） */
footer .footer-right .footer-sitemap-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 強制的に2列 */
    gap: 12px 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
}

/* 2. リスト項目（各ページリンク）の装飾 */
footer .footer-right .footer-sitemap-list li {
    position: relative !important;
    padding: 0 0 0 18px !important; /* 左側にポッチ用の余白 */
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* 3. 先頭のドット（パステルオレンジ） */
footer .footer-right .footer-sitemap-list li::before {
    content: "●" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ffb347 !important; /* オレンジ */
    font-size: 0.7rem !important;
}

/* 4. リンクの文字設定 */
footer .footer-right .footer-sitemap-list li a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    transition: 0.3s !important;
}

/* 5. サイトマップという見出しの装飾 */
footer .footer-right .sitemap-title {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #2bb9ba !important;
    margin: 0 0 15px 0 !important;
    padding: 0 0 0 10px !important;
    border-left: 4px solid #ffb347 !important; /* 左側のオレンジ線 */
    display: block !important;
}

/* スマホでは1列にする */
@media (max-width: 480px) {
    footer .footer-right .footer-sitemap-list {
        grid-template-columns: 1fr !important;
    }
}