/* ============================================================
   1. 基本共通設定（枠線・フォント・基本色）
   ============================================================ */
* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; width: 100%; overflow-x: hidden;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #1a365d; background-color: #fff; line-height: 1.8;
}

main { width: 100%; padding-top: 50px; overflow: hidden; }
.container { width: 90%; max-width: 1000px; margin: 0 auto; padding:  60px 0; }
.container-header { width: 90%; margin: 0 auto; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; position: relative; }
header { border-bottom: 1px solid #e0e0e0; background-color: #fff; position: relative; width: 100%; z-index: 100; position: fixed; top: 0; left: 0; }/* メニュー */
.nav-unshown { 
    display: none !important; 
}

/* 三本線ボタンの外枠 */
.nav-open { 
    width: 30px; 
    height: 22px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    cursor: pointer; 
    z-index: 10000; /* 最前面に配置 */
    position: relative; 
}

/* 三本線のデザイン */
.nav-open span { 
    display: block; 
    height: 3px; 
    width: 100%; 
    background-color: #1a365d; 
    border-radius: 3px; 
    transition: 0.3s; 
}

/* メニューが開いた時に三本線を「×」に変形 */
#nav-check:checked ~ .nav-open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
#nav-check:checked ~ .nav-open span:nth-child(2) { opacity: 0; }
#nav-check:checked ~ .nav-open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* メニューの中身（横幅440px） */
.nav-content { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 440px; 
    height: 100vh; 
    background: #fff; 
    z-index: 9999; 
    padding-top: 80px; 
    transition: 0.4s ease; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
}
#nav-check:checked ~ .nav-content { 
    right: 0; 
}

.nav-close {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; 
    background: rgba(0, 0, 0, 0.4); 
    z-index: 9998; 
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

/* メニューが開いたら画面全体にカバーを出現させる */
#nav-check:checked ~ .nav-close {
    opacity: 1;
    visibility: visible;
}

.nav-list { 
    list-style: none !important; 
    padding: 0; 
    margin: 0; 
}

.nav-list li a { 
    display: block; 
    text-decoration: none; 
    color: #1a365d; 
    font-weight: bold; 
    border-bottom: 1px solid #f5f5f5; 
    padding: 20px 30px;
    box-sizing: border-box;
    width: 100%;
}

.nav-list li a::before { 
    content: "- "; 
    color: #1a365d; 
    font-weight: bold; 
    margin-right: 8px;
}
.logo img { height: 64px; width: auto; vertical-align: middle; }

.photo-stream { 
    overflow: hidden; 
    background: #fff; 
    width: 100%; 
    position: relative;
    clip-path: url(#wave-path);
    -webkit-clip-path: url(#wave-path);
        margin-bottom: -100px; 
    z-index: 10;
}

.stream-inner { 
    display: flex; 
    width: max-content; 
    animation: infinity-scroll 60s linear infinite; 
}

.stream-inner img { 
    width: 350px; 
    height: 450px; 
    object-fit: cover; 
    flex-shrink: 0;
}

/* 無限ループ用のアニメーション */
@keyframes infinity-scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-3500px); } 
}

br.sp-only {
    display: none;
}
/* ============================================================
   2. 各セクション固有スタイル（比率・向きを完全維持）
   ============================================================ */
.hero-text { background: #fff; padding: 120px 0 20px; text-align: center; width: 100%; }
.hero-lead-text {
    text-align: center;         
 white-space: nowrap;     
    font-size: clamp(0.85rem, 3.5vw, 1.1rem); 
    overflow: hidden;         
    text-overflow: ellipsis;  
}
.hero-main-title {font-size: clamp(1.4rem, 6.5vw, 2.2rem); line-height: 1.4;}.highlight-text { background: linear-gradient(transparent 60%, rgba(197, 160, 89, 0.2) 60%); padding: 0 5px; }

.section-title-blue { text-align: center; color: #003366; font-size: 1.8rem; font-weight: 900; margin-bottom: 40px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mission-photo-wrapper { position: relative; width: 100%; height: 200px; border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.mission-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* 成長ロードマップ */
.loop-container { display: flex; justify-content: center; align-items: flex-start; max-width: 1100px; margin: 0 auto; gap: 0; }
.loop-item { flex: 1; text-align: center; padding: 0 10px; }
.loop-circle { width: 140px; height: 140px; border-radius: 50%; border: 2px solid #002855; position: relative; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; background: #fff; }
.loop-num { position: absolute; top: -10px; left: -10px; font-size: 2.2rem; color: #c5a059; font-weight: bold; font-family: Georgia, serif; }
.loop-icon-wrapper { font-size: 3rem; color: #c5a059; }
.loop-arrow { padding-top: 55px; color: #002855; font-size: 1.5rem; opacity: 0.4; width: 50px; text-align: center; }


/* 生徒の声 */
.voices { 
    background: #f8f8f8; 
    padding: 40px 0; 
    width: 100%; 
}

#voice-slider { 
    position: relative; 
    max-width: 100%; 
    margin: 0 auto; 
    padding: 0 8%; 
}

.voice-card-wrapper { 
    min-width: 100%; 
    width: 100%; 
    flex-shrink: 0; 
    padding: 10px 20px; 
    box-sizing: border-box; 
}

.voice-card { 
    display: flex; 
    height: 100%; 
    width: 100%; 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

.voice-img { 
    width: 40% !important; 
    flex-shrink: 0; 
}
.voice-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.voice-info { 
    width: 60% !important; 
    padding: 40px; 
    text-align: left; 
}
.activity-desc { 
    color: #003366; 
    font-weight: 800; 
    font-size: 0.95rem; 
    background: rgba(0, 51, 102, 0.05); 
    padding: 5px 10px; 
    border-radius: 4px; 
    display: inline-block; 
    margin-bottom: 15px; 
}

.splide__arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: transparent !important; 
    border: none !important;
    border-radius: 0 !important;
    color: #002855 !important; 
    font-size: 3rem; 
    cursor: pointer; 
    z-index: 10; 
    opacity: 0.4; 
    transition: 0.3s; 
    width: auto !important;  
    height: auto !important; 
}

.splide__arrow:hover { 
    opacity: 1; 
}

.splide__arrow svg { 
    display: none !important; 
}
#voice-slider {
    visibility: visible !important;
}

.voice-text {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.75;
    margin: 0;
    font-weight: 500;
}

.voice-info strong {
    background: linear-gradient(transparent 65%, rgba(197, 160, 89, 0.22) 65%) !important;
    font-weight: bold;
    color: inherit;
    background-color: transparent !important;
    display: inline;
}

.splide__arrow--prev { left: 2% !important; } 
.splide__arrow--next { right: 2% !important; }
/* FAQ・募集要項 */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; padding: 20px 0; }
.faq-question { cursor: pointer; font-weight: bold; position: relative; list-style: none; }
.faq-question::after { content: '+'; position: absolute; right: 0; color: #002855; font-size: 1.5rem; }
.outline-table { width: 100%; border-collapse: collapse; margin-bottom: 60px; border: 1px solid #eee; }
.outline-table th { background: #f9fbff; padding: 20px; width: 25%; border-bottom: 1px solid #eee; border-right: 1px solid #eee; text-align: left; }
.outline-table td { padding: 20px; border-bottom: 1px solid #eee; text-align: left; color: #333; }

/* ============================================================
   3. 比較表セクション（専用設計：PCで確実に図にする）
   ============================================================ */
.comp-main-title { text-align: center; color: #1a365d !important; font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.comp-main-title span { color: #c5a059 !important; }
.comp-sub-lead { text-align: center; color: #666; margin-bottom: 40px; font-size: 24px; font-weight: bold; }

.comp-table-layout { display: flex !important; max-width: 950px; margin: 0 auto; align-items: stretch; border: 1px solid #eee; border-radius: 15px; overflow: hidden; }
.comp-table-column { display: flex !important; flex-direction: column !important; flex: 1; }
.comp-table-cell { height: 90px; display: flex; align-items: center; justify-content: center; padding: 15px; border-bottom: 1px solid #eee; text-align: center; font-size: 0.95rem; background: #fff; }
.comp-table-header { height: 70px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; }

.comp-table-column.labels-only { flex: 0.6; }
.comp-table-column.labels-only .comp-table-cell { font-weight: bold; color: #1a365d; background: #f4f4f4; border-right: 1px solid #ddd; }
.comp-table-column.labels-only .header-empty-space { height: 70px; background: transparent; border-right: 1px solid #ddd; }

.comp-table-column.standard-intern { color: #1a365d; background: #fff; }
.comp-table-column.standard-intern .comp-table-header { background: #718096; } 

.comp-table-column.rbc-special-highlight { position: relative; z-index: 10; box-shadow: 0 15px 40px rgba(0,40,85,0.2); }
.comp-table-column.rbc-special-highlight .comp-table-header { background: #1a365d; font-size: 1.2rem; margin-top: -10px; height: 80px; }
.comp-table-column.rbc-special-highlight .comp-table-cell { color: #1a365d; font-weight: 900; }
.total-value-cell-rbc { color: #1a365d !important; background: #fdfaf3 !important; font-size: 1.05rem; font-weight: 900 !important; }

/* ============================================================
   4. 共通パーツ & スマホ対応
   ============================================================ */
.cta-center { text-align: center; margin-top: 40px; }
.cta-badge { color: #c5a059 !important; font-weight: bold; margin-bottom: 15px; display: block; font-size: 1.1rem; }
.btn-blue { background: #002855; color: #fff; padding: 20px 100px; text-decoration: none; font-weight: bold; border-radius: 100px; display: inline-block; transition: 0.3s; }

html { scroll-behavior: smooth; }
section { scroll-margin-top: 100px; }
.fade-in { opacity: 1; transition: opacity 1.0s ease-out; }

/* スマホ用設定 */
@media (max-width: 768px) {
    .stream-inner img { width: 250px; height: 300px; }
    @keyframes infinity-scroll { 
        0% { transform: translateX(0); } 
        100% { transform: translateX(-2500px); } 
    }
    
    br.sp-only { display: inline; }
    br.pc-only { display: none; }

    .hero-main-title { font-size: 5.2vw; line-height: 1.4; }
    .section-title-blue { font-size: 5.5vw; }
    .btn-blue { padding: 16px 0; width: 100%; font-size: 4.2vw; }

    .loop-item { margin-bottom: 50px !important; padding: 0 !important; }
    .loop-item h4 { margin-top: 0 !important; margin-bottom: 8px !important; }
    .loop-item p { margin-top: 0 !important; margin-bottom: 0 !important; }
/* ============================================================
   スマホ版でのみ有効な改行（br）の設定
   ============================================================ */

br.sp-only {
    display: none;
}

@media (max-width: 768px) {
    br.sp-only {
        display: inline;
    }
}


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

    #step .section-title-blue {
        font-size: 4.6vw;
        white-space: nowrap;
        letter-spacing: -0.03em;
    }

    .comp-sub-lead {
        font-size: 4.6vw;
        white-space: nowrap;
        letter-spacing: -0.03em;
        margin-bottom: 5.333vw;
    }

    .loop-text p {
        font-size: 3.1vw;
        white-space: nowrap;
        letter-spacing: -0.02em;
    }

     br.pc-only {
        display: none;
    }
    /* ============================================================ */

    .nav-content{ width: 80%; }
    .hero-text{ padding-top: 8.533vw; }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-detail { text-align: center !important; } 
    .loop-container { flex-direction: column; align-items: center; }
    .loop-arrow { display: none; }
    .voice-card-wrapper{ padding: 2.667vw 0; }
    .voice-card { flex-direction: column; }
    .voice-img, .voice-info { width: 100% !important; padding: 2.667vw 5.333vw; }
    .voice-img{ height: 58.667vw; }
    .voice-info .initial{ margin: 0; }
    
    .comp-sub-lead{ margin-bottom: 5.333vw; font-size: 5.333vw; }
    .comp-table-layout { padding: 0; }
    .comp-table-column { margin-bottom: 0; border-radius: 15px; overflow: hidden; border: 1px solid #eee; }
    .comp-table-column.rbc-special-highlight { min-height: 60px; margin-top: 0; }
    .comp-table-column.labels-only .header-empty-space,.comp-table-column.standard-intern .comp-table-header,.comp-table-column.rbc-special-highlight .comp-table-header{ min-height: 16vw; }
    .comp-table-column.standard-intern .comp-table-header,.comp-table-column.rbc-special-highlight .comp-table-header,.labels-only .header-empty-space{ margin-top: 0; font-size: 3.2vw; }
    .comp-table-cell{ height: stretch; padding: 2.133vw; font-size: 3.2vw; }
}


.mission-dept-badge {
    position: absolute;       
    top: 12px;               
    right: 12px;             
    background-color: #1a365d; 
    color: #ffffff;          
    font-size: 0.75rem;       
    font-weight: bold;        
    padding: 4px 12px;        
    border-radius: 4px;       
    letter-spacing: 0.05em;   
    z-index: 2;               }

.about-text-only strong {
    background: linear-gradient(transparent 65%, rgba(197, 160, 89, 0.22) 65%) !important;
    font-weight: bold;
    color: inherit;
    background-color: transparent !important;
    display: inline;
}