@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.currency-converter-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.currency-converter-btn:hover {
    background-color: #333;
}

/* 仅在手机端（屏幕宽度 ≤ 768px）生效 */
@media only screen and (max-width: 768px) {
    /* ボタンの基本スタイル (通常状態) */
    .currency-converter-btn {
        background-color: #000;
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
        margin: 0 5px;
        display: inline-block; /* デフォルトを維持 */
    }

    .currency-converter-btn:hover {
        background-color: #333;
    }

    /* メニュー内のボタンスタイル (特別なスタイル) */
    .menu-item .currency-converter-btn.in-menu {
        display: block; /* 親要素いっぱいに広げる */
        width: 100%;
        height: 100%;
        background: transparent;
        color: inherit;
        box-shadow: none;
        padding: 0;
        margin: 0;
        font-weight: normal;
        border-radius: 0;
        text-align: inherit;
        line-height: normal;
    }

    .menu-item .currency-converter-btn.in-menu:hover {
        background: transparent;
        opacity: 0.8;
    }

    /* 親要素のサイズ調整 */
    .menu-item.menu-item-1060,
    .menu-item.menu-item-1060 > a {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    /* オプション: メニューリンクのデフォルトスタイルを解除 */
    .menu-item.menu-item-1060 > a {
        text-decoration: none;
        color: inherit;
    }
}

/* メニュー内のボタンスタイル */
.menu-item .currency-converter-btn {
    background: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-weight: 100%;
}

.menu-item .currency-converter-btn:hover {
    background: transparent;
    opacity: 0.8;
}
/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
    position: relative;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.modal-header h2 {
    width: 100%;
    text-align: center;
    margin: 0;
    padding-right: 20px;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: black;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    text-align: center;
}

/* 通貨選択オプションのスタイル */
.modal-option {
    padding: 12px;
    margin: 8px 0;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
    text-align: center;
}

.modal-option:hover {
    background-color: #e0e0e0;
}

/* 変換後の価格表示スタイル */
.converted-price {
    color: green;
    font-size: 20px;
}

/* スクロールバーのスタイル */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}