﻿/* =====================
  基本
===================== */
body {
    font-family: "IBM Plex Sans JP", /*"Noto Sans JP",*/ sans-serif, "Meiryo UI", "メイリオ", Meiryo, Meiryo,verdana,sans-serif !important;
    font-size: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

/*.list-group-item.active {
    z-index: auto;
}*/

/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
.adam_container {
    height: 100%;
    display: flex; /*flexボックスを使う指定*/
    flex-direction: column; /*子要素を縦並びにする*/
    justify-content: space-between; /*並びかたの種類の指定*/
    /*max-width: 1800px !important;*/ /*サイトの最大幅。これ以上広がらない。*/
    margin: 0 auto;
}

/* Header
------------------------------------------------------*/
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: background .5s ease;
    background: rgba(255, 255, 255, 0.95); /* 背景色 */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15); /* 下線（ボックスの影。右へ、下へ、ぼかし幅。0,0,0は黒のことで0.15は色が15%出た状態。） */

    /*padding: 10px 0 10px;*/
    /*background: #fff;*/
    /*border-bottom: 1px solid #dee2e6;*/
}

/* Logo
------------------------------------------------------*/
.logo-container {
    display: flex; /* flexbox */
    justify-content: center; /* 水平方向 */
    align-items: center; /* 垂直方向 */
    color: #333;
}

    .logo-container span {
        font-size: 0.6em;
    }

/* Nav
------------------------------------------------------*/
.nav-item a[href] {
    color: #212529;
}

.nav-link {
    border-bottom: 2px solid transparent; /* 最初から確保 */
}

.navbar .nav-item a:hover,
.navbar .nav-item a.active {
    border-bottom: 2px solid #bd2130;
}


.navbar-white {
    /*background-color: #fff;*/
    background-color: transparent;
}

.dropdown-toggle {
    white-space: normal !important;
}
/*
.navbar-brand1 {
    display: inline-block;
    font-size: 1.25rem !important;
}

a.navbar-brand1,
a.navbar-brand1:hover {
    text-decoration: none !important;
}
*/
.navbar-nav a {
    font-size: 0.9rem !important;
}

/* サブメニューのレイアウト（必要に応じて） */
/*.dropdown-submenu {
    position: relative;
}*/

    /*.dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
    }*/



/* ナビバー配下の dropdown を「クラスでのみ」表示制御する */
/*header .navbar .dropdown-menu {
    display: none !important;*/ /* インラインの display:block を封じる */
/*}

    header .navbar .dropdown-menu.show {
        display: block !important;*/ /* .show が付いた時だけ表示 */
    /*}*/

/* サブメニューのレイアウト（必要に応じて） */
header .navbar .dropdown-submenu {
    position: relative;
}

    header .navbar .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: .1rem;
        margin-right: .1rem;
    }

/* ==========================================================================
   ヘッダーの背景だけを0.8の半透明にし、文字やロゴは透明化しない設定
   【共通設定】スマホ・PCどちらでも、ナビの枠線をパディングを含めた位置にする
   ========================================================================== */

/* 1. ナビゲーションバー全体の背景を半透明の白（RGBA）にする */
/* 1. ナビゲーションバー自体のパディングを【スマホ・PC共通で0】にする */
header nav.navbar {
    padding-top: 0 !important; /* navbar自体の上下パディングを0にして */
    padding-bottom: 0 !important; /* 高さをロゴ画像とパディングだけに依存させる */
    /* 背景を「白(255,255,255)」の「透明度0.8」に指定 */
    /*background-color: rgba(255, 255, 255, 0.2);*/
}


.navbar-brand1 {
    /*display: inline-block;*/
}

a.navbar-brand1,
a.navbar-brand1:hover {
    text-decoration: none !important;
}



/* 2. ロゴ部分で上下の余白（パディング）を確保する設定も【スマホ・PC共通】にする */
header .navbar-brand1 {
    display: flex;
    align-items: center;
    padding-top: 0.5rem; /* この余白がスマホでもそのまま下線の位置になります */
    padding-bottom: 0.5rem; /* この余白がスマホでもそのまま下線の位置になります */
    font-size: 1.25rem;
}

/* 2. ドロップダウンメニューが開いたとき、下のコンテンツが透けて見えにくくするため
      ドロップダウンの枠自体も必要に応じて半透明（または不透明）に調整します */
header .navbar-nav .dropdown-menu {
    display: none !important; /* インラインの display:block を封じる */

    /* メニューの背景も0.8の半透明にする場合 */
    background-color: rgba(255, 255, 255, 1) !important;
    /* もし「ドロップダウンの中身だけは透けさせずに真っ白にしたい」場合は、
     上記を削除して background-color: #ffffff !important; に変更してください */
}


header .navbar .dropdown-menu {
}

    header .navbar .dropdown-menu.show {
        display: block !important; /* .show が付いた時だけ表示 */
    }

/* ==========================================================================
   ドロップダウンメニューをクリックした時（選択中）の青色をグレーに変更する
   ========================================================================== */

/* 1. 通常のドロップダウンアイテムをクリックした時（アクティブ状態） */
/* 2. 多階層メニュー（submenu）で、親メニューがクリック・選択されている時 */
header .dropdown-menu .dropdown-item:active,
header .dropdown-menu .dropdown-toggle[aria-expanded="true"] {
    background-color: #e9ecef; /* クリック時の背景色（薄いグレー） */
    color: #495057; /* クリック時の文字色（濃いグレー） */
}


/* 画面幅が 992px 以上の「PCサイズ」の時だけドロップダウン位置を調整 */
@media (min-width: 992px) {

    /* 1. ナビゲーションバーの「高さを揃える」 Flexbox 設定を有効化 */
    header nav.navbar {
        display: flex;
        align-items: stretch; /* ロゴの高さに全体の高さを均等に合わせる */
    }

    /* 3. メニュー全体を、ロゴが広げた「navの枠線の下端」まで引き伸ばす */
    header .navbar-collapse {
        align-self: stretch;
        height: auto;
    }

    header .navbar-nav {
        height: 100%;
        align-items: flex-end; /* ← これで下揃え */
    }

        /* 4. メニュー項目とリンクの文字を上下中央に戻す */
        /* 4. ホバー下線を一番下に固定したまま、文字と▼を確実に下のほうへ押し下げる */
        header .navbar-nav .nav-item {
            height: 100%;
            display: flex;
            align-items: flex-end; /* ← 各メニューも下揃え */
        }

        header .navbar-nav .nav-link {
            display: inline-block; /* 横並びと高さ100%を両立 */
            line-height: 1.2; /* 文字と▼の縦方向のズレを予防 */

            /*height: 100%;*/ /* 高さを100%にして、赤いホバー下線を一番下に固定 */
            /* 【重要】上側に大きな余白（パディング）を作ることで、文字と▼をセットで下に押し下げます */
            /* ※文字をさらに下に下げたい場合は「35px」、上に上げたい場合は「25px」など数値を調整してください */
            /*padding-top: 30px;*/
            /* 下線と文字の間の最低限の隙間をキープ */
            /*padding-bottom: 10px;*/
        }

        /* ドロップダウンの▼（矢印）が文字の底辺と綺麗に揃うように高さを微調整 */
        header .navbar-nav .dropdown-toggle::after {
            vertical-align: middle !important; /* ▼を文字の高さ中央〜やや下寄りに綺麗に合わせる */
            margin-left: 0.255em;
        }

        /* 5. Popper.jsの位置計算を強制リセットし、
        【navの枠線（border-bottom）の真下ぴったり】に固定する */
        header .navbar-nav .dropdown-menu {
            transform: none !important; /* JSの自動位置計算を解除 */
            top: 100% !important; /* navの最下部（100%の位置）にピタッと合わせる */
            margin-top: 0 !important;
        }

    /* ==========================================================================
   Bootstrap 4専用：多階層（サブメニュー）の横展開の段ズレを解消する
   ========================================================================== */

    /* 1. サブメニューを持つ li タグを位置の基準点に設定する */
    /*header .navbar-nav .dropdown-submenu {
        position: relative;
    }*/

        /* 2. 右側に展開するサブメニューの表示位置を「真横（同じ高さ）」に固定する */
        header .navbar-nav .dropdown-submenu > .dropdown-menu {
            top: 0 !important; /* 親の行と上端をピッタリ合わせる（段ズレ解消） */
            left: 100% !important; /* 親メニューの「右側」に表示 */
            margin-top: 0 !important; /* 余計な隙間をリセット */
            margin-left: -1px !important; /* 枠線が重なるように微調整（好みで0にしてもOK） */
        }

        /* (参考) もし左側に展開したいサブメニュー（右端で見切れる場合など）があれば以下を使います */
        header .navbar-nav .dropdown-submenu.submenu-left > .dropdown-menu {
            left: auto !important;
            right: 100% !important;
            margin-right: -1px !important;
        }

        /* ==========================================================================
     【PC限定】マウスホバー（フォーカス時）にドロップダウンを自動開閉する
     ========================================================================== */

        /* 1階層目のメニューにマウスが乗ったらドロップダウンを表示 */
        /* 2階層目・3階層目のサブメニューにマウスが乗ったらさらに横に表示 */
        header .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
        header .navbar-nav .dropdown-submenu:hover > .dropdown-menu {
            display: block !important;
        }


    /*.nav-link {
        display: flex;
        align-items: flex-end;
    }*/

    .border_lr {
        border-left: solid 1px #ccc;
        border-right: solid 1px #ccc;
    }
}

@media (max-width: 991px) {

    header .navbar-nav .nav-link {
        /*height: 100%;*/ /* 高さを100%にして、赤いホバー下線を一番下に固定 */
        /*display: inline-block;*/ /* 横並びと高さ100%を両立 */
        /* 【重要】上側に大きな余白（パディング）を作ることで、文字と▼をセットで下に押し下げます */
        /* ※文字をさらに下に下げたい場合は「35px」、上に上げたい場合は「25px」など数値を調整してください */
        /*padding-top: 30px;*/
        /* 下線と文字の間の最低限の隙間をキープ */
        /*padding-bottom: 10px;*/
        line-height: 1.2; /* 文字と▼の縦方向のズレを予防 */
    }

    .nav-link br {
        display: none;
    }

    .border_l {
        border-left: solid 1px #ccc;
    }

    .border_r {
        border-right: solid 1px #ccc;
    }
}

@media (max-width: 767px) {
    .border_l {
        border-left: none;
    }

    .border_r {
        border-right: none;
    }

    .ptop {
        padding-top: 1rem;
    }
}





/* Fotter
-----------------------------------------------------------*/
footer {
    background-color: #033c73;
    color: #fff;
}

    footer p,
    footer div li,
    footer p a {
        color: #221815 !important;
    }

    footer .fmenu {
        margin-bottom:0.5rem;
    }

    .footer-top {
        background-color: #f7f8f8;
        font-size: 0.9rem;
    }

/*.company ul,*/
.footer_banner ul,
.footer_address ul {
    padding-left: 0;
    margin-bottom: 0;
}

/*.company li,*/
.footer_banner li,
.footer_address li {
    /*display: inline;*/
    margin: 0 0.5em;
    list-style: none;
}

.footer_banner li {
    display: inline;
}

/*.footer_address li {*/
    /*font-size: 12px;*/
/*}*/

/*footer .timetable td.font_icon,*/
footer .remarks,
footer .footer_address a {
    color: #221815;
}

    /*footer .remarks td:first-child {
        width: 3em !important;
        letter-spacing: 1.1px;
        justify-content: flex-end;
    }
    footer .remarks td:not(:first-of-type) {
        width: calc(100% - 3em) !important;
    }*/
    footer .remarks td.l {
        width: 4em !important;
        letter-spacing: 1.1px;
        text-align: right;
        /*justify-content: flex-end;*/
    }

    footer .remarks td.r {
        width: calc(100% - 4em) !important;
        padding-left: 10px;
    }

@media screen and (max-width: 768px) {
    .p_lr5 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media only screen and (max-width: 767px) {
    .footer_banner li,
    .footer_address li,
    .company li {
        display: block;
        margin: 0;
    }
}

/* Main
-----------------------------------------------------------*/
main {
    background-color: rgba(9, 74, 139, 0.05);
    /*background-color: #fff;*/
}

.section_back_w {
    background-color: #fff;
}

/* Menu
------------------------------------------------------------*/
/*.header_logo,*/
.caption {
    font-family: "Libre Baskerville", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/*.nav_color_link_w {
    background-color: #fff !important;*/
    /*font-weight: bold;*/
    /*font-size: 1.1rem;*/
/*}*/

/*.link_border {
    border: 1px solid rgba(0, 123, 255, 0.6);
}*/

@media only screen and (min-width: 981px) {
    header nav {
        /*width: 980px;*/
        margin: 0 auto;
    }
    .navbar {
        padding: .5rem 0 !important;
    }
}

@media only screen and (max-width: 980px) {
    header {
        padding: 0;
        height: auto
    }
}

/*ロゴ*/
/*.logo img {
    display: block;
}*/

/*.logo {
    width: 220px;*/ /*ロゴ画像の幅*/
/*}*/

/*画面幅600px以下の追加指定*/
@media screen and (max-width:600px) {
    /*ヘッダーブロック*/
    header {
        min-height: 50px;
        height: auto;
    }

    .header_logo {
        max-height: 50px; /*ヘッダーの高さ*/
    }

    .navbar-brand1 {
        max-height: 50px; /*ヘッダーの高さ*/
        font-size: 1rem !important;
    }

        .navbar-brand1 > div {
            max-height: 40px;
        }

            .navbar-brand1 > div > img {
                max-height: 40px;
            }


        /*.navbar > div {
            max-height: 50px;
        }*/
}

@media screen and (max-width:380px) {
    .navbar-brand1 {
        font-size: 1.2rem;
    }
}


/*
---------------------------------------------------*/
/*h2見出し*/
.chapter_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1rem; /*h2の外側にとるスペース。上、左右、下への順番。*/
    /*font-size: 1.5rem;*/ /*文字サイズ*/
    position: relative; /*ulineを配置する為に必要な指定*/
    font-weight: normal; /*デフォルトの太字を標準に*/
    border-bottom: 2px solid #ddd; /*薄い色の線の幅、線種、色*/
    /*letter-spacing: 0.1em;*/ /*文字間隔を少しだけ広くする*/
}

    /*h2のアクセントラインの設定*/
    .chapter_title .underline {
        display: inline-block;
        position: relative;
        padding: 0.5rem 0; /*h2内の余白。上下、左右への順番。*/
        bottom: -2px; /*濃い線を薄い線に重ねる為の指定。枠線の幅と合わせます。*/
        /*border-bottom: 2px solid #a5873d;*/ /*濃い色の線の幅、線種、varは色の事でcss冒頭で指定しているprimary-colorを読み込みます*/
        border-bottom: 2px solid #bd2130; /*濃い色の線の幅、線種、varは色の事でcss冒頭で指定しているprimary-colorを読み込みます*/
    }
    /*右側の装飾文字の設定*/
    .chapter_title .small {
        font-size: 0.4em; /*文字サイズを親要素の60%に*/
        opacity: 0.7; /*透明度。色が70%出た状態。*/
    }

/* 診察の案内
--------------------------------*/
.guideline_time {
    margin: 0px;
    clear: both;
    /*overflow: auto;
	height: 300px;*/
    padding: 5px 10px;
    /*background-color: #fff;*/
    /*border: 1px solid #7b2077;
	height: 380px;*/
}

    .guideline_time dt {
        clear: left;
        float: left;
        /*font-weight: bold;*/
        margin-right: 0.5em;
        /*color: #444;*/
        margin-top: 2px;
    }

    .guideline_time dd {
        border-bottom: none;
        margin-bottom: 0.5rem;
        /*color: #444;*/
        padding: 3px;
        overflow: hidden;
    }

/* Topページ 診療科
-------------------------------------------*/
.dept .card-body {
    overflow: hidden;
}

    .dept .card-body img:hover {
        transform: scale(1.2);
        transition: transform .6s ease; /* ゆっくり変化させる */
    }

.dept .card {
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

/* Topパージ 基本理念
---------------------------------------------------------*/
.policy_number {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Topパージ News Letter
---------------------------------------------------------*/
.news_letter {
    display: inline-block;
    background: #fff;
    padding: 0 30px;
    border-radius: 50px;
    box-shadow: 0 0 0 1px #d6e599, 0 0 0 7px #fff, 0 0 0 8px #74a214 /*,
        0 6px 12px rgba(0,0,0,0.15)*/;
}
    .news_letter a {
        text-decoration: none;
    }
    .news_letter img {
        max-height: 45px;
    }

/* Topパージ 採用情報 画像ボタン
-------------------------------------------------*/
.recruit {
    display: flex;
    justify-content: center; /* 横中央 */
    align-items: center; /* 縦中央 */
    text-align: center;
    position: relative;
    /*background-color:rgba(255,255,255,0.8);
    background-blend-mode:lighten;*/
    background-color: rgba(0,0,0,0.45);
    background-blend-mode: darken;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.recruit_text {
    font-family: "Kosugi Maru", sans-serif;
    color: #033C73;
    /*font-weight: bold;*/
    font-size: 1.15rem;
    /* 白フチ */
    text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff;
}

a.link_recruit:hover {
    text-decoration: none;
}


/* 診察時間テーブル
---------------------------------------------------*/
.timetable {
    border: none;
    border-collapse: collapse;
    color: #3b3b3b;
    table-layout: fixed;
    word-break: break-all;
}

    .timetable tr {
        /*display: flex;*/
        /*padding: 1em 0;*/
        border-top: 1px solid #ccc;
        /*justify-content: space-between;*/
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
    }

    .timetable tr td:not(:first-child) {
        color: #4f603e
    }

    .timetable tr:first-child {
        /*border: none*/
    }

        .timetable tr:last-child {
            border-bottom: 1px solid #ccc;
        }

        .timetable tr td:first-child {
            color: initial;
        }

    .timetable td,
    .timetable th {
        padding: 1em 0;
        /*border: none;*/
        text-align: center;
        border-left: 1px solid #ccc;
    }

    .timetable th {
        font-weight: normal;
        text-align: center;
        background-color: #f3f4f6;
    }

        .timetable th:last-child {
            white-space: nowrap !important;
        }

        .timetable td:first-child,
        .timetable th:first-child {
            width: 8em !important;
            letter-spacing: 1.1px;
            border-left: none;

            background-color: #f3f4f6;
        }
        .timetable td:last-child,
        .timetable th:last-child {
            /* border-right: 1px solid #ccc;*/
        }

        .timetable td:not(:first-of-type),
        .timetable th:not(:first-of-type) {
            width: calc((100% - 8em) / 7) !important;
            /*text-align: center*/
        }

    .timetable + .note {
        font-size: .9em;
        text-align: right;
        color: rgba(59,59,59,.8);
        font-family: "Josefin Sans",sans-serif
    }

    .timetable td.font_icon {
        font-size: 1.2rem;
    }

    .timetable td span {
        font-size: 0.8rem;
    }

/* 診察時間テーブル
---------------------------------------------------*/
/*.remarks {
    border: none;
    color: #3b3b3b;
    table-layout: fixed;
    word-break: break-all;
}

    .remarks tr {
        / *display: flex;* /
        / *padding: 1em 0;* /
        border: none;
        justify-content: space-between
    }

    .remarks td {
        padding: 0;
        border: none;
    }

        .remarks td.tal {
            font-weight:bold;

        }*/

@media screen and (max-width: 500px) {
    /* スマホ向け */

    .timetable td:not(:first-of-type):not(:last-of-type), .timetable th:not(:first-of-type):not(:last-of-type) {
        width: calc((100% - 8em - 2.5em) / 6) !important;
        /*text-align: center*/
    }

    .timetable td:last-child,
    .timetable th:last-child {
        width: 2.5em !important;
    }

    /*.remarks,
    .remarks tbody,
    .remarks tr,
    .remarks td {
        display: block;
        width: 100%;
    }*/
}


.callout.callout-danger {
    border-left-color: #bd2130;
}

.callout.callout-base {
    border-left-color: #033c73;
}

.callout {
    border-radius: .25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
    background-color: #fff;
    border-left: 5px solid #e9ecef;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
}

/* Page Top
----------------------------------------------------*/
#pageTop {
    z-index: 5;
    position: fixed;
    bottom: 30px;
    right: 20px;
    /*opacity: 0;
  transition: .5s;
}
#pageTop.visible {
  opacity: 1;
  pointer-events: auto;*/
}
/*#pageTop a {
		border: 2px solid rgba(133, 191, 89, 1);
		background-color:#efefef;*/
/*border-radius: 50%;*/
/*color: #fff !important;*/
/*text-align: center;
		text-decoration: none;
		padding: 5px 15px;
		font-size: 1.5rem;
		line-height:1;
	}

		#pageTop a:hover {
			background-color: #aaa;
			text-decoration: none;
		}*/

/* 丸いボタンをつくる */
.button_top {
    /* ①ボタンの色と文字の色とサイズ */
    background-color: orange;
    color: white;
    font-size: 16px;
    /* ②ボタンのサイズと角丸 */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* ③次に作る上向きの三角と、TOPの文字の位置を揃えるためのcss */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* ⑧色が変化する時間 */
    transition: .3s;
}
    /* ⑦マウスをかざした時に変化する色の指定 */
    .button_top:hover {
        background-color: white;
        color: orange;
        border-radius: 50%;
        border: 1px solid orange;
    }

    /* 上向きの白い三角のパーツを作る */
    .button_top::before {
        /* ④絶対必要 */
        content: "";
        display: block;
        /* ⑤三角のサイズ */
        width: 10px;
        height: 10px;
        /* ⑥三角の線と回転角度 */
        border-top: 2px solid white;
        border-right: 2px solid white;
        transform: rotate(-45deg);
        /* TOPの文字と三角の間を開けて微調整 */
        margin-bottom: 5px;
        /* ⑩色が変化する時間 */
        transition: .3s;
    }

    /* ⑨マウスをかざした時に変化する色の指定 */
    .button_top:hover::before {
        border-top: 2px solid orange;
        border-right: 2px solid orange;
    }
