@charset "utf-8";

@media screen and (max-width: 1200px) {
    /* common
    ------------------ */

    body {
        font-size: 12px;
    }

    .h2.english {
        font-size: clamp(1.5625rem, 2.5vw, 2.25rem);
        margin-bottom: clamp(21.5px, 3vw, 40px);
    }

    .h2_sub {
        font-size: 0.75rem;
    }

    .h2.mincho {
        font-size: clamp(1.375rem, 5vw, 1.75rem);
    }

    .header_adjustment {
        height: clamp(132px, 34.5vw, 200px);
    }

    /* header
    ------------------ */

    .header_wrap {
        height: clamp(62px, 16.5vw, 100px);
    }

    .title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .message_bar {
        height: clamp(30px, 8vw, 45px);
    }

    .sp_icon_bar {
        display: block;
        color: #ffffff;
        background-color: #dbc086;
    }

    .sp_icon {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 38px;
    }

    .sp_icon a {
        height: clamp(40px, 10vw, 55px);
        align-content: center;
        display: block;
        position: relative;
        margin-left: -0.5em;
        padding-left: 2em;
    }

    .sp_icon_item a::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%); /* 垂直方向に中央揃え */
        width: 1.7em; /* アイコンの幅 */
        height: 1.7em; /* アイコンの高さ */
        margin-left: -1.8em;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .sp_icon_item.category a::before {
        background-image: url("category-icon.svg");
        margin-top: 0.1em;
    }

    .sp_icon_item.gift a::before {
        background-image: url("gift-icon.svg");
    }

    .sp_icon_item.faq a::before {
        background-image: url("faq-icon.svg");
    }

    /* ハンバーガーメニュー */

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .toggle_menu_bg {
        position: fixed;
        left: 0;
        top: clamp(62px, 16.5vw, 100px);
        display: block;
        width: 100%;
        height: calc(100% - clamp(62px, 16.5vw, 100px));
        background: rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .menu-toggle.isOpen .toggle_menu_bg {
        opacity: 1;
        pointer-events: auto;
    }

    .toggle_menu_list {
        display: block;
    }

    .menu-toggle.isOpen .bar:nth-child(1),
    .menu-toggle.effect .bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, 8px); /* 線1 */
    }

    .menu-toggle.isOpen .bar:nth-child(2),
    .menu-toggle.effect .bar:nth-child(2) {
        opacity: 0; /* 線2 */
    }

    .menu-toggle.isOpen .bar:nth-child(3),
    .menu-toggle.effect .bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, -8px); /* 線3 */
    }

    .menu-toggle.isOpen .toggle_menu_list {
        left: 0%; /* ホバー時に表示 */
    }

    .toggle_sub_menu {
        display: flex;
        flex-direction: column;
        max-height: 0; /* 初期の高さを0に設定 */
        overflow: hidden; /* 内容がはみ出ないように隠す */
        transition: max-height 0.3s ease; /* 高さのトランジション */
        background-color: #f3f3f3;
    }

    .toggle_sub_menu.isOpen {
        max-height: 500px; /* 必要に応じて適切な最大高さを設定 */
    }

    .toggle_menu_list .signup.my-true {
        display: none;
    }

    .toggle_menu_list .login.my-true {
        display: none;
    }

    .toggle_menu_list .logout.my-false {
        display: none;
    }

    .header_menu {
        display: none;
    }

    .sp_icon_group {
        display: flex;
        gap: 1rem;
    }

    .icon {
        width: max-content;
        height: max-content;
    }

    .icon img {
        width: 24px;
        height: auto;
    }

    .search_bar {
        box-sizing: border-box;
    }

    .search_box {
        position: relative;
        width: 100%;
        max-width: 603px;
        height: 36px;
    }

    .search_trigger img {
        transition: opacity 0.3s ease; /* アニメーションの設定 */
    }

    .search_input {
        font-size: 0.75rem;
		height: 100%!important;/*追加*/
		padding: 0 0 0 3em !important;/*追加*/
		margin: 8px 0 0 0 !important;/*追加*/
    }

    /* footer
    ------------------ */

    .footer_wrap {
        gap: 30px;
    }

    .footer_menu_list {
        flex-wrap: wrap;
        border-top: 0.5px solid #ffffff;
        border-bottom: 0.5px solid #ffffff;
        font-size: 0.75rem;
    }

    .footer_menu_item {
        flex: unset;
        width: 50%;
        box-sizing: border-box;
        border-left: unset;
    }

    .footer_menu_item:nth-child(1),
    .footer_menu_item:nth-child(2) {
        border-bottom: 0.5px solid #ffffff;
    }

    .footer_menu_item:nth-child(even) {
        border-left: 0.5px solid #ffffff;
    }

    .footer_menu_item:last-child {
        border-right: unset;
    }

    .picto_icon::before {
        left: 0;
        margin-left: 1.5em;
    }

    .footer_bottom_menu_list {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
        font-size: 0.75rem;
    }

    .footer_bottom_menu_item div {
        margin: 0 auto;
        padding: 0 1.5em;
    }

    .arrow_icon::after {
        right: 0;
        margin-right: 1.5em;
    }

    .copyright {
        height: 41.25px;
    }

    .fixed_container {
        bottom: 80px;
    }

    .page_top_button {
        width: 40.42px;
        height: 40.42px;
        margin-right: 7.336px;
    }

    .fixed_faq div {
        width: 40.42px;
        height: 40.42px;
        margin-right: 7.336px;
    }

    .for_corporations_pc div {
        display: none;
    }

    .for_corporations_sp div {
        display: block;
        width: 58.69px;
        height: 40.42px;
        margin-right: 8.536px;
        padding-left: 28.72px;
        color: #ffffff;
        align-content: center;
        font-size: 0.6rem;
        font-weight: 700;
        background-color: rgba(219, 192, 134, 0.9);
        border-radius: 6px;
        box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
        position: relative;
    }

    .for_corporations_sp div::before {
        position: absolute;
        content: "";
        display: block;
        width: 14px;
        height: 14px;
        top: 50%;
        left: 0;
        transform: translateX(50%) translateY(-50%);
        background-image: url("office.svg");
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* list main
------------------ */

    .list_item_wrap .h2.mincho {
        font-size: clamp(1.25px, 5vw, 1.75rem);
        margin: clamp(20px, 5vw, 40px) 0;
    }

    .select_wrapper {
        width: 150px;
    }

    .list_wrap {
        max-width: 840px;
        width: 100vw;
        column-gap: 14px;
        row-gap: 26px;
    }

    .list_wrap .card.new::after {
        width: 45px;
        height: 45px;
    }

    /* .list_wrap::after {
        content: "";
        display: block;
        width: 164px;
    } */

    .list_item.card {
        min-width: 164px;
        max-width: 196px;
        width: calc(
            (100vw - 2 * clamp(1rem, 2.5vw, 40px) - 2 * clamp(1rem, 2vw, 20px)) /
                3
        );
    }

    .list_item.card img {
        min-width: 164px;
        max-width: 196px;
        width: calc(
            (100vw - 2 * clamp(1rem, 2.5vw, 40px) - 2 * clamp(1rem, 2vw, 20px)) /
                3
        );
    }

    .list_item .h3 {
        font-size: 0.8125rem;
    }

    .list_item.card p {
        font-size: 0.8125rem;
    }

    .list_item .cart_in_button {
        min-width: 164px;
        max-width: 196px;
        width: calc(
            (100vw - 2 * clamp(1rem, 2.5vw, 40px) - 2 * clamp(1rem, 2vw, 20px)) /
                3
        );
        height: 40px;
        padding-left: 1.2rem;
    }

    .list_item .cart_in_button::before {
        left: 0.6rem;
    }

    /* おすすめ商品エリア */

    .top_section {
        padding-bottom: 37px;
    }

    .recommendation_container {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 620px;
        margin: 0 auto;
        /*gap: 3.4%; */
    }

    .h3 {
        font-size: 0.8125rem;
    }

    .recommendation.card {
        max-width: 296px;
        width: 44.9vw;
    }

    .recommendation.card img {
        max-width: 296px;
        width: 44.9vw;
    }

    .recommendation.card p {
        margin-top: -1.5rem;
    }
}

@media screen and (max-width: 540px) {
    /* list
    ------------------ */

    .list_wrap {
        margin-left: clamp(-1rem, -2.5vw, -40px);
        column-gap: calc(12vw - clamp(2rem, 5vw, 80px));
    }

    .list_item.card {
        width: 44vw;
    }

    .list_item.card img {
        width: 44vw;
    }

    .list_item .cart_in_button {
        width: 44vw;
    }
}
