﻿:root {
    --orange: #ffd786;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* scroll-padding-top: 200px; */
}

body {
    background: #fdfaf1;
    font-family: "Zen Maru Gothic", serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto 100px;
}

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

a {
    color: #444;
    text-decoration: none;
}

a:hover {
    opacity: 0.5;
    transition: 0.3s;

}

header {
    position: sticky;
    top: 0;
    background: #fdfaf1;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

h1,
h2,
h3 {
    font-weight: bold;
}

.header h1 {
    width: 70%;
    font-size: 1.4em;

    span {
        font-size: 80%;
    }
}


.g-nav {
    font-size: 1.2em;

    li {
        margin-bottom: 10px;
    }
}


@media screen and (800px<width) {
    .g-nav {
        align-items: center;
        gap: 20px;
        display: flex;
    }
}

@media screen and (width > 800px) {
    .header h1 {
        font-size: 2em;
    }
}

.hero {
    position: sticky;
    top: 80px;
    z-index: -1;
    height: 90vh;
    margin: 20px auto 100px;
    border-radius: 10px 150px 0 0;
    width: 95%;
}

@media screen and (width > 800px) {
    .hero {
        border-radius: 10px 300px 0 0;

    }
}


.bg-orange {
    position: absolute;
    width: 20%;
    left: 7%;
    top: 5%;
}

.bg-yellow {
    position: absolute;
    width: 15%;
    right: 5%;
    top: 15%;
}

.bg-green {
    position: absolute;
    width: 20%;
    right: 10%;
    bottom: 5%;
}

.fade {
    animation-name: fadeUpAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-delay: 11s;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-time02 {
    animation-delay: 11.2s;
}

.delay-time04 {
    animation-delay: 11.4s;
}

.delay-time06 {
    animation-delay: 11.6s;
}

.copy {
    position: absolute;
    right: 5%;
    bottom: 10%;
}

.copy p {
    width: fit-content;
    padding: 0.1em 0.5em;
    background-color: #fff;
    color: #444;
    font-size: 6vw;
    letter-spacing: 0.15em;
    margin-bottom: 1.5vw;
}

.copy p:nth-child(2) {
    margin-bottom: 10vw;
}

@media (width>800px) {
    .copy p {
        font-size: 40px;
    }

    .copy p:nth-child(2) {
        margin-bottom: 30px;
    }
}


.idea {
    padding: 30% 8% 10%;
    font-size: 20px;
    color: #fff;
}

.idea-inner {
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    margin-bottom: 50px;
}

.idea h2 {
    font-size: 7vw;
    margin-bottom: 0.5em;
    border-bottom: solid #fff 2px;
}

@media screen and (width>600px) {
    .idea h2 {
        font-size: 2em;
    }
}

.idea h3 {
    font-size: 1.1em;
    margin-bottom: 2em;
    font-weight: normal;
}

.idea h3:last-child {
    text-align: center;
}

.idea p {
    font-size: 0.9em;
    margin-bottom: 15px;
}


/* hope */
.hope {
    overflow: hidden;
    padding: 0 5%;
    margin-bottom: 100px;
}

.hope-inner {
    background-color: var(--orange);
    border-radius: 500px 500px 0 0 / 300px 300px 0 0;
    margin: 16px -200px 0;
    padding: 150px 230px 50px;
}

.hope h2 {
    font-size: 5vw;
    border-bottom: 2px solid #000;
}

.hope h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hope-container {
    /* padding-bottom: 150px; */
    margin-bottom: 80px;
}


.hope-img {
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
}

.hope-text {
    line-height: 1.7;
    padding-bottom: 40%;
}

.hope-container:nth-of-type(1) .hope-text {
    background-image: url(img/chi-illust01.svg);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.hope-container:nth-of-type(2) .hope-text {
    background-image: url(img/horse.jpg), url(img/water-park.jpg);
    background-position: left bottom, right bottom;
    background-size: 40%, 50%;
    background-repeat: no-repeat;
}

.hope-container:nth-of-type(3) .hope-text {
    background-image: url(img/volunteer.jpg);
    background-position: left bottom;
    background-size: 70%;
    background-repeat: no-repeat;
}

@media screen and (width<800px) {
    .hope-text {
        padding-right: 10%;
    }

    .hope-container:first-of-type .hope-text {
        padding-right: 0%;
    }
}

@media screen and (width>800px) {
    .hope-container {
        display: flex;
        /* align-items: flex-start; */
        gap: 7%;
        /* padding-bottom: 50px; */
    }

    .hope-container:nth-of-type(even) {
        flex-direction: row-reverse;
    }

    .hope-container:nth-of-type(1) .hope-text {
        background-size: 80%;
        padding-bottom: 200px;
    }

    .hope-container:nth-of-type(2) {
        background-position: left 250px, 30% 370px;
        background-size: 200px, 220px;
        background-repeat: no-repeat;
    }

    .hope-container:nth-of-type(3) .hope-text {
        background-size: 90%;
        padding-bottom: 200px;
    }

    .hope-img {
        width: 50%;
        margin-bottom: 0;
    }

    .hope-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hope-text {
        width: 50%;
    }

    .hope-inner {
        border-radius: 1200px 1200px 0 0 / 300px 300px 0 0;
    }
}

/* house */
.house {
    padding: 50px 5% 0;
}

.house_title {
    margin-bottom: 20px;

    span {
        font-size: 65%;
        display: block;
        color: #444;
    }
}

.house-slide {
    /* width: 90%; */
    height: 300px;
    overflow: hidden;
    white-space: nowrap;
    background: #fdfaf1;
    /* margin: 0 auto; */
}

.house-content {
    width: 50%;
    margin-bottom: 30px;
    display: inline-block;

    div {
        height: 200px;
    }
}

.house img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide-4 {
    0% {
        margin-left: 0;
    }

    16% {
        margin-left: -50%;
    }

    33% {
        margin-left: -100%;
    }

    49% {
        margin-left: -150%;
    }

    66% {
        margin-left: -200%;
    }

    83% {
        margin-left: -250%;
    }

    100% {
        margin-left: -300%;
    }
}

.house-slide> :first-child {
    animation-name: slide-4;
    animation-duration: 25s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* voice */

.voice {
    padding: 0 10% 0 5%;
    margin-bottom: 150px;
}

.voice_title {
    margin-bottom: 30px;

    span {
        font-size: 65%;
        display: block;
        color: #444;
    }
}

.voice_content {
    width: 85%;
    margin-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 0 20px var(--orange);
}

.voice_content:nth-child(even) {
    margin-left: auto;
}

.voice_content:last-child {
    margin-bottom: 0;
}

.voice_content h3 {
    width: 5em;
    background-color: var(--orange);
    color: #fff;
    text-align: center;
    position: relative;
    top: -10px;
    left: 40px;
}

.voice_content p {
    padding: 10px 40px 25px;
}

@media screen and (900px < width) {
    .voice_inner {
        display: flex;
        gap: 3%;
    }

    .voice_content {
        margin-bottom: 0;
    }
}



/* policy */
.policy {
    padding: 0 15% 0 10%;
    margin-bottom: 50px;
}

.policy h2 {
    font-size: 1.5em;
    margin-bottom: 1.5em;
}

.policy li {
    margin-bottom: 2em;
    font-size: 1em;
    list-style: disc;
}

.marker {
    background: linear-gradient(transparent 70%, var(--orange) 70%);
    display: inline;

    /* 背景の繰り返しを停止 */
    background-repeat: no-repeat;

    /* マーカーの横方向を0にして縮める */
    background-size: 0% 100%;

    /* マーカーが引かれる速度を指定 */
    transition: background-size 1.5s;
}

/* マーカーが引かれる際に付与するクラス */
.marker.on {
    /* 横方向を100%にして、マーカーを引く */
    background-size: 100% 100%;
}

@media screen and (width>800px) {
    .br-none {
        display: inline;
    }

    .policy {
        display: flex;
        gap: 60px;
    }

    .policy h2 {
        writing-mode: vertical-rl;
        width: 30%;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        font-size: 2em;
    }

    .policy li {
        font-size: 2.5vw;
    }
}

.sea-img {
    margin-bottom: 100px;
    max-height: 200px;
    overflow: hidden;
}

/* record */
.record {
    width: 80%;
    margin: 0 auto 100px;

    .record_title {
        margin-bottom: 20px;

        span {
            font-size: 65%;
            display: block;
            color: #444;
        }
    }

    table {
        width: 100%;

        tr:nth-child(odd) {
            background: #b9c99e;
        }

        th {
            font-weight: normal;
            text-align: left;
            padding: 10px;
        }

        td {
            padding: 10px;
        }
    }
}

/* future */

.future {
    width: 98%;
    /* max-width: 700px; */
    padding-bottom: 20px;
    margin: 0 auto 50px;
    background: url(img/bg-img02.svg);
    background-size: 50%;
    line-height: 1.8;
    border-radius: 30px 30px 0 0;

    /* text-align: center; */

    .future_title {
        padding: 5% 20% 3% 10%;
        margin-bottom: 20px;
        font-size: 1.5em;
        border-bottom: #fdfaf1 solid 2px;

        span {
            font-size: 65%;
            display: block;
            color: #444;
        }
    }

    .future_img_inner {
        position: relative;
        width: 100%;
        max-width: 500px;
        height: 10em;
        margin: 0 auto;
        writing-mode: vertical-rl;
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 24px;
        color: #000;
        z-index: 2;

        p span {
            border-right: solid 5px #ffa500;
        }

        .name {
            font-size: 85%;
            display: flex;
            justify-content: flex-end;
            padding-bottom: 2em;
        }
    }

    .ai_img {
        position: relative;
        top: -80px;
        z-index: 1;
        width: 80%;
        max-width: 400px;
        margin: 0 auto;

        p {
            display: none;
        }
    }


    p {
        padding: 0% 20% 5% 10%;
        font-size: 1.2em;
    }

    @media (width > 800px) {
        .future_inner {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;

            .future_img {
                width: 40%;
            }

            .future_text {
                width: 50%;
            }

            .ai_img {
                top: -50px;

                p {
                    padding: 20px;
                    margin: 50px 0;
                    display: block;
                    writing-mode: vertical-rl;
                    line-height: 2.5;
                    background: rgba(255, 255, 255, 0.377);
                    box-shadow: 0 0 30px #fff;

                    &:nth-of-type(1) {
                        margin-left: 25%;
                        border-radius: 80% 30% 50% 50%/50%;
                    }

                    &:nth-of-type(2) {
                        margin-left: 10%;
                        border-radius: 40% 40% 50% 40%/30% 50% 50% 50%;
                    }
                }
            }
        }

        p {
            padding: 0% 8% 5% 5%;
        }
    }
}


.contact {
    padding: 0 15% 0 10%;
    max-width: 800px;
    margin: 0 auto;

    input {
        width: 90%;
        padding: 10px;
        margin-bottom: 20px;
        font-size: 120%;
    }

    textarea {
        font-size: 120%;
        width: 90%;
        padding: 10px;
    }

    button[type="submit"] {
        width: 90%;
        margin-top: 20px;
        padding: 8px;
        background: #b9c99e;
        border: none;
        cursor: pointer;
        transition: 0.3s;

        &:hover {
            opacity: 0.7;
        }
    }
}

.chality-btn {
    color: #fff;
    width: 90px;
    margin-left: auto;
    position: fixed;
    right: 0;
    z-index: 10;
    bottom: 50px;
    /* margin-right: 31px; */
    border: solid 3px #fdfaf1;
    writing-mode: vertical-rl;
    background-color: var(--orange);
    padding: 20px;
    display: block;
    color: #fff;
    font-weight: bold;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;

    &:hover {
        opacity: 1;
        background: #ef9f00;
        transition: 0.3s;
    }
}

.chality-btn.active {
    transition: 0.5s;
    opacity: 1;
    visibility: visible;
}

.chality-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 10;
    cursor: pointer;

    span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;

        &:nth-child(1) {
            transform: rotate(40deg) translate(15px, 20px);
        }

        &:nth-child(2) {
            transform: translateY(20px) rotate(140deg);
        }
    }
}

.chality {
    background: #ef9f00;
    width: 90%;
    max-width: 550px;
    /* height: 330px; */
    padding: 30px;
    position: fixed;
    bottom: 40px;
    right: -550px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    border-radius: 5px;
    transition: 0.5s;

    .chality-content {
        width: 75%;
        max-width: 500px;
        border: #fff solid;
        display: block;
        padding: 30px 20px;
        font-weight: bold;
        color: #fff;
        transition: 0.5s;

        span {
            color: #fff;
        }
    }

    a:hover {
        background: #fff;
        color: #ef9f00;
        opacity: 1;
        border-radius: 30px 0 0;
    }

    &.open {
        right: 0;
    }
}


footer {
    padding-top: 40px;
    background-image: url(img/footer-bg.jpg);
    background-size: cover;
    background-position: center bottom;

    .footer_content {
        width: 90%;
        background-color: #ffffffc2;
        padding: 100px 20% 20px 20px;
        margin: 0 auto;
        clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0 38%);

        h2 {
            font-size: 2.5em;
            line-height: 1;
            margin-bottom: 30px;
            text-align: center;

            span {
                font-size: 0.5em;
            }
        }

        dl {
            display: grid;
            grid-template-columns: 3em 1fr;
            gap: 10px;
            align-items: center;
            /* grid-template-rows: repeat(3, 30px); */
            line-height: 1.2;
        }
    }

    p {
        text-align: center;
        background-color: #ffffffc2;
        padding: 5px 0;
        margin-bottom: 0;
    }
}

@media screen and (width>560px) {
    footer .footer_content {
        width: 60%;
        max-width: 600px;
        padding: 150px 50px 20px;
    }
}.subheading {
    background-color: transparent !important;
    padding: 0;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    color: #000;
}.footer_content dl {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.footer_content dt,
.footer_content dd {
    display: inline-block;
    margin: 0;
}.footer_content dl {
    display: flex;
    flex-direction: column;
    align-items: center;     /* 全体を中央に */
    gap: 10px;
    text-align: left;        /* ラベルと値を横に並べた時に左寄せ */
}

.footer_content dt,
.footer_content dd {
    display: inline-block;
    font-size: 1em;
    margin: 0;
}

.footer_content .line {
    display: flex;
    justify-content: center; /* 各行ペアを中央に並べる */
    gap: 1em;                 /* ラベルと値の間のすき間 */
}