@charset "UTF-8";

/* =========================================
   1. 共通変数・ベース (確定)
   ========================================= */
:root {
    --main-navy: #1a3350;
    --accent-gold: #d4af37;
    --header-height: 80px;
    --container-width: 1200px;
}

body { margin: 0; padding: 0; font-family: "Noto Sans JP", sans-serif; color: #333; line-height: 1.8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: auto; vertical-align: bottom; }

/* =========================================
   2. ヘッダー (確定・ドット干渉防止)
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; padding: 0 4%; box-sizing: border-box;
}
header h1, 
header .logo { 
    margin: 0; 
    padding: 0; 
    border: none; 
    display: flex; 
    align-items: center; 
}

header h1 img, 
header .logo img { 
    height: 50px; 
    display: block;
}

.nav-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-menu li a { font-weight: bold; color: var(--main-navy); display: flex; align-items: center; font-size: 0.95rem; }
.nav-menu li a i { font-size: 0.7rem; margin-right: 8px; color: var(--accent-gold); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1200; position: relative; }
.menu-toggle span { width: 30px; height: 2px; background: var(--main-navy); transition: 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   3. メインレイアウト & 共通パーツ
   ========================================= */
main { width: var(--container-width); margin: 0 auto; }
section { padding: 80px 40px; box-sizing: border-box; }
.sect-white { background: #fff; }
.sect-gray { background: #f4f7f9; }

/* セクション見出し装飾 */
.section-title { text-align: center; margin-bottom: 60px; position: relative; padding-bottom: 25px; }
.section-title h2 { font-size: 2rem; color: var(--main-navy); margin: 0; font-weight: bold; border: none; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--accent-gold); }
.section-title span { display: block; font-size: 0.9rem; font-weight: normal; margin-top: 10px; color: #888; letter-spacing: 0.1em; }

/* 2列・3列グリッド */
.flex-2col { display: flex; gap: 40px; align-items: flex-start; }
.flex-2col > div { flex: 1; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

/* 動画セクション（横並び） */
.movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.iframe-wrap { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; margin-bottom:25px; }
.iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* カードデザイン */
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; height: 100%; box-sizing: border-box; text-align:left; }
.card p { margin-bottom:25px; }
.card h3 { font-size: 1.2rem; color: var(--main-navy); margin-bottom: 15px; text-align:center; }
.card img { border-radius: 5px; margin-bottom: 15px; }
.card-num { background: var(--accent-gold); color: #fff; width: 25px; height: 25px; border-radius: 50%; display: inline-block; line-height: 25px; font-size: 0.8rem; margin-right: 10px; }

/* 留学の流れ（STEP） */
.flow-card { text-align: left; border: 2px solid var(--main-navy); box-shadow: none; position: relative; margin-bottom:25px; }
.flow-card::after { content: '▶'; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); color: var(--main-navy); font-size: 1.2rem; z-index: 1; }
.flow-card:last-child::after {
    display: none;
}
.grid-3col > div:last-child .flow-card::after { content: none; }

/* アクティビティ (50%:50%) */
.activity-box { margin-bottom: 60px; }
.activity-item { display: flex; gap: 40px; align-items: center; }
.activity-item.reverse { flex-direction: row-reverse; }
.activity-item .col-text, .activity-item .col-img { flex: 0 0 calc(50% - 20px); width: calc(50% - 20px); }
.activity-item .col-text, .activity-item .col-img img { border-radius:5px; }
.activity-item video { width: 100%; border-radius: 10px; }

/* キャンパス専用：地図固定＋下段スライダー */
.campus-map-area { margin-bottom: 50px; }
.campus-swiper { border-radius: 12px; overflow: hidden; margin-top: 40px; }
.campus-swiper img { width: 100%; height: 450px; object-fit: cover; }

/* 会社概要テーブル */
/* --- 会社概要・特商法テーブルの修正 --- */
.comp-table {
    width: 100%;
    border-collapse: collapse; /* 枠線を一本にまとめる */
    background: #fff;
    border: 1px solid #ddd;   /* 外枠 */
    margin-top: 20px;
}

.comp-table th, 
.comp-table td {
    padding: 15px;
    border: 1px solid #ddd;   /* 内側の枠線を追加 */
    text-align: left;
}

.comp-table th {
    background: #f8f8f8;
    width: 25%;
    font-weight: bold;
    color: var(--main-navy);
    vertical-align: middle;   /* 中央揃え */
}

/* ヒーロー */
.hero { margin-top: var(--header-height); height: 60vh; background: linear-gradient(rgba(26,51,80,0.4),rgba(26,51,80,0.4)), url('../media/main.png') center/cover; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.hero-content h2 { font-size: 3.5rem; border: none; margin: 0; line-height: 1.3; }

/* フッター */
footer { background: var(--main-navy); color: #fff; padding: 60px 20px 30px; text-align: center; }
.footer-logo img { height: 40px; margin-bottom: 30px; width:initial; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* スマホで入り切らない場合に折り返す */
}

.footer-links a {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
    transition: 0.3s;
    position: relative;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* スマホ表示の調整 */
@media (max-width: 850px) {
    .footer-links {
        gap: 15px; /* 間隔を少し詰める */
        padding: 0 20px;
    }
    .footer-links a {
        font-size: 0.8rem; /* 文字を少し小さく */
    }
    /* --- ヒーローセクションのスマホ最適化 --- */
@media (max-width: 850px) {
    .hero-content h2 {
        font-size: 1.6rem;    /* PCの2.5rem〜3remからサイズダウン */
        line-height: 1.5;     /* 行間を少し広げて読みやすく */
        padding: 0 20px;      /* 左右に余白を作って画面端に付くのを防ぐ */
        word-break: keep-all; /* 単語の途中で改行されるのを防ぐ（ブラウザによる） */
    }

    /* 特定の場所で改行させたい、または改行を消したい場合の調整 */
    .hero-content h2 br {
        display: block;       /* 改行を生かす場合は block */
        content: "";          /* スマホで改行を消したい場合は display: none; に変更 */
    }
}
}
.footer-sns { display: flex; justify-content: center; gap: 25px; font-size: 1.8rem; margin-bottom: 20px; }

/* レスポンシブ */
@media (max-width: 1200px) { main { width: 100%; } }
@media (max-width: 850px) {
    .movie-grid, .flex-2col, .grid-3col, .activity-item { display: block; }
    .activity-item .col-text, .activity-item .col-img { width: 100%; flex: none; margin-bottom: 20px; }
    .flow-card::after { content: '▼'; bottom: -30px; right: 50%; top: auto; transform: translateX(50%); }
    .menu-toggle { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #fff; flex-direction: column; justify-content: center; padding-left: 40px; transition: 0.4s; z-index: 1100; }
    .nav-menu.active { right: 0; background:#f3f3f3; }
    
}

/* =========================================
   下層ページ専用：サブビジュアル (page-header)
   ========================================= */
.page-header {
    margin-top: var(--header-height); /* ヘッダーの高さ分下げる */
    height: 250px; /* サブページ用の高さ */
    background: linear-gradient(rgba(26, 51, 80, 0.5), rgba(26, 51, 80, 0.5)), 
                url('https://curious-world-academy.com/wp-content/uploads/2023/06/1686369827627.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1; /* コンテンツより背面に配置 */
}

.page-title {
    color: #fff;
    text-align: center;
}

.page-title h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 15px;
    border: none; /* 共通のh1装飾がある場合のリセット */
}

/* タイトル下の装飾線 */
.page-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

/* レスポンシブ：スマホ時は高さを抑える */
@media (max-width: 850px) {
    .page-header {
        height: 180px;
    }
    .page-title h1 {
        font-size: 1.6rem;
    }
}

/* =========================================
   下層ページ専用デザイン (.page-content内のみ)
   ========================================= */

/* コンテンツ全体の余白調整 */
.page-content .inner {
    max-width: 1000px; /* 読みやすさのためPCでは少し絞る */
    margin: 0 auto;
}

/* サブページ内の中見出し (h2) */
.page-content h2 {
    font-size: 1.8rem;
    color: var(--main-navy);
    border-left: 5px solid var(--accent-gold);
    padding: 10px 0 10px 20px;
    margin: 40px 0 20px;
    text-align: left; /* 左寄せ */
}
/* トップページの装飾（下線・ドット）をサブページでは無効化 */
.page-content h2::after, 
.page-content h2::before {
    display: none;
}

/* サブページ内の小見出し (h3) */
.page-content h3 {
    font-size: 1.4rem;
    color: var(--main-navy);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin: 30px 0 15px;
}

/* テキスト装飾 */
.page-content p {
    margin-bottom: 1.5rem;
}

/* リストデザイン (箇条書き) */
.page-content ul.design-list {
    margin: 20px 0;
    padding: 0;
}
.page-content ul.design-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    list-style: none;
}
.page-content ul.design-list li::before {
    content: '\f054'; /* FontAwesomeの矢印 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* 枠線付きボックス (注意書きやポイント用) */
.page-content .point-box {
    background: #fff;
    border: 2px solid var(--main-navy);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}
.page-content .point-box .box-title {
    font-weight: bold;
    color: var(--main-navy);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* レスポンシブ調整 */
@media (max-width: 850px) {
    .page-content h2 {
        font-size: 1.5rem;
    }
    .page-content h3 {
        font-size: 1.2rem;
    }
}

/* =========================================
   パンくずリスト (.page-content内)
   ========================================= */
.breadcrumb {
    background-color: var(--bg-gray); /* 薄いグレーの背景 */
    padding: 15px 0;
    font-size: 0.85rem;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb li a {
    color: var(--main-navy);
    font-weight: bold;
}

.breadcrumb li a:hover {
    text-decoration: underline;
    color: var(--accent-gold);
}

/* 区切り文字（矢印）の設定 */
.breadcrumb li:not(:last-child)::after {
    content: '\f054'; /* FontAwesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin: 0 15px;
    color: #ccc;
}

/* 現在のページ（リンクなし）の装飾 */
.breadcrumb li:last-child {
    font-weight: normal;
    color: #888;
}

@media (max-width: 850px) {
    .breadcrumb { padding: 10px 0; }
}

/* =========================================
   追従型フローティングボタン
   ========================================= */
.floating-btns {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000; /* ヘッダーより上に配置 */
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    padding: 12px 0;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.float-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

/* LINEボタン */
.float-btn.line {
    background-color: #06c755;
}

/* お問い合わせボタン */
.float-btn.mail {
    background-color: var(--main-navy);
    border: 1px solid rgba(255,255,255,0.2);
}

/* レスポンシブ：スマホ時は画面下部に横並びで固定 */
@media (max-width: 850px) {
    .floating-btns {
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: row;
        gap: 0;
        padding: 0;
    }

    .float-btn {
        flex: 1;
        width: 100%;
        border-radius: 0;
        padding: 15px 0;
        box-shadow: none;
        font-size: 0.85rem;
    }
    
    .float-btn:hover {
        transform: none;
    }
}

/* --- フォームレイアウト調整 --- */
.contact-form {
    max-width: 900px; /* フォーム全体を中央に寄せつつ適度な幅に */
    margin: 0 auto;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table input[type="date"],
.form-table select,
.form-table textarea {
    width: 100%;
    padding: 15px; /* 余白を大きくして操作性を向上 */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-table select {
    height: 54px; /* セレクトボックスの高さを調整 */
}

/* ラジオボタンとチェックボックスの装飾 */
.radio-label, .checkbox-label {
    margin-right: 20px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.radio-label input, .checkbox-label input {
    margin-right: 8px;
    transform: scale(1.3); /* 少し大きくしてクリックしやすく */
}

.required {
    color: #e74c3c;
    font-weight:bold;
}

/* プライバシーポリシー同意エリア */
.form-privacy {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-privacy a {
    color: var(--main-navy);
    text-decoration: underline;
    font-weight: bold;
}

/* 送信ボタンのサイズアップ */
/* --- 送信ボタンエリアの修正 --- */
.form-submit {
    text-align: center; /* ボタンを中央に配置 */
    margin-top: 40px;   /* 上に余白を追加 */
    width: 100%;        /* 親要素の幅いっぱいに広げる */
}

/* もし反映が弱い場合は、ボタン自体にも以下を追加 */
.submit-btn {
    display: inline-block; /* text-alignの影響を受けるようにする */
    background: var(--main-navy);
    color: #fff;
    border: none;
    padding: 20px 80px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 特長セクションのアイコンスタイル */
#feature .card h3 i {
    color: var(--accent-gold); /* 既存のゴールド変数を使用 */
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* 数字（card-num）とのバランス調整 */
/* 特長セクションのh3（数字とテキストの並び） */
#feature .card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 数字とテキストの間の余白 */
    margin-bottom: 15px;
}

/* 数字（card-num）の形状と中央配置の修正 */
#feature .card .card-num {
    display: flex;           /* flexを適用 */
    align-items: center;     /* 垂直中央 */
    justify-content: center; /* 水平中央 */
    width: 24px;             /* 固定幅 */
    height: 24px;            /* 固定高さ */
    background-color: var(--accent-gold);
    color: #fff;
    border-radius: 50%;      /* 正円 */
    font-size: 0.8rem;
    line-height: 1;          /* 行高によるズレを防止 */
    flex-shrink: 0;          /* スマホで潰れないように固定 */
    /* 既存の margin や padding があればリセット */
    margin: 0;
    padding: 0;
}

/* 特長セクション (#feature) の中のカードにある画像だけを非表示にする */
#feature .card img {
    display: none;
}

/* 特長セクションのアイコン装飾 */
.card-icon-wrap {
    width: 100px;
    height: 100px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    transition: 0.3s;
}

.card-icon-wrap i {
    font-size: 3rem;
    color: var(--main-navy);
}

/* ホバー時の演出（ここも#feature内に限定するとより安全です） */
#feature .card:hover .card-icon-wrap {
    background-color: var(--accent-gold);
}
#feature .card:hover .card-icon-wrap i {
    color: #fff;
}