/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ヘッダー */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #1E3A8A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FF7A3D;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1E3A8A;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ファーストビュー */
.first-view {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.first-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.first-view-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

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

.sub-title {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

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

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FF7A3D;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e66a2d;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 122, 61, 0.4);
}

.btn-secondary {
    background-color: #fff;
    color: #1E3A8A;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* 写真スライダー */
.slider-section {
    padding: 60px 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

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

.slider-track {
    display: flex;
    animation: scroll 60s linear infinite;
}

.slide {
    flex: 0 0 350px;
    margin-right: 20px;
}

.slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-370px * 18));
    }
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: #1E3A8A;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FF7A3D;
    margin: 20px auto 0;
}

/* こんな方歓迎 */
.welcome-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.welcome-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.welcome-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.welcome-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E3A8A;
}

/* 株式会社総和について */
.about-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.about-image {
    max-width: 600px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.highlight {
    color: #FF7A3D;
    font-weight: 700;
}

.highlight-large {
    font-size: 18px;
}

/* CTA */
.cta-section {
    padding: 60px 0;
    background-color: #fff;
}

.cta-box {
    background-color: #1E3A8A;
    color: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.cta-box h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 仕事内容・入社後の流れ・会社の魅力・メンバー紹介 */
/* 仕事内容 - ジグザグレイアウト */
.job-section {
    padding: 80px 0;
    background-color: #fff;
}

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

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

.job-image {
    flex: 0 0 45%;
}

.job-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.job-content {
    flex: 1;
}

.job-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.job-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 入社後の流れ・会社の魅力・メンバー紹介 */
.flow-section,
.appeal-section,
.members-section {
    padding: 80px 0;
    background-color: #fff;
}

.flow-section,
.members-section {
    background-color: #f5f5f5;
}

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

.flow-card,
.appeal-card,
.member-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.flow-card:hover,
.appeal-card:hover,
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.flow-card img,
.appeal-card img,
.member-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.flow-card h3,
.appeal-card h3,
.member-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
    padding: 20px 25px 10px;
}

.flow-card p,
.appeal-card p,
.member-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    padding: 0 25px 25px;
}

/* 1日の流れ */
.schedule-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.schedule-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.schedule-time {
    flex: 0 0 120px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FF7A3D;
}

.schedule-content {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* おわりに */
.closing-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.closing-image {
    max-width: 600px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.closing-text {
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

/* 募集要項 */
.requirements-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.requirements-table {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.requirements-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

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

.requirements-label {
    flex: 0 0 200px;
    background-color: #1E3A8A;
    color: #fff;
    padding: 25px 30px;
    font-weight: 700;
    font-size: 1.1rem;
}

.requirements-value {
    flex: 1;
    padding: 25px 30px;
    line-height: 1.8;
    font-size: 1rem;
}

/* 応募フォーム */
.form-section {
    padding: 80px 0;
    background-color: #fff;
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #555;
}

.application-form {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.required {
    color: #FF7A3D;
    font-size: 0.9rem;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF7A3D;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background-color: #FF7A3D;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #e66a2d;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 122, 61, 0.4);
}

/* フッター */
.footer {
    background-color: #1E3A8A;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-left p {
    line-height: 1.8;
}

.footer-left a {
    color: #FF7A3D;
}

.footer-right p {
    text-align: right;
}

.footer-right a {
    color: #fff;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #FF7A3D;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ヘッダー */
    .logo img {
        height: 38px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 0;
        gap: 20px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* ファーストビュー */
    .main-title {
        font-size: 1.8rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* グリッドレイアウト */
    .welcome-grid,
    .flow-grid,
    .appeal-grid,
    .members-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 仕事内容 - モバイル */
    .job-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .job-item-right {
        flex-direction: column-reverse;
    }
    
    .job-image {
        flex: none;
        width: 100%;
    }
    
    .job-image img {
        height: 300px;
    }
    
    /* 画像の中央配置 */
    .about-image,
    .closing-image {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 募集要項 */
    .requirements-row {
        flex-direction: column;
    }
    
    .requirements-label {
        flex: none;
    }
    
    /* スケジュール */
    .schedule-card {
        padding: 30px 20px;
    }
    
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-time {
        flex: none;
        margin-bottom: 10px;
    }
    
    /* 応募フォーム */
    .application-form {
        padding: 0 10px;
    }
    
    .btn-submit {
        margin: 0 auto;
        display: block;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        margin-top: 30px;
    }
    
    .footer-right p {
        text-align: center;
    }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
