:root {
    --main: #D6CBC8;
    --second: #5E3F37;
    --pointRed: #E13232;
    --pointBlue: #2D68A9;
}

html {
    font-size: 62.5%;
}

body {
    color: #333;
    font-size: 1.6rem;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

a {
    transition: 0.5s;
}

a:hover,
a:focus {
    opacity: 0.7;
}

/*===================
 header
====================*/
.header {
    /* background-color: var(--main); */
    background: url(../img/bg_base.jpg);
    background-size: 180%;
}

.h-top {
    display: flex;
    padding: 0 30px;

}

.logo {
    background-color: rgba(255, 255, 255, 0.7);
    flex-basis: 300px;
    flex-shrink: 0;
}

.sign-in-up {
    margin-top: auto;
    margin-left: auto;
    margin-bottom: 1rem;
}

.sign-in-up a {
    display: inline-block;
    background-color: var(--pointBlue);
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
    padding: 8px 15px;
}

.sign-in-up a:first-child {
    margin-right: 1em;
}

.header-nav {
    background-color: var(--second);
    padding: 0 30px;
}

.header-nav ul {
    display: flex;
    justify-content: flex-end;
}

.header-nav ul li a {
    display: inline-block;
    color: #fff;
    /*font-size: 1.5rem;*/
    font-size: 15px;
    padding: 15px;
    position: relative;
}

.header-nav ul li a::before,
.header-nav ul li:last-of-type a::after {
    content: "";
    display: block;
    width: 1px;
    height: 1em;
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header-nav ul li a::before {
    left: 0;
}

.header-nav ul li:last-of-type a::after {
    right: 0;
}

/*======================
 main
========================*/

/*ファーストビュー*/
.first-view {
    width: 100%;
    aspect-ratio: 700/463;
    max-height: 100vh;
    max-height: 100dvh;
    color: #fff;
    position: relative;
    text-align: center;
}

.first-view::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    animation: firstBack 5s ease-in-out alternate infinite;
    background: rgb(94, 63, 55);
    background: linear-gradient(112deg, rgba(94, 63, 55, 0.5) 0%, rgba(64, 43, 38, 0.5) 37%, rgba(45, 104, 169, 0.5) 100%);
    background-size: 200%;
    position: absolute;
    top: 0;
    left: 0;
}

.first-view::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 700/463;
    background: url(../img/view1st.jpg);
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

@keyframes firstBack {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}

.catch {
    width: 100%;
    position: absolute;
    top: 20%;
    z-index: 3;

}

.catch p {
    font-size: 2.7vw;
    margin-bottom: 50px;
}

.catch h1 {
    font-size: 6.5vw;
}

/* .catch h1::first-letter {
    color: var(--second);
    font-family: 'Yuji Boku', serif;
    font-size: 10vw;
    text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
} */

/* コンテンツ*/
.main-inner {
    /* max-width: 1000px; */
    /* margin: 0 auto; */
    background-color: #fff;
}

section:not(.first-view) {
    padding: 20px;
}

.main-inner a {
    color: var(--pointBlue);
    text-decoration: underline;
}

/* 土出したい、土ほしい*/
section.desire {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 8rem;
    background-color: #fff;
    background-image: url(../img/bg_base_07.png);
    background-size: 180%;
    padding-top: 8rem;

}

.flex-between {
    display: flex;
    justify-content: space-between;
    max-width: 850px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--main);
    margin: 0 auto 8rem;
    padding: 2rem 5rem;
}

.flex-between.reverse {
    flex-direction: row-reverse;
}

.illust {
    position: relative;
}

.illust::after {
    content: "";
    display: block;
    flex-basis: 350px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.pic-a::after {
    background-image: url(../img/output.png);
    transform: translateX(30%);
    /* margin-right: -70px; */
}

.pic-b::after {
    background-image: url(../img/input.png);
    transform: translateX(-30%);
    /* margin-left: -70px; */
}


.desire h2 {
    display: inline-block;
    background: linear-gradient(to bottom, transparent 65%, var(--main) 80%);
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1em;
}

.text li:not(:last-of-type) {
    padding-left: 2em;
    position: relative;
    margin-bottom: 1em;
}

.text li:not(:last-of-type)::before {
    content: "◆";
    position: absolute;
    left: 0;
}

/* 新着情報 */

.news-wrap {
    max-width: 1000px;
    margin: 0 auto 5rem;
}

.news-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 10px;
}

.news-head h2 {
    font-size: 2.8rem;
    font-weight: bold;
}

.news {
    border: 2px solid var(--second);
    border-radius: 10px;
}

.news-inner {
    padding: 20px;
}

.news table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.news table thead {
    background-color: var(--main);
    border: 1px solid var(--second);
}

.news table thead th {
    border: 1px solid var(--second);
    font-weight: normal;
    padding: 8px 10px;
    text-align: center;
}

.news table tbody td {
    font-size: 1.4rem;
    padding: 5px 10px;
    text-align: center;
    vertical-align: middle;
}

.news table span {
    display: inline-block;
    width: 100%;
    border-radius: 8px;
    padding: 5px 10px;
}

.news table span.in {
    border: 1px solid #4CB5AB;
}

.news table span.out {
    border: 1px solid #F47B02;
}

/* 探す */
.search-nav {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    padding: 20px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-item {
    border: 2px solid var(--second);
    border-radius: 10px;
    flex-basis: 30%;
    flex-shrink: 0;
}

.search-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.search-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
}

.search-item p {
    background-color: var(--second);
    color: #fff;
    margin-top: auto;
    padding: 8px;
}

/*　フッター上部会員登録*/
.register {
    background-color: var(--main);
    padding: 5rem 20px;
    text-align: center;
}

.register p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--pointBlue);
    margin-bottom: 1em;
}

.register a {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    background-color: var(--pointBlue);
    border-radius: 5px;
    color: #fff;
    font-size: 2.4rem;
    font-weight: bold;
    padding: 10px;
}

/*======================
 フッター
======================*/
footer {
    background-color: var(--second);
    color: #fff;
    padding: 38px 20px;
    text-align: center;
}

footer .service {
    font-size: 16px;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav li a {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    padding: 15px;
    position: relative;
}

.footer-nav li a::before,
.footer-nav li:last-of-type a::after {
    content: "";
    display: block;
    width: 1px;
    height: 1em;
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.footer-nav li a::before {
    left: 0;
}

.footer-nav li:last-of-type a::after {
    right: 0;
}

/*++++++++++++++++++++++++++++++
スマホ、タブレット
++++++++++++++++++++++++++++++*/

@media screen and (max-width: 768px) {
    body {
        font-size: 1.4rem;
    }

    /*ヘッダー*/
    .h-top {
        padding: 0 16px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-basis: 220px;
    }

    .sign-in-up {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 1em;
        margin-top: 5px;
    }

    .sign-in-up a {
        font-size: 15px !important;
    }

    .header-nav ul li a {
        font-size: 1.4rem;
        padding: 10px;
    }

    .sign-in-up a:first-child {
        margin: 0;
    }

    /*ファーストビュー*/
    .first-view::after {
        height: 70%;
    }

    /*土がほしい、土を出したい*/
    .flex-between {
        display: block;
    }

    .illust::after {
        aspect-ratio: 484/375;
        max-width: 350px;
        margin: 0 auto;
        transform: translateX(0);
    }

    /*新着情報*/
    .news {
        position: relative;
    }

    .news-inner {
        overflow-x: scroll;
    }

    .news::before,
    .news::after {
        content: "";
        display: block;
        width: 20px;
        height: calc(100% - 40px);
        position: absolute;
        top: 50%;

        transform: translateY(-50%);
    }

    .news::before {
        background: linear-gradient(to left, transparent, #fff 50%);
        left: 0;
    }

    .news::after {
        background: linear-gradient(to right, transparent, #fff 50%);
        right: 0;
    }

    .search-nav {
        gap: 1.5rem;
    }

    .search-item {
        flex-basis: 33%;
    }

    .search-item p {
        font-size: 1.3rem;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-nav li a {
        padding: 7px 10px;
    }

    .footer-nav li:nth-child(3) a::after {
        content: "";
        display: block;
        width: 1px;
        height: 1em;
        background-color: #fff;
        position: absolute;
        top: 50%;
        right: -1px;
        transform: translateY(-50%);
    }

    .copyright {
        margin-top: 10px;
    }
}

@media screen and (max-width: 550px) {
    .first-view::after {
        height: 50%;
    }

    .catch p {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .catch h1 {
        font-size: 2.8rem;
    }
}