/* 平山商事 採用サイト - メインスタイルシート */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 70px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5f2d;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #2c5f2d;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c5f2d;
    transition: 0.3s;
}

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

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

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

/* ファーストビュー */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../images/fv.png?v=2') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 900px;
    padding: 70px 20px 0 20px;
    animation: fadeInUp 1s;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: white;
    color: #ff6b35;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スライダー */
.slider {
    background: white;
    padding: 40px 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 40s linear infinite;
}

.slider img {
    width: 300px;
    height: 225px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

/* セクション共通 */
section {
    padding: 80px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 3rem;
    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, #2c5f2d, #ff6b35);
}

/* こんな人歓迎 */
.welcome {
    background: white;
}

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

.welcome-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f9f9f9 0%, #e8f5e9 100%);
    transition: transform 0.3s;
}

.welcome-item:hover {
    transform: translateY(-10px);
}

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

.welcome-item h3 {
    font-size: 1.5rem;
    color: #2c5f2d;
    margin-bottom: 15px;
}

/* 会社について・おわりに */
.about, .closing {
    background: linear-gradient(135deg, #e8f5e9 0%, #f9f9f9 100%);
}

.about-content, .closing-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-image, .closing-image {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text, .closing-text {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
}

.about-text strong, .closing-text strong {
    color: #2c5f2d;
    font-size: 1.2em;
}

/* 仕事内容 */
.business {
    background: white;
}

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

.business-item:nth-child(even) {
    flex-direction: row-reverse;
}

.business-image {
    flex: 1;
    max-width: 500px;
}

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

.business-text {
    flex: 1;
}

.business-text h3 {
    font-size: 1.8rem;
    color: #2c5f2d;
    margin-bottom: 20px;
}

.business-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8f4e 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 30px;
    margin: 60px auto;
    max-width: 1100px;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

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

/* カード共通（入社後の流れ・魅力・メンバー） */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card h3 {
    font-size: 1.5rem;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* スケジュール */
.schedule {
    background: white;
}

.schedule-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

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

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

.schedule-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5f2d;
    min-width: 100px;
}

.schedule-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* 募集要項 */
.requirements {
    background: linear-gradient(135deg, #f9f9f9 0%, #e8f5e9 100%);
}

.requirements-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.requirements-table table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table th,
.requirements-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.requirements-table th {
    background: #2c5f2d;
    color: white;
    font-weight: 700;
    width: 200px;
}

.requirements-table td {
    line-height: 1.8;
}

/* 応募フォーム */
.contact {
    background: white;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

.form-submit button {
    padding: 18px 60px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.form-submit button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* フッター */
footer {
    background: #2c5f2d;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: left 0.3s;
        gap: 20px;
    }
    
    nav ul.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .business-item,
    .business-item:nth-child(even) {
        flex-direction: column;
    }
    
    /* レスポンシブ重要：スマホは必ず写真→文章の順序 */
    .business-item .business-image {
        order: 1;
    }
    
    .business-item .business-text {
        order: 2;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .schedule-card {
        padding: 30px 20px;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .requirements-table th {
        width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
