/* ========================================
   リセット・ベース
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   テキスト強調スタイル
======================================== */
.highlight-text {
    color: #2c5282;
}

.highlight-blue {
    color: #3182ce;
    font-weight: 600;
}

.highlight-orange {
    color: #f97316;
    font-weight: 600;
}

.highlight-red {
    color: #e53e3e;
    font-weight: 600;
}

.emphasis-large {
    font-size: 1.15em;
    color: #e53e3e;
    font-weight: 700;
}

.emphasis-green {
    font-size: 1.15em;
    color: #38a169;
    font-weight: 700;
}

/* ========================================
   コンテナ
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   セクションタイトル
======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #2c5282;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #2c5282);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    color: #555;
    margin-bottom: 60px;
    line-height: 1.8;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: #fff;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn-secondary {
    background: #fff;
    color: #3182ce;
    border: 2px solid #3182ce;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2);
}

.btn-secondary:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

/* ========================================
   ヘッダー（固定・左上に会社名）
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: #2c5282;
    white-space: nowrap;
}

.header-nav {
    display: flex;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.header-menu a {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.header-menu a:hover {
    color: #3182ce;
}

.header-cta {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.header-cta:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    opacity: 1;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2c5282;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   ファーストビュー（16:9背景・中央揃え）
======================================== */
.fv {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fv-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.fv-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 900px;
}

.fv-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.fv-subtitle {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 50px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    font-weight: 500;
}

.fv-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   スライダー（左→右）
======================================== */
.slider-section {
    background: #f7fafc;
    padding: 60px 0;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 30px;
    animation: slide 60s linear infinite;
}

.slider-item {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   こんな方歓迎（3カラム・アイコン+見出し縦並び）
======================================== */
.welcome-section {
    padding: 100px 0;
    background: #fff;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.welcome-card {
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5282;
    line-height: 1.6;
}

/* ========================================
   株式会社吉野工業について（1カラム・センター）
   ⚠️ サイズ統一（②）
======================================== */
.about-section {
    padding: 100px 0;
    background: #f7fafc;
}

.about-image-wrapper {
    margin-bottom: 40px;
}

.about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.about-text p {
    margin-bottom: 20px;
}

/* ========================================
   仕事内容（左右交互ジグザグ）
   ⚠️ サイズ統一（③④）
======================================== */
.business-section {
    padding: 100px 0;
    background: #fff;
}

.business-item {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.business-item:last-child {
    margin-bottom: 0;
}

.business-item-reverse {
    flex-direction: row-reverse;
}

.business-image {
    flex: 1;
}

.business-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.business-text {
    flex: 1;
}

.business-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 20px;
}

.business-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

/* ========================================
   CTA（2ボタン横並び）
======================================== */
.cta-section {
    padding: 80px 0;
    background: #f7fafc;
}

.cta-box {
    background: #fff;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: #2c5282;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   入社後の流れ（3カラムカード）
======================================== */
.training-section {
    padding: 100px 0;
    background: #fff;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.training-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.training-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-content {
    padding: 30px;
}

.training-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 15px;
}

.training-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ========================================
   株式会社吉野工業の魅力（3カラムカード）
======================================== */
.attraction-section {
    padding: 100px 0;
    background: #f7fafc;
}

.attraction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.attraction-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.attraction-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attraction-content {
    padding: 30px;
}

.attraction-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 15px;
}

.attraction-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ========================================
   メンバー紹介（3カラムカード）
======================================== */
.member-section {
    padding: 100px 0;
    background: #fff;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.member-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.member-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-content {
    padding: 30px;
}

.member-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 15px;
}

.member-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ========================================
   1日の流れ（スケジュールカード）
======================================== */
.schedule-section {
    padding: 100px 0;
    background: #f7fafc;
}

.schedule-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 50px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex-shrink: 0;
    width: 120px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #3182ce;
}

.schedule-desc {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
   おわりに…（1カラム・センター）
   ⚠️ サイズ統一（⑫）
======================================== */
.ending-section {
    padding: 100px 0;
    background: #fff;
}

.ending-image-wrapper {
    margin-bottom: 40px;
}

.ending-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ending-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.ending-text p {
    margin-bottom: 20px;
}

/* ========================================
   募集要項（テーブル形式）
======================================== */
.requirements-section {
    padding: 100px 0;
    background: #f7fafc;
}

.requirements-grid {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.requirements-item {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.requirements-item:last-child {
    border-bottom: none;
}

.requirements-label {
    flex-shrink: 0;
    width: 200px;
    background: #2d5f4f;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.requirements-value {
    flex: 1;
    padding: 30px 40px;
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    background: #fff;
}

/* ========================================
   応募フォーム（最下部）
======================================== */
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-form {
    background: #f7fafc;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c5282;
}

.form-required {
    background: #e53e3e;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    min-width: 300px;
    font-size: 1.2rem;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: #2c5282;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-company-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-address,
.footer-tel {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-tel a {
    color: #fff;
}

.footer-nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   レスポンシブ（768px以下）
   ⚠️ 重要：スマホは「写真→文章」順を厳守
======================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        transition: right 0.3s;
        z-index: 999;
        padding: 100px 30px 30px;
        overflow-y: auto;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-menu {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* FV */
    .fv {
        min-height: 600px;
    }
    
    .fv-content {
        padding: 80px 20px;
    }
    
    .fv-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .fv-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .fv-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    /* スライダー */
    .slider-item {
        width: 300px;
        height: 225px;
    }
    
    /* こんな方歓迎 */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 仕事内容：写真→文章順を厳守 */
    .business-item,
    .business-item-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .business-item .business-image,
    .business-item-reverse .business-image {
        order: 1;
        width: 100%;
        flex: none;
    }
    
    .business-item .business-text,
    .business-item-reverse .business-text {
        order: 2;
        width: 100%;
        flex: none;
    }
    
    .business-title {
        font-size: 1.5rem;
    }
    
    /* CTA */
    .cta-box {
        padding: 40px 30px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* 入社後の流れ：写真→文章順 */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .training-card {
        display: flex;
        flex-direction: column;
    }
    
    .training-image {
        order: 1;
    }
    
    .training-content {
        order: 2;
    }
    
    /* 魅力：写真→文章順 */
    .attraction-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .attraction-card {
        display: flex;
        flex-direction: column;
    }
    
    .attraction-image {
        order: 1;
    }
    
    .attraction-content {
        order: 2;
    }
    
    /* メンバー：写真→文章順 */
    .member-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .member-card {
        display: flex;
        flex-direction: column;
    }
    
    .member-image {
        order: 1;
    }
    
    .member-content {
        order: 2;
    }
    
    /* スケジュール */
    .schedule-card {
        padding: 30px 20px;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    
    .schedule-time {
        width: auto;
        margin-bottom: 5px;
        font-size: 1.1rem;
    }
    
    .schedule-desc {
        font-size: 0.95rem;
    }
    
    /* 募集要項 */
    .requirements-item {
        flex-direction: column;
    }
    
    .requirements-label {
        width: 100%;
        padding: 20px;
    }
    
    .requirements-value {
        padding: 20px;
    }
    
    /* フォーム */
    .contact-form {
        padding: 30px 20px;
    }
    
    .btn-submit {
        min-width: 100%;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* タブレット（769px〜1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .welcome-grid,
    .training-grid,
    .attraction-grid,
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
