/* フッター */
hr.gradient {
    height: 4px;
    border: none;
    background: linear-gradient(to right, #EF8585, #FFD39A, #99E1C4);
    margin: 0;
}

.site-footer {
    font-size: 1rem;
    background-color: #fbfaf7;
    line-height: 1.5;
}

.site-footer.lower {
    font-size: 1.6rem;
}

.site-footer.lower a {
    color: #333;
}

.site-footer img {
    max-width: 100%;
    height: auto;
}

.shiroWaku {
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shiroWaku p {
    margin-bottom: 4px;
}

.site-footer.lower .shiroWaku p {
    margin-top: 0px;
}

.footerLogo {
    display: flex;
    width: 400px;
    align-items: center;
    column-gap: 40px;
    margin-bottom: 24px;
}

.footerLogo img {
    flex: 0 1 auto;
}

ul.footerLinks01 {
    display: flex;
    row-gap: 15px;
    list-style: none;
    padding: 0;
    flex-direction: column;
    margin: 0;
    justify-content: center;
}

ul.footerLinks01 li {
    margin: 0px;
}

ul.footerLinks02 {
    display: flex;
    column-gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 24px;
}

ul.footerLinks02 li {
    margin: 0px;
}

ul.footerLinks02 li a {
    text-decoration: underline;
}

ul.footerLinks02 li a:hover {
    text-decoration: none;
}

.haikei01 {
    background-image: url(/img/top/footer-map.png);
    background-repeat: no-repeat;
    background-position: calc(50% - 450px) bottom;
    background-size: 400px;
}

.haikei01 .twoColumns {
    display: flex;
    justify-content: center;
}

.twoColumns.container1100::before {
    content: "";
    display: block;
    width: 125px;
}

.haikei02 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FEDF8F;
}

.haikei02 p {
    margin: 0;
    padding: 0.5rem 0;
}

ul.footerLinks01 a {
    display: block;
    position: relative;
    padding: 10px;
    padding-right: 45px;
    background-color: #FFF;
    border-radius: 500px;
    text-decoration: none;
    border: solid 1px #E95467;
    transition: all 0.2s ease-in-out;
    padding-left: 25px;
}

/* 丸（::before）のスタイル */
ul.footerLinks01 a::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: #E95467;
    /* アニメーションを滑らかにするためのtransitionプロパティを追加 */
    transition: right 0.2s ease-in-out;
}

/* くの字（::after）のスタイル */
ul.footerLinks01 a::after {
    content: '';
    position: absolute;
    right: 19px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
    transform: translateY(-50%) rotate(45deg);
    box-sizing: border-box;
    /* アニメーションを滑らかにするためのtransitionプロパティを追加 */
    transition: right 0.2s ease-in-out;
}

/* ホバー時に丸を右に5pxずらす */
ul.footerLinks01 a:hover::before {
    right: 5px;
    /* 10px - 5px = 5px */
}

/* ホバー時にくの字を右に5pxずらす */
ul.footerLinks01 a:hover::after {
    right: 14px;
    /* 19px - 5px = 14px */
}


/* ページトップに戻るボタン */
#toTopBtn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    border: none;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    z-index: 100;
}

/* ボタンを表示するクラス */
#toTopBtn.is-visible {
    opacity: 1;
    visibility: visible;
}

/* アイコンのサイズ */
#toTopBtn img {
    width: 80px;
}


@media (max-width: 768px) {
    .haikei01 {
        padding-bottom: 160px;
        background-position: center bottom -17px;
        background-size: 300px;
    }

    .footerLogo {
        flex-direction: column;
        width: 200px;
        row-gap: 20px;
    }

    .shiroWaku {
        padding: 20px 12px;
    }

    .twoColumns.container1100::before {
        display: none;
    }

    .haikei01 .twoColumns {
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.footerLinks01 {
        width: calc(100% - 24px);
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 15px;
        margin-top: 15px;
    }

    ul.footerLinks02 {
        flex-wrap: wrap;
        row-gap: 15px;
    }

    #toTopBtn img {
        width: 40px;
    }

    .shiroWaku p {
        margin-bottom: 14px;
        padding: 0 40px 0 0;
    }
}

/* ==========================================================================
   【共通】ヘッダー補助メニュー (文字サイズ・背景色・言語・音声読み上げ)
   ※ style-header.css と style-header-lower.css の共通部分をここに集約
   ========================================================================== */

/* --- コンテナ全体のレイアウト --- */
.supportNav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0px 10px 10px;
    font-size: 1.3rem;
    justify-content: flex-end;
    /* PCは右寄せ */
    opacity: 0;
    /* style-megamenu.cssのJS制御用（ちらつき防止） */
}

#topIndex .supportNav {
    padding: 6px;
}

#topIndex .main-nav.active .supportNav {
    padding: 0px;
}

.supportNav.is-ready {
    opacity: 1;
}

.supportNav a {
    color: #333;
}

/* dl要素（文字サイズ・背景色エリア） */
.supportNav dl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.supportNav dt {
    font-weight: 500;
    color: #4a5568;
    margin: 0;
}

.supportNav dd {
    margin: 0;
}

/* --- ボタン風リンクの共通スタイル --- */
.supportNav .onsei a,
.supportNav #haikeiColor a,
.supportNav #mojiSize a {
    display: inline-block;
    padding: 4px 8px;
    font-weight: 500;
    background-color: #EBE9DE;
    border: 1px solid #e2e8f0;
    border-radius: 500px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    line-height: 1.5;
}

/* 各ボタンの配色 */
.supportNav a#haikei_white,
.supportNav a#moji_default {
    background-color: #FFF;
    border: solid 1px #333;
}

.supportNav a#moji_large {
    background-color: #C84C54;
    color: #FFF;
}

.supportNav a#haikei_black {
    background-color: #000;
    color: #FFF;
}

.supportNav a#haikei_blue {
    background-color: #0000FF;
    color: #FFFF00;
}

/* ホバー・アクティブ時の挙動 */
.supportNav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.supportNav a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- テキストリンクメニュー (#supportNavMenu) --- */
#supportNavMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    column-gap: 10px;
}

#supportNavMenu li {
    position: relative;
    padding: 0px 0px 0px 15px;
    margin: 0;
    display: flex;
    align-items: center;
}

/* ひし形のアイコン */
#supportNavMenu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid #414141;
    border-right: 2px solid #414141;
    transform: translateY(-50%) rotate(45deg);
}

#supportNavMenu li a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 500;
    color: #0D59B7;
}

#supportNavMenu li a:hover {
    box-shadow: none;
    /* テキストリンクは影なし */
}

/* 言語選択など、ひし形アイコンが不要な場合用 */
#supportNavMenu li.no-icon::before,
#supportNavMenu li.language-dropdown::before {
    display: none;
}

#supportNavMenu li.language-dropdown {
    padding-left: 5px;
    /* アイコン分の余白を調整 */
}


/* --- 言語選択プルダウン (Language Dropdown) --- */
.lang-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.3rem;
    /* 下層CSSに合わせて調整 */
    font-weight: 500;
    color: #0D59B7;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

#topIndex .lang-toggle {
    font-size: 0.813rem;
}

.lang-toggle:hover {
    background-color: transparent;
}

.lang-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #0D59B7;
    transition: transform 0.2s;
}

.language-dropdown.is-active .lang-toggle::after {
    transform: rotate(180deg);
}

/* プルダウンメニュー本体 */
.lang-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    min-width: 120px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0 !important;
    list-style: none;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    z-index: 100;
    border: 1px solid #eee;
}

/* 親ulのflex設定リセット */
#supportNavMenu .lang-menu {
    display: block;
    column-gap: 0;
}

#supportNavMenu .lang-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

#supportNavMenu .lang-menu li::before {
    display: none;
}

#supportNavMenu .lang-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-align: left;
}

#topIndex #supportNavMenu .lang-menu a {
    font-size: 0.875rem;
}

#supportNavMenu .lang-menu a:hover {
    background-color: #f0f0f0;
    color: #0D59B7;
}

/* 表示制御 */
.language-dropdown:hover .lang-menu,
.language-dropdown.is-active .lang-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* --- 音声読み上げ (Read Aloud) --- */
.onsei {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.onsei a {
    font-size: 1.3rem;
    margin-left: 14px;
}

#topIndex .onsei a {
    font-size: 0.875rem;
}

.read-aloud-container {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    max-width: 90%;
    background-color: #fff;
    border: 2px solid #30818a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.read-aloud-container.is-active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.read-aloud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f4f9;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    border-radius: 6px 6px 0 0;
}

.read-aloud-title {
    font-weight: bold;
    color: #333;
    font-size: 1.4rem;
}

#topIndex .read-aloud-title {
    font-size: 0.875rem;
}

.read-aloud-close {
    background: none;
    border: none;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0 5px;
}

#topIndex .read-aloud-close {
    font-size: 1.5rem;
}

.read-aloud-close:hover {
    color: #FFF;
    background-color: #333;
    border-radius: 3px;
}

.read-aloud-body {
    padding: 10px;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 40vh;
    width: 100%;
    box-sizing: border-box;
}

.otowidget {
    height: 38px;
}

#otocreator-widget {
    padding: 0 !important;
}

#otocreator-widget-player {
    max-width: 100% !important;
    width: auto !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* アニメーション定義 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- レスポンシブ対応 (モバイル: 992px以下) --- */
@media (max-width: 992px) {

    /* コンテナ: 中央寄せで統一 */
    .supportNav {
        justify-content: flex-start;
        margin-top: 10px !important;
        box-sizing: border-box;
        gap: 14px 0px;
        line-height: 1.4;
        padding: 0;
    }

    .tpl_top.tpl_top_emer .supportNav {
        padding: 0 22px 18px;
    }

    /* メニューリスト: 折り返し許可・中央寄せ */
    #supportNavMenu ul {
        flex-wrap: wrap;
        row-gap: 14px;
        justify-content: flex-start;
    }

    /* 音声読み上げボタンの順番調整 */
    .onsei {
        order: 2;
    }

    /* 音声読み上げコンテナ（下部固定） */
    .read-aloud-container {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        border: none;
        border-top: 2px solid #30818a;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
        z-index: 10001;
    }

    .read-aloud-container.is-active {
        animation: slideUp 0.3s ease-out;
        height: 130px;
        border-radius: 0px;
    }

    .read-aloud-header {
        border-radius: 0px;
    }

    .read-aloud-body {
        padding: 10px 5px;
    }
}


/* 追加2026年1月9日 */
/* タブレット縦表示（1024px以下）向けの調整 */
@media (max-width: 1024px) {

    /* 1. 親コンテナを縦並びに変更（上がロゴ/住所、下がリンクボタン） */
    .haikei01 .twoColumns {
        flex-direction: column;
        align-items: center;
    }

    /* 2. PC版で設定されている左側の余白（::before）を消して中央に寄せる */
    .twoColumns.container1100::before {
        display: none;
    }

    /* 3. shiroWaku（ロゴ側）の余白調整 */
    .shiroWaku {
        padding-bottom: 20px;
    }

    /* 4. リンクボタンを横一列に並べる */
    ul.footerLinks01 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        max-width: 545px;
        column-gap: 15px;
        margin: 0 auto 30px;
    }

    /* 5. 各リスト項目の幅を均等にする */
    ul.footerLinks01 li {
        flex: 1;
        margin: 0;
    }

    /* 6. ボタン内のテキストがはみ出さないよう微調整 */
    ul.footerLinks01 a {
        padding-left: 15px;
        padding-right: 40px;
        font-size: 1.4rem;
        text-align: center;
        white-space: nowrap;
    }

    #topIndex ul.footerLinks01 li a {
        font-size: 0.875rem;
    }

}

@media (max-width: 768px) {
    ul.footerLinks01 {
        flex-wrap: wrap;
        /* スマホでは画面幅が足りないので折り返しを許可 */
    }

    ul.footerLinks01 li {
        flex: 0 1 calc(50% - 15px);
        /* スマホでは2列、または1列にする調整 */
    }
}