#page > h2 {
        background-color: #2a96bd;
        color: #fff;
        font-size: 2.4em;
        text-align: center;
        padding: 20px 0;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
}
@media (max-width: 640px) {
        #page > h2 {
                display: block;
                font-size: 1.8em;
        }
}
#page > h2 > .title-online-img {
        height: 80px;
        vertical-align: middle;
        margin-right: 20px;
}

#page .content.recruit {
        min-height: 30vh;
}

#page .content h3 {
        font-size: 2.4em;
        font-weight: bold;
        margin-bottom: 60px;
        text-align: center;
        color: #42210b;
        letter-spacing: 0.1em;
}
@media (max-width: 640px) {
        #page .content h3 {
                font-size: 1.8em;
        }
}

#page .content h3::after {
        position: relative;
        content: "";
        display: block;
        height: 4px;
        width: 50px;
        border-radius: 10px;
        background-color: #2a96bd;
        top: 10px;
        left: calc(50% - 25px);
}

#page .content h3.online,
#page .content h3.online-download {
        color: #f85b40;
        text-align: left;
        font-size: 1.4em;
        margin-bottom: 20px;
}
#page .content h3.online-download {
        text-align: center;
        color: #000;
        width: fit-content;
        margin: 0 auto 20px;
}
#page .content h3.online::after,
#page .content h3.online-download::after {
        background: none;
        height: 0;
        width: 0;
}

#page .content h4 {
        font-size: 2.2em;
}

#page .content h5 {
        font-size: 2em;
}

#page .content h6 {
        font-size: 1.6em;
}

#page .content .brown {
        color: #42210b;
}

#page .content #about-shinryo .main-inner {
        background-color: #ffe9de;
        padding: 50px;
        border-radius: 20px;
}

@media (max-width: 860px) {
        #page .content #about-shinryo .main-inner {
                padding: 50px 20px;
        }
}

#page .content .sinryo-img-box {
        float: right;
        width: 200px;
        margin-top: -80px;
        margin-right: 5%;
        margin-bottom: 30px;
        transition: all 0.3s;
}
#page .content .sinryo-msg {
        font-size: 1.4em;
        font-weight: bold;
        margin-bottom: 20px;
        color: #41220a;
        width: fit-content;
        text-align: center;
        float: left;
        margin-left: 5%;
        transition: all 0.3s;
}
@media (min-width: 1024px) {
        #page .content .sinryo-msg {
                letter-spacing: 0.2em;
        }
}

@media (max-width: 950px) {
        #page .content .sinryo-img-box {
                width: 150px;
                margin-bottom: 10px;
        }
}
@media (max-width: 860px) {
        #page .content .sinryo-img-box {
                float: none;
                margin: -80px auto 20px;
        }
        #page .content .sinryo-msg {
                font-size: 1.2em;
                margin: 0 auto 30px;
                float: none;
        }
}

#page .content .shinryo-inner {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
        #page .content .shinryo-inner {
                display: block;
        }
}

#page .content .shinryo-inner > div {
        padding: 20px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
@media (max-width: 860px) {
        #page .content .shinryo-inner > div {
                margin-bottom: 20px;
        }
}

#page .content .shinryo-inner div h4 {
        position: relative;
        font-size: 1.4em;
        font-weight: bold;
        margin-bottom: 20px;
        color: #41220a;
        padding-left: 25px;
        letter-spacing: 0.2em;
}

#page .content .shinryo-inner div h4::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        /* ボックスの幅 */
        height: 35px;
        /* ボックスの高さ */
        background-color: #f07f7c;
        /* ボックスの色 */
        border-radius: 20px;
        /* 丸みをつける */
}

#page .content .sinryo-img01 {
        width: 120px;
        float: right;
        margin: 0 0 0 20px;
}

#page .content .sinryo-img02 {
        width: 120px;
        float: right;
        margin: 0 0 0 20px;
}

#page .content .page-doctor {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 40px;
}

#page .content .page-doctor section {
        width: 100%;
        margin-bottom: 20px;
}

@media (max-width: 768px) {
        #page .content .page-doctor {
                display: block;
        }

        #page .content .page-doctor section {
                max-width: 500px;
                width: 100%;
                margin: 0 auto 30px;
        }
}

#page .content .page-doctor .doctor-image {
        float: left;
        width: 30%;
        margin-right: 20px;
}

#page .content .page-doctor .doctor-image img {
        border-radius: 10px;
}

#page .content .page-doctor .doctor-detail {
        float: right;
        width: calc(70% - 20px);
}

#page .content .doc-name-man {
        font-size: 0.8em;
        color: #29aae1;
}

#page .content .doc-name-woman {
        font-size: 0.8em;
        color: #e98163;
}

#page .content .facilities-img {
        float: left;
        width: 200px;
        margin-right: 20px;
}

#page .content .facilities-detail {
        font-size: 1.3em;
        font-weight: bold;
        color: #575757;
}

@media (max-width: 748px) {
        #page .content .facilities-img {
                display: block;
                float: none;
                margin: 0 auto 30px;
        }
        #page .content .facilities-detail {
                font-size: 1.1em;
        }
}

#page .btn-staff {
        padding: 10px 30px;
        background-color: #2a96bd;
        color: #fff;
        font-size: 1.1em;
        border-radius: 20px;
        transition: all 0.3s;
        text-decoration: none !important;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#page .btn-staff:hover {
        background-color: #02a38f;
        text-decoration: none !important;
}

#page .doc-man {
        background: url(https://www.wada-ah.jp/wada-wp/wp-content/uploads/img-about-w2.png)
                no-repeat left center;
        background-size: contain;
        padding-left: 100px;
}

#page .doc-woman {
        background: url(https://www.wada-ah.jp/wada-wp/wp-content/uploads/img-about-w1.png)
                no-repeat left center;
        background-size: contain;
        padding-left: 100px;
}

@media (max-width: 480px) {
        #page .doc-man,
        #page .doc-woman {
                padding-left: 80px;
        }
}

#page .gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        transition: all 0.3s;
}
@media (max-width: 960px) {
        #page .gallery {
                grid-template-columns: repeat(2, 1fr);
        }
}

@media (max-width: 480px) {
        #page .gallery {
                grid-template-columns: 1fr;
        }
}

#page .gallery li {
        display: block;
        /* aタグがインライン要素でなくなるようにする */
}

#page .gallery img {
        width: 100%;
        /* 画像がカラムに合わせて幅いっぱいに広がる */
        height: auto;
        /* 画像の高さを自動調整 */
        display: block;
        /* 画像がインライン要素でなくなるようにする */
        border-radius: 10px;
        margin-bottom: 5px;
}

#page #header-about {
        background: url(../img/about/bg-about.jpg) no-repeat center center;
        background-size: cover;
        padding: 110px 0;
}

#page #header-about .about-box {
        max-width: 500px;
        width: calc(100% - 50px);
        margin: 0 auto 0 0;
        padding: 30px;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
        #page #header-about .about-box {
                margin: 0 auto;
        }
}

#page .header-about-image {
        max-width: 300px;
        width: calc(100% - 40px);
        margin-bottom: 30px;
}

#page .header-about-image img {
        width: 100%;
}

#page .img-404 {
        max-width: 400px;
        width: calc(100% - 50px);
        display: block;
        margin: 100px auto 30px;
}

@media (max-width: 640px) {
        #page .img-404 {
                margin: 50px auto 30px;
        }
}

#page .main-inner a {
        text-decoration: underline;
}

#page #header-access {
        padding: 110px 0 30px;
}
#page #header-access .access-img-main {
        line-height: 1;
        float: left;
        width: 55%;
}
#page #header-access .access-img-main img {
        width: 100%;
        border-radius: 10px;
}
#page #header-access .img-access {
        margin-bottom: 20px;
}

#page #header-access .access-box {
        width: calc(45% - 30px);
        float: right;
}

#page #header-access .access-img-box {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        font-size: 0.9em;
}

@media (max-width: 960px) {
        #page #header-access {
                padding: 50px 0 0;
        }

        #page #header-access .access-img-main {
                float: none;
                clear: both;
                max-width: 500px;
                width: calc(100% - 100px);
                margin: 0 auto 20px;
                display: block;
        }

        #page #header-access .access-box {
                float: none;
                clear: both;
                max-width: 500px;
                width: calc(100% - 100px);
                margin: 0 auto;
        }
}
@media (max-width: 640px) {
        #page #header-access .access-img-main,
        #page #header-access .access-box {
                width: calc(100% - 20px);
        }
        #page #header-access {
                font-size: 0.8em;
        }
}

#page .header-access-image {
        max-width: 300px;
        width: calc(100% - 40px);
        margin-bottom: 30px;
}

#page .header-access-image img {
        width: 100%;
}

#page #googlemap {
        border: none;
        width: 100%;
        height: 580px;
        margin-bottom: 80px;
}

#page .access-one-box {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: stretch;
        padding: 30px 50px;
        background-color: #fffaef;
        border-radius: 10px;
        margin-bottom: 20px;
}

#page .access-one-box h4.access {
        position: relative;
        /* 疑似要素の位置を基準にするため */
        width: 250px;
        padding: 0 60px 0 0;
        line-height: 0;
}

#page .access-one-box h4.access::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 5px;
        height: 100%;
        background-color: #fce3c9;
        border-radius: 5px;
        transform: translateY(-50%);
}

#page .access-one-box .acc {
        width: calc(100% - 250px);
        padding-left: 60px;
}

#page .access-one-box dl {
        margin-bottom: 5px;
}

#page .access-one-box dt {
        width: 210px;
        float: left;
        color: #f05a24;
}

#page .access-one-box dd {
        width: calc(100% - 220px);
        float: right;
}

@media (max-width: 960px) {
        #page .access-one-box {
                padding: 30px;
        }

        #page .access-one-box h4.access {
                padding: 0 30px 0 0;
        }

        #page .access-one-box .acc {
                padding-left: 20px;
        }
}

@media (max-width: 820px) {
        #page .access-one-box {
                display: block;
        }

        #page .access-one-box h4.access {
                margin: 0 auto 20px;
        }

        #page .access-one-box h4.access::after {
                content: none;
        }

        #page .access-one-box .acc {
                padding: 0;
                width: 100%;
        }
}

@media (max-width: 640px) {
        #page .access-one-box {
                padding: 30px 20px;
        }

        #page .access-one-box h4.access {
                max-width: calc(100% - 100px);
        }

        #page .access-one-box dt,
        #page .access-one-box dd {
                float: none;
                width: auto;
                text-align: center;
        }
}

#page .content .online-uketsuke-box {
        background-color: #fff8e5;
        padding: 50px 0;
        margin-bottom: 50px;
}

#page .content .online-uketsuke-box .main-inner {
        display: flex;
        gap: 30px;
        align-items: center;
        justify-content: center;
}
#page .content .online-uketsuke-box .main-inner .uketuke-img {
        width: 300px;
}
#page .content .online-uketsuke-box .main-inner .uketuke-img img {
        /*width: 35%;*/
        width: auto;
        display: block;
        margin: 0 auto;
}

@media (max-width: 800px) {
        #page .content .online-uketsuke-box {
                padding: 30px 0;
        }

        #page .content .online-uketsuke-box .main-inner {
                display: block;
        }

        #page .content .online-uketsuke-box .main-inner .uketuke-img {
                width: calc(100% - 80px);
                margin: 0 auto 16px;
        }
        #page .content .online-uketsuke-box .main-inner img {
                width: 100%;
                display: block;
                margin: 0 auto 20px;
        }
        #page .content .online-uketsuke-box .uketsuke-detail {
                display: block;
                width: fit-content;
                margin: 0 auto;
        }
}

#page .content .online-list {
        list-style: none;
        margin-bottom: 20px;
}

@media (max-width: 800px) {
        #page .content .online-list {
                margin: 0 auto;
        }
}

#page .content .online-list li {
        position: relative;
        padding-left: 1.5em;
        /* チェックマーク分のスペース確保 */
}

#page .content .online-list li::before {
        content: "\f00c";
        /* fa-check */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #f85b40;
        position: absolute;
        left: 0;
        /* 左端に固定配置 */
        top: 0.15em;
        /* 縦位置の微調整（必要に応じて） */
        width: 1em;
        text-align: center;
}

#page .content .online-download-section {
        background-color: #f5f5f5;
        padding: 40px;
        margin: 0 auto 50px;
        width: fit-content;
        border-radius: 10px;
}

#page .content .online-download-box {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        width: fit-content;
        padding: 0 60px;
        margin: 0 auto 30px;
}
@media (max-width: 640px) {
        #page .content .online-download-section {
                padding: 20px;
        }
        #page .content .online-download-box {
                display: block;
                padding: 0;
        }
        #page .content .online-download-box > div {
                width: fit-content;
                margin: 0 auto 10px;
        }
}

#page .content .online-download-box img {
        height: 50px;
        width: auto;
        display: block;
}

#page .content .online-download-box2 {
        display: block;
        width: fit-content;
        margin: 20px auto;
        padding: 20px 30px;
        border-top: 1px solid #12bace;
        border-bottom: 1px solid #12bace;
}
#page .content .online-download-box2 h4 {
        text-align: center;
        color: #12bace;
        font-size: 1.2em;
        font-weight: bold;
}

#page .content .process-inner {
        display: grid;
        gap: 30px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr; /* 行の高さを均等に */
        margin-bottom: 50px;
        align-items: stretch;
}
@media (max-width: 960px) {
        #page .content .process-inner {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
        }
}
@media (max-width: 640px) {
        #page .content .process-inner {
                grid-template-columns: repeat(1, 1fr);
                gap: 20px;
        }
}

#page .content .process-inner h3 {
        background-color: #12bace;
        color: #fff;
        font-size: 1.5em;
        border-radius: 10px;
        margin: 0 0 30px;
        padding: 5px;
}

#page .content .process-inner h3::after {
        content: none;
        display: none;
}

#page .content .process {
        display: flex;
        flex-direction: column;
        width: auto;
}

#page .content .process-detail {
        background-color: #e0f6f9;
        padding: 20px;
        border-radius: 10px;
        flex-grow: 1;
}

#page .content .process-detail h4 {
        font-size: 1.2em;
        text-align: center;
        padding: 0 0 15px;
        border-bottom: 1px solid #5bafcd;
        margin: 0 0 20px;
}

#page .content .online-caution-box {
        width: fit-content;
        padding: 10px 50px;
        margin: 0 auto;
        background-color: #fff8e8;
        color: #2ac3cd;
        border-radius: 50px;
        font-size: 1.2em;
}
@media (max-width: 480px) {
        #page .content .online-caution-box {
                display: block;
                padding: 10px 20px;
        }
}

#page .content .online-announce {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 10px;
}

@media (max-width: 640px) {
        #page .content .online-announce {
                font-size: 1.2em;
        }
}
