@charset "UTF-8";
/*
Theme Name: Emanon Premium child
Theme URI: https://wp-emanon.jp/emanon-premium/
Author: 株式会社イノ・コード
Author URI: https://innocord.co.jp/
Description: Emanon Premiumnの子テーマです。
Template: emanon-premium
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:one-column, two-columns, three-columns, left-sidebar, right-sidebar, theme-options
*/

/* --- ヘッダーデザイン改善コード START (レスポンシブ縮小対応版) --- */

/* ヘッダー全体を横並びレイアウトに */
.l-header-center .l-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 24px;
}

/* ロゴの調整 */
.header-site-branding {
    width: auto;
    flex-shrink: 0;
}
.header-site-branding .site-logo__img-common {
    height: 60px;
}

/* PC用ナビゲーションメニューの配置 */
.header-menu-center.u-display-pc {
    width: auto;
}

ul.header-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 通常のメニュー項目の設定 */
.header-menu > .menu-item:not(#menu-item-22864) {
    border-right: 1px solid #e0e0e0;
    padding-right: 5px;
    padding-left: 5px; /* 修正: 左の余白を追加して左右を均等に */
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-menu > .menu-item > a {
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    text-align: center;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
}

.header-menu > .menu-item:not(#menu-item-22864) > a:hover {
    opacity: 0.7;
}

/* メインタイトル */
.header-menu > .menu-item > a > span {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: block;
}

/* サブタイトル */
.header-menu > .menu-item > a > .menu-description {
    font-size: 11px;
    font-weight: 400;
    color: #828990;
    display: block;
    margin-top: 2px;
    line-height: 1.2;
}

/* 「外来のご案内」ボタン */
#menu-item-23023 {
    border-right: none !important;
}
#menu-item-23023 > a {
    background-color: #4fb19d;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 12px 24px;
    margin-left: 16px;
    transition: background-color 0.3s ease;
}
#menu-item-23023 > a:hover {
    background-color: #8ba0b6;
    opacity: 1;
}
#menu-item-23023 > a > span {
    color: #ffffff;
}
#menu-item-23023 > a > .menu-description {
    display: block;
    color: #ffffff;
    opacity: 0.9;
}


/* --- ここから画面幅に応じた縮小処理 --- */


/* 画面幅が1400px以下の場合 */
@media screen and (max-width: 1400px) {
    ul.header-menu { gap: 4px; }
    .header-menu > .menu-item:not(#menu-item-22864) {
        padding-right: 7px;
        padding-left: 7px; /* 修正: 左の余白を追加して左右を均等に */
    }
    .header-menu > .menu-item > a { padding: 8px 8px; }
    .header-menu > .menu-item > a > span { font-size: 15px; }
}

/* 画面幅が1280px以下の場合、さらに縮小 */
@media screen and (max-width: 1280px) {
    ul.header-menu { gap: 0; }
    .header-menu > .menu-item:not(#menu-item-22864) {
        padding-right: 6px;
        padding-left: 6px; /* 修正: 左の余白を追加して左右を均等に */
    }
    .header-menu > .menu-item > a { padding: 8px 6px; }
    .header-menu > .menu-item > a > span { font-size: 14px; }
    .header-menu > .menu-item > a > .menu-description { font-size: 10px; }
    #menu-item-22864 > a { padding: 10px 16px; margin-left: 8px; }
}


/* --- ヘッダーデザイン改善コード END --- */

/* --- フッター波形デザイン START --- */

/* フッター本体のスタイル */
#js-footer.l-footer {
  position: relative;
  margin-top: 100px !important;
  background: transparent !important; /* 元の背景を強制的に透明に */
  overflow: visible !important;      /* ←【最重要】はみ出しを許可する */
}

/* フッターの直前に波形の要素を追加 */
#js-footer.l-footer::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  top: -100px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3e%3cpath d='M0,50 C480,100 960,0 1440,50 L1440,100 L0,100 Z' fill='%23d1e3f6'%3e%3c/path%3e%3c/svg%3e");
  background-size: cover;
  background-repeat: no-repeat;
}

/* フッターのコンテンツ部分に改めて背景色を設定 */
.l-footer .l-footer__inner {
  background-color: #d1e3f6;
  position: relative;
  z-index: 2; /* 波形より手前に表示 */
}


/* --- フッター波形デザイン END --- */

/* --- フッターウィジェットのデザイン改善 --- */

/* 「診療時間」と「サイトマップ」の列を調整 */
#js-footer.l-footer .column-4 {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.7); /* 少し透け感のある白 */
  border-radius: 12px; /* 角を丸くする */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 柔らかい影を追加 */
  margin-bottom: 24px; /* スマホ表示の際の間隔 */
}

/* ウィジェットのタイトル（h2） */
#js-footer.l-footer .widget h2.wp-block-heading {
  font-size: 1.2em;
  padding-bottom: 12px;
  border-bottom: 2px solid #8ba0b6; /* ヘッダーの色に合わせた下線 */
  margin-bottom: 16px;
  color: #3f5973; /* メインカラー */
}

/* 診療時間の表 */
#js-footer.l-footer .wp-block-table table {
  border: none;
  width: 100%;
}
#js-footer.l-footer .wp-block-table td {
  border: none;
  border-bottom: 1px solid #e0e6ec; /* 薄い区切り線 */
  padding: 10px 4px;
  text-align: center;
}
#js-footer.l-footer .wp-block-table tr:last-child td {
  border-bottom: none; /* 最後の行の下線は消す */
}

/* サイトマップのリスト */
#js-footer.l-footer #block-28,
#js-footer.l-footer #block-29,
#js-footer.l-footer #block-30,
#js-footer.l-footer #block-31,
#js-footer.l-footer #block-32,
#js-footer.l-footer #block-33,
#js-footer.l-footer #block-34,
#js-footer.l-footer #block-36 {
  margin-bottom: 8px; /* 各項目の間隔 */
}
#js-footer.l-footer .widget_text a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  color: #333333 !important; /* 文字色を再度指定 */
}

/* サイトマップのリンクにマウスが乗った時の効果 */
#js-footer.l-footer .widget_text a:hover {
  background-color: #e9eff5;
  color: #3f5973 !important;
}

/* サイトマップのリンクの前にアイコンを追加 */
#js-footer.l-footer .widget_text a::before {
  content: '▶';
  font-size: 0.8em;
  margin-right: 10px;
  color: #8ba0b6;
}

/* --- 全ページ共通：コンテンツカードのデザイン --- */
.article-body .wp-block-group {
  background-color: rgba(249, 251, 253, 0.75);
  border: 1px solid #e0e6ec;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  overflow: hidden;
}

/* --- トップページ専用：イントロダクションエリアのスタイル --- */
/* ※この部分はトップページにしか適用されません */
.home .article-body > .wp-block-group:first-of-type {
  background-color: #f5f8fa;
  border: none;
  padding: 40px 32px;
  box-shadow: none;
  margin-top: 0;
}
.home .article-body > .wp-block-group:first-of-type p {
  text-align: left;
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}
.home .article-body > .wp-block-group:first-of-type ul.wp-block-list {
  font-size: 1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5em;
}
.home .article-body > .wp-block-group:first-of-type ul.wp-block-list li {
  list-style-type: none;
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.8em;
}
.home .article-body > .wp-block-group:first-of-type ul.wp-block-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #8ba0b6;
  font-weight: bold;
}
.home .article-body > .wp-block-group:first-of-type h2 {
  display: none;
}


/* --- 全ページ共通：見出しのスタイル --- */

/* H2見出し */
.article-body .wp-block-group h2.wp-block-heading {
  font-size: 1.5em;
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #8ba0b6;
  margin-bottom: 24px;
  color: #3f5973;
}

/* H3見出し */
.article-body .wp-block-group h3.wp-block-heading {
  color: #3f5973;
  border-left: 5px solid #8ba0b6;
  padding: 8px 16px;
  margin-top: 32px;
  margin-bottom: 20px;
  background-color: #f5f8fa;
  border-radius: 0 4px 4px 0;
}

/* H4見出し */
.article-body .wp-block-group h4.wp-block-heading {
  color: #3f5973;
  margin-top: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.article-body .wp-block-group h4.wp-block-heading::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: #8ba0b6;
  border-radius: 3px;
  margin-right: 0.7em;
}

/* === 共通：H2見出しスタイル === */
.article-body h2.wp-block-heading {
  font-size: 1.5em;
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #8ba0b6;
  margin-bottom: 24px;
  color: #3f5973;
}

/* === 共通：H3見出しスタイル === */
.article-body h3.wp-block-heading {
  color: #3f5973;
  border-left: 5px solid #8ba0b6;
  padding: 8px 16px;
  margin-top: 32px;
  margin-bottom: 20px;
  background-color: #f5f8fa;
  border-radius: 0 4px 4px 0;
}

/* === 共通：H4見出しスタイル === */
.article-body h4.wp-block-heading {
  color: #3f5973;
  margin-top: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.article-body h4.wp-block-heading::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: #8ba0b6;
  border-radius: 3px;
  margin-right: 0.7em;
}


/* --- 全ページ共通：FAQのデザイン --- */
/* ※FAQブロックがあるページで適用されます */
.article-body .epb-faq__item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e6ec;
}
.article-body .epb-faq__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.article-body .epb-faq__item__question__label {
  background-color: #8ba0b6;
  color: #ffffff !important;
  border: none;
}
.article-body .epb-faq__item__question__body {
  font-weight: bold;
  color: #3f5973;
}
.article-body .epb-faq__item__answer {
  padding-top: 8px;
}
.article-body .epb-faq__item__answer__label {
  background-color: #f5f8fa;
  color: #3f5973 !important;
  border: 1px solid #e0e6ec;
}
.article-body .epb-faq__item__answer__body,
.article-body .epb-faq__item__answer__body p {
  color: #333;
  line-height: 1.7;
}

/* --- トップページ リード文のデザイン（最終調整版） --- */

/* リード文を囲むグループブロックの特別スタイル */
.home .article-body > .wp-block-group:first-of-type {
  background-color: #f5f8fa;
  border: none;
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: none;
  margin-top: 0;
  margin-bottom: 40px;
}

/* リード文のテキストスタイル（左揃えに戻す） */
.home .article-body > .wp-block-group:first-of-type p {
  text-align: left; /* ← 中央揃えから左揃えに変更 */
  font-size: 1.05em;  /* ← 少しだけサイズを調整 */
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 箇条書きリストのスタイル調整 */
.home .article-body > .wp-block-group:first-of-type ul.wp-block-list {
  font-size: 1em; /* 周囲のテキストとサイズを合わせる */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5em; /* 行頭アイコンのスペース */
}

.home .article-body > .wp-block-group:first-of-type ul.wp-block-list li {
  list-style-type: none; /* 元の黒丸を消す */
  position: relative;
  padding-left: 1.2em; /* テキストの開始位置を調整 */
  margin-bottom: 0.8em; /* 項目間の余白 */
}

/* 箇条書きのアイコンを独自に設定 */
.home .article-body > .wp-block-group:first-of-type ul.wp-block-list li::before {
  content: '✓'; /* チェックマークのアイコン */
  position: absolute;
  left: 0;
  color: #8ba0b6; /* アクセントカラー */
  font-weight: bold;
}

/* ========== カスタムフローティングボタン ========== */

/* PC用スタイル (960px以上) */
@media screen and (min-width: 960px) {

    #custom-floating-buttons {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 998;
        display: flex;
        flex-direction: column;
        gap: 8px;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #custom-floating-buttons.is-visible {
        visibility: visible;
        opacity: 1;
    }

    #custom-floating-buttons a {
        display: flex;
        justify-content: center;
        align-items: center;
        writing-mode: vertical-rl;
        color: #ffffff;
        padding: 20px 10px;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0.1em;
        border-radius: 10px 0 0 10px;
        transition: opacity 0.3s ease;
        min-height: 200px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* ▼▼ ボタンごとの色をここで指定 ▼▼ */
    #custom-floating-buttons a:nth-child(1) {
        background-color: #6c7899;
    }
    #custom-floating-buttons a:nth-child(2) {
        background-color: #9ac5e5;
    }
    #custom-floating-buttons a:nth-child(3) {
        background-color: #4fb19d;
    }
    /* ▲▲ ボタンごとの色をここで指定 ▲▲ */

    #custom-floating-buttons a:hover {
        opacity: 0.8;
    }

    #custom-floating-buttons i {
        font-size: 28px;
        margin-bottom: 15px;
    }
}

/* スマホ・タブレット用スタイル (959px以下) */
@media screen and (max-width: 959px) {

    #custom-floating-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        display: flex;
        justify-content: space-around;
        width: 100%;
        height: 65px;
        /* background-color: #ffffff; ← 白い背景を削除 */
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 998;
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(65px + env(safe-area-inset-bottom));
    }

    /* ▼▼ PC表示と同じボタンごとの色をここに追加 ▼▼ */
    #custom-floating-buttons a:nth-child(1) {
        background-color: #6c7899;
    }
    #custom-floating-buttons a:nth-child(2) {
        background-color: #9ac5e5;
    }
    #custom-floating-buttons a:nth-child(3) {
        background-color: #4fb19d;
    }
    /* ▲▲ ここまで追加 ▲▲ */

    #custom-floating-buttons a {
        writing-mode: initial;
        min-height: 0;
        border-radius: 0;
        padding: 8px 5px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #ffffff; /* 文字色を白に変更 */
        font-size: 11px;
        font-weight: bold;
        text-decoration: none;
        line-height: 1.2;
    }

    #custom-floating-buttons i {
        font-size: 24px;
        margin-bottom: 4px;
        color: #ffffff; /* アイコンの色を白に変更 */
    }

    #custom-floating-buttons.is-visible {
        visibility: visible;
        opacity: 1;
    }
}