﻿:root {
    --main-blue: #0067b1;
    --sub-blue: #004d85;
    --accent-blue: #0ea5e9;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --content-width: 1100px;
    --req-red: #e11d48;
    --error-bg: rgba(225, 29, 72, 0.1);
}

* { box-sizing: border-box; }

/* スムーズスクロール設定 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; background-color: var(--white); }

/* スクロール時のタイトルの停止位置を全メニュー共通で設定 */
#company-title, #recruit-title, #contact-title {
    scroll-margin-top: 110px;
}

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { width: 100%; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo-area { display: flex; align-items: center; }
.brand { text-decoration: none; display: flex; align-items: center; }
.header-logo { height: 50px; width: auto; }
.logo-sub { text-decoration: none; font-size: 0.9rem; color: var(--text-light); font-weight: 500; border-left: 1px solid #ccc; padding-left: 15px; margin-left: 15px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 700; color: var(--text-dark); padding: 10px 15px; border-radius: 8px; transition: 0.3s; font-size: 0.95rem; }
.main-nav a:hover { background-color: var(--main-blue); color: var(--white); }

/* --- Hero --- */
.hero-fullwidth { 
    width: 100%; 
    /* 高さを固定せず、画像のアスペクト比に合わせる設定 */
    height: auto;
    min-height: 400px; /* あまりに小さくならないよう最小値を設定 */
    aspect-ratio: 16 / 9; /* 元画像の比率に合わせて調整してください（例: 2362/1181なら 2/1） */
    
    background: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.6) 100%), 
                /* 変更点：'100% auto' で横幅いっぱいに全体を表示 */
                url("new-hero-bg.jpg") center top / 100% auto no-repeat #000; 
    display: flex; 
    align-items: flex-start; 
    color: #fff; 
    padding: 0 8%; 
    position: relative;
}

.hero-content {
    position: absolute;
    top: 23%;
    left: 8%;
}

.hero-content h1 { 
    font-size: clamp(1.5rem, 4vw, 4rem); 
    line-height: 1.3; 
    margin: 0; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* --- Section Titles --- */
.section-title { font-size: 1.8rem; color: var(--main-blue); margin-bottom: 40px; position: relative; padding-bottom: 15px; }
.section-title::after { 
    content: ''; 
    display: block; 
    width: 100%; 
    height: 4px; 
    background: linear-gradient(to right, var(--main-blue), rgba(255, 255, 255, 0)); 
    position: absolute; 
    bottom: 0; 
    left: 0; 
}

/* --- Message --- */
.message-grid { display: flex; gap: 40px; margin-bottom: 0; align-items: flex-start; }
/* 画像削除に伴い、テキストエリアを全幅にするためflexを調整 */
.message-text { flex: 1; }
/* .message-image は削除したためスタイルも不要ですが、残しておいても影響ありません */
.signature { text-align: right; font-weight: 700; font-size: 1.1rem; margin-top: 30px; border-top: 1px solid var(--border); padding-top: 20px; }

/* --- List Styling --- */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { position: relative; padding-left: 1.2em; }
.list-plain li::before { content: "・"; position: absolute; left: 0; }

/* --- Recruit --- */
.recruit-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.intro-box { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    border-left: 5px solid var(--main-blue); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    line-height: 1.6; 
    font-size: 1.2rem;
}
.intro-box p { margin: 0; }
.intro-label {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--main-blue);
    display: block;
}

.recruit-main-image { width: 100%; margin: 0 auto 40px auto; text-align: center; }
.recruit-main-image img { border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.highlight-text { color: var(--sub-blue) !important; font-weight: 700; margin-top: 15px; display: block; }

/* 選考フロー */
.step-container { display: flex; gap: 10px; width: 100%; margin-top: 15px; flex-wrap: wrap; }
.step-box { flex: 1; min-width: 120px; background: var(--bg-gray); padding: 15px 5px; text-align: center; border-radius: 8px; border: 1px solid var(--border); }
.step-num { color: var(--accent-blue); font-weight: 700; font-size: 0.75rem; display: block; margin-bottom: 5px; }

/* --- Data Table --- */
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { padding: 20px; border-bottom: 1px solid var(--border); word-wrap: break-word; vertical-align: top; }
.data-table th { background: #fcfdfe; width: 180px; text-align: left; color: var(--main-blue); font-weight: 700; }

/* --- Form --- */
.form-wrapper { padding: 40px; background: var(--white); border-radius: 12px; border: 1px solid var(--border); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 0.95rem; }
.label-req { background-color: var(--req-red); color: var(--white); font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; margin-left: 10px; vertical-align: middle; display: inline-block; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; transition: background-color 0.3s, border-color 0.3s; }
.address-inputs .p-postal-code { width: 220px; margin-bottom: 12px; }
.address-row { display: flex; gap: 12px; }
.address-row select { flex: 1; }
.address-row input { flex: 2; }
.submit-btn { width: 100%; background: var(--main-blue); color: #fff; padding: 18px; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 1.1rem; margin-top: 10px; }
.submit-btn:hover { background: var(--sub-blue); }

.footer { padding: 40px; text-align: center; background: var(--white); border-top: 1px solid var(--border); font-size: 0.9rem; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero-fullwidth {
        background-size: 100% auto; 
        aspect-ratio: auto;
        min-height: 250px;
    }
    .header-inner { flex-direction: column; height: auto; padding: 15px; align-items: flex-start; gap: 10px; }
    .logo-area { flex-direction: column; align-items: flex-start; }
    .main-nav { width: 100%; justify-content: flex-end; gap: 5px; }
    .main-nav a { padding: 8px 10px; font-size: 0.85rem; }
    .message-grid { flex-direction: column; align-items: flex-start; } 
    .recruit-intro-grid { grid-template-columns: 1fr; }
    #company-title, #recruit-title, #contact-title { scroll-margin-top: 160px; }
    .data-table tr { display: block; border-bottom: 1px solid var(--border); }
    .data-table th, .data-table td { display: block; width: 100%; border-bottom: none; padding: 12px 20px; }
    .data-table th { background: #f1f5f9; padding-top: 15px; padding-bottom: 5px; }
    .data-table td { padding-top: 5px; padding-bottom: 20px; }
    .step-container { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .address-row { flex-direction: column; }
    .address-inputs .p-postal-code { width: 100%; }
    .form-wrapper { padding: 20px; }
}