/* CSS変数定義 */
:root {
    --color-primary: #334063;
    --color-primary-light: #e3f2fd;
    --color-secondary: #dc3545;
    --color-secondary-dark: #c82333;
    --color-text-primary: #333;
    --color-text-secondary: #495057;
    --color-background: #fff;
    --color-background-light: #f8f9fa;
    --color-background-dark: #d3ddeb;
    --color-border: #dee2e6;
    --color-border-dark: #e9ecef;
    --color-footer: #343a40;
    --color-white: #fff;
    --color-day: #fff462;
    --color-night: #9fd9f6;
    --table-bg0: #fff;
    --table-bg1: #5b77a2;
    --table-bg2: #8ba3c7;
    --table-bg3: #d3ddeb;
    --table-bg4: #eaf0f7;
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {

    scroll-behavior: smooth;
}

/* 基本スタイル */
body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    font-size: 16px;

}

/* ヘッダー */
header {
    padding: 20px 0;
    border-bottom: 2px solid var(--color-border-dark);
}

.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.header-logo {
    max-height: 120px;
    width: auto;
}

.opening-notice {
    text-align: center;
    margin-inline: auto;
    width: fit-content;
}

.opening-content {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 30px;
    min-width: 280px;
    position: relative;
}

.opening-notice-small {
    font-size: 14px;
    font-weight: normal;
    margin: 15px 0 0;
    padding: 0 15px;
    color: var(--color-text-primary);
    text-align: center;
}

.opening-year {
    font-size: 14px;
    font-weight: normal;
    margin: 0 0 15px 0;
    color: var(--color-white);
}

.opening-date {
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: 0.1em;
    span{
        font-size: 28px;
    }
}

.opening-status {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px 0;
    color: var(--color-white);
    letter-spacing: 0.2em;
}

.approval-status {
    border: 1px solid var(--color-white);
    padding: 2px 6px;
    display: inline-block;
    border-radius: 4px;
    letter-spacing: 0.2em;
}

.approval-status p {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    color: var(--color-white);
}

.opening-notice p {
    margin: 0;
}

/* メインコンテンツ */
.br-sponly{
    display: none;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 画像スライドショー */
.hero-image-section {
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-image-section {
        padding: 0;
    }
}

.slideshow-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.slideshow-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 15px 20px;
    width: fit-content;
    margin-inline: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
    border-radius: 8px;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slideshow-wrapper::before,
.slideshow-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.slideshow-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.slideshow-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.slideshow-track {
    display: flex;
    height: 100%;
    gap: 10px;
    padding: 0 5px;
    transition: transform 0.1s linear;
}

.slide-item {
    flex: 0 0 calc(25% - 7.5px);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide-item:hover img {
    transform: scale(1.05);
}


/* モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-caption {
    color: var(--color-white);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

@media (any-hover: hover) {
    .modal-close:hover {
        color: var(--color-secondary);
    }
}

/* ナビゲーションセクション */
.navigation-section {
    margin: 40px 0;
    text-align: center;
}

.navigation-container {
    max-width: 600px;
    margin: 0 auto;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: bold;
    font-size: 20px;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.nav-link-course {
    border-color: var(--color-day);
}

.nav-link-course:hover {
    border-color: var(--color-day);
    background-color: rgba(255, 244, 98, 0.05);
}

.nav-link-course-3 {
    border-color: var(--color-night);
}

.nav-link-course-3:hover {
    border-color: var(--color-night);
    background-color: rgba(159, 217, 246, 0.05);
}

.nav-link-top {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.nav-link-top:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-link {
        padding: 10px 16px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }
}
.news-section {
    background-color: var(--color-background-light);
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-section h2 {
    text-align: center;
    font-size: 28px;
    color: var(--color-text-primary);
    margin-bottom: 30px;
    background: none;
    padding: 0;
    width: auto;
    margin-inline: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
}

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

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.4;
}

.news-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

h1 {
    font-size: 36px;
    text-align: center;
    margin:40px 0;
    color: var(--color-text-primary);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 15px;
    letter-spacing: 0.2em;
}

h2 {
    font-size: 28px;
    margin: 40px 0 40px 0;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 15px 20px;
    width: fit-content;
    margin-inline: auto;
    letter-spacing: 0.1em;
    line-height: 1.3;


    .course-number-2 {
        font-size: 48px;
        font-weight: bold;
        color: var(--color-day);
    }

    .day {
        font-size: 28px;
        font-weight: bold;
        color: var(--color-day);
        display: inline-block;
        margin-top: 6px;
    }

    .course-number-3 {
        font-size: 48px;
        font-weight: bold;
        color: var(--color-night);
    }

    .night {
        font-size: 28px;
        font-weight: bold;
        color: var(--color-night);
        display: inline-block;
        margin-top: 6px;
    }
}

h3 {
    font-size: 22px;
    margin: 40px 0 15px 0;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 4px 20px;
    width: 100%;
    letter-spacing: 0.2em;
}

h4 {
    font-size: 18px;
    color: var(--color-primary);
    background-color: var(--color-background-dark);
    padding: 4px 10px;
    border-radius: 5px;



}

/* コース選択リンクボックス */
.course-links-container {
    margin: 40px 0;
    text-align: center;
}

.course-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.course-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 360px;
    max-width: 200px;
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.course-link-2 {
    border-color: var(--color-day);
}

.course-link-2:hover {
    border-color: var(--color-day);
    background-color: rgba(255, 244, 98, 0.05);
}

.course-link-3 {
    border-color: var(--color-night);
}

.course-link-3:hover {
    border-color: var(--color-night);
    background-color: rgba(159, 217, 246, 0.05);
}

.course-link-content h3 {
    font-size: 20px;
    color: var(--color-text-primary);
    margin: 0 0 0 0;
    background: none;
    padding: 0;
    width: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.course-link-content p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin: 0 0 15px 0;
    background: none;
    padding: 0;
    width: auto;
}

.course-link-arrow {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.course-link:hover .course-link-arrow {
    transform: translateX(5px);
}

/* 受験資格 */
.qualification-requirements {
    background-color: var(--color-background-light);
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 20px;
}

.qualification-requirements p {
    margin: 0;
    font-size: 16px;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* 出願方法の注記 */
.application-note {
    background-color: var(--color-primary-light);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid var(--color-primary);
    margin: 15px 0;
    font-size: 14px;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* お問い合わせフォームのセレクトボックス */
body form#mailformpro .contact-select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    background-color: var(--color-white) !important;
    transition: border-color 0.3s ease !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334063' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body form#mailformpro .contact-select:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(51, 64, 99, 0.1) !important;
}

/* コースセクション */
.course-section {
    margin-bottom: 60px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

/* 出願方法 */
.application-method {
    margin-bottom: 20px;
}


.method-types {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    gap: 20px;
}

.course-info {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text-primary);
    text-align: center;
}

/* 出願書類 */
.application-documents {
    display: grid;
    grid-template-columns: fit-content(120px) 1fr;
    grid-template-rows: auto;
    gap: 20px;
}
.document-name {
    height: fit-content;
}
.document-detail {
    span{
        font-size: 14px;
    }
}

/* 日程表 */
.schedule-container {
    margin: 20px 0;
}

.schedule-table-wrapper {
    overflow-x: auto;
    border: 0.5px solid var(--color-primary);
}

.schedule-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background-color: var(--color-white);
    font-size: 14px;
}

.schedule-table th,
.schedule-table td {
    padding: 15px 12px;
    text-align: center;
    border: 1px solid var(--color-primary);
    vertical-align: middle;
    line-height: 1.4;
}

.schedule-table th {
    color: var(--color-white);
    font-weight: bold;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}


.schedule-table td:first-child {
    padding-left: 20px;
    font-weight: bold;
}
.schedule-table tbody tr:nth-child(odd) {
    background-color: var(--table-bg4);
}


.schedule-table td br {
    margin: 5px 0;
}

.table-bg0 {
    background-color: var(--table-bg0);
}
.table-bg1 {
    background-color: var(--table-bg1);
}
.table-bg2 {
    background-color: var(--table-bg2);
}
.table-bg3 {
    background-color: var(--table-bg3);
}
.table-bg4 {
    background-color: var(--table-bg4);
}


/* PDFボタン */
.pdf-button-container {
    text-align: center;
    margin: 30px 0;
}

.pdf-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* お問い合わせセクション */
.contact-section {
    padding: 40px 0;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-text-primary);
    margin-bottom: 40px;
    background: none;
    padding: 0;
    width: auto;
    margin-inline: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* お問い合わせフォームのスタイル調整 */
body form#mailformpro {
    background-color: var(--color-white) !important;
    padding: 40px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    border: 1px solid var(--color-border) !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

body form#mailformpro dl dt {
    font-size: 18px !important;
    color: var(--color-text-primary) !important;
    background-color: var(--color-background-dark) !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
    letter-spacing: 0.1em !important;
    text-align: right !important;
    width: fit-content !important;
    float: none !important;
    clear: none !important;
    border-top: none !important;
}

body form#mailformpro dl dd {
    margin-bottom: 25px !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

body form#mailformpro input[type="text"],
body form#mailformpro input[type="email"],
body form#mailformpro input[type="tel"] {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    background-color: var(--color-white) !important;
    transition: border-color 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body form#mailformpro input[type="text"]:focus,
body form#mailformpro input[type="email"]:focus,
body form#mailformpro input[type="tel"]:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(51, 64, 99, 0.1) !important;
}

body form#mailformpro textarea {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    background-color: var(--color-white) !important;
    resize: vertical !important;
    min-height: 120px !important;
    transition: border-color 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body form#mailformpro textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(51, 64, 99, 0.1) !important;
}

body form#mailformpro .mfp_buttons {
    text-align: center !important;
    margin-top: 30px !important;
}

body form#mailformpro .mfp_element_submit {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    padding: 15px 40px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
}

@media (any-hover: hover) {
    body form#mailformpro .mfp_element_submit:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    }
}

/* プレースホルダーのスタイル */
body form#mailformpro input::placeholder,
body form#mailformpro textarea::placeholder {
    color: var(--color-text-secondary) !important;
    opacity: 0.7 !important;
}

/* 資料ダウンロードセクション */
.download-section {
    background-color: var(--color-background-light);
    padding: 20px 0 40px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50% - 50vw);
    padding-right: calc(50% - 50vw);
    box-sizing: content-box;
}


.download-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--color-text-primary);
    margin-bottom: 40px;
    background: none;
    padding: 0;
    width: auto;
    margin-inline: auto;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
}

.download-button-group.span-2 {
    grid-column: span 2;
    max-width: 500px;
}

.download-button-group {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);

    text-align: center;
    width: 100%;
    max-width: 350px;
}

.download-button-group p {
    font-size: 20px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    background: none;
    padding: 0;
    width: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.download-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group .download-button {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.download-group {
    grid-column: span 2;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.download-group h3 {
    font-size: 20px;
    color: var(--color-text-primary);
    margin: 0 0 20px 0;
    background: none;
    padding: 0;
    width: auto;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.group-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.group-buttons .download-button-group {
    background-color: var(--color-background-light);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border-dark);
    width: 100%;
    max-width: 350px;
}




@media (any-hover: hover) {
    .download-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .pdf-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}

/* お問い合わせ完了ページ */
.thanks-section {
    padding: 60px 0;
    text-align: center;
}

.thanks-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.thanks-content {
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    margin-top: 30px;
}

.thanks-content p {
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.thanks-content p:last-child {
    margin-bottom: 0;
}

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

.back-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (any-hover: hover) {
    .back-button:hover {
        background-color: var(--color-secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        text-decoration: none;
        color: var(--color-white);
    }
}

@media (max-width: 768px) {
    .thanks-section {
        padding: 40px 0;
    }

    .thanks-container {
        padding: 0 15px;
    }

    .thanks-content {
        padding: 30px 20px;
    }

    .thanks-content p {
        font-size: 16px;
    }
}

/* フッター */
footer {
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* モットーセクション */
.footer-motto-section {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;

}

.motto-text {
    padding: 40px;
    display: inline-block;
    max-width: 900px;
    position: relative;
    font-weight: bold;
}


.motto-main {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-text-primary);
    margin: 0;
}

.motto-sub {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--color-text-primary);
}

/* フッター情報 */
.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
    column-gap: 60px;
}

.footer-logo {
    text-align: right;
}

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

.school-name{
    font-size: 22px;
    line-height: 1.4;
    font-weight: bold;
    text-align: right;
}

.foundation-name-small {
    font-size: 16px;
}
/* レスポンシブデザイン */
@media (max-width: 768px) {
    .br-sponly{
        display: block;
    }

    main {
        padding: 20px 15px;
    }

    .course-section {
        padding: 20px 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
        .br-sponly{
            display: block;
        }
        .course-number-2,.course-number-3{
            font-size: 32px;
        }
        .day,.night{
            font-size: 20px;
        }
    }

    h3 {
        font-size: 20px;
    }

    .method-types {
        flex-direction: column;
    }

    .method-type {
        min-width: auto;
    }

    .application-documents {
        grid-template-columns: 1fr;
    }

    .document-name {
        width: fit-content;
    }

    .schedule-table {
        min-width: 700px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        padding-left: 8px;
    }

    .pdf-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .download-section {
        padding: 40px 0;
    }

    .download-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .download-button-group.span-2 {
        grid-column: span 1;
        max-width: 100%;
    }

    .download-group {
        grid-column: span 1;
        max-width: 100%;
    }

    .group-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-button-group {
        padding: 25px;
        max-width: 100%;
    }

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

    .button-group .download-button {
        min-width: auto;
        width: 100%;
    }
    .download-button{
        max-width: 320px;
        width: 100%;
    }

    .news-section {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .news-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .news-container {
        padding: 0 15px;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .news-date {
        min-width: auto;
        width: fit-content;
        align-self: flex-start;
    }

    .news-title {
        font-size: 16px;
    }

    .news-text {
        font-size: 14px;
    }

    .contact-section {
        padding: 30px 0;
    }

    .contact-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    body form#mailformpro {
        padding: 20px !important;
    }

    body form#mailformpro dl dt {
        font-size: 16px !important;
        padding: 2px 10px !important;
    }

    body form#mailformpro input[type="text"],
    body form#mailformpro input[type="email"],
    body form#mailformpro input[type="tel"],
    body form#mailformpro textarea {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    body form#mailformpro .mfp_element_submit {
        padding: 12px 30px !important;
        font-size: 16px !important;
    }

    body form#mailformpro .contact-select {
        font-size: 14px !important;
        padding: 10px 12px !important;
        padding-right: 35px !important;
    }

    .footer-info {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 30px;
    }


    .motto-text {
        padding: 0px;
        margin: 0px;
    }

    .motto-main {
        font-size: 28px;
        padding-bottom: 20px;
    }

    .motto-sub {
        font-size: 16px;
    }

    .footer-logo{
        text-align: center;
    }
    .school-name{
        text-align: center;
    }
    .contact-block-1{
        font-size: 14px;
    }
    .contact-block-2{
    font-size: 14px;
}

.business-hours {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 8px;
    font-weight: normal;
    line-height: 1.4;
}

    /* コース選択リンクボックスのレスポンシブ */
    .course-links {
        flex-direction: column;
        gap: 20px;
    }

    .course-link {
        min-width: auto;
        max-width: 100%;
    }

    .course-link-content h3 {
        font-size: 18px;
    }

    .course-link-content p {
        font-size: 14px;
    }

    .course-link-arrow {
        font-size: 20px;
    }

    /* 画像スライドショーのレスポンシブ */
    .slideshow-title {
        font-size: 20px;
        padding: 10px 14px;
    }

    .slideshow-wrapper {
        height: 180px;
        border-radius: 0;
    }

    .slideshow-wrapper::before,
    .slideshow-wrapper::after {
        display: none;
    }

    .slideshow-track {
        gap: 6px;
        padding: 0;
    }

    .slide-item {
        flex: 0 0 calc(50% - 3px);
    }

    .modal-caption {
        font-size: 16px;
        margin-top: 15px;
    }

    .modal-close {
        font-size: 35px;
        top: -40px;
    }

    /* 受験資格のレスポンシブ */
    .qualification-requirements {
        padding: 12px 15px;
    }

    .qualification-requirements p {
        font-size: 14px;
    }

    /* 出願方法の注記のレスポンシブ */
    .application-note {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* お問い合わせフォームのセレクトボックスのレスポンシブ */
    .contact-select {
        font-size: 14px;
        padding: 10px 12px;
        padding-right: 35px;
    }

}

@media (max-width: 480px) {
    .opening-notice {
        font-size: 16px;
    }

    .opening-content {
        padding: 10px 25px;
        min-width: 240px;
    }

    .opening-year {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .opening-date {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .opening-status {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .approval-status {
        padding: 6px 12px;
    }

    .approval-status p {
        font-size: 12px;
    }


    .modal-caption {
        font-size: 14px;
        margin-top: 10px;
    }

    .modal-close {
        font-size: 30px;
        top: -35px;
    }

    /* .schedule-table {
        min-width: 600px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        padding-left: 10px;
    } */
}
