@font-face {
    font-family: "HonokaMaruGothic";
    src: url("../fonts/font_1_honokamarugo_1.1.ttf") format("truetype");
}

.honoka {
    font-family: "HonokaMaruGothic", Meiryo, sans-serif;
}

.kaku {
    font-family: "Noto Sans JP", Meiryo, sans-serif;
}

body {
    /* font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; */
    /* font-family: "Noto Sans JP", Meiryo, sans-serif; */
    font-family: "Zen Maru Gothic", Meiryo, sans-serif;
    /* font-family: "HonokaMaruGothic", Meiryo, sans-serif; */
    margin: 0 auto;
    padding: 0;
    color: #333;
    /* line-height: 1.6; */
    font-size: 1.25rem;
    scroll-behavior: smooth;
}

h1 {
    color: #217AC5;
    font-size: 3.75rem;
    font-weight: 900;
    /* margin-bottom: 1em; */
}

h2 {
    font-size: 2.375rem;
    color: #217AC5;
    text-align: center;
    margin-bottom: 50px;
}


h3 {
    font-size: 1.75rem;
    color: #217AC5;
    margin: 2rem 0;
}

h4 {
    font-size: 1.25rem;
}

p {
    /* font-size: 1.25rem; */
    margin: 0;
    padding: 0;
}

th {
    background-color: #f5f5f5;
    width: 20%;
}

td {
    background-color: #fff;
}

section {
    padding: 90px 0;
}

.mobile-br {
    display: none;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    background-color: #217AC5;
    position: absolute;
    top: calc(50% - 1.1875rem);
    left: -4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    background-color: #D32F2F;
    position: absolute;
    top: calc(50% - 1.1875rem);
    right: -4rem;
}

.section-title4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;

    & h2 {
        margin-bottom: 1rem;
    }

    & p {
        font-size: 1.25rem;
        font-weight: bold;
        color: #c5ddff;
    }
}

.title3 {
    /* padding-left: 1em; */
    position: relative;
}

.title5 {
    position: relative;
    width: calc(90% + 40px);
    background-color: #217AC5;
    color: #fff;
    padding: 15px 20px;
    border-radius: 1em;
    font-size: 1.75rem;
    margin: 1em auto;
    text-align: center;
}

.title5:before {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 10px;
    margin-top: -12px;
    border: 12px solid transparent;
    border-top: 30px solid #217AC5;
    transform: rotate(20deg);
    z-index: 2;
}

.section-title6 {
    font-family: "HonokaMaruGothic", Meiryo, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #217AC5;

    & h2 {
        font-size: 3.75rem;
        font-weight: 900;
        margin-bottom: 1rem;
    }

    & p {
        font-size: 2rem;
        font-weight: bold;
        /* color: #c5ddff; */
    }
}

.page-title6 {
    font-family: "HonokaMaruGothic", Meiryo, sans-serif;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    margin-bottom: 2rem;
    color: #217AC5;

    & h2 {
        font-size: 3.75rem;
        font-weight: 900;
        margin-bottom: 1rem;
        text-align: left;
    }

    & p {
        font-size: 2rem;
        text-align: left;
    }
}

.title-red {
    color: #D32F2F;
}

.description-section {
    margin-bottom: 0.8em;
}

.about-content {
    margin-bottom: 3rem;
}

.vision-content {
    /* font-size: 1.25rem; */
    /* font-weight: bold; */
    /* color: #c5ddff; */
    text-align: center;
}

.vision-content-message {
    font-size: 2rem;
    font-weight: bold;
    color: #217AC5;
    margin-bottom: 2rem;
}


/* .title5:after {
    content: "";
    position: absolute;
    top: 50%;
    left: -30px;
    margin-top: -14px;
    border: 15px solid transparent;
    border-top: 15px solid #e0edff;
    z-index: 1;
} */

/* .title3::before {
    content: '';
    display: block;
    width: 0.5em;
    height: 1em;
    background-color: #D32F2F;
    position: absolute;
    top: calc(50% - 0.5em);
    left: 0;
} */

.text-link {
    display: inline-block;
    color: #666666;
}

.text-link:hover {
    color: #000000;
}

.message-text-top,
.message-text-bottom {
    display: block;
    color: #525252;
    margin: 3vw 0;
    /* font-size: 5rem; */
    font-weight: bold;
}

.message-text-top {
    position: relative;
    left: -24px;
}

.message-text-bottom {
    margin-bottom: 500px;
    position: relative;
    left: 24px;
}

.container {
    width: 100vw;
    /* aspect-ratio: 2 / 1; */
    /* position: relative; */
    /* margin: 0 auto; */
}

.big {
    font-size: 1.25em;
    margin: 0 -0.4em;
}

.text-blue {
    color: #217AC5;
}

.closer {
    letter-spacing: -0.1em;
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    background-size: cover;
    background-position: center center;

    animation: image-switch-animation 12s infinite;
}

.src1 {
    background-image: url(../image/mainvisual1.jpg);
}

.src2 {
    background-image: url(../image/mainvisual2.jpg);
}

.src3 {
    background-image: url(../image/mainvisual3.jpg);
}

@keyframes image-switch-animation {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    35% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.image:nth-of-type(1) {
    animation-delay: 0s;
}

.image:nth-of-type(2) {
    animation-delay: 4s;
}

.image:nth-of-type(3) {
    animation-delay: 8s;
}


#news {
    position: relative;
    padding-top: 100px;

    & .char-man {
        position: absolute;
        width: 200px;
        height: 200px;
        top: 90px;
        left: 30px;
    }

    & .char-woman {
        position: absolute;
        width: 200px;
        height: 200px;
        top: 90px;
        right: 30px;
    }

    & h2 {
        position: relative;

        & .fox-blue {
            position: absolute;
            width: 100px;
            height: 100px;
            top: -10px;
            left: -135px;
        }
    }

    & a {
        display: block;
        margin: 0 auto;

        & p {
            text-align: center;
        }
    }
}

.hukidashi {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 40px;
    right: 170px;
}

/* .news-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.news-content h2 {
    min-width: 5em;
}

.news-content .section-title4 {
    margin-bottom: 0;
} */

.news-content-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.news-link {
    position: relative;
    display: block;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid #c8c8c8;
    width: 100%;
    color: #000000;
    opacity: 0.7;
}

.news-link::before {
    content: '';
    position: absolute;
    display: block;
    border-top: 3px solid #D32F2F;
    border-right: 3px solid #D32F2F;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    right: 5px;
}

.news-link:hover {
    opacity: 1;
}

.youtube iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* --------------------コンテンツ-------------------- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.message-container {
    position: relative;
    margin-top: 80px;
    width: 100vw;
    height: calc(100vh - 80px);
    left: 0;
    /* margin: 50px auto; */
    /* background-image: url(../image/mainvisual1.jpg); */
    /* background-image: url(../image/mainvisual3.png); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: rgba(255, 255, 255, 0.7); */
    background-blend-mode: overlay;
}

.message {
    max-width: 825px;
    height: 100%;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.load-fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.5s;
    transform: translate(0, -30px);

    &.scrollin {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
    }
}

.load-delay-fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.5s;
    transform: translate(0, -30px);

    &.scrollin {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
    }
}


.fadein {
    opacity: 0;
    transform: translate(0, 0);
    transition: all 1.5s;
    transform: translate(0, 30px);

    &.scrollin {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
    }
}

.shinkin-link {
    display: flex;
    justify-content: center;
    align-items: center;

}

.shinkin-link-img {
    width: 600px;
    height: auto;
}

/* --------------------レスポンシブ対応-------------------- */

/* 画像のレスポンシブ対応 */
img {
    max-width: 100%;
    height: auto;
}

/* テーブルの横スクロール対応 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


@media screen and (max-width: 1024px) {
    .message-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .message-text-top {
        font-size: 3rem;
    }

    .message-text-bottom {
        font-size: 3rem;
        margin-bottom: 350px;
    }

    h1 {
        margin-bottom: 0;
    }
}

/* タブレット対応 (768px以下) */
@media screen and (max-width: 820px) {

    body {
        font-size: 1rem;
    }

    /* h1 {
        font-size: 28px;
    } */

    /* h2 {
        font-size: 1.8rem;
    } */

    /* h3 {
        font-size: 1.3rem;
    } */

    .message-text-bottom {
        margin-bottom: 250px;
    }


    .content {
        padding: 0 1rem;
    }

    .section-title::before,
    .section-title::after {
        width: 1.8rem;
        height: 1.8rem;
        top: calc(50% - 0.9rem);
    }

    .section-title::before {
        left: -3rem;
    }

    .section-title::after {
        right: -3rem;
    }

    .title5 {
        width: 100%;
    }

    /* .message-container {
        margin-top: 80px;
        height: calc(100vh - 80px);
    } */

    #news {

        & .char-man {
            position: absolute;
            width: 200px;
            height: 200px;
            top: 200px;
            left: 0;
        }

        & .char-woman {
            position: absolute;
            width: 200px;
            height: 200px;
            top: 200px;
            right: 0;
        }

        & h2 {
            & .fox-blue {
                width: 80px;
                height: 80px;
                top: -70px;
                left: 0;
            }

            & .fox-red {
                width: 80px;
                height: 80px;
                top: 50px;
                right: 0;
            }
        }
    }
}

/* スマホ対応 (480px以下) */
@media screen and (max-width: 480px) {

    body {
        font-size: 0.8rem;
    }

    section {
        padding: 50px 0;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.5;
        margin-bottom: 50px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.25rem;
        text-align: left;
    }

    .src1 {
        background-image: url(../image/mainvisualSP1.jpg);
    }

    .src2 {
        background-image: url(../image/mainvisualSP2.jpg);
    }

    .src3 {
        background-image: url(../image/mainvisualSP3.jpg);
    }

    .message-container {
        /* background-image: url(../image/mainvisualSP2.png); */
        height: calc(100vh - 80px - 50px);
    }

    .message-text-container {
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        justify-content: center;
    }

    .message-text-top {
        letter-spacing: 0.2rem;
        margin-bottom: -10px;
        /* margin-bottom: 5px; */
    }

    .message-text-bottom {
        letter-spacing: 0.3rem;
        margin-bottom: 100px;
    }

    .vision-content-message {
        font-size: 1.75rem;
    }

    .mobile-br {
        display: block;
    }

    .content {
        padding: 0 1.5rem;
    }

    .container {
        width: calc(100vw - 20px);
    }

    .section-title::before,
    .section-title::after {
        width: 1.5rem;
        height: 1.5rem;
        top: calc(50% - 0.75rem);
    }

    .section-title::before {
        left: -2.5rem;
    }

    .section-title::after {
        right: -2.5rem;
    }

    .title5 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-title6 {
        & h2 {
            font-size: 3rem;
        }

        & p {
            font-size: 1.5rem;
        }
    }

    #news {

        & .char-man {
            position: absolute;
            width: 150px;
            height: 150px;
            top: -50px;
            left: 0;
        }

        & .char-woman {
            position: absolute;
            width: 150px;
            height: 150px;
            top: -50px;
            right: 0;
        }

        & h2 {
            & .fox-blue {
                width: 80px;
                height: 80px;
                top: -70px;
                left: 0;
            }

            & .fox-red {
                width: 80px;
                height: 80px;
                top: 50px;
                right: 0;
            }
        }
    }
}


/* タッチ操作の改善 */
@media (hover: none) and (pointer: coarse) {

    .button-blue,
    .button-red {
        min-height: 44px;
        /* タッチターゲットの最小サイズ */
    }

    .header-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}