@import url();

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background-color: transparent;
    text-decoration: none;
    list-style: none;
}

:root {
    --main-color: #1F3333;
    --secondary-color: #005C35;
    --light-color: #6D7878;
    --link-color: #005C35;
    --link-hover-color: #b5bbbb;
    --bg-color: #fff;
    --bg-box-color: #EBE2D5;
    --border-light-color: #D9D9D9;
    --font-midashi: "Zen Kaku Gothic New";
    --form-color: #FAFAFA;
    --selection-bg: #BF7811;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    font-family: "Zen Kaku Gothic New", sans-serif;
    text-align: justify;
    letter-spacing: 0.08rem;
    margin-top: 0 !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    padding: 0;
    margin: 0;
    padding-right: 0;
    padding-left: 0;
    font-size: 62.5%;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

a {
    color: var(--link-color);

    &:hover {
        color: var(--link-hover-color);
        opacity: 0.5;
        transition: 0.3s;

        .cat {
            border: var(--border-light-color) 1px solid;
            opacity: 0.5;
            transition: 0.3s;
        }
    }
}

::selection {
    background: var(--selection-bg);
    color: var(--bg-color);
}

/* ------------------------------- 共通パーツ ------------------------------- */

.wrap {
    width: 90vw;
    margin: 0 auto;
    max-width: 1280px;
}

.link_button {
    a {
        font-size: 1.4rem;
    }
}

.link-arrow {
    display: inline-block;

    a {
        display: flex;
        align-items: center;
        gap: 1.6rem;
        font-size: 1.6rem;
    }

}

.contents_block {
    display: flex;
    gap: 3.2rem;

    .contents_block_title {
        width: 30%;

        h4 {
            font-size: 2rem;
            font-family: var(--font-midashi);
            letter-spacing: 0.5rem;
            font-weight: 600;
            color: var(--secondary-color);
        }
    }

    .contents_block_txt {
        flex: 1;
        font-size: 1.8rem;
        margin-bottom: 14.4rem;

        p.contents_block_sub_txt {
            line-height: 4rem;
            letter-spacing: 0.1rem;
            padding-bottom: 1.8rem;
            font-weight: 500;
        }

        a {
            text-decoration: underline;
            color: var(--link-color);
        }

        p.contents_block_sub_txt_2 {
            line-height: 4rem;
            letter-spacing: 0.1rem;
            font-weight: 500;
        }

        .contents_block_overview {
            line-height: 4rem;
            font-size: 1.4rem;
        }
    }
}

.arrow-left-maru {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    border: 1px solid;
    border-radius: 22px;
    background-color: var(--bg-box-color);

    &::after,
    &::before {
        content: "";
        display: block;
        box-sizing: border-box;
        position: absolute;
        left: 7px;
    }

    &::after {
        width: 3px;
        height: 3px;
        border-bottom: 1px solid;
        border-left: 1px solid;
        transform: rotate(45deg);
        bottom: 10px;
    }

    &::before {
        width: 10px;
        height: 1px;
        bottom: 11px;
        background: currentColor;
    }
}

.arrow-right-maru {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    border: 1px solid;
    border-radius: 22px;
    color: var(--bg-color);
    background-color: var(--secondary-color);

    &::after,
    &::before {
        content: "";
        display: block;
        box-sizing: border-box;
        position: absolute;
        right: 7px;
    }

    &::after {
        width: 3px;
        height: 3px;
        border-top: 1px solid;
        border-right: 1px solid;
        transform: rotate(45deg);
        bottom: 10px;
    }

    &::before {
        width: 10px;
        height: 1px;
        bottom: 11px;
        background: currentColor;
    }
}

/* -------------------------- header -------------------------- */



/* -------------------------- img -------------------------- */
.first-view {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 90vh;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    background-color: #B7D450;
}

.logo {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    /* スマホ用の最小高さ */
}

.logo img {
    max-width: 80%;
    height: auto;
}

.slideshow {
    flex: 7;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 5vh 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

/* -------------------------- list -------------------------- */

.program-lists {
    padding-bottom: 5rem;
}

h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    padding-bottom: 3rem;
}

.program-list-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.program-list {
    display: flex;
    flex-direction: column;
    font-size: 1.6rem;
    gap: 2rem;
    min-width: 600px;
}

.list-header,
.list-cell {
    display: grid;
    grid-template-columns: 40px minmax(150px, 3fr) minmax(100px, 1fr) minmax(100px, 1fr);
    column-gap: 1.5rem;
    padding: 0;
}

.list-header {
    font-weight: bold;
    line-height: 4rem;
    border-bottom: 1px solid var(--border-light-color);
}

.list-cell {
    line-height: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light-color);
}

.list-tw {
    display: flex;
    justify-content: space-between;
}

/* -------------------------- foo -------------------------- */
footer {
    width: 90vw;
    margin: 0 auto;
    max-width: 1280px;
    padding: 5rem 0;
    font-size: 1.2rem;
}


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

@media (max-width: 1070px) {
    .wrapper {
        flex-direction: column;
    }

    .wrapper_normalIcon {
        margin-bottom: 24px;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .first-view {
        position: relative;
        /* ロゴのabsolute配置用の基準にする */
        flex-direction: column;
        height: auto;
    }

    .slideshow {
        width: 100%;
    }

    .slideshow-inner {
        height: 80vh;
        margin: 0;
    }

    .logo {
        position: absolute;
        /* スライドの上に重ねる */
        top: 50%;
        /* 中央寄せ */
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        /* スライドより上 */
        width: 70%;
        /* ロゴサイズを調整 */
        padding: 0;
    }

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

    .slide img {
        border-radius: 0;
        /* 重ねる場合は角丸を調整 */
    }

    .program-list {
        font-size: 1.4rem;
    }

    .list-header,
    .list-cell {
        grid-template-columns: 40px minmax(120px, 2fr) minmax(80px, 1fr) minmax(80px, 1fr);
    }


    .contents_block {
        flex-direction: column;

        .contents_block_txt {
            border-top: 0;
            margin-bottom: 9.6rem;
        }

        .contents_block_title {
            width: 100%;
        }
    }

    footer {
        padding-right: 1.6rem !important;
        padding-left: 1.6rem !important;
    }
}

@media (max-width: 568px) {
    .logo {
        padding: 0;
    }
}