/*
Theme Name:     Oumebashi-clinic
Template:       oumebashi
Version:        1.2
*/

/* common */
.caution_msg {
    color: #ff0000;
}
.no-margin {
    margin: 0;
}
table td, table th {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}
main h3 {
    margin-bottom: .8rem;
}

/* header */
@media (min-width: 960px){
    .row .primary-menu-ul>li>a {
        height: 100%;
    }
}
.navbar-toggle {
    border: 1px solid #f0f0f0;
}

/* footer */
footer div.component-wrap {
    text-align: center;
    display: block;
}

.disp-none {
    display: none;
}

/* menu */
.site-logo h1, .site-logo p {
    font-size: 20px !important;
}
div.builder-item--primary-menu > div.nv-nav-wrap > div.nav-menu-primary > ul.primary-menu-ul li.current-menu-item a,
div.builder-item--primary-menu > div.nv-nav-wrap > div.nav-menu-primary > ul.primary-menu-ul li:not(.woocommerce-mini-cart-item) > a {
    color: #000;
    cursor: pointer;
}

/* side menu */
@media (min-width: 960px){
    .neve-main>.container .col {
        max-width: 75% !important;
    }
    .nv-sidebar-wrap {
        max-width: 25% !important;
    }
}

/* main visual */
section#main_visual {
    max-height: 550px;
}
@media screen and (min-width: 1400px){
    section#main_visual {
        max-height: 700px;
    }    
}

/* clinic info area */
span.clinic_info {
    width: 60px;
    display: inline-block;
}

/* working hours */
h4.timetable_h4 {
    margin-top: 40px;
    margin-bottom: 0;
}
table.timetable {
    margin-top: 0;
}
li#menu-item-632 a {
    background: #A9D053;
    border-radius: 20px;
    color: #fff;
    padding: 8px 13px;
    font-weight: 600;
}
li#menu-item-633 a {
    background: #ffa74f;
    border-radius: 20px;
    color: #fff;
    padding: 8px 13px;
    font-weight: 600;
}
.row .primary-menu-ul>li#menu-item-633 {
    padding-right: 10px;
}
.row ul[id^=nv-primary-navigation] .menu-item-nav-search:not(.responsive-nav-search) {
    display: none;
}
li.meta.author.vcard {
    display: none;
}

/* reservation */
#menu-item-633,
#footer-reservation {
    display: none;
}

/* service-template */
body.page-template-page-service .nv-single-page-wrap p.caution_msg {
    padding-top: 30px;
    font-size: 19px;
}
.nv-page-title-wrap.nv-big-title .nv-page-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.nv-page-title-wrap.nv-big-title .nv-page-title h1 {
    margin-bottom: 0;
}

/* immunization page */
.immunization_table tbody tr td:first-child {
    width: 220px;
}
.dl_btn {
    width: 202px;
    background: #fc5f45;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 20px;
    margin-left: 20px;
}
.dl_btn:hover {
    color: #fff;
    background: #e25b44;
    text-decoration: none;
}
@media screen and (max-width: 468px) {
    .dl_btn {
        display: inline-block;
        line-height: 1;
        margin-top: 10px;
        margin-left: 0;
    }
}

/* IE11対応 */
_:-ms-lang(x)::-ms-backdrop, .elementor-invisible {
    visibility: visible !important;
}
_:-ms-lang(x)::-ms-backdrop,
.elementor-91 .elementor-element.elementor-element-6bea8fc8:not(.elementor-motion-effects-element-type-background),
.elementor-91 .elementor-element.elementor-element-6bea8fc8 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-91 .elementor-element.elementor-element-61b84ac:not(.elementor-motion-effects-element-type-background),
.elementor-91 .elementor-element.elementor-element-61b84ac > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-attachment: scroll !important;
}
_:-ms-lang(x)::-ms-backdrop,
div.elementor-91 .elementor-element.elementor-element-6bea8fc8:not(.elementor-motion-effects-element-type-background),
div.elementor-91 .elementor-element.elementor-element-6bea8fc8 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-position: center;
}
_:-ms-lang(x)::-ms-backdrop, section#main_visual {
    max-height: 700px;
}
_:-ms-lang(x)::-ms-backdrop, .hfg_header.site-header {
    box-shadow: 0px 0px 3px rgba(0,0,0,1) !important;
}
_:-ms-lang(x)::-ms-backdrop, html {
    display: flex;
    flex-direction: column;
}
_:-ms-lang(x)::-ms-backdrop, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----- インフルエンザワクチンページ専用スタイル ----- */
/* 1. 比較表のスタイル */
.page-influenza-vaccine .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid #ddd; /* テーブル全体の枠線を追加 */
}
.page-influenza-vaccine .comparison-table th, 
.page-influenza-vaccine .comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}
.page-influenza-vaccine .comparison-table th {
    background-color: #f7f9fa;
}
.page-influenza-vaccine .comparison-table td[data-label="項目"] {
    text-align: left;
    font-weight: bold;
    background-color: #f7f9fa;
}
.page-influenza-vaccine .highlight {
    color: #d32f2f;
    font-weight: bold;
}

/* 2. タブ切り替えのスタイル */
.page-influenza-vaccine .tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}
.page-influenza-vaccine .tab-button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1em;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    /* 既存のボタンテーマスタイルを上書き */
    border-radius: 0;
    font-weight: 500;
    line-height: inherit;
    text-transform: none;
    margin: 0;
}
.page-influenza-vaccine .tab-button:hover {
    background-color: #f7f9fa;
}
.page-influenza-vaccine .tab-button.active {
    color: #005a9c;
    border-bottom: 3px solid #005a9c;
    font-weight: bold;
}
.page-influenza-vaccine .tab-content {
    display: none;
}
.page-influenza-vaccine .tab-content.active {
    display: block;
}

/* 3. 予約フローのスタイル */
.page-influenza-vaccine .flow-steps {
    counter-reset: step-counter;
    margin-top: 20px;
}
.page-influenza-vaccine .flow-steps .step {
    position: relative;
    padding: 20px;
    padding-left: 60px;
    margin-bottom: 20px !important; /* テーマのスタイルを上書き */
    background: #f7f9fa;
    border-left: 4px solid #0288d1;
    border-radius: 0 4px 4px 0;
}
.page-influenza-vaccine .flow-steps .step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #0288d1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
}
.page-influenza-vaccine .flow-steps .step h3 {
    font-size: 1.3em;
    margin: 0 0 10px 0 !important;
    padding-left: 0;
    border-left: none;
    color: #01579b;
}
.page-influenza-vaccine .tel {
    font-size: 1.4em;
    font-weight: bold;
    color: #005a9c;
    text-decoration: none;
}

/* 4. スマートフォン表示用のレスポンシブスタイル */
@media (max-width: 768px) {
    /* テーブルを縦積みにする */
    .page-influenza-vaccine .comparison-table, 
    .page-influenza-vaccine .comparison-table thead, 
    .page-influenza-vaccine .comparison-table tbody, 
    .page-influenza-vaccine .comparison-table th, 
    .page-influenza-vaccine .comparison-table td, 
    .page-influenza-vaccine .comparison-table tr {
        display: block;
    }
    .page-influenza-vaccine .comparison-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .page-influenza-vaccine .comparison-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    .page-influenza-vaccine .comparison-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    .page-influenza-vaccine .comparison-table td[data-label="項目"] {
        text-align: right; 
    }
    .page-influenza-vaccine .comparison-table td::before {
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }
    
    .page-influenza-vaccine .tabs { flex-wrap: wrap; }
    .page-influenza-vaccine .tab-button { flex-grow: 1; text-align: center; }
}
/* h2（大見出し）のスタイル */
.page-influenza-vaccine h2 {
    color: #005a9c; /* テーマに合わせた濃い青色 */
    border-bottom: 2px solid #005a9c; /* 水色の下線 */
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 1.75em; /* テーマのh2サイズに合わせる */
    line-height: 1.2;
}

/* 「各ワクチンの詳細」などを囲むカードスタイル */
.page-influenza-vaccine .card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* わずかな影で立体感を出す */
    margin-bottom: 30px;
    border: 1px solid #e6e8ea; /* 薄い境界線 */
}
/* カード内のh2は上部の余白をなくす */
.page-influenza-vaccine .card h2 {
    margin-top: 0;
}

/* カード内のh3（各項目の見出し）のスタイル */
.page-influenza-vaccine h3 {
    color: #01579b;
    border-left: 5px solid #0288d1; /* 左側にアクセントの線を引く */
    padding-left: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}
/* 最初のh3だけ上の余白を調整 */
.page-influenza-vaccine .tab-content h3:first-of-type {
    margin-top: 10px;
}

/* 箇条書きリストのスタイル調整 */
.page-influenza-vaccine .card ul,
.page-influenza-vaccine .card ol {
    padding-left: 20px;
}
.page-influenza-vaccine .card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    list-style: none;
}
/* 通常リストのアイコン */
.page-influenza-vaccine .card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00897b;
    font-weight: bold;
}
/* 注意リストのアイコン */
.page-influenza-vaccine .card .caution-list li::before {
    content: "⚠";
    color: #f57c00;
}
.page-influenza-vaccine .btn {
    margin: 10px;
    line-height: 55px;
}
@media (max-width: 768px) {

    /* タブ全体のコンテナ（flexboxの役割のみ） */
    .page-influenza-vaccine .tabs {
        display: flex;
        margin-bottom: 25px;
        border: none; /* コンテナ自体の枠線は不要 */
    }

    /* タブボタン共通のスタイル */
    .page-influenza-vaccine .tab-button {
        flex-grow: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 1em;
        font-weight: 600;
        transition: background-color 0.2s, color 0.2s;
        
        /* ボタンそれぞれが枠線を持つ */
        border: 1px solid #0288d1;
        
        /* 枠線を重ねて1pxに見せる */
        margin-left: -1px;

        /* アクティブなボタンを前面に表示するための準備 */
        position: relative;
    }

    /* 最初のボタンの左角を丸くし、重なりをリセット */
    .page-influenza-vaccine .tab-button:first-child {
        margin-left: 0;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    /* 最後のボタンの右角を丸くする */
    .page-influenza-vaccine .tab-button:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    /* 非アクティブなタブのスタイル */
    .page-influenza-vaccine .tab-button:not(.active) {
        background-color: #ffffff;
        color: #0288d1;
    }

    /* アクティブなタブのスタイル */
    .page-influenza-vaccine .tab-button.active {
        background-color: #0288d1;
        color: #ffffff;
        /* アクティブなボタンの枠線を最前面に表示させる */
        z-index: 1; 
    }
}