@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

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

:root {
    --main-color: #3255E9;
    --secondary-color: #333333;
    --txt-light-color: #8B8B8B;
    --link-color: #3255E9;
    --link-hover-color: #b5bbbb;
    --bg-color: #F5F5F5;
    --base-color: #FFF;
    --border-color: #B4B4B4;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    text-align: justify;
    letter-spacing: 0.08rem;
    margin-top: 0 !important;
    overflow-x: hidden;
}

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;
    overflow-x: hidden;
    /* display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr; */
    height: 100vh;
}

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

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

::selection {
    background: var(--link-color);
    color: var(--base-color);
}

/* ----------------- parts ----------------- */

.chevron-right {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 19px;
    height: 19px;
    border: 2px solid transparent;
    border-radius: 100px;

    &::after {
        content: "";
        display: block;
        box-sizing: border-box;
        position: absolute;
        width: 7px;
        height: 7px;
        border-bottom: 1px solid var(--main-color);
        border-right: 1px solid var(--main-color);
        transform: rotate(-45deg);
        right: 0;
        top: 4px;
    }
}

.arrow-right {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(1.5);
    width: 22px;
    height: 22px;

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

    &::after {
        width: 8px;
        height: 8px;
        border-top: 2px solid;
        border-right: 2px solid;
        transform: rotate(45deg);
        bottom: 7px;
    }

    &::before {
        width: 16px;
        height: 2px;
        bottom: 10px;
        background: currentColor;
    }
}

.arrow-right {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(1.5);
    width: 22px;
    height: 22px;

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

    &::after {
        width: 8px;
        height: 8px;
        border-top: 2px solid;
        border-right: 2px solid;
        transform: rotate(45deg);
        bottom: 7px;
    }

    &::before {
        width: 16px;
        height: 2px;
        bottom: 10px;
        background: currentColor;
    }
}


.dli-box-in {
    display: inline-block;
    vertical-align: middle;
    color: var(--main-color);
    line-height: 1;
    position: relative;
    width: 1.15em;
    height: 1.15em;
}

.dli-box-in::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.46em;
    border: 0.1em solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.15em 0.15em;
    box-sizing: border-box;
}

.dli-box-in>span {
    position: relative;
    width: 0.1em;
    height: 0.625em;
    background: currentColor;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.353em;
    margin: auto;
}

.dli-box-in>span::before {
    content: '';
    width: 0.40625em;
    height: 0.40625em;
    border: 0.1em solid currentColor;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    position: absolute;
    left: 50%;
    bottom: -0.05em;
    box-sizing: border-box;
}

.midashi {
    h2 {
        position: relative;
        display: inline-block;
        margin-bottom: 1em;
        font-size: 2rem;
        letter-spacing: 0.5rem;
        padding-top: 1rem;
    }

    h2:before {
        content: '';
        position: absolute;
        top: 0;
        display: inline-block;
        width: 100%;
        height: 2px;
        background-color: var(--main-color);
    }
}

.midashi_sub {
    h3 {
        border-top: 1px solid var(--main-color);
        margin-bottom: 1em;
        font-size: 1.8rem;
        letter-spacing: 0.1rem;
        padding: 2.4rem 0;
        margin-top: 1.2rem;
    }
}

.midashi_tag {
    display: flex;
    border-top: 1px solid var(--main-color);
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
    padding: 2.4rem 0;
    margin-top: 1.2rem;
    gap: 1.6rem;

    .tag {
        flex: 0 0 auto;
        border: 1px solid var(--main-color);
        background-color: var(--base-color);
        font-size: 1.4rem;
        padding: 0.4rem 1.6rem;
        white-space: nowrap;
        align-self: flex-start;
    }
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--secondary-color);
}

/* ----------------- container ----------------- */

.container {
    /* display: grid;
    grid-template-rows: repeat(4, auto);
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "slide"
        "content"
        "footer";
    align-items: start; */
}

header {
    /* grid-area: header; */
    padding: 2.4rem 8.4rem;
}

.slide {
    /* grid-area: slide; */
}

.content {
    flex: 1;
    grid-area: content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    grid-template-columns: 2fr 8fr;
    padding: 0 8.4rem;
    gap: 0 6.4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 6.4rem;
    align-items: start;
}

aside {
    position: sticky;
    top: 14rem;
    height: max(100vh - 14rem, auto);
    overflow: auto;
    width: 23rem;
}

main {
    flex: 1;
}

footer {
    /* grid-area: footer; */
}


/* ----------------- head ----------------- */

.l-header {
    display: block;
    z-index: 999;
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    max-width: 100vw;
    background: var(--main-color);

    .p-header__hamburger {
        z-index: 100;
        position: absolute;
        top: 0;
        right: 0;
        width: 95px;
        height: 100%;

        .c-hamburger {
            position: relative;
            width: inherit;
            height: inherit;
            margin: 0;
            border: transparent;
            background-color: transparent;
            cursor: pointer;

            span {
                display: block;
                position: relative;
                left: 50%;
                width: 24px;
                height: 2px;
                transform: translateX(-50%);
                background: var(--base-color);
                transition: all 0.4s;

                &:nth-of-type(1) {
                    top: -4px;
                }

                &:nth-of-type(2) {
                    top: 1px;

                    transform: translateX(-0.45deg);
                }

                &:nth-of-type(3) {
                    top: 6px;
                    transform: translateX(-0.45deg);
                }

            }

            &.is-active {
                span {
                    &:nth-of-type(1) {
                        top: 0;
                        transform: translateX(-50%) rotate(225deg);
                    }

                    &:nth-of-type(2) {
                        opacity: 0;
                    }

                    &:nth-of-type(3) {
                        top: -4px;
                        transform: translateX(-50%) rotate(-225deg);
                    }
                }
            }
        }

    }

    .p-header__nav {
        display: flex;
        z-index: 10;
        position: absolute;
        top: 0;
        right: -100%;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        background: transparent;
        opacity: 0;
        transition: top 0.6s, right 0.6s, opacity 0.6s;

        &.is-active {
            position: fixed;
            top: 0;
            right: 0;
            opacity: 1;
            background-color: var(--main-color);
        }

        .p-nav__list {
            display: block;
            padding-right: 20px;
            padding-left: 20px;
            gap: 2rem;
        }

        .p-nav__item {
            position: relative;
            font-size: 1.4rem;
        }


        .p-nav__link {
            color: var(--base-color);
            display: block;
            width: 100%;
        }
    }

}

.p-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: inherit;
    color: var(--base-color);

    .site-title {
        p {
            font-size: 2rem;
            color: var(--base-color);

            &:first-child {
                font-size: 1.4rem;
            }
        }
    }
}

/* ----------------- side ----------------- */

.side_link {
    position: sticky;
}

.side_link_list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    position: sticky;
    align-self: flex-start;

    li {
        border: 1px solid var(--main-color);
        padding: 1.4rem;
        background-color: var(--base-color);

        a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.4rem;
        }
    }
}

.side_link_banner {
    margin-top: 3.2rem;

    img {
        width: 100%;
        max-width: 23rem;
    }
}

.side_link_map {
    margin-top: 3.2rem;
    border: 1px solid var(--main-color);
    position: relative;
    height: 25rem;
    padding-top: 75%;

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

}


/* ----------------- slideshow ----------------- */


.slideshow-container {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide.fade-out {
    opacity: 0;
    visibility: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
}

.slide_guide {
    display: flex;
    justify-content: center;

    /* ナビゲーションボタンのスタイル */
    .slide-nav {
        position: absolute;
        bottom: 50%;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 1.2rem;
        transition: background 0.3s;
        z-index: 1;
    }

    .slide-nav:hover {
        /* background: rgba(0, 0, 0, 0.8); */
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    /* インジケーターのスタイル */
    .slide-dots {
        position: absolute;
        bottom: 3%;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        z-index: 1;
        padding: 0 1.6rem;
    }

    .dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s;
    }

    .dot.active {
        background: white;
    }
}




/* ----------------- main ----------------- */

.post_list {
    li {
        display: flex;
        align-items: center;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1.6rem 0;
        margin-bottom: -1px;
        column-gap: 3.2rem;
        row-gap: 1.4rem;

        .top_news_group {
            display: flex;
            column-gap: 3.2rem;
            align-items: center;

            .days {
                min-width: 7rem;
                font-size: 1.1rem;
                line-height: 1.6rem;
                color: var(--txt-light-color);
            }

            .cat {
                font-size: 1.3rem;
                line-height: 1.6rem;
                border: 1px solid var(--main-color);
                border-radius: 4rem;
                padding: 0.4rem 2.2rem;
                color: var(--main-color);
                background-color: var(--base-color);
                width: fit-content;
                white-space: nowrap;
            }
        }

        h4 {
            font-size: 1.5rem;
            font-weight: 500;
        }
    }
}

.link_border {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.4rem;

    a {
        display: flex;
        gap: 4rem;
        border-bottom: 1px solid var(--link-color);
        padding-bottom: 1rem;
        font-size: 1.4rem;
        font-weight: 400;
    }

}

.top_news {
    p {
        font-size: 1.6rem;
        line-height: 4rem;
    }
}

.top_info {
    position: relative;
    padding: 9rem 0 9rem 8.4rem;
    margin-top: 6.4rem;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: -50vw;
        width: auto;
        height: 100%;
        background: var(--base-color);
        z-index: -1;
    }

    .top_info_box {
        font-size: 1.6rem;
        line-height: 3.6rem;
        color: var(--secondary-color);
        margin-top: 4.8rem;

        img {
            margin-top: 5.6rem;
            width: 100%;
        }
    }
}

.top_overview {
    margin-top: 7.2rem;

    h2 {
        margin-bottom: 2.8rem;
    }

    li {
        padding: 2.4rem 0;
        column-gap: 14.5rem;

        p {
            font-size: 1.4rem;

            &:first-child {
                width: 10%;
            }
        }
    }
}


.pdf-list,
.pdf-solo {
    margin-bottom: 5.6rem;
    font-weight: 500;

    li {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: -1px;
        padding: 2.4rem 0;
        align-items: center;
        gap: 2rem;

        p {
            font-size: 1.6rem;
            color: var(--secondary-color);
        }

        a {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 1.4rem;
            border: 1px solid var(--main-color);
            padding: 1rem 4rem;
            background-color: var(--base-color);
            min-width: 194px;
            max-width: 100%;
            box-sizing: border-box;
        }
    }
}

/* ----------------- access　----------------- */

.access {
    .top_overview {
        margin-top: 3.2rem;
    }

    .access_map {
        border: 1px solid var(--main-color);
        position: relative;
        width: 100%;
        height: 5rem;
        padding-top: 50%;

        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

    }
}

dl {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: -1px;
    gap: 3rem;
    padding: 2.4rem 0;
}

dt {
    width: 30%;
}

dd {
    width: 70%;
}

/* ----------------- members ----------------- */

.member_info {
    p {
        font-size: 1.6rem;
        line-height: 4rem;
    }

    .highlights-list {
        margin-top: 6rem;

        .column-item {
            dt {
                width: 20%;

                p {
                    padding: 0 1rem;
                    color: var(--base-color);
                    background-color: var(--main-color);
                }
            }

            dl {
                justify-content: flex-start;
                flex-wrap: wrap;
                gap: 0;
                row-gap: 1rem;
                column-gap: 3rem;
                border-top: 0;
                border-bottom: 0;
            }

        }
    }

    .column-list {
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);

        dt {
            width: 20%;
        }

        dl {
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 0;
            row-gap: 1rem;
            column-gap: 3rem;
            border-top: 0;
            border-bottom: 0;
        }
    }

    .pdf-list,
    .pdf-solo {
        margin-bottom: 0;
        margin-top: -1px;
    }
}

.members_block_2 {
    margin-top: 8rem;

    .member_info {

        .column-list {
            border-top: 0;
            border-bottom: 0;

            p {
                text-align: left;
            }
        }

        dt {
            p {
                font-weight: 700;
            }
        }

        p {
            text-align: right;
        }
    }
}


/* ----------------- recruiting ----------------- */

.recuiting_info {

    p {
        font-size: 1.6rem;
        line-height: 4rem;
    }

    .highlights-list {
        margin-top: 6rem;

        .column-item {
            dt {
                width: 20%;

                p {
                    padding: 0 1rem;
                    color: var(--base-color);
                    background-color: var(--main-color);
                }
            }

            dl {
                justify-content: flex-start;
                flex-wrap: wrap;
                gap: 0;
                row-gap: 1rem;
                column-gap: 3rem;
                border-top: 0;
                border-bottom: 0;
            }

        }
    }

    .column-list {
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 2.4rem 0;

        dt {
            width: 20%;
        }

        dl {
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 0;
            row-gap: 1rem;
            column-gap: 3rem;
            border-top: 0;
            border-bottom: 0;
            padding: 0;
        }

        a[href*=".pdf"] {
            font-size: 1.4rem;
            border: 1px solid var(--main-color);
            padding: 1rem 4rem;
            background-color: var(--base-color);
            min-width: 194px;
            max-width: 100%;
            box-sizing: border-box;
            /* background: url(../img/dl_arrow.svg) right center/3.4rem auto no-repeat; */
        }
    }

    .pdf-list,
    .pdf-solo {
        margin-bottom: 0;
        margin-top: -1px;
    }
}


/* ----------------- footer ----------------- */
footer {
    background-color: var(--base-color);
    padding: 7.2rem 8.4rem;
    margin-top: 11.4rem;

    h3 {
        font-size: 1.8rem;
        color: var(--main-color);
    }

    .footer_menu {
        display: flex;
        gap: 8.8rem;
        margin: 3.2rem 0 4.8rem 0;

        .footer_menu_list {
            font-size: 1.4rem;
            line-height: 3.5rem;
        }
    }

    .footer_copy {
        text-align: right;

        p {
            font-size: 1.2rem;
            color: var(--main-color);
        }
    }
}


/* ----------------- form ----------------- */

.input_txt,
.confirm_txt {
    margin-bottom: 3.2rem;
}

.smf-form .smf-text-control__control {
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100%;
}

.smf-form .smf-select-control__control {
    box-shadow: none !important;
    width: 100%;
}

.smf-item__label__text {
    position: relative;
    font-size: 1.6rem;
}

.smf-item__controls {
    font-size: 1.6rem;
    line-height: 3.3rem;
}

.smf-item:has([data-validations~="required"]) .smf-item__label__text::after {
    content: " *";
    display: inline-block;
    margin-left: .5em;
    color: var(--main-color);
    font-size: 1.2em;
}

.smf-form {
    width: 100%;

    .smf-select-control {
        width: 100%;
    }

    .smf-placeholder {
        width: 100%;
    }
}


.smf-form .smf-select-control__control {
    width: 100%;
    display: block;
    box-sizing: border-box;

    select {
        width: 100%;
    }
}

.smf-form .smf-select-control__toggle {
    top: 0.3rem !important;

    &:before {
        right: calc(var(--_s-1) - 2px) !important;
    }
}

.smf-form--simple-table+.smf-action {
    text-align: right !important;
}


.smf-action .smf-button-control__control {
    background-color: var(--base-color) !important;
    background-image: none !important;
    color: var(--main-color) !important;
    --_border-radius: none !important;
    --_border-color: var(--main-color) !important;
    transition: box-shadow 0.25s;
    border-radius: 0 !important;
    display: inline-block;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0;
    min-width: 25%;
    padding: 1rem 1rem 0.8rem 1rem !important;
    position: relative;
    text-decoration: none;
    width: auto;
    font-size: 1.4rem !important;
    font-weight: 600 !important;

    button {
        font-size: 1.4rem !important;
        font-weight: 600 !important;
    }
}

.smf-action .smf-button-control__control:hover {
    border-color: inherit !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1), 0 12px 24px -12px rgba(0, 0, 0, .1);
}

.smf-action .smf-button-control__control {}

[data-screen="confirm"] .input_txt {
    display: none;
}

[data-screen="input"] .confirm_txt,
[data-screen="invalid"] .confirm_txt {
    display: none;
}

.custom-error-message {
    position: relative;
    top: 12px;
}

@media (min-width: 640px) {

    .smf-form--simple-table .smf-item__col--controls {
        flex: 1 1 calc(100% - 50em);
        max-width: calc(100% - 50em);
    }

    .smf-form--simple-table .smf-item__col--label {
        flex: 0 0 50em !important;
        max-width: 50em !important;
    }

    .smf-item__label__text {
        position: relative;
    }
}