
body {
    background-color: #FDF5E6;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 0;
    font-family: serif;
}

header {
    width: 100%;
    margin-bottom: 20px; 
    padding: 0;
    position: relative;
}

header .top-orange {
    width: 100%;
}

header img {
    width: 100%;
    height: auto;
}
.menu-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    margin-bottom: 5px;
    background: #000;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.side-menu {
    position: fixed;
    right: -200px;
    top: 0;
    width: 200px;
    height: 100%;
    background-color: #F6D496;
    color: #568CF0;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s;
}

.side-menu h2 {
    margin-top: 0;
    color: #568CF0;
    font-size: 2rem;
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
}

.side-menu ul li {
    margin: 10px 0;
}

.side-menu ul li a {
    color: #568CF0;
    text-decoration: none;
}

.side-menu ul li a:hover {
    text-decoration: underline;
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #F6D496;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.side-menu.active {
    right: 0;
}

main {
    width: 100%; 
    max-width: 70rem; 
    margin: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2{
    font-size: 3rem;
    margin: 60px 0 30px 0;
    color: #4d4d4d;
}

.story-slider {
    position: relative;
    z-index: 1;
    width: 100%; 
    max-width: 70rem; 
    margin: auto;
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: auto; 
    object-fit: cover;
}


.slick-prev, 
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-dots {
    position: relative;
    z-index: 3;
    text-align: center;
    margin: -50px 0 0 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots button {
    color: transparent;
    outline: none;
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: #ccc;
}

.slick-dots .slick-active button {
    background: #333;
}


.container {
    background-color: white;
    width: 100%;
    height: auto; 
    padding: 1rem;
    display: flex;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.container img {
    width: 100%;
    height: auto;
    display: block;
}

.page-button {
    background-color: #F6D496;
    color: #568CF0;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    margin: 20px 0;
    align-self: center;
}
.page-button:hover {
    background-color: #ffdd33;
}

.top-top, .top-bottom {
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.middle{
    background-color: #f8f8f8;
    padding: 50px 0;
    text-align: center;
    margin-top: 20px;
}

.middle-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.middle-img{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}
.middle-img img{
    width: 100%;
    height: auto;
}

.middle ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.middle-left, .middle-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.middle-left li, .middle-right li {
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 30px;
}

.middle-left {
    position: relative;
    top: 50%;
    transform: translateY(-5%);
}

.middle-right {
    position: relative;
    top: 50%;
    transform: translateY(-5%);
}

.middle li {
    position: relative;
    z-index: 1;
}

.middle-1{
    top: 12%;
    left: 17%;
    transform: rotate(15deg);
    margin: 20px;
}
.middle-2{
    top: 37%;
    left: 10%;
    transform: rotate(10deg);
    margin: 10px;
}
.middle-3{
    top: 65%;
    left: 12%;
    transform: rotate(-15deg);
    margin: 60px 10px 0 0;
}
.middle-4{
    top: 12%;
    right: 17%;
    transform: rotate(-15deg);
    margin: 20px;
}
.middle-5{
    top: 34%;
    right: 10%;
    transform: rotate(-10deg);
    margin: 10px;
}
.middle-6{
    top: 61%;
    right: 12%;
    transform: rotate(15deg);
    margin: 60px 10px 0 0;
}

.top-bottom {
    margin-top: 20px; 
}

.content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 5s ease-in-out;
    height: 100%;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 360px;
    height: auto;
    object-fit: cover;
    display: block;
}

button.prev, button.next {
    margin-top: 20px;
}

footer {
    width: 100%;
    margin-top: 100px; 
    padding: 0;
}

footer .bottom-orange {
    width: 100%;
}

footer img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --------------------------スマホページ------------------------ */

@media (max-width: 414px) {

    h2 {
        font-size: 24px;
        margin: 30px 0 15px 0;
    }
    .menu-btn {
        display: block;
    }

    .side-menu {
        right: -200px;
    }

    .side-menu.active {
        right: 0;
    }

    .story-slider {
        width: 90vw; 
    }
    
    .slider-item img {
        width: 100%;
        height: auto;
    }
    
    .container {
        width: 90vw; 
    }

    .container img {
        width: 100%;
        height: auto;
    }

    .middle{
        padding: 25px 0;
        margin-top: 0;
    }

    .middle-container {
        flex-direction: column;
        align-items: center;
    }

    .middle-left, .middle-right {
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .middle-left li, .middle-right li {
        margin: 20px auto;
        width: 90%;
        font-size: 14px;
    }

    .middle-img {
        max-width: 50%;
    }

    .middle-left, .middle-right {
        top: 0;
        transform: none;
    }

    .middle-1, .middle-2, .middle-3, .middle-4, .middle-5, .middle-6 {
        transform: none;
        animation-delay: 0;
        left: 0%;
        right: 0%;
    }


    .page-button {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .content {
        padding: 10px; 
    }

    .slider-container {
        width: 100%; 
        height: auto; 
        overflow: hidden;
    }

    .slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
        height: auto; 
    }

    .slide {
        min-width: 100%; 
        height: auto; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
    }

    .slide img {
        width: 33%; 
        height: auto; 
    }

    button.prev, button.next {
        margin-top: 5px;
    }
    .prev, .next {
        font-size: 14px; 
        padding: 5px 10px; 
    }      
} 

@media (min-width: 415px) {
    .menu-btn {
        display: none;
    }

    .side-menu {
        right: 0;
    }
}
