/* --- リセットCSS & 基本設定 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-bg: #0a1535; /* ベースの濃紺 */
    --gradient-bg: linear-gradient(45deg, #31384e 20%, #000c3d 30%);
    --gradient-bg-2: linear-gradient(140deg, #31384e 25%, #000c3d 50%);
    --accent-yellow: #c49c00; /* 強調色のイエロー */
    --accent-yellow-hover: #d4aa00;
    --accent-orange: #ea5532; /* メリットセクションの強調色 */
    --text-white: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9; /* フローセクションの背景色（明るいグレー） */
    --bg-company: #eef1f5; /* 開催企業セクションの背景色（淡い青グレー） */
    --step-blue: #233b86; /* フローのステップ背景色 */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-size-base: 12px;
}

html {
    scroll-behavior: smooth; /* スムーズスクロールを有効化 */
    overflow-x: hidden; /* 横スクロール防止 */
}

body {
    font-family: var(--font-main);
    color: var(--text-white);
    background: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロール防止 */
    max-width: 100vw; /* 画面幅を超えないように */
}

/* --- 共通ユーティリティ --- */
.text-yellow {
    color: var(--accent-yellow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* 背景画像より手前に */
}

/* セクション共通タイトル */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-sub {
    display: block;
    font-size: var(--font-size-base);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- ヘッダー (ロゴ) --- */
.header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--accent-yellow);
    margin-right: 8px;
    font-size: 28px;
}

/* --- メインビジュアル (FV) セクション --- */
.hero {
    position: relative;
    width: 100%;
    max-width: 100vw; /* 画面幅を超えないように */
    min-height: 100vh; /* 画面いっぱいに表示 */
    display: flex;
    align-items: center;
    background: #0a1535 url('./images/fv/bg_pc.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

/* レイアウト調整用ラッパー */
.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 80px; /* ヘッダー分 */
    padding-bottom: 40px;
}

/* --- テキストコンテンツ (左側) --- */
.hero-content {
    width: 75%; /* PC時は左半分強を使用 */
    padding-right: 40px;
}

.hero-headline {
    font-size: 4.75rem;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subinfo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.hero-subinfo p {
    margin-bottom: 10px;
}

/* --- CTAボタン --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #fff;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 20px 60px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(238, 191, 0, 0.3);
    position: relative;
    text-align: center;
}

/* ボタン内の矢印 */
.cta-button::after {
    content: '>';
    margin-left: 15px;
    font-weight: 400;
}

.cta-button:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(238, 191, 0, 0.4);
}

/* --- 画像コンテンツ (右側) --- */
.hero-image {
    width: 35%;
    height: 100%;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.hero-image img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    object-position: top center;
}

/* --- 特徴 (Features) セクション --- */
.features {
    padding: 80px 0 100px;
    background: var(--gradient-bg-2);
    text-align: center;
}

.features-header {
    margin: 0 auto 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%; 
    max-width: 1000px;
}

.features-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.features-list {
    list-style: none;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.features-list li {
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Section 2: Company (開催企業) セクション --- */
.company {
    padding: 80px 0 100px;
    /* 背景画像とオーバーレイ: 文字の可読性を確保するための暗いオーバーレイ */
    background: linear-gradient(rgba(10, 21, 53, 0.5), rgba(10, 21, 53, 0.5)), url('./images/company/bg.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
}

.company-title {
    font-size: 1.5rem; /* 小さめの見出し */
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.4;
}

.company-desc {
    max-width: 840px;
    margin: 0 auto 60px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 2;
}

.company-desc p {
    margin-bottom: 2rem;
}

/* 募集要項テーブル */
.company-table {
    width: 100%;
    max-width: 840px;
    margin: 0 auto 60px;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.company-table th, 
.company-table td {
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: left;
}

.company-table th {
    width: 25%;
    background-color: rgba(255, 255, 255, 0.05); /* 半透明の白背景 */
    font-weight: 700;
}

/* インセンティブ例ボックス */
.incentive-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 840px;
    margin: 0 auto;
    flex-wrap: wrap; /* スマホで折り返し */
}

.incentive-box {
    flex: 1;
    min-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
}

.incentive-header {
    background: #ffffff;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 0;
    text-align: center;
}

.incentive-body {
    padding: 20px;
    text-align: center;
}

.incentive-main {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap; /* 金額などを折り返さない */
}

.incentive-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Section 3: Merit (日本M&Aセンターの魅力) --- */
.merit {
    padding: 80px 0;
    background: var(--gradient-bg); /* FVとのつながりのため、暗い背景 */
    position: relative;
}

.merit-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.merit-card {
    background: #fff;
    color: var(--text-dark);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
}

.point-label {
    display: inline-block;
    background: var(--gradient-bg-2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 6px 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* メリットのタイトル:2段組の色分け */
.merit-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}
.merit-title .highlight {
    color: var(--accent-orange);
    display: block; /* 改行させる */
}
.merit-title .sub {
    color: var(--text-dark);
    display: block;
}

.merit-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.merit-note {
    font-size: 0.65rem;
    color: #888;
    text-align: right;
    margin-top: 10px;
}

/* --- Section 4: CTA --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #31384e 0%, #000c3d 30%);
    text-align: center;
}

.cta-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #fff;
}

/* Section 4用のボタンスタイル調整 */
.cta-section .cta-button {
    box-shadow: 0 10px 20px rgba(238, 191, 0, 0.3);
}

/* --- Section 5: Flow (1DAY選考会フロー) --- */
.flow {
    padding: 80px 0 100px;
    background: var(--gradient-bg); /* 背景を明るいグレーに戻す */
    color: var(--text-white); /* 文字色を黒に戻す */
}

.flow .section-sub {
    color: var(--text-white);
    font-weight: 700;
}

.flow .section-title {
    color: var(--text-white);
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    background: linear-gradient(0deg, #31384e 20%, #000c3d 40%);
    border: 1px solid #010b35;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.step-label {
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step-content {
    background: #fff;
    padding: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 2px;
    color: var(--text-dark);
    /* 少し影をつけて浮き上がらせる */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flow-desc {
    margin-top: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    color: var(--text-white); /* 本文も黒文字に */
}

.flow-desc p {
    margin-bottom: 1.5rem;
}

/* --- お問い合わせ (Contact) セクション --- */
.contact {
    padding: 80px 0 100px;
    background: var(--gradient-bg-2);
    color: var(--text-white);
}

.contact .section-title {
    color: var(--text-white);
}

.hubspot-placeholder {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #f4f4f4;
    border: 2px dashed #ccc;
    text-align: center;
    border-radius: 8px;
}


/* * --- レスポンシブ対応 (タブレット・スマホ) --- 
 * ブレークポイント: 960px以下
 */
@media (max-width: 960px) {
    .hero-headline { font-size: 3.5rem; }
    .hero-image { width: 100%; object-position: center 20%; }
    .hero-content { width: 100%; padding-right: 0; text-align: center; }
    .hero-headline .small-line { display: inline-block; }
    
    /* Features Tablet */
    .features-title { font-size: 2.5rem; }
    .features-list li { font-size: 1.8rem; margin-left: 0px; }
}

/* * ブレークポイント: 600px以下 (スマホ) 
 */
@media (max-width: 600px) {
    /* General */
    .section-title { font-size: 1.8rem; }
    .container { padding: 0 15px; } /* スマホ用パディング調整 */
    .cta-button {
        width: 100%;
        max-width: 100%; /* 画面幅を超えないように */
        padding: 18px 20px;
        font-size: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box; /* パディングを含めたサイズ計算 */
    }

    /* FV */
    .logo { font-size: 20px; }
    .hero { 
        min-height: 60vh;
        max-width: 100vw; /* 画面幅を超えないように */
        background: #0a1535 url('./images/fv/bg_sp.png') no-repeat center center;
        background-size: cover;
    }
    .hero-headline { 
        font-size: 2rem; 
        text-align: left;
        max-width: 100%; /* 画面幅を超えないように */
    }
    .hero-content { 
        text-align: left; 
        padding-top: 100px; 
        margin-top: 40px;
        max-width: 100%; /* 画面幅を超えないように */
    }
    .hero-subinfo { 
        font-size: 1.25rem; 
        text-align: left;
        max-width: 100%; /* 画面幅を超えないように */
    }
    .hero-image { 
        width: 100%;
        overflow: hidden; /* はみ出し防止 */
    }
    .hero-image img { 
        width: auto; 
        height: 80%; 
        bottom: 85px; 
        right: -60px;
        max-width: none; /* 画像のはみ出しを許容（マスクで制御） */
    }

    /* Features */
    .features { 
        padding: 50px 0 30px;
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    .features-header { 
        margin-bottom: 30px; 
        width: 100%;
        max-width: 100%; /* 画面幅を超えないように */
    }
    .features-title { 
        font-size: 1.4rem; 
        white-space: normal; /* 折り返しを許可 */
        word-wrap: break-word; /* 長い単語も折り返し */
    }
    .features-list { 
        padding: 0;
        max-width: 100%; /* 画面幅を超えないように */
    }
    .features-list li { 
        font-size: 0.95rem; 
        margin-bottom: 25px; 
        align-items: flex-start;
        max-width: 100%; /* 画面幅を超えないように */
        word-wrap: break-word; /* 長い文章も折り返し */
    }

    /* Company Section Mobile */
    .company { 
        padding: 60px 0;
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    .company-name { 
        font-size: 1.6rem; 
        margin-bottom: 40px;
        word-wrap: break-word; /* 長い文章も折り返し */
    }
    
    /* テーブルのスマホ表示調整 */
    .company-table {
        max-width: 100%; /* 画面幅を超えないように */
        table-layout: fixed; /* テーブル幅を固定 */
    }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        border-bottom: none;
        box-sizing: border-box; /* パディングを含めたサイズ計算 */
        word-wrap: break-word; /* 長い文章も折り返し */
    }
    .company-table th {
        background: rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .company-table tr {
        border-bottom: 1px solid rgba(255,255,255,0.4);
    }
    
    /* インセンティブ */
    .incentive-container {
        max-width: 100%; /* 画面幅を超えないように */
    }
    .incentive-box { 
        min-width: 100%;
        max-width: 100%; /* 画面幅を超えないように */
        margin-bottom: 10px;
        box-sizing: border-box; /* パディングを含めたサイズ計算 */
    }
    .incentive-main { 
        font-size: 1.1rem; 
        white-space: normal;
        word-wrap: break-word; /* 長い文章も折り返し */
    }

    /* Merit Section */
    .merit {
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    .merit-card { 
        padding: 30px 20px;
        max-width: 100%; /* 画面幅を超えないように */
        box-sizing: border-box; /* パディングを含めたサイズ計算 */
    }
    .merit-title { 
        font-size: 1.5rem;
        word-wrap: break-word; /* 長い文章も折り返し */
    }
    .merit-desc { 
        font-size: 1rem;
        word-wrap: break-word; /* 長い文章も折り返し */
    }

    /* CTA Section */
    .cta-section { 
        padding: 60px 0;
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    .cta-text { 
        font-size: 1.5rem; 
        margin-bottom: 30px;
        word-wrap: break-word; /* 長い文章も折り返し */
    }

    /* Flow Section */
    .flow { 
        padding: 60px 0;
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
    .flow-step { 
        padding: 20px;
        max-width: 100%; /* 画面幅を超えないように */
        box-sizing: border-box; /* パディングを含めたサイズ計算 */
    }
    .step-content { 
        font-size: 1.2rem;
        word-wrap: break-word; /* 長い文章も折り返し */
    }
    .step-label { font-size: 1.1rem; }
    
    /* Contact Section */
    .contact {
        max-width: 100vw; /* 画面幅を超えないように */
        overflow-x: hidden; /* 横スクロール防止 */
    }
}