@charset "utf-8";

/* ============================================================
   リセット後の基本設定
============================================================ */

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #FEEDC5;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font-family: inherit;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   見出し（グローバル）
============================================================ */

h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px;
}

h2 {
    font-family: "Kiwi Maru", serif; /* 読み込み済みのフォントを活用 */
    font-size: 2.2rem;
    color: #4A2C2A;                /* 提案したビターチョコ色 */
    letter-spacing: 0.12em;        /* 文字間を少し広げて、ゆとりを出す */
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 500;
}

/* 小さな英語を添えて、おしゃれ度（新しさ）を出す */
h2::after{
    content: attr(data-en); 
    display: block;
    font-family: 'Noto Sans JP', sans-serif; /* 英語はスッキリしたフォントに */
    font-size: 0.7rem;
    font-weight: 700;
    color: #855B32; /* キャラメルブラウン */
    letter-spacing: 0.3em;
    margin-top: 8px;
    text-transform: uppercase; /* 強制的に大文字にする（お好みで） */
}

h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px;
}

h4 {
    font-size: 29px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* ============================================================
   セクション共通
============================================================ */

section {
    padding: 40px 0;
}

/* ------------------------------------------------------------
   アクセシビリティ・SEO用の非表示設定
------------------------------------------------------------ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   ヘッダー
============================================================ */

header {
    background-color: #333;
    width: 100%;
    height: auto;
}

.header-main-nav-area {
    background-color: #FFFFFF;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 90px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-box img {
    height: 56px;
    width: auto;
    display: block;
}

.site-title-text {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #447D46;
    text-decoration: none;
}

.recruitment-button {
    display: inline-block;
    background-color: #fff;
    color: #447D46;
    font-weight: bold;
    font-size: 1em;
    padding: 11px 20px;
    margin-left: 30px;
    border-radius: 40px;
    border: 2px solid #447D46;
    width: 130px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
}

/* ヘッダーPC版・SP版ともに緑文字を維持 */
.header-nav .recruitment-button {
    color: #447D46;
    background-color: #fff;
}

.recruitment-button:hover {
    background-color: #447D46;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

#menu-btn-check {
    display: none !important;
}

.menu-btn,
.menu-close-label {
    display: none;
}

/* ============================================================
   メインビジュアル
============================================================ */

.mv {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.mv-overlay-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80%;
    max-width: 800px;
    height: auto;
    pointer-events: none;
}

.mv-overlay-pc {
    display: block;
}

.mv-overlay-sp {
    display: none;
}




/* ============================================================
   メインコンテンツ
============================================================ */

.main-contents {
    text-align: center;
    padding: 100px 20px;
    background-color: #fff;
    overflow: hidden;
}

.main-contents h2 {
    position: relative;
    display: inline-block;
    font-weight: bold;
    line-height: 1.6;
    margin: 0 0 48px 0;
    padding: 0 0 20px 0;
    text-align: center;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #e0e0e0;
}

.main-contents p {
    text-align: left;
    padding: 0;
    line-height: 2.2;
    margin-top: 0;
    letter-spacing: 0.05em;
    font-size: 1.1em;
    color: #222;
    max-width: 700px; /* 文章の横幅を制限する */
    margin-left: auto;
    margin-right: auto;
}
.main-description p {
    margin-bottom: 40px; /* 段落と段落の間の余白 */
    line-height: 2.4;    /* 行間を広く取ってゆったりさせる */
    font-size: 1.15rem;
    color: #444;
}

.marker {
    background: linear-gradient(transparent 60%, #fff1a8 60%);
    font-weight: bold;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .main-contents {
        padding: 60px 20px;
    }
    
    .main-description p {
        margin-bottom: 30px; /* スマホでは少し余白を詰める */
        font-size: 1rem;
        line-height: 1.8;
        text-align: justify; /* スマホなら両端揃えも検討可 */
    }

    /* スマホの時だけ改行を有効にする */
    .sp-only {
        display: inline;
    }
}

/* ============================================================
   当社の特徴（PC：3列横並び）
============================================================ */

#character {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 80px;
}

#character h2 {
    margin-top: 0;
}

#character ul {
    display: flex;
    gap: 50px;
    padding: 10px 0 30px 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

#character ul li {
    flex: 1;
    max-width: 330px;
    text-align: center;
}

#character ul li img {
    display: block;
    width: 100%;
    height: 218px;
    object-fit: cover;
    border-radius: 4px;
}

#character ul li p {
    margin: 8px 0 0 0;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    font-weight: bold;
}

/* ============================================================
   職種紹介（PC：写真50% / テキスト50%）
============================================================ */

#introduction {
    background-color: #fff;
    padding: 60px 0;
}

.introduction-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: center;
}

#introduction h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.introduction_item {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 20px auto 40px auto;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
}

/* 食品製造職：PC版で写真右・テキスト左（flexの順番をそのままにHTML順に依存） */
.introduction_item--reverse .media-content {
    order: 2;
}

.introduction_item--reverse .text-content {
    order: 1;
}

/* 写真ブロック（左：50%） */
.media-content {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
}

.media-content img {
    width: calc(100% - 48px);
    height: 340px;
    object-fit: cover;
    display: block;
    margin: 24px auto;
    border-radius: 6px;
}
/* ============================================================
   職種紹介スライダー
============================================================ */

/* スライダー外枠 */
.intro-slider {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}

/* 写真ラッパー：ここだけoverflow:hidden */
.intro-slider-track {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.intro-slide.active {
    opacity: 1;
}

/* 前後ボタン：非表示 */
.intro-slider-prev,
.intro-slider-next {
    display: none;
}

/* ドットインジケーター：写真の下・写真と同じ幅に揃えて中央配置 */
.intro-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    align-self: center;
    position: relative;
    left: 0;
}

.intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.2s;
}

.intro-dot.active {
    background-color: #ffc200;
}


/* 職種名タイトル */
.job-title {
    display: block;        /* inline-blockから変更して横幅一杯に */
    text-align: center;
    font-size: 1.5em;      /* 1.8emから縮小（約24px） */
    font-weight: bold;
    margin: 40px auto 30px auto; /* 上下の余白を調整 */
    padding: 0;            /* パディングをリセット */
    background-color: transparent; /* 背景を透明に */
    border-radius: 0;      /* 丸みを削除 */
    letter-spacing: 0.1em;
    color: #333;        /* 濃い茶色にして優しさと視認性を両立 */
    position: relative;
}

/* 職種名の下に短い飾り線を引く */
.job-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #ffc200; /* アクセントカラーの黄色を線として残す */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* テキストブロック（右：50%） */
.text-content {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 30px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.text-content h4 {
    font-size: 1.4em;
    color: #333;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.text-content p {
    font-size: 1em;
    line-height: 1.7;
    margin: 0 0 25px 0;
    color: #333;
}

.text-content a {
    display: inline-block;
    padding: 10px 28px;
    background-color: #fff;
    color: #447D46;
    text-decoration: none;
    font-weight: bold;
    border-radius: 40px;
    border: 2px solid #447D46;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
    align-self: flex-start;
}

.text-content a:hover {
    background-color: #447D46;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================================
   働く環境（PC：3列 × 2行グリッド）
============================================================ */

#environment {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 80px;
}

#environment ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#environment li {
    text-align: center;
    font-size: 1em;
    padding-top: 10px;
}

#environment li img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;
}

/* ============================================================
   インタビューセクション
============================================================ */

.work-schedule-section {
    padding: 60px 80px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.interview-section-title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 50px;
    padding-top: 20px;
}

/* タブボタン（顔写真カード型） */
.interview-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 12px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.55;
    position: relative;
}

.tab-btn:hover {
    opacity: 0.85;
}

.tab-btn.active {
    opacity: 1;
    border-bottom-color: #ffc200;
}

/* 顔写真：円形クロップ */
.tab-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 3px solid transparent;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tab-btn.active .tab-photo {
    border-color: #ffc200;
}

/* 部門名 */
.tab-dept {
    font-size: 0.82em;
    color: #888;
    line-height: 1.2;
    text-align: center;
    display: block;
}

/* 氏名 */
.tab-name {
    font-size: 1.05em;
    font-weight: bold;
    color: #333;
    text-align: center;
    display: block;
}

.tab-btn.active .tab-name {
    color: #000;
}

.interview-panel {
    display: none;
}

.interview-panel.active {
    display: block;
}

/* タイムライン */
.timeline-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    position: relative;
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 0;
}

.timeline-header {
    text-align: center;
    padding-bottom: 0;
}

.timeline-section-title {
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    margin: 0 0 30px 0 !important;
    padding: 0;
}

.timeline-header h1 {
    font-size: 1.8em;
    margin: 0 0 30px 0;
    padding: 0;
    display: block;
    width: 100%;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 100px;
    bottom: 40px;
    left: 120px;
    width: 2px;
    background-color: #ccc;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 160px;
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.timeline-time {
    position: absolute;
    left: 0;
    top: 20px;
    font-weight: bold;
    color: #000;
    font-size: 1.1em;
    width: 60px;
    text-align: right;
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 23px;
    width: 14px;
    height: 14px;
    background-color: #ffc107;
    border-radius: 50%;
    border: 2px solid #333;
    z-index: 1;
    box-sizing: border-box;
}

.timeline-content {
    flex-grow: 1;
    text-align: left;
}

.timeline-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: left;
}

.timeline-description {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.timeline-item.break {
    border-bottom: 1px dashed #ddd;
}

.timeline-item.last-item {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* メッセージエリア（PC：テキスト2 / 写真1 横並び） */
.message-container {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.message-container h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

.message-inner {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.message-inner p {
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

.message-inner .message-image {
    flex: 0 0 35%;
    width: 35%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* ============================================================
   求人検索
============================================================ */

.recruitment-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 80px 80px;
}

.recruitment-section h2 {
    width: 100%;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 40px;
}

.recruitment-left-column {
    flex: 4;
    min-width: 300px;
    padding-right: 40px;
}

.recruitment-left-column .catch-phrase {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 0 20px 0;
    display: inline-block;
    background: linear-gradient(transparent 55%, #ffc200 55%);
    padding-bottom: 2px;
}

.recruitment-left-column p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.recruitment-left-column .job-list-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background-color: #fff;
    color: #447D46;
    font-size: 1em;
    font-weight: bold;
    border-radius: 40px;
    border: 2px solid #447D46;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.25s, color 0.25s, transform 0.2s;
}

.recruitment-left-column .job-list-btn:hover {
    background-color: #447D46;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.recruitment-right-column {
    flex: 6;
    min-width: 300px;
}

.search-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
}

.search-group {
    margin-bottom: 20px;
}

.search-group-title {
    font-size: 1em;
    font-weight: normal;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.button-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.search-button {
    display: block;
    padding: 8px 15px;
    background-color: #F7C200;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 40px;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.search-button:hover {
    background-color: #447D46;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}


/* 求人検索ボタン：PC版は通常リンク、SP版はSP専用URL */
.sp-show-btn { display: none; }
.sp-hide-btn { display: inline-block; }

@media (max-width: 768px) {
    .sp-hide-btn { display: none !important; }
    .sp-show-btn {
        display: block !important;
        background-color: #fff !important;
        color: #447D46 !important;
        border: 2px solid #447D46 !important;
    }
    .sp-show-btn:hover {
        background-color: #447D46 !important;
        color: #fff !important;
    }
}

/* SPのFVコピー（p要素版）*/
.mv-copy-sp {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}


/* ============================================================
   スクロール連動フェードインアニメーション
============================================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   フッター
============================================================ */

footer {
    background-color: #447D46;
    color: #fff;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ============================================================
   PC版ハンバーガーメニュー制御
============================================================ */

@media (min-width: 769px) {
    .menu-btn,
    .menu-close-label {
        display: none !important;
    }

    .header-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        flex-direction: row;
        align-items: center;
    }

    .header-nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px;
    }

    .header-nav .recruitment-button {
        margin-left: 20px !important;
        margin-top: 0 !important;
    }
}

/* ============================================================
   スマホ対応（768px以下）
============================================================ */

@media (max-width: 768px) {

    /* セクション余白 */
    section:not(.mv) {
        padding: 40px 0;
    }

    .mv {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ヘッダー */
    .nav-container {
        height: auto !important;
        padding: 14px 64px 14px 14px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* ロゴグループ：ハンバーガーボタンと被らないよう幅制限 */
    .header-logo-group {
        max-width: calc(100% - 54px);
        min-width: 0;
        overflow: hidden;
    }

    .logo-box img {
        height: 44px;
        flex-shrink: 0;
    }

    .site-title-text {
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ハンバーガーボタン */
    .menu-btn {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        z-index: 1000;
        cursor: pointer;
    }

    .menu-btn span,
    .menu-btn span::before,
    .menu-btn span::after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s;
    }

    .menu-btn span         { top: 18px; left: 7px; }
    .menu-btn span::before { top: -8px; left: 0; }
    .menu-btn span::after  { top:  8px; left: 0; }

    #menu-btn-check:checked ~ .menu-btn span              { background-color: transparent; }
    #menu-btn-check:checked ~ .menu-btn span::before      { top: 0; transform: rotate(45deg); }
    #menu-btn-check:checked ~ .menu-btn span::after       { top: 0; transform: rotate(-45deg); }

    /* スマホメニュー本体 */
    .header-nav {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: #f7c200;
        z-index: 999;
        transition: left 0.5s;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
    }

    #menu-btn-check:checked ~ .header-nav {
        left: 0;
    }

    .header-nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 80px;
        margin: 0;
        width: 100%;
        gap: 25px;
        list-style: none;
    }

    .header-nav li a {
        font-size: 1.4rem;
        font-weight: 700;
        color: #333;
    }



    .header-nav .recruitment-button {
        margin: 0 0 0 0 !important;
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
        text-align: center;
        background-color: #fff;
        color: #447D46;
        border: 2px solid #447D46;
    }

    .menu-close-label {
        display: block !important;
        margin: 30px auto 50px;
        padding: 10px 28px;
        width: fit-content;
        color: #447D46;
        font-weight: bold;
        border: 2px solid #447D46;
        border-radius: 40px;
        cursor: pointer;
        font-size: 0.9em;
        background-color: #fff;
        transition: background-color 0.25s, color 0.25s;
    }

    /* メインビジュアル */
    .mv {
        height: 75dvh;
        overflow: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }


    .slider,
    .slide {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: opacity;
    }

    .mv-overlay-pc { display: none; }
    .mv-overlay-sp  { display: block; width: 90%; }

    /* メインコンテンツ */
    .main-contents {
        padding: 40px 20px;
    }

    .main-contents h2 {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .main-contents p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 60px;
    }

    /* 当社の特徴：縦並び */
    #character ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #character ul li {
        width: 100%;
        max-width: 350px;
    }

    /* SP余白 */
    #character,
    .introduction-inner,
    #environment {
        padding: 60px 20px;
    }

    .work-schedule-section {
        padding: 40px 20px;
    }

.introduction_item,
    .introduction_item:nth-child(even) {
        flex-direction: column; /* 縦並びにする */
        align-items: center;    /* 子要素を水平方向に中央寄せ */
        text-align: center;     /* テキストも中央寄せにする場合 */
    }

    .media-content,
    .text-content {
        flex: 0 0 100%;
        width: 100%;
    }

    .media-content img {
        height: auto;
    }

    .text-content {
        padding: 20px;
    }

    .text-content h4 {
        font-size: 1.3em;
        text-align: center;
    }

    .text-content a {
        align-self: center;
    }

    /* 働く環境：1列・当社の特徴と同サイズ */
    #environment ul {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
    }

    #environment li img {
        height: 218px;
    }

    /* 職種紹介スライダーSP修正 */

    @media (max-width: 768px) {
    /* 1. 親要素で中身を中央に寄せる */
    .introduction_item {
        display: flex;
        flex-direction: column;
        align-items: center; /* 子要素を水平方向の中央に配置 */
    }
    

    /* 2. スライダー自体の設定 */
    .intro-slider {
        width: 100%;
        padding: 0;       /* SPではパディングを0にすると計算が狂いません */
        margin: 0 auto 20px;
    }

    /* 3. 画像の「左ずれ」を解消する（最重要） */
    .intro-slide {
        width: 100% !important; /* PC版のcalc指定を解除して全幅にする */
        left: 0 !important;      /* 左端に正しく固定 */
        margin: 0 !important;    /* 余計なマージンを消す */
    }
}

    .intro-slider-track {
        height: 280px;
    }

    .intro-slider-dots {
        margin-top: 0;
    }

    .intro-slider-prev { left: 0; }
    .intro-slider-next { right: 0; }

    /* main-contents SP余白 */
    .main-contents {
        padding: 0 20px;
    }

    .main-contents h2 {
        padding: 40px 20px 40px 20px;
        margin-top: 0;
    }

    /* 当社の特徴 SP余白 */
    #character {
        padding: 40 20px;
    }

    /* 働く環境 SP余白 */
    #environment {
        padding: 80 20px;
    }

    /* インタビュー */
    /* インタビュータブ SP */
    .interview-tabs {
        gap: 12px;
        padding: 0 12px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .interview-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        width: 80px;
        flex-shrink: 0;
        padding: 8px 4px 10px;
    }

    .tab-photo {
        width: 56px;
        height: 56px;
    }

    .tab-dept {
        font-size: 0.65em;
    }

    .tab-name {
        font-size: 0.85em;
    }

    .timeline-container {
        width: 100%;
        padding: 20px;
    }
   
    .timeline-container::before {
        left: 81px;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline-time {
        left: -10px;
        width: 50px;
        font-size: 0.85em;
    }

    .timeline-item::before {
        left: 54px;
        top: 23px;
        width: 14px;
        height: 14px;
    }

    /* メッセージ：縦並び */
    .message-inner {
        flex-direction: column;
        gap: 20px;
    }

    .message-inner .message-image {
        width: 100%;
        flex: none;
    }

    /* 求人検索 */
    .recruitment-section h2 {
        font-size: 1.6em;
    }

    .recruitment-left-column,
    .recruitment-right-column {
        flex: 1 1 100%;
        min-width: auto;
        padding: 0;
    }

    .recruitment-left-column {
        margin-bottom: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .recruitment-left-column .catch-phrase {
        font-size: 1.4em;
    }

    .recruitment-left-column p {
        text-align: justify;
    }

    .button-list {
        justify-content: flex-start;
    }

    /* SP: 食品製造職 - 写真上・テキスト下 */
    .introduction_item--sp-photo-top {
        flex-direction: column;
    }
    .introduction_item--sp-photo-top .media-content {
        order: 1;
    }
    .introduction_item--sp-photo-top .text-content {
        order: 2;
    }


}
/* タイムライン内タイトル（h3） */
.timeline-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.5;
    text-align: left;
}

/* ============================================================
   インタビューセクション（カード形式）
============================================================ */

.interview-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

/* カード全体：SP縦並び・白背景・角丸・薄影 */
.interview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    box-shadow: 0 4px 15px rgba(133, 91, 50, 0.05);
}

.interview-card:last-child {
    margin-bottom: 0;
}

/* 写真ラッパー */
.interview-photo-wrapper {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 20px auto;
    flex-shrink: 0;
}

/* 写真：縦長・角丸 */
.interview-card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    display: block;
}

/* 情報エリア（店名・名前・Q&A） */
.interview-info {
    width: 100%;
    text-align: center;
}

/* 店名：緑枠線バッジ */
.interview-shop-name {
    display: block;
    text-align: center;
    font-size: 0.82em;
    color: #447D46;
    font-weight: bold;
    border: 1px solid #447D46;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 4px;
    background: transparent;
    letter-spacing: 0.06em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 役職・入社年 */
.interview-card-name {
    font-size: 0.85em;
    color: #888;
    line-height: 1.5;
    text-align: center;
    margin: 2px 0 4px 0;
    display: block;
}

/* 名前：Kiwi Maruフォント */
.interview-person-name {
    display: block;
    font-family: "Kiwi Maru", serif;
    font-size: 1.4em;
    font-weight: bold;
    color: #4A2C2A;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

/* Q&A */
.interview-qa {
    margin: 0;
    padding: 0;
    text-align: left;
}

.interview-qa dt {
    font-size: 0.9em;
    font-weight: normal;
    padding: 6px 10px;
    background-color: #f5f5f5;
    border-left: 3px solid #ffc200;
    margin: 16px 0 6px 0;
    line-height: 1.5;
    display: block;
}

.interview-qa dt:first-child {
    margin-top: 0;
}

.interview-qa dt::before {
    content: "Q.";
    color: #ffc200;
    font-weight: bold;
    margin-right: 8px;
}

.interview-qa dd {
    font-size: 1em;
    font-weight: normal;
    line-height: 1.8;
    margin: 0;
    padding: 6px 2px;
    color: #333;
}

.interview-qa dd:last-child {
    margin-bottom: 0;
}

/* セパレーター */
.interview-card + .interview-card {
    margin-top: 0;
}

/* PC版（992px以上）：横並び */
@media (min-width: 992px) {
    .interview-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 40px;
        gap: 40px;
    }

    /* 左カラム：写真 ＋ 店名・氏名を縦並び */
    .interview-photo-wrapper {
        flex: 0 0 280px;
        max-width: 280px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 情報エリア（店名・氏名）を photo-wrapper 内に移動して写真の下に配置 */
    .interview-photo-wrapper .interview-shop-name,
    .interview-photo-wrapper .interview-card-name {
        display: block;
    }

    /* Q&Aのみ右カラムに */
    .interview-info {
        flex: 1;
        text-align: left;
    }

    /* 店名：枠線バッジのまま・中央揃え */
    .interview-shop-name {
        text-align: center;
        margin-top: 12px;
    }

    /* 役職・入社年 */
    .interview-card-name {
        text-align: center;
    }

    /* 名前 */
    .interview-person-name {
        text-align: center;
    }
}

/* SP版 */
@media (max-width: 768px) {
    .interview-card {
        padding: 20px 16px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .interview-photo-wrapper {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 16px auto;
    }

    .interview-photo-wrapper .interview-shop-name {
        margin-top: 12px;
    }

    .interview-person-name {
        font-size: 1.2em;
    }

    .interview-qa dt {
        font-size: 0.88em;
    }

    .interview-qa dd {
        font-size: 0.95em;
        padding: 6px 2px;
    }
}
/* タイムライン注記テキスト */
.timeline-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  margin-bottom: 0;
  padding-left: 4px;
  line-height: 1.6;
}

/* ハンバーガーメニュー内 ヘッダー（ロゴ＋×） */
.nav-menu-header {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin-bottom: 32px;
    }

    .nav-menu-logo img {
        height: 80px;
        width: auto;
        display: block;
    }

    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }

    .nav-close-btn img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        display: block;
    }

    /* checked 時: ハンバーガーボタンを非表示（メニュー内の×で閉じる） */
    #menu-btn-check:checked ~ .menu-btn {
        display: none !important;
    }
}

/* ハンバーガーメニュー内 求人検索ボタン上の破線 */
@media (max-width: 768px) {
    .header-nav .sp-show-btn {
        position: relative;
        margin-top: 0 !important;
        display: block;
        width: calc(100% - 80px);
        margin-left: 40px !important;
        margin-right: 40px !important;
        margin-bottom: 40px !important;
    }

    .nav-divider {
        display: block;
        width: calc(100% - 80px);
        margin: 40px 40px 40px;
        border: none;
        border-top: 2px dashed rgba(0,0,0,0.2);
    }
}