@charset "UTF-8";

/* Languageメニュー 　START*/

/* モーダルの背景 */
.modal {
    display: none; /* デフォルトでは非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%; /* 全幅 */
    height: 100%; /* 全高さ */
    overflow: auto; /* スクロール可能 */
    background-color: rgba(0, 0, 0, 0.6);
}

.close_button {
    cursor: pointer;
}

/* モーダルコンテンツ */
.modal-container {
    width: 900px;          /* モーダルの幅を固定 */
    margin: 0 auto;        /* 横中央寄せ */
    position: relative;    /* 必要ならrelative */
    top: 40px;             /* 上からの距離（調整可） */
}

.modal-content {
    max-width: 100%;
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    color: #000000;
    background-color: #fff;
    box-shadow: 0 1px 15px rgba(13, 13, 13, 0.4);
    align-items: center;
}

ul.choose-language {
    float: none !important;
    display: flex;
    /* gap: 12px 5px; */
    margin-top: 12px !important;
    margin-bottom: 10px !important;
    justify-content: center;
}

ul.choose-language.lang_link_button {
    gap: 12px 0px;
}

ul.choose-language.lang_link_button li {
    flex: 0 0 16%;
}

ul.choose-language.lang_link_button li a {
    min-width: 80px;
}

.multilingual-portal{
    text-align: left;
}

.multilingual-portal ul li a {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-decoration: none;
    padding: 10px 5px 5px 5px;
    margin-right: 10px;
}

.multilingual-portal ul li a:hover {
    color: #fff;
    border-bottom: none;
}

.multilingual-portal {
    padding: 20px 0;
    border-bottom: 1px solid #000000;
    padding-bottom: 15px;
}

.multilingual-portal li {
    padding: 0 12px;
}

.machine-translation {
    text-align: left;
    padding: 20px 0;
}

/* Languageメニューリンクボタン 　START */
.lang_link_button a {
    display: inline-block;
    padding: 10px 10px;
    text-decoration: none;
    border: 1.5px solid #000000;
    color: #000000 !important;
    border-radius: 7px;
    width: 70%;
}

.lang_link_button a:hover {
    background-color: #1d1e1e !important;
    color: #fff !important;
    border-bottom: none;
}

.multilingual-portal a:hover {
    color: #fff !important;
    border-bottom: none;
}

.lang_link_button {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.lang_link_close {
    text-align: center;
}

a.lang_link_button {
    border: 1.5px solid #000000;
    color: #000000 !important;
    border-radius: 5px;
}

.lang_link_button a:hover {
    background-color: #000;
    color: #fff;
}

a .lang_link_close {
    font-size: 1.2em;
}

ul .lang_link_close > .choose-language {
    font-size: 0.8em;
    font-weight: normal;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    padding: 0 90px;
}

/* スマホ用調整 　START */
@media screen and (max-width: 640px) {
    .lang_link_close {
        font-size: 1.1em !important;
    }
    .lang_link_close > .choose-language {
        font-size: 0.8em;
        font-weight: normal;
        margin-bottom: 0 !important;
        margin-top: 5px !important;
    }
    .lang_link_button a {
        width: 90%;
    }
}
/* Languageメニューリンクボタン 　END*/

/* 閉じるボタン 　START */
.close_button {
    padding: 10px 15px;
    text-decoration: none;
    border: transparent;
    color: #fff;
    background-color: #1d1e1e;
    border-radius: 5px;
    font-size: 1.3em;
    font-weight: bold;
    border: 1.5px solid #000000;
}

.close_button:hover {
    color: #fff;
    background-color: #757575;
    border: 1.5px solid #757575;
}

.lang_headline {
    text-align: center;
    margin: 10px 0;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;    /* 下線の太さ */
    text-underline-offset: 10px;       /* 下線の位置（テキストからの距離） */
}

.lang_headline_sub {
    margin: 5px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.lang_p {
    margin: 0 25px;
}

.lang_close {
    text-align: center;
    margin: 10px 0;
}
/* 閉じるボタン 　END */

/* スマホ用調整 　START */
@media screen and (max-width: 640px) {
    .header .head-logo-sec {
        z-index: 40001 !important;
    }
    .link-foreign-sp {
        position: fixed;
        top: 15px;
        right: 20%;
        z-index: 100000;
    }
    .modal-container {
        width: 90vw;       /* 画面幅の90%に変更 */
        min-width: unset;  /* 固定幅リセット（もしあれば） */
        margin: 0 auto;
        left: 0;           /* 画面中央表示を維持 */
        right: 0;
        top: 20px;         /* 上からの距離も調整可 */
        padding: 0 10px;   /* 両端に余白 */
    }
    .modal-content {
        padding: 15px;
        font-size: 1em;    /* テキストサイズの微調整など */
    }
    .lang_headline {
        margin: 0 0 5px;
    }
    .multilingual-portal {
        padding: 5px 0px 10px;
    }
    .machine-translation {
        padding: 5px 0;
    }
    ul.choose-language {
        margin-bottom: 15px !important;
        gap: 0px;
        flex-wrap: wrap;
        list-style: none;
    }
    .lang_link_button a {
        padding: 5px 10px;
    }
    .lang_headline {
        text-decoration: none;
        border-bottom: 2px solid #fff;
        padding-bottom: 5px;
    }
    .lang_headline_sub {
        font-size: 1.15em;
    }
    .lang_p {
        margin: 0 10px;
    }
    .multilingual-portal li {
        padding: 0 2px;
    }
    ul.choose-language li {
        flex: 0 0 25%;
        min-width: 95px;
    }
    ul.choose-language.lang_link_button li {
        flex: 0 0 30%;
    }
    @media screen and (min-width: 390px) {
        ul.choose-language.lang_link_button li {
            flex: 0 0 34%;
        }
    }
    ul.choose-language.lang_link_button li a {
        min-width: 78px;
        padding: 5px;
    }
    ul.choose-language.lang_link_button {
        gap: 10px;
        margin: 0;
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 641px) {
    .modal-content {
        padding: 20px 40px;
    }
    ul.choose-language {
        font-size: 1.15em;
    }
    ul.choose-language.lang_link_button {
        font-size: 1em;
    }
    .link-foreign-sp {
        display: none;
    }
    .lang_link_close .choose-language {
        display: flex;
        width: 420px; /* リストの幅。お好みで調整してください */
        padding: 0;
        flex-wrap: wrap;
    }
    .lang_link_close .choose-language li {
        flex: 0 0 30%; /* 各アイテムが3分の1幅になる */
        list-style: none;
        box-sizing: border-box;
        text-align: center;  /* 中央寄せ（お好みで） */
    }
}
/* スマホ用サイズ調整 　END */

/* Languageメニュー 　END */

