/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

img {
    max-width: 100%;
    height: auto;
}

.text-blue { color: #0056b3 !important; }
.text-red { color: #e60000 !important; font-weight: bold !important; }

/* 応募ボタン群のレイアウト */
.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    width: 100%;
    margin: 30px auto 0 !important;
}

/* ボタン共通スタイル */
.btn-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    border: none !important;
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

.btn-cv .icon {
    font-size: 1.4rem;
    margin-right: 10px;
}

/* ボタンカラーの強制適用 */
.line-btn { background-color: #06C755 !important; color: #fff !important; }
.phone-btn { background-color: #ff7a00 !important; color: #fff !important; }
.form-btn { background-color: #0056b3 !important; color: #fff !important; }

/* ファーストビュー */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 60px 20px;
    background-color: #e6f2ff;
}

/* PC時の背景画像設定 */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 文字用半透明ボックス */
.hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* ★修正：キャッチコピーの枠を消し、文字色を #025695 に設定 */
.strong-catch {
    display: block !important;
    background: none !important;
    color: #025695 !important;
    padding: 0 0 10px 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    font-size: 1.6rem !important; /* PC向けサイズ */
    margin-bottom: 10px !important;
    letter-spacing: 2px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.catchphrase {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.hero h1 .highlight {
    color: #e60000;
    font-size: 3rem;
}

.hero-merits {
    list-style: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #0056b3;
    text-align: left;
}

.hero-merits li { margin-bottom: 10px; }
.hero-merits li:last-child { margin-bottom: 0; }

/* セクション共通 */
section { 
    padding: 60px 20px; 
    display: block !important;
}
section h2 {
    text-align: center !important;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0056b3;
    margin: 10px auto 0 !important;
}

/* 選ばれる理由 */
.features { background-color: #fff; }
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto !important;
}
.feature-item {
    background: #f4f7f6;
    padding: 25px;
    border-radius: 8px;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.feature-item h3 {
    font-size: 1.2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

/* 隊員の声 */
.voice { background-color: #e6f2ff; }
.voice-card {
    background: #fff;
    max-width: 800px;
    width: 100%;
    margin: 0 auto !important;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: block;
}
.voice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}
.voice-header h3 { font-size: 1.4rem; color: #333; margin: 0; }
.voice-tag {
    background-color: #ff7a00;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}
.qa-item { margin-bottom: 20px; }
.qa-item:last-child { margin-bottom: 0; }
.qa-q {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.qa-q span { font-size: 1.3rem; margin-right: 5px; }
.qa-a {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.7;
}
.qa-a span {
    font-weight: bold;
    color: #e60000;
    font-size: 1.3rem;
    margin-right: 5px;
}

/* 仕事内容 */
.work-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto !important;
    text-align: center;
}
.work-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 募集要項 */
.requirements { background-color: #fff; }
table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto !important;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: left;
}
th {
    background-color: #f0f0f0;
    width: 30%;
    font-weight: bold;
}

/* 入社までのステップ */
.flow { background-color: #f4f7f6; }
.flow-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto !important;
    display: block;
}
.flow-step {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-top: 5px solid #0056b3;
}
.step-num {
    color: #0056b3;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.step-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.step-arrow {
    text-align: center;
    color: #ccc;
    font-size: 2rem;
    margin: 15px auto !important;
}

/* クロージング */
.cta {
    background-color: #e6f2ff;
    text-align: center;
}
.cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: bold;
}

/* ★修正：フッターの背景色を #025695 に変更 */
footer {
    background-color: #025695 !important;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}
footer p { margin-bottom: 10px; }
footer a { color: #66b3ff; }

/* 電話モーダル用CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.is-active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: #333;
}
.modal-title {
    font-size: 1.3rem;
    color: #0056b3;
    margin-bottom: 10px;
    font-weight: bold;
}
.modal-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff7a00;
    margin: 15px 0 0 0;
    letter-spacing: 2px;
}

/* ★修正：スマホ向けレスポンシブ（Flexboxの縦積みで絶対に崩れない構造に） */
@media screen and (max-width: 768px) {
    /* PCの絶対配置を解除し、flexの縦並びで積み木のように配置する */
    .hero { 
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important; 
        min-height: auto !important;
        display: flex !important;
    }
    
    /* 画像を一番上のブロックとして配置 */
    .hero-bg-img {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
        flex-shrink: 0 !important;
    }
    
    .hero-bg-img img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        position: static !important;
    }
    
    /* 文字エリアをその下のブロックとして配置（白背景は消して背景と同化） */
    .hero-overlay { 
        position: relative !important;
        width: 100% !important;
        padding: 30px 15px !important; 
        box-shadow: none !important; 
        border-radius: 0 !important; 
        background-color: transparent !important; 
        flex: 1 !important;
    }
    
    /* スマホ画面でもキャッチコピーがはみ出ないよう調整 */
    .strong-catch {
        font-size: 1.3rem !important;
        padding: 0 0 10px 0 !important;
        letter-spacing: 1px !important;
    }

    .hero h1 { font-size: 1.7rem; }
    .hero h1 .highlight { font-size: 2.2rem; }
    .btn-cv { font-size: 1.1rem !important; padding: 15px !important; }
    .feature-item { flex: 1 1 100%; }
    th, td { display: block; width: 100%; }
    th { border-bottom: none; }
    .voice-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .modal-number { font-size: 1.8rem; }
}