@charset "UTF-8";

/* --- 1. NEWS（最新情報） --- */
.front-news {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-inner {
    display: flex;
    align-items: flex-start; /* 複数行になっても見出しは上に固定 */
    gap: 40px;
}

.news-head {
    border-right: 2px solid #0071bc;
    padding-right: 30px;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 5px; /* リストの1行目と高さを合わせる */
}

.news-head .en {
    font-weight: bold;
    color: #0071bc;
    font-size: 1.3rem;
    display: block;
    letter-spacing: 0.1em;
}

.news-head .jp {
    font-size: 0.75rem;
    color: #999;
}

/* 投稿リストエリア */
.news-list {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    border-bottom: 1px dotted #eee;
}

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

.news-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.news-list li a:hover {
    color: #0071bc;
    background-color: #f9f9f9; /* ホバー時に少し色を変えてクリックしやすく */
}

/* 日付の幅を固定して揃える */
.news-list .date {
    font-size: 0.9rem;
    color: #888;
    font-family: 'Arial', sans-serif;
    min-width: 90px;
    flex-shrink: 0;
}

/* NEWラベル */
.label-new {
    background: #ff4b4b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
}

/* 記事タイトル */
.news-list .title {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;      /* 1行で収める（はみ出しは...） */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .news-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-head {
        border-right: none;
        border-left: 4px solid #0071bc;
        padding: 0 0 0 15px;
        text-align: left;
        margin-top: 0;
    }

    .news-list li a {
        flex-wrap: wrap; /* スマホでは日付とタイトルを2行許容 */
        gap: 8px;
        padding: 12px 0;
    }

    .news-list .date {
        min-width: auto;
        margin-right: 10px;
    }

    .news-list .title {
        width: 100%; /* タイトルを日付の下に回す */
        white-space: normal; /* スマホでは2行以上もOKにする */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 最大2行まで表示 */
        -webkit-box-orient: vertical;
    }
}

/* --- 2. SCHOOL INTRODUCTION（学校紹介） --- */
.school-intro {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.intro-main-text {
    text-align: center;
    margin-bottom: 50px;
}

.intro-main-text .catch {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* 動画エリアのグリッド：ここだけ並列 */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 16:9 の比率を保つレスポンシブビデオ枠 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .school-intro {
        padding: 50px 0;
    }
    .intro-main-text .catch {
        font-size: 1.4rem;
    }
    .video-grid {
        grid-template-columns: 1fr; /* スマホでは縦に並べる */
        gap: 20px;
    }
}

/* --- 3. ABOUT CEBU STUDY ABROAD（セブ島留学とは） --- */
.about-cebu {
    background-color: #fff;
    padding: 80px 0;
}

.about-cebu-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* 3カラム並列 */
.about-cebu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cebu-card {
    background: #f9f9f9;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.cebu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
    border-color: #0071bc;
}

.cebu-card .card-icon {
    font-size: 2.5rem;
    color: #0071bc;
    margin-bottom: 20px;
}

.cebu-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.cebu-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    text-align: left; /* 本文は読みやすさ重視で左寄せ */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .about-cebu-grid {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
    .about-cebu-intro {
        text-align: left;
    }
}

/* --- 4. OUR FEATURE（私たちの特長） --- */
.our-feature {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 80px; /* 行間の余白 */
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 偶数番目は左右反転 */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-row .f-img {
    flex: 1.2;
}

.feature-row .f-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-row .f-txt {
    flex: 1;
    position: relative;
}

.f-num {
    font-size: 4rem;
    font-weight: bold;
    color: rgba(0, 113, 188, 0.08); /* 背景に透ける数字 */
    position: absolute;
    top: -40px;
    left: -10px;
    z-index: 0;
}

.feature-row h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.f-note {
    font-size: 0.85rem;
    color: #ff4b4b;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-row p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* 詳しく見るボタン（装飾） */
.btn-more-s {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding: 12px 20px;
    
    /* 背景を透明、枠線と文字を青に */
    background-color: transparent !important; 
    color: #0071bc !important;
    border: 2px solid #0071bc !important;
    
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* ホバー時：背景を青、文字を白に反転 */
.btn-more-s:hover {
    background-color: #0071bc !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.2);
    transform: translateY(-2px);
    text-decoration: none; /* 下線を消す */
}

/* もし右側に小さな矢印を入れたい場合（お好みで追加） */
.btn-more-s::after {
    content: '〉'; /* シンプルな矢印記号 */
    font-size: 0.8rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-more-s:hover::after {
    transform: translateX(5px); /* ホバー時に矢印だけ少し右へ */
}

/* スマホ対応 */
@media (max-width: 992px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column; /* 縦並びに */
        gap: 30px;
    }
    .f-num {
        top: -30px;
        font-size: 3rem;
    }
}

/* --- 5. COURSE AND PROGRAM（コース＆プログラム） --- */
.course-program {
    background-color: #fff;
    padding: 80px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.course-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.course-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-body {
    padding: 30px;
    flex-grow: 1; /* カードの高さを揃える */
    display: flex;
    flex-direction: column;
}

.course-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #0071bc;
    background: #f0f7ff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.course-body h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.course-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.course-btn {
    text-align: center;
}

/* 詳しく見るボタン（共通スタイルbtn-more-sを継承、なければ追加） */
.btn-more-s {
    display: inline-block;
    padding: 10px 45px;
    background: #0071bc;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    width: 100%; /* カード内では幅いっぱいに */
}

.btn-more-s:hover {
    background: #333;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: 1fr; /* スマホでは縦並び */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- 6. FUN ACTIVITIES（楽しめるアクティビティ） --- */
.fun-activities {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.activity-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.activity-body {
    padding: 25px;
    flex-grow: 1;
}

.activity-body h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0071bc;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 10px;
}

.activity-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* 補足説明（注釈） */
.activity-note {
    font-size: 0.75rem !important;
    color: #999 !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

/* 修正：1行ずつマーカーを引く設定 */
.activity-emphasize {
    line-height: 1.8; /* 行間を少し広げてマーカーの重なりを防ぐ */
    margin-top: 20px;
}

.activity-emphasize span {
    background: linear-gradient(transparent 60%, #fff0b3 60%);
    box-shadow: 0 -0.2em 0 #fff0b3 inset; /* 行の隙間を埋める */
    padding: 0.2em 0;
    font-weight: bold;
    color: #333;
    display: inline; /* インラインにすることで改行時に行ごとに適用 */
    box-decoration-break: clone; /* 改行時も装飾を維持する魔法のプロパティ */
    -webkit-box-decoration-break: clone;
}

/* ズンバの時間情報リスト */
.activity-info-list {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 6px;
    list-style: none;
    margin-bottom: 15px;
}

.activity-info-list li {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.activity-info-list li span {
    font-weight: bold;
    color: #0071bc;
}

@media (max-width: 992px) {
    .activity-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- 7. NEW FORM OF STUDY ABROAD（新しい留学のカタチ） --- */
.new-form-study {
    background-color: #fff;
    padding: 80px 0;
}

.new-form-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.new-form-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.new-form-intro strong {
    color: #0071bc;
    background: linear-gradient(transparent 70%, #e6f2ff 70%);
}

/* 3カラムカードレイアウト */
.new-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.new-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nf-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.nf-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素（ボタンなど）を中央に寄せる */
    text-align: center;   /* テキスト全体を中央揃えにする場合 */
}

.nf-body h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 2.8em; /* 見出しの高さを揃える */
}

.nf-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.nf-btn {
    margin-top: auto; /* 説明文の長さに関わらずボタンを下に配置 */
    width: 100%;      /* 親の align-items: center に合わせる */
    padding-top: 20px;
}
.btn-more-s {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto; /* 水平中央配置 */
    /* ...他のスタイルはそのまま... */
}

/* フロー画像エリア */
.new-form-flow {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 40px;
    background: #f0f7ff;
    border-radius: 20px;
    text-align: center;
}

.flow-img-wrap img {
    width: 100%;
    height: auto;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .new-form-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    .new-form-flow {
        padding: 20px;
    }
}

/* --- 8. STUDY ABROAD FLOW（留学の流れ） --- */
.study-flow {
    background-color: #f9f9f9;
    padding: 80px 0;
}

/* 高さを揃えるためのFlex設定 */
.flow-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: stretch; /* これで横並びのカードの高さが揃います */
    max-width: 1100px;
    margin: 0 auto;
}

.flow-item {
    flex: 1;
    display: flex; /* 内部の inner を伸ばすため */
}

.flow-item-inner {
    background: #fff;
    border-radius: 15px;
    padding: 50px 25px 35px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 100%;
    display: flex;
    flex-direction: column; /* 内部要素を縦に積む */
}

/* 強調ステップ（Step 3） */
.flow-item.highlight .flow-item-inner {
    border: 2px solid #0071bc;
    background: #f0f7ff;
}

.step-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0071bc;
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 2;
}

.flow-icon {
    font-size: 3rem;
    color: #0071bc;
    margin-bottom: 20px;
}

.flow-item h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.flow-body {
    flex-grow: 1; /* ここが伸びることで、テキスト量が違っても高さが揃う */
    display: flex;
    flex-direction: column;
}

.flow-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
    margin-bottom: 15px;
}

.step-note {
    font-size: 0.75rem !important;
    color: #999 !important;
    margin-top: auto; /* 注釈を一番下に配置 */
    line-height: 1.4 !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .flow-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .flow-item {
        width: 100%;
        max-width: 450px;
    }
}

/* --- 9. ABOUT US（私たちについて） --- */
.about-us {
    background-color: #fff;
    padding: 80px 0;
}

/* 認定情報 */
.about-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.cert-item {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #0071bc;
}

.cert-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0071bc;
    margin-bottom: 15px;
}

.cert-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 導入実績リスト */
.about-results {
    margin-bottom: 60px;
    text-align: center;
}

.about-results h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.results-intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.school-list-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: justify;
}

.school-list-box p {
    font-size: 0.85rem;
    line-height: 2;
    color: #444;
    margin: 0;
}

/* 事例紹介カード（高さ揃え） */
.about-case-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 50px;
}

.case-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-body h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.case-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* 下部ボタン */
.about-footer-btn {
    text-align: center;
}

.btn-outline-lg {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid #0071bc;
    color: #0071bc;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline-lg:hover {
    background: #0071bc;
    color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .about-cert-grid, .about-case-grid {
        flex-direction: column;
        display: block;
    }
    .cert-item, .case-card {
        margin-bottom: 20px;
    }
}

/* --- 10. SCHOOL DORMITORY AROUND（学校・寮・周辺） --- */
.school-dorm {
    background-color: #f9f9f9;
    padding: 80px 0;
}

/* メイン部分の高さ揃え */
.dorm-main-flex {
    display: flex;
    gap: 40px;
    align-items: stretch; /* 高さを揃える */
    margin-bottom: 50px;
}

.dorm-info {
    flex: 1;
    display: flex;
}

.dorm-info-inner {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中央寄せ */
}

.dorm-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0071bc;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dorm-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.dorm-info p:last-child {
    margin-bottom: 0;
}

.dorm-map {
    flex: 1;
}

.map-wrapper {
    height: 100%;
}

.map-wrapper img {
    width: 100%;
    border-radius: 15px;
}

/* ギャラリー（カルーセル） */
.dorm-gallery {
    margin-top: 30px;
}

.dorm-swiper {
    padding-bottom: 40px;
}

.dorm-swiper .swiper-slide img {
    width: 100%;
    border-radius: 10px;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .dorm-main-flex {
        flex-direction: column;
    }
    .dorm-info-inner {
        padding: 30px 20px;
    }
    .map-wrapper {
        height: 300px;
    }
}

/* --- 11. INQUIRE（お問合せ） --- */
.front-inquire {
    background-color: #f0f7ff;
    padding: 100px 0;
}

.inquire-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.inquire-text {
    margin-bottom: 40px;
}

.inquire-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* 資料ダウンロードボタン（メインCTA） */
.inquire-download {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 113, 188, 0.1);
    margin-bottom: 40px;
}

.dl-msg {
    font-weight: bold;
    color: #0071bc;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-download {
    display: inline-block;
    background: #ff8c00; /* 目立つオレンジ */
    color: #fff;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 5px 0 #cc7000;
}

.btn-download:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc7000;
    opacity: 1;
}

/* サブボタン（LINE/メール） */
.inquire-btns-sub {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.inq-btn-s {
    flex: 1;
    max-width: 300px;
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.inq-btn-s.line { background: #06C755; }
.inq-btn-s.mail { background: #0071bc; }

.inq-btn-s:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .inquire-text p { font-size: 0.95rem; }
    .btn-download {
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
    }
    .inquire-btns-sub {
        flex-direction: column;
        align-items: center;
    }
    .inq-btn-s { width: 100%; }
}

/* 英語表示時のみ適用するスタイル */
html[lang="en-US"] .btn-download {
    font-size: 1.1rem; /* 英語だと長くなるので少し小さくする等 */
}