/* =============================================
   NEW HERO SECTION STYLES (FINAL CLEANUP)
   ============================================= */

:root {
    --color-primary: #E65C00; /* 画像のオレンジに近い色 */
    --color-line-green: #00B900; /* LINEの緑 */
    --color-text-black: #222;
    --color-bg-card: rgba(255, 255, 255, 0.92);
}

.new-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱいに */
    min-height: 640px; /* スマホでの最小高さ確保 */
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 下寄せ */
    overflow: hidden;
    background-color: #f0f0f0;
}

/* 背景画像エリア */
.new-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.new-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

/* デフォルト（モバイル）: PC用を非表示、モバイル用を表示 */
.hero-bg-pc     { display: none;     object-position: center center;}
.hero-bg-mobile { display: block; object-position: 50% 20%;     object-position: center right;
}

/* オーバーレイ */
.new-hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background:
        linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 70%),
        linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%); */
    pointer-events: none;
}

/* コンテンツコンテナ */
.new-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px; /* スマホデザイン基準 */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between; /* 上下の要素を離す */
    padding-top: 20px;
    padding-bottom: 30px;
}

/* ---------------------------------------------
   TEXT LAYOUT (SP Default)
   --------------------------------------------- */
.hero-text-layout {
    position: relative;
    width: 100%;
    margin-bottom: auto; /* 下のカードとの距離を確保 */
    margin-top: 10px;
}

.univ-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
    text-shadow: 0 0 8px rgba(255,255,255,1), 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.5);
    line-height: 1.2;
}

/* メインタイトル: OPEN CAMPUS 2026 */
.main-title {
    margin: 5px 0 10px;
}

.main-title .title-oc {
    font-size: 56px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.9), 0 0 50px rgba(255,255,255,0.5);
    display: block;
}

.main-title .title-year {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.0;
    color: var(--color-text-black);
    text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.9), 0 0 50px rgba(255,255,255,0.5);
    display: block;
    margin-top: 5px;
}

/* キャッチコピー */
.catch-copy {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--color-text-black);
    text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.9), 0 0 50px rgba(255,255,255,0.6);
    margin: 10px 0 0;
}


/* ---------------------------------------------
   CTA CARD (SP Default)
   --------------------------------------------- */
.cta-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px 20px 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.next-schedule {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.next-schedule .label {
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    transform: translateY(-2px);
}

.next-schedule .date {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
}

.next-schedule .day {
    font-size: 20px;
    font-weight: 700;
}

.next-schedule .time {
    font-size: 18px;
    font-weight: 500;
    margin-left: 5px;
}

.tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #5d4037;
    background: #eeeae6;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
}

.tags span { font-weight: 500; }
.tags .sep { color: #ccc; font-weight: 300; margin: 0 2px; }

.note {
    font-size: 12px;
    color: #cc0000;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-line {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-line-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
    width: 100%;
}

.btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 185, 0, 0.4);
    opacity: 1;
}

.btn-line .arrow { margin-left: 10px; font-weight: 400; }

.link-schedule-wrapper { text-align: center; }

.link-schedule {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.link-schedule:hover { border-bottom-color: #444; opacity: 0.8; }


/* =============================================
   RESPONSIVE (PC)
   ============================================= */
@media (min-width: 769px) {
    .new-hero {
        align-items: center;
        justify-content: center;
    }

    /* PC: PC用を表示、モバイル用を非表示 */
    .hero-bg-pc     { display: block; object-position: 30% center; }
    .hero-bg-mobile { display: none; }

    .new-hero-content {
        max-width: 1200px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        display: block; /* absolute配置の親として機能させる */
    }

    /* テキストレイアウト位置調整 */
    .hero-text-layout {
        position: absolute;
        top: 15%;
        left: 40px;
        width: 50%;
        margin-top: 0;
    }

    .univ-name {
        font-size: 24px;
        margin-bottom: 5px;
    }

    /* メインタイトル */
    .main-title {
        margin: 10px 0 15px;
    }

    .main-title .title-oc {
        font-size: 80px;
        line-height: 0.95;
    }

    .main-title .title-year {
        font-size: 90px;
        margin-top: 10px;
    }

    /* キャッチコピー */
    .catch-copy {
        font-size: 42px;
        line-height: 1.3;
        margin: 15px 0 0;
    }

    /* CTA Card位置調整 */
    .cta-card {
        position: absolute;
        bottom: 10%;
        right: 40px;
        width: 420px;
        margin-bottom: 0;
        padding: 40px 30px 25px;
    }
    
    .next-schedule .date { font-size: 54px; }
    .tags { font-size: 14px; padding: 8px 16px; }
}