@charset "UTF-8";

/* --- 変数定義 --- */
:root {
    --navy: #001a41;
    --logic-green: #006400;
    --logic-gold: #f1b400;
    --gold: #b3944d;
    --white: #ffffff;
    --off-white: #fdfdfd;
    --text-main: #333333;
    --text-sub: #666666;
    --bg-light: #f4f6f8;
}

/* --- 基本設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden; 
    width: 100%;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background: var(--off-white);
    line-height: 1.8;
}

.serif { font-family: 'Noto Serif JP', serif; }
.bg-light { background-color: var(--bg-light); } /* 追記：セクションの背景切替用 */

/* --- ヘッダー・ナビゲーション --- */
header {
    padding: 1.2rem 5%;
    background: var(--white);
    border-bottom: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.header-emblem { height: 65px; width: auto; }
.logo-box { display: flex; flex-direction: column; }
.logo-sub { font-size: 0.75rem; color: var(--gold); font-weight: bold; letter-spacing: 0.1em; margin-bottom: 4px; }
.logo-main-container { display: flex; align-items: baseline; gap: 12px; }
.logo-main { font-size: 2.2rem; letter-spacing: 0.15em; color: var(--navy); font-weight: 900; line-height: 1; }
.logo-kana { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--navy); opacity: 0.6; font-weight: 700; }

nav { display: flex; align-items: center; gap: 15px; }
.nav-status {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--navy);
    border: 1px solid var(--navy);
    padding: 5px 15px;
    white-space: nowrap;
}

.btn-online-guide {
    background: var(--logic-gold);
    color: var(--navy);
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

/* --- トップページ：Logiclass & 拠点カード --- */
.logiclass-intro {
    padding: 100px 5%;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid #eee;
}

.logiclass-logo-display { max-width: 450px; margin: 0 auto 30px; }
.logiclass-logo-display img { width: 100%; height: auto; display: block; }
.logiclass-description { max-width: 750px; margin: 0 auto 60px; font-size: 1.1rem; line-height: 2.2; }

.campus-selector {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 40px; 
    max-width: 1000px;
    margin: 0 auto;
}

.campus-card {
    background: var(--white);
    border: 2px solid #ddd; 
    padding: 50px 60px; 
    width: 100%;
    text-decoration: none;
    color: var(--navy);
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campus-card:hover {
    border-color: var(--logic-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: scale(1.02); 
}

.campus-info { text-align: left; }
.campus-info h3 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
    font-weight: 900;
}

.campus-info p { font-size: 1.2rem; color: var(--text-sub); font-weight: 500; }

.campus-label {
    font-size: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 3px 3px 0 var(--logic-gold);
}

/* --- ヒーロー・特徴（共通） --- */
.hero-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.hero-content { padding: 8% 10%; display: flex; flex-direction: column; justify-content: center; }
.vertical-text { writing-mode: vertical-rl; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.6; letter-spacing: 0.3em; color: var(--navy); }
.hero-visual { background-image: url('../images/home/hero_books.avif'); background-size: cover; background-position: left center; position: relative; }

.trust-section { padding: 80px 5%; background: var(--navy); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.trust-item { padding: 20px; }

/* ============================================================
   個別ページ（岐阜・札幌）専用スタイル
============================================================ */
.campus-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 26, 65, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-box { text-align: center; color: var(--white); }
.hero-text-box h2 { font-size: 3.5rem; margin-bottom: 10px; }
.sub-caps { font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 10px; color: var(--logic-gold); font-weight: bold; } /* 追記：Since1985用 */

/* 個別ページ背景画像 */
#page-gifu .campus-hero { background-image: url('../images/home/gifu_campus-hero.png'); }
#page-sapporo .campus-hero { background-image: url('../images/home/sapporo_campus-hero.png'); }

.section-container { padding: 80px 5%; }
.content-narrow { max-width: 800px; margin: 0 auto; }
.section-title { font-size: 2rem; border-bottom: 2px solid var(--logic-gold); display: inline-block; margin-bottom: 40px; }

.intro-text p { margin-bottom: 1.5rem; } /* 追記：文章の間隔 */
.origin-quote { margin: 40px 0; padding: 30px; background: #f9f9f9; border-left: 4px solid var(--navy); text-align: center; }
.origin-quote cite { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--text-sub); font-style: normal; } /* 追記：出典用 */

.course-grid { display: grid; gap: 20px; }
.course-item { background: var(--white); padding: 30px; border: 1px solid #eee; border-radius: 8px; }
.course-item h4 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; } /* 追記：コース名 */
.logiclass-highlight { border: 2px solid var(--logic-gold); background: #fffef0; }
.btn-text { color: var(--navy); font-weight: bold; text-decoration: none; border-bottom: 1px solid var(--logic-gold); display: inline-block; margin-top: 15px; } /* 追記：リンク用 */

.access-box { background: var(--white); padding: 30px; border-radius: 8px; border: 1px solid #eee; } /* 追記：アクセス枠 */

.guidance-box { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.tel-display { text-align: center; padding: 40px 20px; background: var(--bg-light); border-radius: 8px; margin-top: 30px; }
.tel-number { font-size: 2.5rem; font-weight: 900; color: var(--navy); text-decoration: none; border-bottom: 3px solid var(--logic-gold); }

/* --- レスポンシブ調整（統合・完全版） --- */
@media (max-width: 900px) {
    header { padding: 1rem 3%; flex-direction: column; gap: 12px; }
    .header-emblem { height: 50px; }
    .logo-main { font-size: 1.5rem; }
    .logo-kana { display: none; }
    nav { width: 100%; justify-content: center; gap: 10px; }
    .nav-status { font-size: 0.7rem; padding: 4px 10px; }
    .btn-online-guide { font-size: 0.8rem; padding: 6px 12px; }

    /* トップページカードのスマホ表示 */
    .logiclass-intro { padding: 60px 20px; }
    .campus-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 20px; }
    .campus-info h3 { font-size: 2rem; }
    .campus-label { align-self: flex-start; }

    /* ヒーローセクション */
    .hero-section { display: block; }
    .hero-content { padding: 40px 20px; }
    .vertical-text { writing-mode: horizontal-tb; font-size: 1.8rem; }
    .hero-visual { height: 350px; background-position: 5% center; }

    .trust-grid { grid-template-columns: 1fr; }

    /* 個別ページ用レスポンシブ隔離 */
    .campus-hero { height: 40vh; }
    .hero-text-box h2 { font-size: 2.2rem; }
    .tel-number { font-size: 1.8rem; }
    .guidance-box { padding: 20px; }
    .section-container { padding: 60px 20px; }
}