/* ========================================
   基本設定
======================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

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

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

/* 強調表示用スタイル */
.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.highlight-large {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.15em;
}

/* オレンジ色の強調表示 */
.highlight-orange {
    color: #ff6b35;
    font-weight: bold;
}

.highlight-orange-large {
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.15em;
}

/* ========================================
   プレースホルダー画像
======================================== */
.placeholder {
    width: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.placeholder::after {
    content: '画像';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: bold;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
    border-radius: 3px;
}

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

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

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

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right 0.3s;
    z-index: 999;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* ========================================
   ファーストビュー
======================================== */
.hero {
    margin-top: 70px;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* オーバーレイを削除して元画像をそのまま表示 */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 3rem 2rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* ========================================
   スライダー
======================================== */
.slider-container {
    overflow: hidden;
    background: var(--bg-light);
    padding: 2rem 0;
}

.slider {
    display: flex;
    gap: 2rem;
    animation: slide 30s linear infinite;
}

.slide {
    flex: 0 0 300px;
}

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

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

/* ========================================
   共通セクション
======================================== */
.section {
    padding: 5rem 2rem;
}

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ========================================
   こんな方歓迎
======================================== */
.welcome {
    background: var(--bg-light);
}

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

.welcome-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon i {
    font-size: 2.5rem;
    color: white;
}

.welcome-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   会社について・おわりに
======================================== */
.about-section,
.outro-section {
    background: white;
}

.about-image,
.outro-image {
    margin-bottom: 2rem;
}

.about-image img,
.outro-image img {
    width: 100%;
    border-radius: 16px;
}

.about-text,
.outro-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

.about-text h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    text-align: left;
}

.about-text p,
.outro-text p {
    margin-bottom: 1.5rem;
}

/* ========================================
   仕事内容
======================================== */
.business {
    background: var(--bg-light);
}

.business-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

/* 1番目：文章左・画像右 */
.business-item:nth-child(1) {
    flex-direction: row-reverse;
}

/* 2番目：画像左・文章右 */
.business-item:nth-child(2) {
    flex-direction: row;
}

/* 3番目：文章左・画像右 */
.business-item:nth-child(3) {
    flex-direction: row-reverse;
}

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

.business-image,
.business-content {
    flex: 1;
}

.business-image {
    border-radius: 16px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
}

.business-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.business-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* ========================================
   CTAセクション
======================================== */
.cta-section {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   カードグリッド（入社後・魅力・メンバー）
======================================== */
.flow,
.merit,
.member {
    background: white;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* ========================================
   1日の流れ
======================================== */
.schedule {
    background: var(--bg-light);
}

.schedule-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.schedule-time {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.schedule-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ========================================
   募集要項
======================================== */
.recruit {
    background: white;
}

.recruit-table {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
}

.recruit-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
}

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

.recruit-label {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.recruit-value {
    background: white;
    padding: 1.5rem;
    line-height: 1.8;
}

.recruit-value p {
    margin-bottom: 0.8rem;
}

.recruit-value ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.recruit-value ul li {
    margin-bottom: 0.5rem;
}

/* ========================================
   応募フォーム
======================================== */
.contact {
    background: var(--bg-light);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.required {
    color: #ef4444;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    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: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ========================================
   レスポンシブ（タブレット）
======================================== */
@media (max-width: 1024px) {
    .welcome-grid,
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-item {
        gap: 2rem;
    }
}

/* ========================================
   レスポンシブ（スマホ）
======================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-mobile {
        display: block;
    }

    /* ヒーロー */
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    /* セクション */
    .section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* グリッド */
    .welcome-grid,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 仕事内容 */
    .business-item {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .business-image {
        order: 1 !important;
    }

    .business-content {
        order: 2 !important;
    }

    /* カード */
    .card-image {
        order: 1 !important;
    }

    .card-content {
        order: 2 !important;
    }

    /* スケジュール */
    .schedule-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .schedule-time {
        font-size: 1.1rem;
    }

    .schedule-content {
        font-size: 1rem;
    }

    /* 募集要項 */
    .recruit-row {
        grid-template-columns: 1fr;
    }

    .recruit-label {
        justify-content: center;
        padding: 1rem;
    }

    /* フォーム */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* CTA */
    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}