@charset "UTF-8";
/*
    Template: swell
    Theme Name: 麻布十番クリニック専用子テーマ
    Theme URI: https://azbclinic.com/
    Description: 麻布十番クリニック
    Version: 1.0.0
    Author: 麻布十番クリニック
    Author URI: https://azbclinic.com/

*/

/* ---------- デザイン ---------- */

body,
div,
p,
strong {
    font-family: 'Josefin Sans', sans-serif;
}

h2,
h3,
h4,
h5 {
    font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', '游明朝', 'Yu Mincho', '游明朝体', 'YuMincho', 'ＭＳ Ｐ明朝', 'MS PMincho', serif;
}

.post_content h2 {
    font-weight: normal !important;
}

.post_content h3 {
    font-weight: normal !important;
    color: #0ABAB5;
}


.post_content h2 {
    margin: 0.5em 0em;
}

.itembox1 p {
    margin-top: 15px;
}

.topitem1 h3 {
    position: relative;
    color: #f18f8e;
    font-size: 20px;
    padding: 10px 0;
    text-align: center;
    margin: 1.5em 0;
}

.topitem1 h3:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 200px;
    height: 78px;
    border-radius: 50%;
    border: 5px solid #EFC6C5;
    border-left-color: transparent;
    border-right-color: transparent;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.topitem1 .wp-block-group {
    padding: 30px 5px;
    border: 10px solid #F1F9EE;
}

.azb_box1_left h3,
.azb_box1_right h3 {
    background-color: #0ABAB5;
    padding: 20px;
    color: #fff;
    z-index: 30;
    border-radius: 50px;
}

@media (min-width: 768px) {
    .post_content h2 {
        font-size: 2.2rem;
    }

    .post_content h3 {
        font-size: 1.6rem;
    }

    .topitem1 h3 {
        font-size: 1.8rem !important;
    }

    .itembox1 {
        padding: 50px;
    }

    .topitem1 p {
        font-size: 1.2rem;
        text-align: center;
    }

    .topitem1 ul {
        width: 760px;
        margin: auto;
        font-size: 1.2rem;
    }

    .azb_box1_left h3 {
        margin-left: -80px;
        line-height: 100%;
        text-align: center;
    }

    .azb_box1_right h3 {
        margin-right: -80px;
        line-height: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .post_content h2 {
        font-size: 1.8rem;
    }
}

/* ---------- メインメニュー全体 ---------- */

.tel_head_right {
    margin-top: 10px;
    text-align: end;
}

.tel_h_l {
    font-size: 0.7rem;
}

.tel_h_l span {
    margin-left: 10px;
}

.tel_h_r {
    font-size: 2.2rem;
    line-height: 100%;
}

.tel_head_right svg:not(:host).svg-inline--fa,
.tel_head_right svg:not(:root).svg-inline--fa {
    font-size: 1.9rem;
}

@media (min-width: 768px) {

    /* メインメニュー全体 */
    #menu-main,
    .c-gnav {
        display: table;
        table-layout: fixed;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
        font-family: 'Noto Sans JP', sans-serif;
        border-collapse: collapse;
        text-align: center;
        margin-bottom: 10px;
    }

    /* メニュー項目 */
    #menu-main li,
    .c-gnav li {
        display: table-cell;
        vertical-align: middle;
        border-right: 1px dotted #ccc;
        padding: 14px 0;
    }

    /* 最後の項目の区切り線を消す */
    #menu-main li:last-child,
    .c-gnav li:last-child {
        border-right: none;
    }

    /* メニューリンク */
    #menu-main a,
    .c-gnav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #002c5f;
        height: 100%;
        width: 100%;
        transition: opacity 0.3s ease;
        gap: unset !important;
        /* ← デフォルトの影響をリセット */
    }

    /* ホバー効果 */
    #menu-main a:hover,
    .c-gnav a:hover {
        opacity: 0.75;
    }

    /* 日本語タイトル */
    #menu-main a .ttl,
    .c-gnav a .ttl {
        font-size: 16px !important;
        font-weight: 600;
        margin-bottom: 3px;
    }

    /* 英語ラベル */
    #menu-main a::after,
    .c-gnav a::after {
        content: attr(data-en);
        font-size: 10px;
        color: #f39800;
        letter-spacing: 0.05em;
        font-weight: 600;
        background: none;
    }

    [data-scrolled="true"] .c-gnav li {
        border-right: 0px dotted #ccc !important;
    }
}

/* ---------- スマホヘッダー（TEL＆住所） ---------- */
@media (min-width: 681px) {
    .sp_head_box {
        display: none;
    }
}

@media (max-width: 680px) {
    .sp_head_box {
        padding: 5px 10px;
        background-color: #0ABAB5;
        color: #fff;
        text-align: center;
    }
}

/* ---------- トップ ---------- */
.topboxtel1 h2 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin-top: 0px !important;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.topboxtel1 h3 {
    margin-top: 0px !important;
    margin-bottom: 15px;
}

.shintime th,
.shintime td {
    text-align: center;
}

.shintime th:first-child {
    width: 150px !important;
}

.tel_p1 {
    font-size: 2rem;
    font-weight: 600 !important;
}

#body_wrap.home .is-style-bg_stripe {
    padding: 10px !important;
}

.topboxtel1 .p-postList .p-postList__title {
    font-weight: normal !important;
}

@media (min-width: 600px) {
    .smb-box.topboxtel1 {
        padding: 60px;
    }

    .infobox1_left .tel_p1 {
        text-align: center;
    }

    .infobox1_left .tel_p1 img {
        display: block;
        margin: auto;
        width: 25px !important;
    }

    .infobox1_right p {
        font-size: 18px !important;
    }

    .infobox1_right .wp-block-image {
        margin-bottom: 2px !important;
    }
}

@media (max-width: 480px) {
    .shintime th:first-child {
        width: 100px !important;
    }

    .sec_info1 .c-container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .sec_info1 .smb-box {
        padding: 10px !important;
    }

    .tel_p1 {
        margin-bottom: 0px;
    }
}

/* ---------- スライド ---------- */


/* ---------- ブロック ---------- */
.wp-block-spacer {
    margin: 0;
}

@media (min-width: 600px) {
    #body_wrap.page .l-content {
        padding-top: 0em !important;
    }
}

@media (max-width: 600px) {
    .top #content {
        padding-top: 0px !important;
    }

    .w-beforeFooter {
        margin-top: 1.5em !important;
    }

    .l-content {
        margin-bottom: 1em !important;
    }

    .is-stacked-on-mobile>.wp-block-media-text__content {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/* ブロック本体にreveal-maskがある前提で、画像部分だけにマスクをかける */
.reveal-mask .wp-block-media-text__media {
    position: relative;
    overflow: hidden;
}

.reveal-mask .wp-block-media-text__media img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease 0.13s, transform 1.2s ease 0.13s;
}

.reveal-mask .wp-block-media-text__media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F1F9EE;
    /* マスク色 */
    z-index: 2;
    transform: translateX(0%);
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

/* 表示時のアニメーション発動 */
.reveal-mask.is-visible .wp-block-media-text__media::before {
    transform: translateX(100%);
}

.reveal-mask.is-visible .wp-block-media-text__media img {
    opacity: 1;
    transform: scale(1);
}

.tblbox1 td {
    background-color: #fff;
}

/* ---------- フッター ---------- */

#footer .w-footer__box ul {
    display: flex;
    flex-wrap: wrap;
}

#footer .w-footer__box ul li {
    width: 49%;
}


/* ----- フッター固定ナビ スマホ対応 ----- */
/* ----- 共通スタイル ----- */
#footer-fixed-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    opacity: 0.94;
    z-index: 99;
    font-size: 0;
}

#footer-fixed-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

#footer-fixed-menu li {
    width: 50%;
    text-align: center;
}

#footer-fixed-menu li a {
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* アイコンとテキストの間隔 */
    padding: 12px 5px;
    font-size: 0.95rem;
    text-decoration: none;
    height: 100%;
}

#footer-fixed-menu .svg-inline--fa {
    font-size: 1.3rem;
    margin: 0;
}

/* 背景色（画像に合わせて） */
#footer-fixed-menu li:nth-child(1) {
    background: #D05E5A;
}

#footer-fixed-menu li:nth-child(2) {
    background: #07B53B;
}

/* PC表示での微調整 */
@media (min-width: 769px) {
    #footer-fixed-menu li {
        max-width: 320px;
    }

    #footer-fixed-menu li:last-child {
        border-right: none;
    }

    #footer-fixed-menu li a {
        font-size: 18px;
        font-weight: 600;
    }
}

/* 言語スイッチャー右固定 */

#lang-switcher-fixed {
    position: fixed;
    top: 17%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

#lang-switcher-fixed li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* スマホサイズだけ有効 */
@media (min-width: 769px) {
    #lang-switcher-fixed {
        display: none;
    }
}

@media (max-width: 480px) {
    #lang-switcher-fixed {
        top: 3.5%;
        right: 95px;
        padding: 5px 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    }
}

/* ---------- 言語切替 ---------- */
:lang(en) {
    .jp-sp {
        display: none;
    }
}

:lang(ja) {
    .eng-sp {
        display: none;
    }
}

/* ---------- 言語切替ポップアップ ---------- */
#language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
    z-index: 9999;
}

#language-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#language-popup h3 {
    margin-bottom: 15px;
}

.lang-btn {
    margin: 5px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.lang-btn:hover {
    background-color: #005177;
}