html {
    overflow-x: hidden;
}
h1 {
    font-size: 6vmin;
    color: white;
}
.main_nav li:nth-child(3) a {
    border-bottom: solid 9px var(--color_greengray);
}
.top {
    width: 100%;
    padding-top: 60px;
}
.top .img {
    width: 100%;
    height: 350px;
    background-image: url(pictures/recommendation.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    background-attachment: fixed;
}
.top .img::before,
.top .img::after {
    content: "　";
    display: block;
    width: 0;
    height: 350px;
    position: absolute;
}
.top .img::before {
    background-color: var(--color_greengray);
    animation: backgroundmove 1.5s ease;
    z-index: 2;
}
.top .img::after {
    background-color: var(--color_green);
    animation: backgroundmove2 1.5s ease 0.3s;
    z-index: 1;
}
@keyframes backgroundmove {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}
@keyframes backgroundmove2 {
    0% {
        width: 100%;
        opacity: 0;
    }
    100% {
        width: 0%;
        opacity: 1;
    }
}
.top .txt {
    background-color: var(--color_greengray);
    text-align: center;
    vertical-align: middle;
    position: relative;
    margin-top: -5%;
    margin-left: 16%;
    box-shadow: 0 0 10px;
    z-index: 3;
    padding: 2vw 5vw;
    width: fit-content;
}

.category {
    display: flex;
    /* justify-content: space-evenly; */
    width: 70%;
    margin: 0 auto;
    padding: 70px;
}
.category a {
    text-decoration: none;
    font-size: 1rem;
    color: black;
    display: block;
}
.category li {
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 2px;
    width: 100%;
    z-index: 1;
    margin: 0 2%;
    background-color: #f3f0df;
}
.category li:hover {
    background-color: var(--color_yellow);
}
.category li:first-child {
    background-color: var(--color_yellow);
}
main .riri > div {
    display: flex;
    position: relative;
}
.riri {
    padding-top: 10%;
}
.riri > div {
    background-color: var(--color_pink);
    margin-left: 20%;
    margin-top: 10%;
}
.riri .img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 150%;
}
.img img {
    object-fit: cover;
    filter: drop-shadow(2px 2px 4px rgba(26, 25, 25, 0.3));
    height: 100%;
}
.riri .txt {
    width: 55%;
    margin: 2%;
    margin-left: 30%;
}

.riri h2 {
    font-size: 5vmin;
    margin-top: -10%;
    line-height: 1.2;
}
.riri .txt div {
    margin-top: 3%;
    margin-left: 10%;
}
.riri .txt div p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 3%;
}

strong {
    font-size: 3vmin;
    font-weight: 500;
    margin-top: 5%;
    line-height: 1.4;
    letter-spacing: 0.5px;
    display: inline-block;
}
.photowall {
    width: 100%;
    height: 100%;
}
.photowall .wrap {
    width: 80%;
    height: 600px;
    display: flex;
    margin: 20% 0 0 20%;
}

.wrap div {
    margin: 0.5%;
    box-shadow: 4px 4px 10px #818181;
    overflow: hidden;
    border-radius: 5px;
}
.wrap div:nth-child(1) {
    width: 80%;
    height: 70%;
}
.wrap div:nth-child(2) {
    width: 80%;
    height: 50%;
    transform: translate(0, -40%);
}
.wrap div:nth-child(3) {
    width: 80%;
    height: 70%;
    transform: translate(-104%, 46%);
}
.wrap div:nth-child(4) {
    width: 100%;
    height: 50%;
    transform: translate(-83%, 50%);
}
.wrap div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 2s linear;
}
.wrap div:hover img {
    transform: scale(1.2);
}
.photowall > div:nth-child(2) {
    width: 45%;
    background-color: var(--color_greengray);
    position: absolute;
    margin-top: -8%;
}
.photowall > div:nth-child(2) p:nth-child(1) {
    color: white;
    font-size: 4.2rem;
    text-align: right;
    padding-right: 2%;
    font-weight: 200;
}
.photowall > div:nth-child(2) p:nth-child(2) {
    /* color: var(--color_greengray); */
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    transform: translate(0, 200%);
}
.reco {
    margin-top: 20%;
}
.reco .container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    position: relative;
}
.reco h3 {
    font-size: 1.6rem;
    margin-bottom: 5%;
}
.reco h3::before {
    content: "　";
    border-left-width: 4px;
    border-left-style: solid;
    border-color: var(--color_yellow);
    font-size: 1.2rem;
}

.item .card {
    height: 100%;
}
.card .item {
    height: 80%;
}
.item .img {
    width: 100%;
    height: 80%;
}
.item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 1.5s;
}

.card {
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 10px #d9d9d9;
    padding: 10% 10% 0 10%;
    height: 75%;
    animation: cardmove 1s alternate infinite;
}
.card:hover {
    box-shadow: 0 0 10px #ababab;
}
.item .img {
    overflow: hidden;
}
.card:hover img {
    transform: scale(1.1);
}
.card .txt p {
    line-height: 1.2;
}
.card .txt p:nth-child(1) {
    font-size: 1.2rem;
    font-weight: 500;
}
.card .txt p:nth-child(3) {
    font-size: 1.6rem;
    color: var(--color_yellow);
    line-height: 1.6;
    font-weight: 900;
}
.more {
    display: flex;
    width: 15%;
    justify-content: flex-start;
    margin-left: 85%;
}
.more p {
    font-size: 1.2rem;
    font-weight: 500;
}
.more_go span {
    background-color: var(--color_yellow);
    color: white;
    padding: 10px;
    border-radius: 50%;
    transition: 0.5s;
    margin: 10px;
}
.more:hover .more_go {
    transform: translate(30%, 0);
    transition: 0.3s;
}
.more:hover .more_go span {
    background-color: transparent;
    border: solid 2px var(--color_yellow);
    color: var(--color_yellow);
}
.more:hover p {
    color: var(--color_yellow);
}
@media screen and (max-width: 1179px) {
    .top .img {
        background-position: top;
    }
    .main_nav li:nth-child(3) a {
        background-color: var(--color_greengray);
        color: white;
    }
    .category {
        padding: 5vh 0;
        width: 100%;
        font-size: 0.8rem;
    }
    .category ul li:checked {
        background-color: var(--color_yellow);
    }
    .riri > div {
        margin-left: 0;
    }
    .photowall .wrap {
        width: 100%;
        height: 100%;
    }
    .wrap div {
        width: 100%;
    }
    .photowall > div:nth-child(2) {
        width: 60%;
        margin-top: 5%;
    }
}
@media screen and (max-width: 779px) {
    .top .img {
        height: 200px;
    }
    .top .img::before,
    .top .img::after {
        height: 200px;
    }
    .top .txt {
        padding: 3vw 5vw;
    }
    .category {
        flex-direction: column;
        align-items: center;
    }
    .category li {
        width: 50%;
        margin: 5px 2%;
    }
    .riri > div {
        margin-left: 0;
        margin-top: 50%;
        height: 10vh;
    }
    .riri .img {
        width: 60%;
        height: 500%;
    }
    .riri .txt {
        width: 100%;
        margin: 0;
        margin-left: 0;
    }
    .riri h2 {
        margin-left: 40%;
    }
    strong {
        margin-left: 40%;
    }
    .riri .txt div {
        margin-left: 0;
        margin: 15px;
    }
    .riri .txt div p:first-of-type {
        margin-top: 10%;
    }
    .photowall {
        margin-top: 70%;
        overflow-x: hidden;
    }
    .photowall .wrap {
        flex-direction: column;
        margin: 0;
        width: 100%;
        height: 100%;
    }
    .photowall .wrap div {
        margin: 10px 0;
    }
    .wrap div:nth-child(1) {
        height: 60%;
    }
    .wrap div:nth-child(2) {
        height: 100%;
        transform: translate(25%, 0);
    }
    .wrap div:nth-child(3) {
        width: 50%;
        transform: translate(0, 0);
    }
    .wrap div:nth-child(4) {
        width: 100%;
        transform: translate(10%, 0);
    }
    .photowall > div:nth-child(2) {
        width: 100%;
        margin-top: 5%;
    }
    .reco {
        margin-top: 50%;
    }
    .more {
        margin-left: 40%;
        width: 30%;
    }
}
