@charset "UTF-8";
body {
    margin: 0;
    height: auto;
    font-family: sans-serif;
    background-image: url('RikaShin_bg.svg');
    background-repeat: no-repeat;
    background-size:100vw auto;
}
.lead{
    width: 100%;
    text-align: center;
    margin-top: 23vw;
    font-size: 2vw;
    font-weight: 400;
}
.MV-box{
    display: grid;
}
.RikaShinec_main{
    text-align: center;
    margin: 2vw 0 0 0;
}
.RikaShinec_main img{
    width: 70vw;
    height: auto;
}
.item-box{
    display: grid;
    width: 65vw;
    margin: 3vw auto;
    padding-bottom: 3vw;
    background-color: #fff;
    filter: drop-shadow(0.4vw 0.4vw 0vw rgba(0,0,0,0.8));
    border: solid 0.5px black;
    transform: translateZ(0);
    align-content: center;
}
.new-svg{
    margin: -3vw 0 0 -5vw;
    grid-area: 1 / 1 / 1 / 1; 
}
.new-svg img{
    width: 10vw;
}
.banner-towel-svg{
    margin: 3vw auto 1vw auto;
    grid-area: 1 / 1 / 1 / 3;
    filter: drop-shadow(0.3vw 0.3vw 0.4vw rgba(0,0,0,0.45));
}
.banner-towel-svg img{
    width: 45vw;
}
.item-name{
    font-size: 2.3vw;
    font-weight: bold;
    margin: 1vw auto;
    text-align: center;
    grid-area: 2 / 1 / 2 / 3 
}
.item-name span{
    font-size: 3vw;
}
.item-exp01{
    font-size: 1.2vw;
    margin: 1vw auto;
    text-align: center;
    grid-area: 3 / 1 / 3 / 3 ;
}
br.invisible{
    display: none;
}
br.visible{
    display: block;
}
.sp-space{
    display: none;    /* スマホだけの空行（PCでは非表示） */
}
.item-exp02{
    font-size: 1vw;
    margin: 1vw auto 0 auto;
    text-align: center;
    grid-area: 4 / 1 / 4 / 3 ;
}
.item-price{
    font-size: 2vw;
    font-weight: bolder;
    color: red;
    text-align: center;
    margin: 1vw auto;
    padding-left: 4vw;
    grid-area: 6 / 1 / 6 / 3 
}
.item-price span{
    font-size: 1.5vw;
}
.item-cart01{
    display: grid;
    place-items: center center;
    text-align: center;
    grid-area: 7 / 1 / 7 / 3 
}
.item-cart01{
    font-size: 0.8vw;
}
.input-cnt input{
    font-size: 1.5vw;
}
.input-cnt{
    display: flex;
    font-size: 1vw;
    align-items: center;
    line-height: 4.5vw;
}
.cart-btn {
	width: 14vw;
    transition: 0.5s;
}
.cart-btn:hover {
	opacity: 0.5 ;
}
/*
.cart-btn-soldout {
	width: 21vw;
    transition: 0.5s;
}
.cart-btn-soldout:hover {
	opacity: 0.5 ;
}
.item-cart-soldouot{
    width: 20vw;
    padding-bottom: 1vw;
}
*/

.Message-box{
    display: grid;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 4vw auto;
    padding: 2vw 0;
    background-color: #ebd9ff;
}
.message-title-svg{
    display: grid;
    margin-left: 1vw;
    margin-bottom: -2vw;
    grid-area: 1 / 2 / 2 / 2 
}
.message-title-svg img{
    width: 27vw;
}
.message-text{
    font-size: 1.5vw;
    line-height: 2.5vw;
    margin: 3vw 2vw 2vw 2vw;
    text-align: left;
    grid-area: 2 / 2 / 2 / 2 
}
.message-text div{
    margin-top: 0.8vw;
    margin-right: -5vw;
    text-align: right;
}
.massage-sign{
    display: grid;
    place-items: center;
    margin-left: -18vw;
    margin-bottom: 10vw;
    grid-area: 1 / 3 / 3 / 3 
}
.massage-sign img{
    width: 32vw;    
}

.attention-box{
    width: 58vw;
    margin: 4vw auto;
    padding: 1vw;
    border: solid 0.5px black;
    text-align: left;
    position: relative;
    z-index: 3;
    font-size: 0.8vw;
}
.attention-box span{
    font-weight: bold;
    color: red;
}
.footer-box {
	display: grid;
    width: 100%;
    margin: 0;
    text-align: center;
	grid-template-rows: 5vw;
	grid-template-columns: repeat(11, auto);
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    z-index: 2;
    position: relative;
}
.link {
	text-align: center;
	font-size: 0.8vw;
	color: black;
}
.link a:link, .link a:visited, .link a:hover, .link a:active {
	color: black;
	text-decoration: none;
}


/*モーダル*/
body.open_popup {
    overflow: hidden;
}
.bg_onetime_popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(178, 178, 178, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}
body.open_popup .bg_onetime_popup {
    opacity: 1;
    visibility: visible;
}
.onetime_popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 50vw;
    box-sizing: border-box;
    aspect-ratio: 1101 / 901;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 3vw;
    padding: 3vw 1vw 3vw 3vw;
}
.onetime_popup::before,
.onetime_popup::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5vw;
    background-image: url('RikaShin_line.svg');
    background-repeat: repeat-x;
    background-size: auto 100%;
}
.onetime_popup::before {
    top: 0;       /* 上のライン */
}
.onetime_popup::after {
    bottom: 0;    /* 下のライン */
}
.onetime_popup_title {
    margin: -3vw 0 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
}
.onetime_popup_title img {
    width: 20vw;
}
.onetime_popup_title_close {
    position: absolute;
    bottom: 2vw;
    left: 0.6vw;
    width: 1.2vw;
    height: 1.2vw;
    cursor: pointer;
    z-index: 2;
}
.onetime_popup_title_close::before,
.onetime_popup_title_close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: #000;
    content: "";
}
.onetime_popup_title_close::before {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.onetime_popup_title_close::after {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
.onetime_popup_content {
    font-size: 1.1vw;
    color: #000;
}
.onetime_popup_content div {
    text-align: right;
}

@media screen and (max-width: 559px) {
    body {
        background-image: url('RikaShin_smpbg.svg');  /* スマホ用の背景 */
        background-size: 100vw auto;
        background-position: center top;
    }
    .lead {
        margin-top: 29vw;            /* 背景ロゴとの間隔 */
        font-size: 4.2vw;
        line-height: 1.6;
    }
    .RikaShinec_main {
        margin: 5vw 0 5vw 0;         /* 上：リード文との間隔 */
    }
    .RikaShinec_main img {
        width: 90vw;                 /* 商品ボックスと同じ幅 */
    }

    /* 商品 */
    .item-box {
        width: 80vw;
        margin: 2vw auto;
    }
    .new-svg {
        margin: -5vw 0 0 -7vw;       /* 上・左にずらす量（マイナスを大きくするほど外へ） */
    }
    .new-svg img {
        width: 15vw;
    }
    .banner-towel-svg {
        margin: 3vw auto 0 auto;
    }
    .banner-towel-svg img {
        width: 55vw;
    }
    .item-name {
        font-size: 4vw;
        margin: 2vw auto;
        line-height: 1.5;
    }
    .item-name span {
        font-size: 5vw;              /* 選手名を少し大きく */
    }
    .item-exp01 {
        font-size: 3.5vw;
        margin: 2vw auto;
    }
    br.invisible {
        display: block;
    }
    br.visible {
        display: none;
    }
    .sp-space {
        display: block;
        height: 1.2em;               /* 空行の高さ */
    }
    .item-exp02 {
        font-size: 2.5vw;
        margin: 1vw auto;
    }
    .item-price {
        font-size: 4vw;
        margin: 2vw auto;
    }
    .item-cart01 {
        margin: 1.5vw 0;
        font-size: 2vw;
    }
    .input-cnt input[type="text"] {
        font-size: 16px;             /* 16px未満だとiPhoneで入力時に画面が拡大される */
        width: 8vw;
    }
    .input-cnt {
        font-size: 3vw;              /* 「枚」の文字 */
        line-height: 8vw;
    }
    .cart-btn {
        width: 25vw;
    }
    /*
    .cart-btn-soldout {
        width: 40vw;
    }
    .item-cart-soldouot {
        width: 40vw;
    }
    */

    /* メッセージ（上段：ロゴ・サインの横並び／下段：本文） */
    .Message-box {
        grid-template-columns: auto auto;
        justify-content: center;     /* ロゴ＋サインのまとまりを中央に */
        column-gap: 1vw;             /* ロゴとサインの間隔 */
        align-items: center;
        margin: 8vw auto;            /* 上下のボックスとの間隔 */
        padding: 4vw 0;              /* メッセージ欄の内側の上下余白 */
    }
    .message-title-svg {
        margin: 0 0 0 5vw;           /* 左の余白：大きくするとロゴが中央寄りに */
        grid-area: 1 / 1;            /* 上段・左 */
    }
    .message-title-svg img {
        width: 52vw;
    }
    .massage-sign {
        margin: 0;
        grid-area: 1 / 2;            /* 上段・右 */
        position: relative;
        top: 3vw;                    /* 下げる量（大きいほど下）。本文は押し下げない */
        left: 3vw;                   /* 右へずらす量（大きいほど右） */
    }
    .massage-sign img {
        width: 32vw;
    }
    .message-text {
        font-size: 3.2vw;
        line-height: 1.8;
        margin: 4vw 6vw 0 6vw;
        grid-area: 2 / 1 / 3 / 3;    /* 下段・2列ぶん */
        text-align: center;          /* 本文を中央揃え */
        position: relative;
        z-index: 1;                  /* サインと重なったとき、本文を前に */
    }
    .message-text div {
        margin-top: 3vw;
        text-align: center;
    }

    /* 注意事項・フッター */
    .attention-box {
        width: 92vw;
        box-sizing: border-box;
        padding: 2vw;
        font-size: 2.4vw;
        line-height: 1.7;
    }
    .attention-box ul {
        padding-left: 4vw;
        margin-bottom: 0;
    }
    .footer-box {
        display: flex;               /* 1行に収まらないので折り返す */
        flex-wrap: wrap;
        padding: 2vw 3vw;
        box-sizing: border-box;
    }
    .link {
        font-size: 2.8vw;
    }
    .link p {
        margin: 1vw 0;
    }

    /*モーダル（縦並び）*/
    .onetime_popup {
        width: 90vw;
        aspect-ratio: auto;          /* 高さは中身に合わせる */
        flex-direction: column;      /* 縦に並べる */
        gap: 4vw;
        padding: 7vw 6vw 10vw 6vw;
    }
    .onetime_popup::before,
    .onetime_popup::after {
        height: 3vw;                 /* ライン画像の高さ */
    }
    .onetime_popup_title {
        margin: 0;
        gap: 2vw;
    }
    .onetime_popup_title .popup_logo {
        width: 32vw;
    }
    .onetime_popup_title .popup_photo {
        width: 38vw;
    }
    .onetime_popup_title_close {
        bottom: 4vw;                 /* ライン(3vw)より上 */
        left: 2vw;
        width: 5vw;
        height: 5vw;
    }
    .onetime_popup_content {
        font-size: 3.1vw;
        line-height: 1.5;
    }
}