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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

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

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* ============================================
   配色設定（オリジナル）
   ============================================ */
:root {
    --primary-color: #0066CC;      /* メインブルー（信頼感） */
    --secondary-color: #FF6B35;    /* アクセントオレンジ（活気） */
    --accent-color: #00A896;       /* サブカラー（爽やかさ） */
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --text-gray: #666;
}

/* ============================================
   共通コンポーネント
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-gray);
}

.section-intro {
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    line-height: 2;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

/* 画像共通スタイル */
.placeholder-image {
    background-color: #d0d0d0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; /* 4:3を共通デフォルト */
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: #e85a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    opacity: 1;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    opacity: 1;
}

/* ============================================
   ヘッダー
   ============================================ */
.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;
}

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

.header-logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.header-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.nav-cta {
    background-color: var(--secondary-color);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
}

.nav-cta:hover {
    background-color: #e85a2a;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

.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, -6px);
}

/* ============================================
   FV（ファーストビュー）
   ============================================ */
.fv {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
    overflow: hidden;
}

.fv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,102,204,0.65) 0%, rgba(0,168,150,0.55) 100%);
    z-index: 1;
}

.fv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    color: #fff;
    z-index: 3;
}

.fv-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fv-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.fv-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ============================================
   スライダー
   ============================================ */
.slider-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

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

.slider-item {
    flex-shrink: 0;
    width: 300px;
    aspect-ratio: 4 / 3;
    background-color: #d0d0d0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    position: relative;
}

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

/* ============================================
   株式会社KAITOについて
   ============================================ */
.about-section {
    padding: 100px 0;
    background-color: #fff;
}

.youtube-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

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

/* ============================================
   こんな方歓迎
   ============================================ */
.welcome-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.welcome-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.welcome-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--dark-color);
}

/* ============================================
   職種選択ナビゲーション
   ============================================ */
.job-nav-section {
    padding: 100px 0;
    background-color: #fff;
}

.job-nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.job-nav-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.job-nav-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.job-nav-card p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.8;
}

.job-nav-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    padding: 10px 30px;
    border: 2px solid #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.job-nav-link:hover {
    background-color: #fff;
    color: var(--primary-color);
    opacity: 1;
}

/* ============================================
   職種別詳細
   ============================================ */
.job-detail-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.job-detail-section:nth-child(even) {
    background-color: #fff;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.job-content-title,
.job-flow-title {
    margin: 60px 0 40px;
}

.job-content-title h3,
.job-flow-title h3 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    color: var(--dark-color);
}

/* ジグザグレイアウト */
.job-zigzag {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.job-zigzag-item.reverse {
    flex-direction: row-reverse;
}

.job-zigzag-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.job-zigzag-text {
    flex: 1;
}

.job-zigzag-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.job-zigzag-text p {
    margin-bottom: 15px;
    line-height: 2;
}

/* 入社後の流れカード */
.job-flow-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.job-flow-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 入社後の流れ：4:3プレースホルダー画像 */
.job-flow-image {
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* 入社後の流れ：テキストエリア */
.job-flow-card-body {
    padding: 30px;
    position: relative;
}

.job-flow-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    opacity: 0.2;
}

.job-flow-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.job-flow-card p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    text-align: center;
}

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

.cta-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 40px;
}

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

/* ============================================
   会社の魅力
   ============================================ */
.appeal-section {
    padding: 100px 0;
    background-color: #fff;
}

.appeal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.appeal-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

/* 会社の魅力：4:3プレースホルダー画像 */
.appeal-image {
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* 会社の魅力：テキストエリア */
.appeal-card-body {
    padding: 30px;
}

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

.appeal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.appeal-card p {
    line-height: 2;
    margin-bottom: 15px;
    text-align: left;
}

/* ============================================
   メンバー紹介
   ============================================ */
.members-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.members-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.member-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.member-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 20px 20px 10px;
    color: var(--dark-color);
}

.member-card p {
    padding: 0 20px 20px;
    line-height: 1.8;
}

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

.schedule-card {
    max-width: 800px;
    margin: 60px auto 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.schedule-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.schedule-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 80px;
}

.schedule-content {
    flex: 1;
    line-height: 1.8;
}

/* 職種切り替えタブ */
.schedule-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.schedule-tab {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    background-color: #fff;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.schedule-tab.active,
.schedule-tab:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.schedule-panel {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.schedule-panel[style*="display:none"] {
    opacity: 0;
}

/* ============================================
   おわりに
   ============================================ */
.closing-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.closing-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.closing-image {
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.closing-text {
    flex: 1;
}

.closing-text p {
    margin-bottom: 20px;
    line-height: 2;
}

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

.requirements-card {
    background-color: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.requirements-job-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.requirements-grid {
    display: flex;
    flex-direction: column;
}

.requirements-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.requirements-label {
    font-weight: 700;
    color: var(--dark-color);
}

.requirements-value {
    line-height: 1.8;
}

.requirements-value p {
    margin-bottom: 15px;
}

.requirements-value p:last-child {
    margin-bottom: 0;
}

.requirements-value strong {
    font-weight: 700;
    color: var(--dark-color);
}

/* ============================================
   応募フォーム
   ============================================ */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.125rem;
    font-weight: 500;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.required {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

.optional {
    display: inline-block;
    background-color: var(--text-gray);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

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

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

/* ============================================
   フッター
   ============================================ */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
}

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

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

.footer-company p {
    line-height: 1.8;
    color: #ccc;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: #ccc;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.875rem;
}

/* ============================================
   レスポンシブ（768px以下）
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 16px 20px;
    }

    .header-logo {
        flex: 1;
        min-width: 0;
    }

    .header-logo img {
        display: block;
        max-height: 56px;
        width: auto;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
        margin-left: 12px;
        position: relative;
        z-index: 1002;
    }

    .header-nav {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
        background-color: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block;
        z-index: 1001;
    }

    .header-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-list li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-gray);
    }

    .nav-list a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
        text-align: center;
        font-size: 1rem;
    }

    .nav-cta {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
        text-align: center;
        border-radius: 0;
        background-color: var(--secondary-color);
        color: #fff !important;
        font-weight: 700;
    }

    /* FV */
    .fv {
        aspect-ratio: 3 / 4;
        min-height: auto;
        padding: 0;
    }

    .fv-title {
        font-size: 1.5rem;
    }

    .fv-subtitle {
        font-size: 0.9rem;
    }

    .fv-buttons {
        margin-top: 16px;
        gap: 10px;
    }

    .fv-buttons .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 2rem;
    }

    /* 会社について */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    /* こんな方歓迎 */
    .welcome-cards {
        grid-template-columns: 1fr;
    }

    /* 職種詳細タイトル */
    .job-detail-title {
        font-size: 1.5rem;
    }

    /* 職種ナビ */
    .job-nav-cards {
        grid-template-columns: 1fr;
    }

    /* 職種詳細：ジグザグ → 縦並び（写真→文章順） */
    .job-zigzag-item,
    .job-zigzag-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    /* 入社後の流れ */
    .job-flow-cards {
        grid-template-columns: 1fr;
    }

    /* CTAボタン */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
    }

    /* 魅力カード */
    .appeal-cards {
        grid-template-columns: 1fr;
    }

    /* メンバー */
    .members-cards {
        grid-template-columns: 1fr;
    }

    /* おわりに */
    .closing-content {
        flex-direction: column;
        gap: 30px;
    }

    /* 募集要項 */
    .requirements-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .requirements-label {
        padding-bottom: 5px;
        border-bottom: 1px solid var(--border-gray);
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* タブレット向け調整（769px～1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .welcome-cards,
    .job-nav-cards,
    .job-flow-cards,
    .appeal-cards,
    .members-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}