:root{
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #D9D9D9;
    --color-heading: #024b96;
    --color-bg-light: #f2f4f8;
    --color-bg-pale: #f5f0ed;
    --font-noto: 'Noto Sans CJK JP', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-shippori: 'Shippori Mincho B1', serif;
    --font-mplus2: 'M PLUS 2', sans-serif;
}

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

body{
    font-family: var(--font-noto);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.5;
}

.container{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

/* メインビジュアル */
.mv{
    width: 100%;
    margin: 0;
}

.mv__image{
    width: 100%;
    height: auto;
    display: block;
}

/* 説明文 */
.description{
    padding: 40px 0;
    background-color: var(--color-white);
}

.description__text{
    font-family: var(--font-noto);
    font-weight: 500;
    font-size: 21px;
    line-height: 2;
    color: var(--color-heading);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;


}

/* セクションタイトル */
.section-title{
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--color-black);
    text-align: center;
    margin: 40px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 特定のセクションタイトルのスタイル */
.overview .section-title,
.guidelines .section-title,
.application .section-title,
.forms .section-title,
.qa .section-title,
.contact .section-title{
    font-family: var(--font-mplus2);
    font-size: 60px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--color-heading);
}

.section-title__icon{
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 新着情報 */
.news{
    padding: 40px 0;
}

.news__title{
    font-family: var(--font-mplus2);
    font-weight: bold;
    font-size: 30px;
    color: var(--color-heading);
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.news__title-icon{
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.news__box{
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.news__list{
    margin: 0;
    padding: 0;
}

.news__item{
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray);
}

.news__item:last-child{
    border-bottom: none;
}

.news__arrow{
    color: var(--color-heading);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.news__date{
    font-family: var(--font-noto);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-heading);
    flex-shrink: 0;
    min-width: 120px;
}

.news__content{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news__text{
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-black);
}

.news__detail{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-black);
    line-height: 1.8;
    margin: 0;
}

/* 概要 */
.overview{
    padding: 40px 0;
    background-color: var(--color-bg-light);
    width: 100%;
}

.overview__item{
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-gray);
}

.overview__item:last-child{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.overview__subtitle{
    font-family: var(--font-noto);
    font-weight: bold;
    font-size: 24px;
    line-height: 1.5;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.overview__content{
    margin: 0 auto;
}

.overview__label{
    font-family: var(--font-noto);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-black);
    margin-bottom: 10px;
}

.overview__text{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 2;
    color: var(--color-black);
    margin-bottom: 20px;
}

.overview__note{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-black);
    margin-bottom: 20px;
}

.overview__table-wrapper{
    width: 100%;
    margin: 20px auto;
    overflow-x: auto;
}

.overview__table{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-black);
    border: 1px solid #e9e9e9;

    thead{
        background-color: var(--color-heading);

        th{
            padding: 12px 16px;
            text-align: center;
            font-weight: 700;
            color: var(--color-white);
            border: 1px solid #e9e9e9;
            width: 33.333%;
        }
    }

    tbody{
        tr{
            border-bottom: 1px solid #e9e9e9;

            &:last-child{
                border-bottom: none;
            }
        }

        td{
            padding: 10px 5px;
            border-right: 1px solid #e9e9e9;
            background-color: var(--color-white);
            text-align: center;
            width: 33.333%;

            &:last-child{
                border-right: none;
            }
        }
    }
}

/* 募集要項 */
.guidelines{
    padding: 40px 0;
}

.guidelines__text{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 30px;
}

.guidelines__button-wrapper{
    text-align: center;
    margin: 0 auto;
}

.guidelines__button{
    display: block;
    background-color: var(--color-heading);
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.5;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 4px 4px 0 #b3c9df;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 400px;
    margin: 0 auto;
    letter-spacing: 0.1em;
}

.guidelines__button:hover{
    transform: translateY(2px);
    box-shadow: 2px 2px 0 #b3c9df;
}

/* 申請方法 */
.application{
    padding: 40px 0;
}

.application__box{
    background-color: var(--color-bg-light);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: 20px;
}

.application__text{
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.application__detail{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
}

/* 各種申請様式 */
.forms{
    padding: 40px 0;
}

.forms__notice{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 30px;
}

.forms__list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.forms__button{
    display: block;
    background-color: var(--color-heading);
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.5;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 4px 4px 0 #b3c9df;
    transition: opacity 0.3s;
    min-width: 400px;
}

.forms__button--disabled{
    background-color: #b3c9df;
    color: var(--color-white);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 4px 4px 0 #d0dde8;
}

/* Q&A */
.qa{
    padding: 40px 0;
    background-color: var(--color-bg-light);
    width: 100%;
}

.qa__list{
    margin: 0 auto;
}

.qa__subtitle,
.category-title{
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-heading);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-heading);
}

.qa__item{
    margin-bottom: 0;
    margin-bottom: 20px;
}

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

.qa__question{
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-black);
}

.qa__q{
    font-family: var(--font-noto);
    font-weight: bold;
    font-size: 30px;
    color: #024b96;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa__question-text{
    flex: 1;
}

.qa__arrow{
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}

.qa__arrow--up::before,
.qa__arrow--up::after{
    content: '';
    position: absolute;
    width: 3px;
    height: 15px;
    background-color: var(--color-black);
    top: 50%;
    left: 50%;
    transform-origin: top center;
}

.qa__arrow--up::before{
    transform: translate(-50%, -50%) translateX(-1px) rotate(-45deg);
}

.qa__arrow--up::after{
    transform: translate(-50%, -50%) translateX(1px) rotate(45deg);
}

.qa__arrow--down::before,
.qa__arrow--down::after{
    content: '';
    position: absolute;
    width: 3px;
    height: 15px;
    background-color: var(--color-black);
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
}

.qa__arrow--down::before{
    transform: translate(-50%, -50%) translateX(-1px) rotate(45deg);
}

.qa__arrow--down::after{
    transform: translate(-50%, -50%) translateX(1px) rotate(-45deg);
}

.qa__divider{
    height: 1px;
    background-color: var(--color-gray);
    margin: 0 0 20px;
}

.qa__answer-wrapper{
    padding: 0;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa__answer-wrapper.is-open{
    max-height: 2000px;
}

.qa__answer{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.qa__a{
    font-family: var(--font-noto);
    font-weight: bold;
    font-size: 30px;
    color: #cd3e2b;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa__answer-text{
    flex: 1;
}

/* お問い合わせ送信完了 */
.thanks{
    padding: 60px 0;
}

.thanks__title{
    font-family: var(--font-mplus2);
    font-size: 50px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 40px;
}

.thanks__br{
    display: none;
}

.thanks__text{
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-black);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* お問い合わせ */
.contact{
    padding: 40px 0;
}

.contact form#mailformpro{
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.contact form#mailformpro dl{
    margin: 0;
    padding: 0;
}

.contact form#mailformpro dl dt{
    float: none;
    width: 100%;
    clear: both;
    font-size: 16px;
    padding: 15px 0 5px;
    text-align: left;
    margin: 0;
    font-weight: 500;
    border-top: none;
}

.contact form#mailformpro dl dd{
    border-top: none;
    margin: 0;
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.contact form#mailformpro dl dd:first-of-type{
    border-top: 1px solid var(--color-gray);
}

.contact form#mailformpro input[type="text"],
.contact form#mailformpro input[type="email"],
.contact form#mailformpro textarea{
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    font-family: var(--font-noto);
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}

.contact form#mailformpro textarea{
    resize: vertical;
    min-height: 120px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.contact__submit{
    text-align: center;
    margin-top: 30px;
}

.contact__button{
    background-color: var(--color-heading);
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    padding: 10px;
    border: none;
    border-radius: 30px;
    box-shadow: 4px 4px 0 #b3c9df;
    cursor: pointer;
    min-width: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact__button:hover{
    transform: translateY(2px);
    box-shadow: 2px 2px 0 #b3c9df;
}

/* フッター */
.footer{
    background-image: url('../images/footer_bg_blue.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer__content{
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer__organization{
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer__contact{
    color: var(--color-white);
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer__tel,
.footer__mail{
    display: inline-block;
}

/* レスポンシブ対応 */
@media (max-width: 768px){
    .description__text{
        font-size: 16px;
        text-align: justify;
    }

    .description__br{
        display: none;
    }

    .section-title{
        font-size: 24px;
        margin: 40px 0 30px;
    }

    .overview .section-title,
    .guidelines .section-title,
    .application .section-title,
    .forms .section-title,
    .qa .section-title,
    .contact .section-title,
    .thanks__title{
        font-size: 32px;
    }

    .thanks__br{
        display: block;
    }

    .thanks__text{
        font-size: 16px;
    }

    .news__title{
        font-size: 24px;
    }

    .news__title-icon{
        width: 24px;
        height: 24px;
    }

    .news__box{
        padding: 15px;
        max-height: 300px;
    }

    .news__item{
        flex-direction: column;
        gap: 10px;
    }

    .news__date{
        min-width: auto;
    }
    .guidelines__button,
    .forms__button{
        min-width: 100%;
    }

    .forms__list{
        grid-template-columns: 1fr;
    }

    .footer__contact{
        flex-direction: column;
        gap: 10px;
    }
}
