@media (max-width: 500px) {
    * {

        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }


    body {

        margin: 0;
        padding: 0;
        background-color: #FFC9DF;
        height: auto;
        width: auto;
    }

    .center {
        display: flex;
        justify-content: center;
    }

    .tiles img {
        width: 100vw;
    }

    .nokori {
        margin-top: 30vw;
        display: flex;
        justify-content: center;
    }

    .nokori img {
        width: 80vw;
    }


    .countdown {
        display: flex;
        justify-content: center;
        flex-direction: column;
        /* gap: 10px; */
        padding: 20px;
    }

    .item {
        display: flex;
        gap: 8px;
        margin-top: 30px;
        justify-content: center;
    }

    .imagecontain {
        background: white;
        color: #123768;
        padding: 15px;
        border-radius: 10px;
        text-align: center;
        height: 400px;
        min-width: 80px;
    }

    .countdown-item {
        background: white;
        color: #123768;
        padding: 13px;
        border-radius: 10px;
        text-align: center;
        width: 20vw;
        border: 1px solid black;
        /* min-width: 80px; */
    }

    .countdown-item span {
        display: block;
        font-size: 7vw;
        font-weight: bold;
        font-family: "Caprasimo", serif;
        opacity: 100%;
    }

    .countdown-item label {
        font-size: 14px;
    }

    .countdown img {
        margin-top: 2vw;
        margin-bottom: -1vw;
        height: 5vw;
    }

    .count img {
        margin-top: 2vw;
        margin-bottom: -1vw;
        height: 3.5vw;
    }

    .left img {
        margin-top: 2vw;
        margin-bottom: -1vw;
        height: 3.5vw;
        margin-left: -0.5vw;
    }

    .days {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 79px;
        border-radius: 7px;
        margin-right: 6px;
    }

    .hours {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 60px;
        border-radius: 7px;
        margin-right: 6px;
    }

    .seconds {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 60px;
        border-radius: 7px;
    }

    .maeoki1 {
        margin-top: 30vw;
    }

    .maeoki1 img {
        margin-top: 20vw;
        width: 80%;
        display: flex;
        justify-content: center;
        margin-left: 10%;
    }

    .eclat img {
        margin-top: 10vw;
        width: 45vw;
        display: flex;
        justify-content: center;
        margin-left: 28%;
    }

    .in {
        margin-top: 20vw;
        background-color: #fff2dc;
        width: 100vw;
        height: 90vw;
        border-radius: 50% 50% 0px 0px;
        border-top: 1px solid black;
    }

    .contents img {
        width: 55vw;
        margin-top: 60px;
    }

    .tiles2 img {
        width: 95vw;
        margin-top: 5px;
    }

    .back {
        background-color: #fff2dc;
        width: 100vw;
        height: auto;
        padding-bottom: 110vw;
    }



    .moveleft {
        visibility: visible;
        position: relative;
        height: 90vw;
        width: auto;
    }



    .image {
        position: absolute;

    }

    .search img {
        width: 100vw;
        margin-top: -30vw;
        z-index: 1;
        margin-left: -10px;
    }

    .search2 img {
        width: 80vw;
        z-index: 2;
        margin-left: 7vw;
    }

    .search3 img {
        width: 28vw;
        z-index: 3;
        margin-top: 1.5vw;
    }

    .search5 img {
        width: 22vw;
        z-index: 3;
        margin-top: 2.5vw;
    }

    .search4 img {
        width: 10vw;
        z-index: 4;
        margin-left: 60vw;
        margin-top: 2vw;
    }

    .btn-square-slant {
        display: inline-block;
        position: relative;
        padding: 0.5em 1.8em;
        text-decoration: none;
        color: #fff2dc;
    }

    .btn-square-slant:before {
        content: " ";
        position: absolute;
        bottom: -5px;
        left: -1px;
        width: 0;
        height: 0;
        border-width: 0 6px 6px 0px;
        border-style: solid;
        border-color: transparent;
        /* border-bottom-color: #FFF; */
    }

    .btn-square-slant:after {
        content: " ";
        position: absolute;
        top: -1px;
        right: -5px;
        width: 0;
        height: 0;
        border-width: 0px 6px 6px 0px;
        border-style: solid;
        /* border-color: #FFF; */
        border-bottom-color: transparent;
    }

    .btn-square-slant:active:after,
    .btn-square-slant:active:before {
        content: none;
        /*ボタンを押すと線が消える*/
    }

    .botton {
        position: absolute;
        z-index: 5;
        background-color: #FFBED8;
        height: 18vw;
        width: 80vw;
        border-radius: 12px;
        box-shadow: 4px 4px 0px #BFB5A4;
        padding-top: 3vw;
    }

    .btn1 {
        margin-left: 8vw;
        margin-top: 47vw;
    }

    .btn-square-slant:active {
        /*ボタンを押したとき*/
        box-shadow: none;
        -webkit-transform: translate(4px, 4px);
        transform: translate(4px, 4px);
    }


    .feature {
        height: auto;
    }

    .feature1 {
        width: 100vw;
    }

    .feature1 img {
        width: 90vw;
        margin-top: 20vw;
    }

    .soon {
        margin-top: 20vw;
        height: 75vw;
        text-align: center;
    }

    .greet {
        display: flex;
        justify-content: flex-end;
    }

    .greet img {
        width: 93vw;
        display: flex;
        margin-left: 4.9vw;
    }

    .greeting {
        width: 73vw;
        background-color: white;
        margin-top: 18vw;
        font-size: 3vw;
        padding: 4vw;
        height: 75vw;
        z-index: 4;
        box-shadow: 4px 4px 0px #BFB5A4;
    }

    .saho {
        margin-left: 1vw;
        width: 65vw;
        font-size: 2.8vw;
        float: right;
    }

    .name {
        font-size: 3vw;
        margin-top: 63vw;
        margin-left: 30vw;
    }

    .btn2 {
        margin-top: 100vw;
    }

    .greet1 img {
        width: 55vw;
        z-index: 3;
        margin-top: 2.7vw;
    }

    .greet2 img {
        width: 8vw;
        z-index: 4;
        margin-left: 62vw;
        margin-top: 2.5vw;
    }

    .info {
        margin-top: 30vw;

    }

    .info img {
        width: 85vw;
    }

    .btn3 {
        margin-top: 10vw;
    }

    .btn4 {
        margin-top: 33vw;
    }

    .btn5 {
        margin-top: 56vw;
    }

    .infobotton img {
        height: 7vw;
        width: auto;
        display: flex;

    }




    .slideshow-wrapper {
        position: relative;
        width: 73.125vw;
        margin: 2em auto;
    }


    .slideshow-container,
    .slide,
    .slide img {
        box-sizing: border-box;
    }


    .slideshow-container {
        position: relative;
        width: 73.125vw;
        height: 73.125vw;
        margin: 2em auto;
        overflow: hidden;
    }

    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.6s ease, opacity 0.6s ease;
        margin-left: 13px;
    }

    .slide img {
        width: 67.5vw;
        height: 67.5vw;
        object-fit: cover;
        border: 4.5vw solid #FFBED8;
        border-radius: 2.925vw;
    }

    /* 表示中スライド */
    .slide.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    /* 左へ消える */
    .slide.exit-left {
        opacity: 0;
        transform: translateX(-100%);
        z-index: 0;
    }

    .slide.enter-left {
        transform: translateX(-100%);
        opacity: 1;
        animation: enterLeft 0.6s forwards;
    }


    .slide.exit-right {
        transform: translateX(0);
        animation: exitRight 0.6s forwards;
    }

    /* 右から入る */
    .slide.enter-right {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    @keyframes enterRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes enterLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes exitLeft {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(-100%);
            opacity: 0;
        }
    }

    @keyframes exitRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }



    /* 矢印 */
    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 11.25vw;
        cursor: pointer;
        z-index: 10;
        color:#b60f55;
    }




    .arrow:focus {
        outline: none;
        box-shadow: none;
    }



    .arrow.left {
        left: -7.875vw;
    }

    .arrow.right {
        right: -7.875vw;
    }

    /* インジケーター */
    .indicators {
        position: absolute;
        bottom: -3.375vw;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5em;
    }

    .dot {
        width: 1.8vw;
        height: 1.8vw;
        background-color: #ffc0cb;
        border-radius: 0.9vw;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.3s;
    }

    .dot.active {
        opacity: 1;
        background-color: #b60f55;
    }


    .animation_box2 {
        margin-top: 100px;
    }













    .tab-button {
        background-color: #aef;
        border: none;
        padding: 6px 8px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
    }


    .tab-button.active {
        background-color: #38a;
        color: white;
    }





    .image-container {
        /* width: 80%;
    max-width: 500px; */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        /* border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); */
        overflow: hidden;
    }



    .bottom-tab {
        z-index: 100;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
        background: #ffffff;
        padding: 15px;
        display: flex;
        justify-content: space-around;
        height: 100px;
    }

    .tab-item {
        width: 60px;
        height: 60px;
        background: #14325c;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        font-style: italic;
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2),
            -5px -5px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .tab-item i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .tab-item:hover {
        transform: scale(1.1);
    }

    .bar img {
        display: flex;
        justify-content: center;
        height: 13vw;
    }

    .barr {
        display: flex;
        justify-content: center;
        gap: 10vw;
    }





}































@media (min-width: 500px) {


    .bg-wrapper {
        background: url('img/back.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        width: auto;
        height: auto;
    }

    .container {
        max-width: 500px;
        margin: 0 auto;
        /* padding: 40px 16px; */
        background: #FFC9DF;
        position: relative;
        z-index: 1;
        height: auto;
    }

    body {
        margin: 0;
        padding: 0;
        height: auto;
        width: auto;
    }

    .center {
        display: flex;
        justify-content: center;
    }

    .tiles img {
        width: 500px;
    }

    .nokori {
        margin-top: 25%;
        display: flex;
        justify-content: center;
    }

    .nokori img {
        width: 70%;
    }


    .countdown {
        display: flex;
        justify-content: center;
        flex-direction: column;
        /* gap: 10px; */
        padding: 30px;
    }

    .item {
        display: flex;
        gap: 10px;
        margin-top: 30px;
        justify-content: center;
    }

    .imagecontain {
        background: white;
        color: #123768;
        padding: 15px;
        border-radius: 10px;
        text-align: center;
        height: 400px;
        min-width: 80px;
    }

    .countdown-item {
        background: white;
        color: #123768;
        padding-top: 10px;
        /* padding-left: -1px;
        padding-right: -1px; */
        padding-bottom: 18px;
        border-radius: 10px;
        text-align: center;
        width: 20vw;
        border: 1px solid black;
        min-width: 80px;

    }

    .countdown-item span {
        display: block;
        font-size: 35px;
        font-weight: bold;
        font-family: "Caprasimo", serif;
        opacity: 100%;
    }

    .countdown-item label {
        font-size: 14px;
    }

    .countdown img {
        margin-top: 0.7vw;
        margin-bottom: -1vw;
        height: 25px;
    }

    .count img {
        margin-top: 0.8vw;
        margin-bottom: 0.07vw;
        height: 18px;
    }

    .left img {
        margin-top: 0.8vw;
        margin-bottom: 0.07vw;
        height: 18px;
    }

    .days {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 79px;
        border-radius: 7px;
        margin-right: 6px;
    }

    .hours {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 60px;
        border-radius: 7px;
        margin-right: 6px;
    }

    .seconds {
        background-color: #ffffff;
        padding-top: 70px;
        padding-bottom: 8px;
        width: 60px;
        border-radius: 7px;
    }

    .maeoki1 {
        margin-top: 10vw;
    }

    .maeoki1 img {
        margin-top: 90px;
        width: 80%;
        display: flex;
        justify-content: center;
        margin-left: 10%;
    }

    .eclat img {
        margin-top: 50px;
        width: 200px;
        display: flex;
        justify-content: center;
        margin-left: 30%;
    }

    .in {
        margin-top: 100px;
        background-color: #fff2dc;
        width: 500px;
        height: 480px;
        border-radius: 50% 50% 0px 0px;
        border-top: 1px solid black;
    }

    .contents img {
        width: 300px;
        margin-top: 75px;
    }

    .tiles2 img {
        width: 480px;
        margin-top: 15px;
    }

    .back {
        background-color: #fff2dc;
        width: 500px;
        height: 2300px;
        /* padding-bottom: 80px; */
    }


    .image {
        position: absolute;

    }

    .search img {
        width: 450px;
        margin-top: -100px;
        z-index: 1;
    }

    .search2 img {
        width: 350px;
        z-index: 2;
        margin-left: 40px;
        margin-top: 40px;
    }

    .search3 img {
        width: 28vw;
        z-index: 3;
        margin-top: 1.5vw;
    }

    .search5 img {
        width: 100px;
        z-index: 3;
        margin-top: 15px;
    }

    .search4 img {
        width: 40px;
        z-index: 4;
        margin-left: 280px;
        margin-top: 13px;
    }

    .btn-square-slant {
        display: inline-block;
        position: relative;
        padding: 0.5em 1.8em;
        text-decoration: none;
        color: #fff2dc;
    }

    .btn-square-slant:before {
        content: " ";
        position: absolute;
        bottom: -5px;
        left: -1px;
        width: 0;
        height: 0;
        border-width: 0 6px 6px 0px;
        border-style: solid;
        border-color: transparent;
        /* border-bottom-color: #FFF; */
    }

    .btn-square-slant:after {
        content: " ";
        position: absolute;
        top: -1px;
        right: -5px;
        width: 0;
        height: 0;
        border-width: 0px 6px 6px 0px;
        border-style: solid;
        /* border-color: #FFF; */
        border-bottom-color: transparent;
    }

    .btn-square-slant:active:after,
    .btn-square-slant:active:before {
        content: none;
        /*ボタンを押すと線が消える*/
    }

    .botton {
        position: absolute;
        z-index: 5;
        background-color: #FFBED8;
        height: 60px;
        width: 300px;
        border-radius: 12px;
        box-shadow: 4px 4px 0px #BFB5A4;
    }

    .btn1 {
        margin-left: 40px;
        margin-top: 245px;
    }

    .btn-square-slant:active {
        /*ボタンを押したとき*/
        box-shadow: none;
        -webkit-transform: translate(4px, 4px);
        transform: translate(4px, 4px);
    }


    .feature {
        height: auto;
    }

    .feature1 img {
        width: 400px;
        margin-top: 500px;
    }

    .soon {
        margin-top: 60px;
        margin-bottom: 170px;
        height: 300px;
        text-align: center;
    }

    .greet {
        display: flex;
        justify-content: flex-end;
    }

    .greet img {
        width: 450px;
        display: flex;
        margin-left: 50px;
    }

    .greeting {
        width: 300px;
        background-color: white;
        margin-top: 80px;
        padding: 20px;
        padding-top: 10px;
        height: 360px;
        z-index: 4;
        box-shadow: 4px 4px 0px #BFB5A4;
    }

    .saho {
        width: 300px;
        font-size: 13px;
        float: right;
    }

    .name {
        font-size: 15px;
        margin-top: 340px;
        margin-left: 120px;
    }

    .btn2 {
        margin-top: 520px;
    }

    .greet1 img {
        width: 230px;
        z-index: 3;
        margin-top: 18px;
    }

    .greet2 img {
        width: 40px;
        z-index: 4;
        margin-left: 280px;
        margin-top: 15px;
    }

    .info {
        margin-top: 150px;
    }

    .info img {
        width: 370px;
    }

    .btn3 {
        margin-top: 50px;
    }

    .btn4 {
        margin-top: 150px;
    }

    .btn5 {
        margin-top: 250px;
    }

    .infobotton img {
        height: 30px;
        width: auto;
        display: flex;
    }

    .slideshow-wrapper {
        position: relative;
        width: 325px;
        margin: 2em auto;
    }


    .slideshow-container,
    .slide,
    .slide img {
        box-sizing: border-box;
    }


    .slideshow-container {
        position: relative;
        width: 325px;
        height: 325px;
        margin: 2em auto;
        overflow: hidden;
    }


    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.6s ease, opacity 0.6s ease;
        margin-left: 13px;
    }

    .slide img {
        width: 300px;
        height: 300px;
        object-fit: cover;
        border: 20px solid #FFBED8;
        border-radius: 30px;
    }

    /* 表示中スライド */
    .slide.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    /* 左へ消える */
    .slide.exit-left {
        opacity: 0;
        transform: translateX(-100%);
        z-index: 0;
    }

    .slide.enter-left {
        transform: translateX(-100%);
        opacity: 1;
        animation: enterLeft 0.6s forwards;
    }


    .slide.exit-right {
        transform: translateX(0);
        animation: exitRight 0.6s forwards;
    }

    /* 右から入る */
    .slide.enter-right {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    @keyframes enterRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes enterLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes exitLeft {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(-100%);
            opacity: 0;
        }
    }

    @keyframes exitRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }



    /* 矢印 */
    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 50px;
        cursor: pointer;
        z-index: 10;
        color:#b60f55;
    }




    .arrow:focus {
        outline: none;
        box-shadow: none;
    }



    .arrow.left {
        left: -35px;
    }

    .arrow.right {
        right: -35px;
    }

    /* インジケーター */
    .indicators {
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5em;
    }

    .dot {
        width: 8px;
        height: 8px;
        background-color: #ffc0cb;
        border-radius: 4px;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.3s;
    }

    .dot.active {
        opacity: 1;
        background-color: #b60f55;
    }




    .animation_box2 {
        margin-top: 100px;
    }




    .tab-button {
        background-color: #aef;
        border: none;
        padding: 6px 8px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
    }


    .tab-button.active {
        background-color: #38a;
        color: white;
    }


    .image-container {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }


    .bottom-tab {
        z-index: 100;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 500px;
        background: #ffffff;
        display: flex;
        justify-content: space-around;
        height: 100px;
        margin-left: 0px;
    }


    .tab-item {
        width: 60px;
        height: 60px;
        background: #14325c;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        font-style: italic;
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2),
            -5px -5px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .tab-item i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .tab-item:hover {
        transform: scale(1.1);
    }

    .bar img {
        display: flex;
        justify-content: center;
        height: 60px;
        margin-top: 20px;
    }

    .barr {
        display: flex;
        justify-content: center;
        gap: 50px;
    }

}