.kiwi-maru-regular {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
}

.mochiy-pop-one-regular {
    font-family: "Mochiy Pop One", serif;
    font-weight: 400;
    font-style: normal;
}

.biz-udpmincho-regular {
    font-family: "BIZ UDPMincho", serif;
    font-weight: 400;
    font-style: normal;
}

.biz-udpgothic-regular {
    font-family: "BIZ UDPGothic", serif;
    font-weight: 400;
    font-style: normal;
}

.biz-udpgothic-bold {
    font-family: "BIZ UDPGothic", serif;
    font-weight: 700;
    font-style: normal;
}

/*
orange: #eda32a 
gray; #807a7e
blue: #209fc7
green: #1ea853
*/

body {

    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    justify-content: space-between;
    font-family: "BIZ UDPGothic", serif;
    letter-spacing: 0.05rem;
    line-height: 1.2;
    background-color: #ffffff;

}

header {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;

}

main,
footer {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;

}

/* 初期状態で非表示にする */
section {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

/* フェードイン時に適用されるクラス */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

header {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: "biz-udpgothic-bold";
    font-weight: 800;
}

h2 {
    font-size: 0.95rem;
    font-family: "BIZ UDPGothic"
}

#main-visual img {
    width: 60%;
    height: auto;
    max-width: 100vw;
    object-fit: cover;
    border-radius: 10px;
}

#header-sentence {
    font-size: 1.2rem;
    font-family: "BIZ UDPGothic", serif;
    font-weight: bold;
    line-height: 2;
    letter-spacing: 1.2;
}

#header-sentence p span {
    background: linear-gradient(transparent 0%, transparent 60%, #fffd9789 60%, #fffd9789 100%);
    padding: 0.3rem;

}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}

section {
    margin-bottom: 50px;
}

.contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#greeting {
    width: 100%;
    padding: 30px 0;
    background-color: #eda32a7d;
    border-radius: 5%;
}

#greeting h2 {
    display: inline-flex;
    justify-content: center;
    color: #01579B;
    background-color: #E0F7FA;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #01579B;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#greeting p {
    font-size: 0.9rem;
    line-height: 2;
    font-weight: bold;
    font-family: "BIZ UDPGothic", serif;
}

#greeting p span {
    font-size: 1.6rem;
    font-family: "BIZ UDPGothic", serif;
    font-weight: 900;

}

.section-title {
    display: inline-flex;
    justify-content: center;
    color: #E0F7FA;
    background-color: #01579B;
    padding: 10px 20px;
    border-radius: 50px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0;
    text-align: center;
}

/* ================================
   ✅ 追加：募集要項・申込用紙の告知ボックス
   ================================ */

#recruit-news {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#recruit-news .recruit-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

#recruit-news .recruit-box {
    width: min(820px, 92%);
    background-color: #ffffff;
    border: 2px solid #333333;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

    /* ✅ はみ出し対策（保険） */
    overflow: hidden;
}

#recruit-news .recruit-target {
    margin: 0 0 14px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
}

#recruit-news .recruit-title {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #d32f2f;
    line-height: 1.8;
}

#recruit-news .recruit-desc {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
}

#recruit-news .recruit-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px 18px;
    justify-content: center;
    margin-top: 10px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02rem;

    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);

    /* ✅ これが本命：width 100%にpaddingを含めて収める */
    box-sizing: border-box;
    max-width: 100%;
}

.file-link i {
    font-size: 1.1rem;
}

.file-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    opacity: 0.98;
}

.file-pdf {
    background-color: #d32f2f;
    color: #ffffff;
}

.file-txt {
    background-color: #555555;
    color: #ffffff;
}

/* ================================ */

#action-contents {
    width: 70%;

}

#action-contents .contents {
    padding-left: 200px;
    padding-right: 200px;
    border-left: 1px solid #01579B;
    border-right: 1px solid #01579B;
}

.contents-request {
    background-color: #807a7e3a;
    color: #01579B;
    padding: 0 10px;
    line-height: 1.2;
    font-family: "Kiwi Maru", serif;
    font-size: 1rem;
}

.contents-answer {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: bold;
    letter-spacing: 0.1rem;
    margin-bottom: 30px;
}

.contents-answer p span {
    background: linear-gradient(transparent 0%, transparent 60%, #fffd9789 60%, #fffd9789 100%);
    padding: 0.3rem;
}

.contents-square {
    border-top: 3px dotted #01579B;
    border-bottom: 3px dotted #01579B;
    line-height: 1.2rem;
    font-family: "Mochiy Pop One";
    font-weight: lighter;
    width: 100%;
    margin-top: 50px;
    padding: 30px 0;

}

.contents-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.contents-part {
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    border-radius: 10px;
    padding: 10px 30px;
    margin-bottom: 10px;
    background-color: #9090907d;
    font-family: "Kiwi Maru";
}

#part {
    max-width: 90%;
    padding-top: 20px;
    margin-bottom: 60px;
}

#part #contents_grid {
    display: grid;
    grid-template-columns: repeat(1fr);
    gap: 10px;
    justify-items: center;
}

#part #contents_grid .contents {
    width: 100%;
    border: 5px solid #909090;
    padding-bottom: 20px;
    padding-left: 30%;
    padding-right: 30%;
    align-items: center;
}

#part #contents_grid .contents:nth-of-type(-n+2) {
    background-color: rgba(182, 241, 254, 0.474);
    border: 10px double #01579B;
}

#part #contents_grid .contents:nth-of-type(-n+2) .contents-part {
    background-color: #eda32a7d;
}

#support-system-picture {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

#support-system-picture img {
    width: 100%;
    height: auto;

}

#corporate-info .contents {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
}

#corporate-info .contents table {
    text-align: left;
    padding: 10px;
}

#corporate-info .contents table tr td {
    padding: 20px 10px;
}

#pamphlet {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pamphlet img {
    max-width: 60%;
    margin-top: 20px;
}

#pamphlet #pamphlet_link {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    text-align: center;
    gap: 80px;
}

#pamphlet #pamphlet_link p {
    margin-bottom: 5px;
    font-weight: 600;
    color: #6bb6ff;
    letter-spacing: 0.04rem;
    display: inline-block;
    position: relative;
}

#pamphlet #pamphlet_link p:before,
#pamphlet #pamphlet_link p:after {
    display: inline-block;
    position: absolute;
    top: 45%;
    width: 20px;
    height: 3px;
    border-radius: 5px;
    background-color: #6bb6ff;
    content: "";
}

#pamphlet #pamphlet_link p:before {
    left: -30px;
    -webkit-transform: rotate(50deg);
    transform: rotate(50deg);
}

#pamphlet #pamphlet_link p:after {
    right: -30px;
    -webkit-transform: rotate(-50deg);
    transform: rotate(-50deg);
}

#pamphlet #pamphlet_link a {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: #FFF;
    transition: 0.3s ease-in-out;
    font-weight: 600;
    background: #6bb6ff;
    filter: drop-shadow(0px 2px 4px #ccc);
    border-radius: 50px;
    text-decoration: none;
}

#pamphlet #pamphlet_link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgb(0 0 0 / 15%), 0 0 5px rgb(0 0 0 / 10%);
}

#pamphlet #pamphlet_link a:after {
    position: absolute;
    top: 50%;
    right: 20px;
    transition: 0.2s ease-in-out;
    content: "\f358";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transform: translateY(-54%);
}

.corporate-notice {
    width: fit-content;
    max-width: 90%;
    margin: 50px auto 0;
    text-align: left;

    font-family: "BIZ UDPGothic", serif;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;

    background-color: #fffcf4;
    color: #333333;

    padding: 30px;
    border: 3px solid #eda32a;
    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(237, 163, 42, 0.3);
}

.corporate-notice p {
    margin: 0 0 15px 0;
    color: #c62828;
}

.corporate-notice p:last-child {
    margin-bottom: 0;
}

footer {
    background-color: black;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    margin-right: 20px;
}

.footer-title h2 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 20px;
    border-bottom: 1px white solid;
}

.copy-right {
    text-align: left;
    font-size: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-logo img {
    width: 100px;
    height: auto;
}

/* スマートフォン向けのスタイル */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header,
    main,
    footer {
        width: 100%;
        max-width: none;
        margin-bottom: 15px;
    }

    #main-visual img {
        width: 100%;
        height: auto;
    }

    .section-title,
    .greeting h2 {
        font-size: 1rem;
        padding: 8px 16px;
    }

    h2 {
        font-size: 0.85rem;
    }

    #header-sentence p {
        font-size: 0.5rem;
        font-weight: bold;
    }

    #greeting {
        padding: 0
    }

    #greeting p {
        font-size: 0.5rem;
    }

    #greeting p span {
        font-size: 1rem;
    }

    /* ✅ 募集ボックス：スマホでは1列に */
    #recruit-news .recruit-box {
        padding: 20px 15px;
    }

    #recruit-news .recruit-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .file-link {
        width: 100%;
        box-sizing: border-box; /* ✅スマホでも確実に効かせる */
        max-width: 100%;
    }

    #action-contents {
        width: 90%;
    }

    #action-contents .contents {
        padding: 0;
        border: none;
    }

    #corporate-info .contents {
        flex-direction: column;
    }

    .contents-request,
    .contents-answer {
        font-size: 0.9rem;
    }

    .contents-square,
    .contents-part {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    #part {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #part .contents {
        padding: 10px;
    }

    #part #contents_grid .contents {
        padding-left: 0;
        padding-right: 0;
    }

    #corporate-info .contents table {
        font-size: 70%;
    }

    #corporate-info img {
        max-width: 80%;
    }

    .corporate-notice {
        width: 90%;
        padding: 20px;
        font-size: 0.85rem;
        border-width: 2px;
    }

    #pamphlet {
        max-width: 95%;
    }

    #pamphlet img {
        max-width: 90%;
    }

    #pamphlet #pamphlet_link {
        flex-direction: column;
        gap: 20px;

    }

    .footer-logo img {
        width: 80px;
    }

    .copy-right p {
        font-size: 0.65rem;
    }

}

/* タブレット向けのスタイル */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        padding: 20px;
    }

    header,
    main,
    footer {
        width: 95%;
        max-width: none;
        margin-bottom: 20px;
    }

    .section-title,
    .greeting h2 {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    #main-visual img {
        width: 100%;
        height: auto;
    }

    h2 {
        font-size: 0.9rem;
    }

    /* ✅ 募集ボックス：タブレットは幅だけ最適化（2列維持） */
    #recruit-news .recruit-box {
        width: min(760px, 96%);
        padding: 30px 22px;
    }

    #action-contents .contents {
        padding: 0;
        border: none;
    }

    .contents-request,
    .contents-answer {
        font-size: 1.1rem;
    }

    .contents-square,
    .contents-part {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    #corporate-info .contents {
        flex-direction: column;
    }

    .footer-logo img {
        width: 90px;
    }

    .copy-right p {
        font-size: 0.7rem;
    }
}
