/* ========================= 共通設定 ========================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'M PLUS 1', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴシック', '游ゴシック', 'Yu Gothic', Meiryo, sans-serif;
    color: #000000;
    background-color: #ffffff;
    font-size: 16px;
}

a { 
    color: #000000; 
    text-decoration: none; 
}
a:hover, a:focus { 
    text-decoration: underline; 
}

/* ========================= レイアウト全体 ========================= */
.ec-layoutRole { width: 100%; margin: 0 auto; }
.ec-layoutRole__header, .ec-layoutRole__main { margin-bottom: 0; }

/* ========================= ヘッダー共通 ========================= */
.ec-headerFullWidth {
    width: 100%;
    box-sizing: border-box;
}
.ec-headerFullWidth .ec-headerLogo,
.ec-headerFullWidth .ec-headerMenu__link,
.ec-headerFullWidth .ec-headerUtility {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ec-headerMenu__link,
.ec-drawerMenu__link {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-headerLogo img,
.ec-headerMenu__linkItem a {
    margin: 0;
    line-height: 1;
}

/* ========================= PCヘッダー ========================= */
@media screen and (min-width: 1025px) {
    h1 { font-size: 30px; font-weight: 700; }
    h2 { font-size: 24px; font-weight: 500; }
    h3 { font-size: 18px; font-weight: 500; }
    p, li, span, a, div { font-size: 16px; font-weight: 400; }

    .pc_header {
        height: 145px;
        padding: 0 75px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .pc_header .ec-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .pc_header .ec-headerLogo img {
        width: 150px;
        height: auto;
        display: block;
    }

    .pc_header .ec-headerMenu__link {
        display: flex;
        align-items: center;
        gap: 25px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pc_header .ec-headerMenu__linkItem a {
        display: flex;
        align-items: center;
        line-height: 1;
        font-size: 14px;
    }

    .pc_header .ec-headerMenu__linkItem_cart {
        position: relative;
    }
    .pc_header .ec-headerMenu__linkItem_cartAmount {
        position: absolute;
        top: -6px;
        right: -10px;
        background-color: #f00;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        text-align: center;
        line-height: 18px;
    }

    /* PC表示ではモバイルヘッダーを非表示 */
    #header_mobile {
        display: none !important;
    }
}

/* ========================= タブレット/SP共通ヘッダー ========================= */
@media screen and (max-width: 1024px) {
    h1 { font-size: 25px; font-weight: 700; }
    h2 { font-size: 20px; font-weight: 500; }
    h3 { font-size: 16px; font-weight: 500; }
    p, li, span, a, div { font-size: 14px; font-weight: 400; }

    #header_pc {
        display: none !important;
    }

    #header_mobile {
        display: flex !important;
        height: 145px;
        padding: 0 75px; /* タブレットは左右75px */
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .mobile_header .ec-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .mobile_header .ec-headerLogo img {
        width: 150px;
        max-width: 150px;
        height: auto;
        display: block;
    }

    .mobile_header .ec-headerUtility {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .mobile_header .ec-headerUtility__cart {
        position: relative;
    }

    .mobile_header .ec-headerUtility__cartAmount {
        top: -2px;
        right: -10px;
        background-color: #f00;
        color: #fff;
        font-size: 10px;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        text-align: center;
        line-height: 16px;
    }

    .mobile_header .ec-headerUtility__menu a {
        font-size: 22px;
    }

    /* モバイルドロワー（タブレット用） */
    .mobile-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: auto;           /* 高さを自動に */
        max-height: 90vh;       /* 画面最大縦幅 */
        background: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
        overflow-y: auto;       /* 必要な場合だけスクロール */
    }

    .mobile-drawer.open {
        transform: translateX(0);
    }

    .mobile-drawer .ec-drawerRole__contents {
        padding: 30px;
        line-height: 2;
    }

    /* ドロワー内リンク幅いっぱい＆仕切り線 */
    .ec-drawerMenu__linkItem {
        border-bottom: 1px solid #ddd;
    }
    .ec-drawerMenu__linkItem:last-child {
        border-bottom: none;
    }
    .ec-drawerMenu__linkItem a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        text-decoration: none;
        color: #333;
    }

    .mobile-drawer__close {
        font-size: 22px;
        padding: 10px;
        cursor: pointer;
        background: none;
        border: none;
    }
}

/* ========================= SP専用調整 ========================= */
@media screen and (max-width: 767px) {
    h1 { font-size: 20px; font-weight: 700; }
    h2 { font-size: 18px; font-weight: 500; }
    h3 { font-size: 16px; font-weight: 500; }
    p, li, span, a, div { font-size: 14px; font-weight: 400; }

    #header_mobile {
        padding: 0 30px; /* SPは左右30px */
    }

    /* ドロワーは全画面 */
    .mobile-drawer {
        width: 100%;
        height: auto;           /* 高さを自動に */
        max-height: 90vh;       /* 最大高さ設定 */
    }
}



#page_plugin_coupon_shopping .ec-role {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    color: #525263;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 1130px;
}

#page_plugin_coupon_shopping .ec-registerRole {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    color: #525263;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 1130px;
}

.ec-inlineBtn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 1.42857142;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 10px 16px;
    text-decoration: none;
    color: #525263;
    background-color: #F5F7F8;
    border-color: #ccc;
}