@charset "utf-8";
@media screen and (max-width: 500px){
    body{
        padding-bottom: 172px;
    }
    /* ヘッダーCSS */
    #top{
        position: relative;
        background-image: url(../images/topimg.png);
        background-repeat: no-repeat;
        background-size: 100%;
        min-height: 400px;
    }
    #top::before {
        content: "";
        display: block;
        padding-top: 175%; /* 9 / 16 * 100 */
    }
    #headlogo{
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 320px;
    }
    /* モニター募集バナー */
    #moniterBanner img{
        width: 100%;
    }
    /* 無料体験訴求 */
    .free{
        width: 100%;
        background-color: #eff8fd;
        padding-bottom: 30px;
    }
    .free img{
        margin: 0 auto ;
    }
    .freeHead{
        width: 100%;
    }
    .free div{
        margin: 10px auto;
        text-align: center;
        gap: 20px;
    }
    .free .freetext{
        font-size: 1.4em;
        font-weight: bold;
        letter-spacing: .18em;
    }
    .free .freetext span{
        color: #c3438f;
        font-size: 1.5em;
        position: relative;
        display: inline-block;
    }
    .free .freetext span::before{
        content: "・・";
        position: absolute;
        top: -0.8em;
        left: 50%;
        transform: translateX(-57%);
        color: #c3438f;
        font-size: 1.3em;
        letter-spacing: -0.16em;
    }
    .freeprice-wrap{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }
    .regular-price, .free-price{
        margin: 0;
    }
    .regular-price{
        text-decoration: line-through 1px #333333;
    }
    .freeprice-wrap{
        margin: 0;
    }
    .freeprice-wrap img{
        margin: 0;
        padding: 0;
    }
    .free-price{
        font-size: 2em;
        font-weight: bold;
        color: #c3438f;
        position: relative;
        display: inline-block;
        z-index: 1;
    }
    .free-price span{
        font-size: 1.6em;
        margin-left: 5px;
    }
    .free-price::after {
        content: "";
        position: absolute;
        left: 0;
        top: 54px;
        bottom: 0.1em; /* アンダーラインの高さ（上げるほど小さく） */
        width: 100%;
        height: 0.4em; /* アンダーラインの太さ */
        background-color: #d7dd24;
        opacity: .4;
        z-index: 0; /* テキストの背面に表示 */
        border-radius: 2px; /* 少し丸めると自然 */
    }
    /* 悩み */
    #worries{
        width: 100%;
        background-color: #e3eef4;
        padding: 30px 0 0;
        position: relative;
    }
    #worries h2{
        text-align: center;
        font-size: 1.2em;
        letter-spacing: 0.35em;
        color: #333333;
    }
    #worries h2 span{
        font-size: 1.5em;
        position: relative;
    }
    #worries h2 span::before{
        content: "・・・";
        position: absolute;
        top: -0.8em;
        left: 50%;
        transform: translateX(-57%);
        color: #333;
        font-size: 1.3em;
        letter-spacing: -0.1em;
    }
    #worries h2 span::after{
        content: "";
        position: absolute;
        left: 0;
        top: 27px;
        bottom: 0.1em; /* アンダーラインの高さ（上げるほど小さく） */
        width: 100%;
        height: 0.5em; /* アンダーラインの太さ */
        background-color: #d7dd24;
        opacity: .4;
        z-index: 0; /* テキストの背面に表示 */
        border-radius: 2px; /* 少し丸めると自然 */
    }
    #worries-wrap{
        background-color: #ffffff;
        border-radius: 20px;
        margin: 20px;
        height: 300px;
        position: relative;
    }
    #worries-wrap p{
        font-size: 1.1em;
        letter-spacing: 0.15em;
    }
    #worries01{
        position: absolute;
        left: 30px;
        top: 23px;
    }
    #worries02{
        position: absolute;
        right: 30px;
        top: 64px;
    }
    #worries03{
        position: absolute;
        left: 30px;
        top: 100px;
    }
    #worries04{
        position: absolute;
        right: 30px;
        top: 138px;
    }
    #worries05{
        position: absolute;
        left: 30px;
        top: 208px;
    }
    #worries-pic{
        position: absolute;
        right: 30px;
        top: 323px;
    }
    /* 強みポイント */
    #strongpoint{
        margin-bottom: 6px;
    }
    #strongpoint h2{
        background-image: url(../images/stronghead.png);
        background-repeat: no-repeat;
        background-position: center;
        height: 215px;
        text-align: center;
        color: #ffffff;
        font-size:0.93em;
        font-weight: lighter;
        letter-spacing: .15em;
        padding-top: 115px;
        line-height: 1.7;
    }
    #strongpoint h2 span{
        font-size: 1.5em;
        font-weight: bold;
        letter-spacing: .2em;
        position: relative;
    }
    #strongpoint h2 span::before{
        content: "・・";
        position: absolute;
        top: -0.85em;
        left: 50%;
        transform: translateX(-57%);
        color: #fff;
        font-size: 1.3em;
        letter-spacing: -0.1em;
    }
    .strong-back{
        background-repeat: no-repeat;
        background-position: center;
        height: 195px;
    }
    #strong01{
        background-image: url(../images/point01.png);
    }
    .strong-text h3{
        font-size: .9em;
        letter-spacing: .15em;
        text-align: center;
        padding-top: 35px;
        padding-left: 35px;
    }
    .strong-text p{
        font-size: .7em;
        width: 85%;
        margin-top: 22px;
        margin-left: calc(50% - 166px);
        padding: 10px 20px;
        max-width: 350px;
        margin-right: 32px;
    }
    #strong02{
        background-image: url(../images/point02.png);
    }
    #strong03{
        background-image: url(../images/point03.png);
    }
    #strong04{
        background-image: url(../images/point04.png);
    }
    #strong05{
        background-image: url(../images/point05.png);
    }
    /* 料金 */
    #price{
        margin-bottom: 20px;
    }
    #price h2{
        background-image: url(../images/pricehead.jpg);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 115px;
        text-align: center;
        color: #171c3f;
        font-size: 1.7em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    .price-back{
        background-image: url(../images/priceback.png);
        background-repeat: no-repeat;
        /* background-size: 95%; */
        background-position: center;
        height: 220px;
    }
    .price-head h3{
        color: #fff;
        font-size: 1.2em;
        letter-spacing: .2em;
        text-align: center;
        padding-top: 17px;
    }
    .price-head h3 span{
        font-size: .7em;
        letter-spacing: .2em;
    }
    .course-wrap{
        display: flex;
        /* gap: 2rem; */
        align-items: center;
        margin-top: 17px;
        max-width: 334px;
        margin-left: calc(50% - 166px);
    }
    .course-price {
        display: flex;
        flex-direction: column; /* course01, 02 を縦並び */
        padding-right: 10px;
    }
    .course01, .course02 {
        margin-bottom: 10px;

    }
    .course{
        font-size: .8em;
    }
    .price{
        font-size: 1.1em;
        font-weight: bold;
    }
    .course-explain {
        padding-left: 15px;
        font-size: .71em;
        flex: 1; /* 残りスペースを使って可変 */
        border-left: 1px solid #ccc; /* ← これが縦線 */
    }
    .price-pre{
        font-size: .75em;
        text-decoration: line-through;
        line-height: 0.6em;
    }
#yomogi-wrap{
        background-image: url(../images/yomogibackimg.png);
        background-repeat: no-repeat;
        background-size: 95% 95%;
        background-position-x: center;
        height: 1010px;
        text-align: center;
        color: #265a31;
        letter-spacing: .2em;
        padding-top: 30px;
        font-family: "ロゴタイプゴシック";
        margin: 10px 0;
    }
    #yomogi-wrap h3{
        font-size: 2.2em;
        position: relative;
        z-index: 1;
    }
    #yomogi-wrap h3::after,
    #yomogi-wrap h3::before{
        content: "";
        position: absolute;
        transform: translateY(-50%);
        width: 100px;
        height: 50px;
        z-index: -1;
    }
    #yomogi-wrap h3::before{
        background-image: url(../images/yomogi01.png);
        background-size: contain;
        background-repeat: no-repeat;
        left: 25px;
        top: 78%;
    }
    #yomogi-wrap h3::after{
        background-image: url(../images/yomogi02.png);
        background-size: contain;
        background-repeat: no-repeat;
        right: -32px;
        top: 28%;
    }
    #yomogi-wrap .yomogi-about{
        font-size: 0.75em;
        margin-top: 25px;
    }
    .yomogi-explain h4{
        margin-top: 25px;
        text-decoration: underline 2px #265a31;
    }
    .yomogi-explain p{
        font-size: 0.75em;
        margin-top: 10px;
        position: relative;
        z-index: 2;
    }
    .yomogi-explain span{
        font-size: 1.5em;
        font-weight: bold;
    }
    #yomogi-img{
        position: relative;
        z-index: 1;
    }
    #yomogi-img::before{
        content: "";
        position: absolute;
        z-index: -1; /* 背景に回す */
        top: -155%; /* 必要に応じて位置調整 */
        left: 64%;
        width: 142px;
        height: 210px;
        background-image: url(../images/yomogi03.png);
        background-repeat: no-repeat;
        background-size: contain;
        opacity: .8;
    }
    /* トレーナー紹介 */
    #about h2{
        background-image: url(../images/aboutback.png);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 110px;
        text-align: center;
        color: #171c3f;
        font-size: 1.5em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    #about h3{
        font-size: 1.4em;
        font-weight: bold;
        margin: 40px 0 0 20px;
        letter-spacing: .2em;
    }
    #about p{
        font-size: .85em;
        margin: 5px 0 0 30px;
    }
    #name{
        position: relative;
    }
    #name p{
        font-size: 1.2em;
        font-weight: bold;
        letter-spacing: .15em;
    }
    #name img{
        position: absolute;
        top: -13px;
        right: 15px;
        width: 43%;
    }
    #awards{
        position: relative;
    }
    #awards p{
        margin-bottom: 17px;
        line-height: 1.8em;
    }
    #awards span{
        font-weight: bold;
        font-size: 1.15em;
    }
    #awards img{
        position: absolute;
        top: 227px;
        right: 3px;
        width: 51%;
    }
    #work table{
        width: 90%;
        margin: 0 auto 30px;
        border-collapse: collapse;
    }
    #work th, td {
        padding: 5px 10px;
        vertical-align: top;
    }
    #work th {
        text-align: left;
        width: 80px;
        white-space: nowrap;
        font-size: .95em;
    }
    #work td {
        text-align: left;
        font-size: .85em;
    }
    #work tr:last-child td {
        border-bottom: none;
    }
    /* アクセス */
    #access h2{
        background-image: url(../images/accessback.png);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 110px;
        text-align: center;
        color: #171c3f;
        font-size: 1.5em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    #access table{
        width: 90%;
        margin: 30px auto;
        border-collapse: collapse;
    }
    #access th, td {
        padding: 5px 20px;
        vertical-align: top;
        border-bottom: 3px solid #e3eef4;
    }
    #access th {
        text-align: left;
        width: 100px;
        white-space: nowrap;
        color: #fff;
        background-color: #81d0f7;
        font-size: .95em;
    }
    #access td {
        text-align: left;
        background-color: #fff;
        border-left: 3px solid #e3eef4;
        font-size: .85em;
    }
    #access tr:last-child td {
        border-bottom: none;
    }
    iframe{
        width: 95%;
        display: block;
        margin: 0 auto 30px;
    }
    /* よくある質問 */
    #faq h2{
        background-image: url(../images/faqback.png);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 110px;
        text-align: center;
        color: #171c3f;
        font-size: 1.5em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    .faq-wrap {
        width: 95%;
        max-width: 450px;
        margin: 20px auto;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .question {
        padding: 16px;
        cursor: pointer;
        font-weight: bold;
        font-size: 0.98em;
    }
    .answer {
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        font-size: 0.9em;
    }
    .faq-wrap.open .answer {
        padding: 16px;
        max-height: 500px; /* 十分な高さを設定（内容量によって調整） */
    }
    .faq-wrap a{
        color: #c3438f;
        font-weight: bold;
        text-decoration: underline;
        text-decoration-color: #c3438f;
    }
    /* 予約 */
    #reservation h2{
        background-image: url(../images/reservationback.png);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 110px;
        text-align: center;
        color: #171c3f;
        font-size: 1.5em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    #reservation div {
        margin: 60px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #reservation div a{
        display: block;
        width: 90%;
        max-width: 450px;
    }
    #reservation div img {
        width: 100%;
        display: block;   
        height: auto;
    }
    /* お問い合わせ */
    #contact h2{
        background-image: url(../images/contactback.png);
        background-repeat: no-repeat;
        background-size: 100%;
        height: 110px;
        text-align: center;
        color: #171c3f;
        font-size: 1.5em;
        letter-spacing: .3em;
        padding-top: 39px;
    }
    #line {
        margin: 30px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #line a{
        display: block;
        width: 90%;
        max-width: 450px;
    }
    #line img {
        width: 100%;
        display: block;   
        height: auto;
    }
    #tel-wrap {
        background-color: #fff;
        border-radius: 25px;
        margin: 20px auto;
        width: 88%;
        text-align: center;
    }
    #tel-top{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        margin-bottom: 10px;
        padding-top: 20px;
    }
    #tel-top img{
        width: 35px;
        height: auto;
    }
    #teltext, #telno{
        margin: 0;
    }
    #teltext{
        font-size: 1.3em;
        padding-top: 7px;
        letter-spacing: .1em;
    }
    #telno{
        font-size: 1.8em;
        font-weight: bold;
        color: #161e55;
        letter-spacing: .07em;
        padding-bottom: 20px;
    }
    #telno a{
        color: #161e55;
        text-decoration: none;
    }
    /* 画面下表示ボタン */
    #fix-button{
        position: fixed;
        bottom: -100%;
        width: 100%;
        background-color: #12167e;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 20px 5px 10px;
        z-index: 9999;
        text-align: center;
        transition: bottom 0.3s ease;
    }
    #fix-button.show {
        bottom: 0; 
    }
    #fix-top{
        display: flex;
        justify-content: center;
        gap: 5px;
    }
    #fix-top img{
        object-fit: contain;
        width: 100%;
    }
    #fix-top a{
        width: fit-content;
    }
    #fix-button p{
        color: #fff;
        font-size: .7em;
        margin-top: 10px;
    }
    /* フッターCSS */
    footer {
        width: 100%;
        margin: 0 auto;
        background-color: #81d0f7;
        box-sizing: border-box;
        height: 100px;
    }
    #copyright{
        text-align: center;
        font-size: 0.8em;
        padding-top: 40px;
    }

    
}