/* =====================================================
   VARIABLES
===================================================== */
:root {
    --primary-red: #d7211e;
    --dark-red: #cc0000;
    --accent-red: #d3232a;
    --primary-blue: #01b4ee;
    --dark-blue: #00aded;
    --light-blue: #00a2e8;
    --text-black: #000;
    --text-gray: #555;
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
}

/* =====================================================
   RESET & BASE
===================================================== */
.hide {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    clip-path: inset(50%);
}

/* スキップリンクなど、フォーカスが当たった時のみ表示させたい場合の設定 */
.hide:focus-within {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    padding: 60px 0 0;
    color: var(--text-black);
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* iOSでの background-attachment: fixed 不具合対策として疑似要素で背景を固定 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: linear-gradient(to right, var(--primary-red) 50%, var(--primary-blue) 50%);
    z-index: -1;
    pointer-events: none;
}

/* ページ読み込み時のちらつき防止とフェードイン表示のため */
body {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    will-change: opacity;
}

body.is-loaded {
    opacity: 1;
}

/* =====================================================
   MAIN VISUAL
===================================================== */
.main-visual {
    width: 100%;
    height: calc(100vh - 60px);
    height: calc(100svh - 60px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 左右の背景パネル */
.mv-bg-left,
.mv-bg-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.mv-bg-left {
    left: 0;
    background-color: var(--primary-red);
}

.mv-bg-right {
    right: 0;
    background-color: var(--primary-blue);
}

/* hv02 背景写真 */
.mv-bg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

.mv-bg-photo-right {
    object-position: right center;
}

/* hv01 「#土木部プライド」 背景テキスト */
.mv-title-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 75%; */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.mv-title-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

/* hv03 キャラクターイラスト */
.mv-chara {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 60%;
    z-index: 3;
    pointer-events: none;
}

.mv-chara-img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom;
}

/* 下部帯: hv04 + 中央「福島県職員募集」テキスト */
.mv-bottom-bar {
    position: absolute;
    bottom: 21%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: 10vh;
    max-height: 10svh;
    z-index: 4;
}

.mv-hv04 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.mv-recruit-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #fff;
    font-size: clamp(1.2rem, 3.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* hv05 モバイルテキスト: デスクトップでは非表示 */
.mv-hv05 {
    display: none;
}

/* =====================================================
   DIRECTOR MESSAGE SECTION
===================================================== */
.director-section {
    background: #fff;
    padding: 60px 0 0;
    /* Changed bottom padding to 0 for bottom alignment */
}

.director-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18% 20px 0;
    background-image: url(/img/doboku-pride2026/logo-gray.png);
    background-size: 54% auto;
    background-repeat: no-repeat;
    background-position: center top;
}

.director-content {
    /* Flex layout removed, now handled by media queries */
}

.director-image {
    /* Now styled within media queries */
}

.director-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove any white space below the image */
}

.director-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.director-message-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    text-align: justify;
}

.director-message-body p:last-child {
    margin-bottom: 0;
}

.director-signature {
    margin-top: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.director-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-black);
}

/* =====================================================
   STATS SECTION WRAPPER (外側: 赤青分割背景)
===================================================== */
.stats-section-wrapper {
    background: linear-gradient(90deg, var(--primary-red) 50%, var(--primary-blue) 50%);
    width: 100%;
    padding: 3rem 1.5rem 3rem;
    /* バッジがはみ出す分の上余白を追加 */
    padding-top: 5rem;
}

/* =====================================================
   SECTION WRAPPER (内側の白カード)
===================================================== */
.stats-section {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    /* overflowをvisibleにしてバッジのはみ出しを許容 */
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 0;
    position: relative;
}

/* =====================================================
   STATS HEADER & BADGE
===================================================== */
.stats-header {
    /* ヘッダー自体は高さ0、バッジのみ上にはみ出す */
    text-align: center;
    position: relative;
    height: 0;
    overflow: visible;
}

/* 円形バッジ: 上半分が stats-section の外にはみ出す */
.stats-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 0;
    z-index: 10;
}

.stats-badge-eye {
    width: 85%;
    height: auto;
    display: block;
    margin-top: 22px;
}

.stats-title-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 0.06em;
    display: block;
}

.stats-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-red);
    letter-spacing: 0.5rem;
    margin: 0;
    line-height: 1.2;
    display: block;
}

/* =====================================================
   2-COLUMN GRID ROWS
===================================================== */
.suji-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 5rem;
    column-gap: 60px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
    overflow: visible;
}

/* Each stat card */
.stat-card {
    padding: 1.75rem 1.5rem 1.375rem;
    background: #fff;
    position: relative;
    text-align: center;
}

/* Left column cards: red bottom border, no right border */
.stat-card.left {
    border-bottom: 5px solid var(--dark-red);
}

.stat-card.right {
    border-bottom: 5px solid var(--primary-blue);
}

/* Card label (title) */
.stat-card .stat-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.625rem;
    letter-spacing: 0.02em;
}

.stat-label.aka {
    color: var(--dark-red);
}

/* Sub-labels (e.g. 大学卒 / 高校卒) */
.stat-card .val-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card .val-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-card .sub-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.sub-label.aka {
    color: var(--dark-red);
}

/* The big number value area */
.stat-card .stat-value,
.age-card .age-value {
    font-size: clamp(3.5rem, 8vw, 6.25rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-black);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}

.stat-card .stat-value .prefix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-black);
    align-self: flex-end;
    padding-bottom: 0.7rem;
    margin-right: 0.1rem;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    text-orientation: upright;
}

[data-stat="overtime"] .stat-value .prefix {
    font-size: 1.625rem;
}

[data-stat="childcare_leave"] .stat-value .prefix {
    font-size: 1.875rem;
}

.stat-card .stat-value .suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    align-self: flex-end;
    padding-bottom: 0.7rem;
    margin-left: 0.15rem;
}

[data-stat="overtime"] .stat-value .suffix {
    text-orientation: upright;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    padding-bottom: 0.4rem;
    font-size: 1.875rem;
}

.stat-card .stat-value .sep {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-black);
    align-self: flex-end;
    margin: 0 0.2rem 0.8rem;
}

/* Icon area for 男女比 */
.stat-card .icon-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
}

/* Gender PNG images */
.gender-img {
    width: 48px;
    height: auto;
    object-fit: contain;
    align-self: flex-end;
}

.stat-card .gender-icon {
    font-size: 1.875rem;
    line-height: 1;
    margin-right: 0.25rem;
    align-self: flex-end;
    padding-bottom: 0.375rem;
}

.gender-icon.male {
    color: var(--primary-blue);
}

.gender-icon.female {
    color: var(--dark-red);
}

/* Date sub-text */
.stat-card .stat-date {
    font-size: 1rem;
    /* 16px */
    color: var(--text-gray);
    margin-top: 0.5rem;
    /* 8px */
}

/* Superscript note */
.stat-value sup {
    font-size: 0.55em;
    vertical-align: super;
    font-weight: 700;
}

/* =====================================================
   AGE RATIO ROW (full-width, 4 columns)
===================================================== */
.age-section {
    padding: 1.75rem 0 1.375rem;
    border-bottom: 5px solid var(--primary-blue);
    border-image: linear-gradient(to right, var(--dark-red) 50%, var(--primary-blue) 50%) 1;
    text-align: center;
    margin: 0 1.5rem;
}

.age-section .stat-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.875rem;
    text-align: center;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.age-card {
    text-align: center;
    padding: 0 0.5rem;
    /* 8px */
}

.age-card .age-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.1;
}

.age-card .age-value {
    font-size: clamp(3.5rem, 8vw, 6.25rem);
    font-weight: 700;
    color: var(--text-black);
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.age-card .age-value .a-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    align-self: flex-end;
    padding-bottom: 0.6rem;
    margin-left: 0.1rem;
}

.age-date {
    text-align: center;
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 0.625rem;
}

/* =====================================================
   FOOTNOTES
===================================================== */
.stats-footnotes {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

/* =====================================================
   VIDEO SECTION (Redesigned)
===================================================== */
section.video-section {
    background: linear-gradient(90deg, var(--primary-red) 50%, var(--primary-blue) 50%);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3rem 0;
    color: #fff;
    text-align: center;
}

.video-header {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.vheader-left,
.vheader-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
}

.vheader-right {
    justify-content: flex-start;
}

.vtitle-en {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.vtitle-ja {
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.video-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ytShort {
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.swiper-dragging .ytShort iframe {
    pointer-events: none;
}

/* Play button overlay for mock visuals if needed, 
   but since it's an iframe, it might be hidden. 
   Adding it just in case we use thumbnails later. */
.ytShort::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
    display: none;
    /* Hide for true iframes */
}

.video-footer {
    max-width: 1100px;
    margin: 0 auto 140px;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.video-swiper {
    padding-bottom: 4rem;
    position: relative;
}

.swiper-controls {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
    gap: 0;
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: calc(50% - 2.5rem);
    transform: translateY(-50%);
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #fff;
    color: #000;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.swiper-button-prev {
    left: 1rem;
}

.swiper-button-next {
    right: 1rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.25rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    opacity: 0.5;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    transform: scale(1.2);
}

/* =====================================================
   INTERVIEW SECTION
===================================================== */
.interview-section {
    background: linear-gradient(90deg, var(--primary-red) 50%, var(--primary-blue) 50%);
    width: 100%;
    padding: 3rem 0;
    overflow: hidden;
}

.interview-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.interview-card {
    background: #fff;
    border-radius: 40px;
    padding: 3rem 1rem;
    position: relative;
    margin-top: 7rem;
}

.interview-columns {
    display: flex;
    justify-content: space-between;
}

.interview-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.interview-col.left {
    padding-right: 15%;
}

.interview-col.right {
    padding-left: 15%;
}

.interview-illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    z-index: 3;
    pointer-events: none;
}

.interview-illustration img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.col-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 2rem;
}

.col-main-title {
    font-size: 1.875rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.interview-col.left .col-main-title {
    text-align: right;
}

.col-info {
    font-size: 1.125rem;
    color: var(--text-black);
    font-weight: 500;
}

.interview-col.left .col-info {
    text-align: right;
    padding-right: 7%;
}

.interview-col.right .col-info {
    padding-left: 7%;
}

.col-footer {
    margin-top: 3rem;
}

.interview-col.right .col-footer {
    text-align: right;
}

/* Custom Arrow Buttons */
.btn-voice-cyan,
.btn-voice-red {
    display: inline-block;
    padding: 1rem 3rem;
    color: #fff;
    font-size: 1.125rem;
    position: relative;
    transition: transform 0.2s;
    width: 100%;
}

.btn-voice-cyan {
    background: var(--dark-blue);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    padding-left: 4rem;
}

.btn-voice-red {
    background: var(--primary-red);
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    padding-right: 4rem;
}

.btn-voice-cyan:hover,
.btn-voice-red:hover {
    transform: scale(1.05);
}

/* Hexagon Button */
.interview-all-link {
    display: flex;
    justify-content: center;
    max-width: 760px;
    margin: 2rem auto 0;
}

.btn-hexagon {
    background: #222;
    color: #fff;
    padding: 12px 4rem;
    font-size: 1.5rem;
    text-decoration: none;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    transition: background 0.2s;
    width: 100%;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.2rem;
}

.btn-hexagon:hover {
    background: #000;
}

/* =====================================================
   Q&A SECTION
===================================================== */
.qa-section {
    background: #fff;
    width: 100%;
    margin-bottom: 2.5rem;
    font-family: var(--font-base);
}

.qa-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

/* SVGテキスト調整用CSS */
.qa-subtitle-svg {
    width: 100%;
    max-width: 500px;
    height: 70px;
    overflow: visible;
    font-family: inherit;
}

.qa-subtitle-text {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.qa-title {
    text-align: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 0.2rem;
    line-height: 1;
}

.qa-title .q-blue {
    color: var(--primary-blue);
}

.qa-title .q-red {
    color: var(--dark-red);
}

/* Row 1: Q1 + Q2 */
.qa-row {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
}

.qa-card {
    flex: 1;
    padding: 1.25rem 1rem 1.25rem;
    position: relative;
    color: #fff;
    margin-top: 2rem;
}

.qa-card.blue {
    background: var(--primary-blue);
}

.qa-card.red {
    background: var(--primary-red);
}

.qa-card.blue-single {
    background: var(--primary-blue);
    border-radius: 12px;
}

.qa-card+.qa-card {
    margin-left: 0.75rem;
}

.qa-q-badge {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: 50%;
    width: 100px;
    height: 70px;
    font-weight: 700;
    font-size: 3.25rem;
    color: var(--text-black);
    line-height: 1;
}

.qa-q-badge.akamaru {
    background-color: var(--primary-red);
}

.qa-q-text {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-black);
}

/* Q&A Graph Image Wrappers */
.qa-img-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.qa-chart-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Q3 Outer wrapper - full-width blue background */
.qa-row-q3 {
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
}

.qa-q3-outer {
    background: var(--primary-blue);
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Left side: Q3 badge, question text, pie chart */
.qa-card-q3-left {
    flex: 1;
    /* min-width: 280px; */
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.qa-q3-badge-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.qa-q3-badge {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--primary-blue);
    border-radius: 50%;
    width: 100px;
    height: 70px;
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--text-black);
    position: absolute;
    top: calc(-1.5rem - 33px);
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.qa-q3-question {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-black);
    padding-top: 1.5rem;
}

.q3-img-wrap {
    max-width: 400px;
    margin: 0 auto;
}

/* Right side: white reasons box */
.qa-card-q3-reasons {
    flex: 1;
    min-width: 220px;
    background: #fff;
    padding: 1rem 1.25rem;
    color: var(--text-black);
    position: relative;
    align-self: center;
}

.reasons-title {
    font-size: 1.275rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.reasons-title .bigT {
    font-size: 2rem;
}

.reasons-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reasons-col-title {
    padding: 0.2rem 0.5rem;
    color: #fff;
    text-align: center;
    flex: 1;
    margin-bottom: 0.5rem;
}

.rtitle-blue {
    background: var(--primary-blue);
}

.rtitle-red {
    background: var(--primary-red);
}

.reasons-columns-container {
    display: flex;
    gap: 20px;
}

.reason-group {
    flex: 1;
}

.reasons-list {
    flex: 1;
    /* font-size: 0.95rem; */
    line-height: 1.5;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.reason-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* Q4 — image word-cloud design */
.qa-card-q4 {
    position: relative;
    margin-top: 3.5rem;
    background: linear-gradient(to right, var(--primary-blue) 50%, var(--primary-red) 50%);
    padding: 0 1.5rem 1.5rem;
}

.qa-q4-header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
}

.qa-q4-badge {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: linear-gradient(to right, var(--primary-blue) 50%, var(--primary-red) 50%);
    border-radius: 50%;
    width: 100px;
    height: 70px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1;
}

.qa-q4-question {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
}

.qa-q4-body {
    background: #fff;
    padding: 2.5rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    max-width: 680px;
    margin: 0 auto;
}

.qa-q4-body picture {
    width: 100%;
}

.qa-q4-wordcloud {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
}

.word-item {
    font-weight: 900;
    line-height: 1.3;
}

.word-blue {
    color: var(--primary-blue);
}

.word-red {
    color: var(--dark-red);
}

.word-black {
    color: var(--text-black);
}

.word-gold {
    color: #c08000;
    text-decoration: underline;
}

.word-sm {
    font-size: 1rem;
}

.word-md {
    font-size: 1.1rem;
}

.word-lg {
    font-size: 1.375rem;
}

.word-xl {
    font-size: 1.75rem;
}

/* =====================================================
   MISSION SECTION
===================================================== */
.mission-section {
    padding: 4rem 0 0;
    overflow: hidden;
}

.mission-container {
    max-width: 1080px;
    margin: 0 auto;
    color: #fff;
    padding: 0 20px;
}

/* =====================================================
   ROLES SECTION
===================================================== */
.roles-section {
    background: #fff;
    padding: 5rem 0;
    width: 100%;
}

.roles-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.roles-header {
    margin-bottom: 3rem;
    text-align: center;
}

.roles-header h2 {
    display: inline-block;
    font-size: 2.25rem;
    padding: 0.5rem 0;
    border-top: 4px solid var(--dark-blue);
    border-bottom: 4px solid var(--dark-blue);
    letter-spacing: 0.05em;
    color: var(--text-black);
    width: 100%;
}

.roles-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.roles-text {
    flex: 1.2;
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-black);
    text-align: justify;
}

.roles-photo {
    flex: 0.8;
}

.roles-photo img {
    width: 100%;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roles-diagram {
    width: 100%;
    text-align: center;
}

.roles-diagram img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mission-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.mission-header h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text-black);
}

.mission-header h2 .highlight {
    color: #FFF;
}

.mission-desc {
    font-size: 1rem;
    line-height: 1.8;
    padding: 1.25rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.mission-card {
    background: #fff;
    color: var(--text-black);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mcard-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    letter-spacing: 12px;
}

.mcard-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.mcard-blue {
    color: var(--primary-blue);
}

.mcard-red {
    color: var(--primary-red);
}

.mcard-body {
    display: block;
}

.mcard-body::after {
    content: "";
    display: table;
    clear: both;
}

.mcard-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.mcard-img-placeholder {
    float: right;
    width: 50%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-left: 0.75rem;
    margin-bottom: 0.5rem;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcard-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   RECRUIT SECTION
===================================================== */
.recruit-section {
    padding: 3.5rem 0 5rem;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
    background: transparent;
}

.recruit-container {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem 5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Header: 採用情報 */
.recruit-header-wrap {
    background: linear-gradient(to right, #cc0000 50%, #00a2e8 50%);
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 3.5rem;
    width: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
}

.recruit-main-title {
    font-size: 1.5rem;
    letter-spacing: 0.75em;
    margin: 0;
    line-height: 1;
}

/* Common Block Styles */
.recruit-block {
    margin-bottom: 2rem;
}

.recruit-sub-title {
    font-size: 1.25rem;
    position: relative;
}

.recruit-sub-title.red-title {
    color: var(--dark-red);
}

/* Date alignment for 勤務条件 */
.recruit-date-right {
    text-align: right;
    font-size: 1rem;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

/* Common Table Styles */
/* Table Wrapper for Mobile Horizontal Scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.recruit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.4;
    border: 1px solid #ccc;
    min-width: 600px;
    /* Ensure table remains readable on scroll */
}

.recruit-table th,
.recruit-table td {
    border: 1px solid #ccc;
    padding: 0.75rem;
    text-align: left;
}

/* 勤務条件 Table Specific */
.conditions-table th {
    background: var(--accent-red);
    width: 120px;
    color: #FFF;
}

.conditions-table td {
    border: 1px solid #ccc;
}

/* Add custom top/bottom borders to the first/last row for exact match */
.conditions-table tr:first-child th,
.conditions-table tr:first-child td {
    border-top: 1px solid var(--text-black);
}

.conditions-table tr:last-child th,
.conditions-table tr:last-child td {
    border-bottom: 1px solid var(--text-black);
}

/* Bullet notes under 勤務条件 */
.recruit-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.recruit-notes li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.25rem;
}

.recruit-notes li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--text-black);
}

.kanrenLink {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* 試験実施状況 Table Specific */
.exam-table th {
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
    border-color: #777;
    font-size: 1rem;
}

.exam-table th.th-dark {
    background: #2a90c8;
}

.exam-table th.skyBlue {
    color: var(--text-black);
    background-color: #c0e4fa;
}

.exam-table .col-group-red {
    background: var(--primary-red);
    color: #fff;
    text-align: center;
    vertical-align: middle;
    width: 40px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 0.5rem;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.exam-table .col-sub-red {
    background: #e66;
}

.exam-table td {
    text-align: center;
    font-size: 1.125rem;
}

/* Unified solid middle borders in exam table for the data cells */
.exam-table td:nth-child(even) {
    border-right: 1px solid #ccc;
}

.exam-table td:nth-child(odd) {
    border-left: 1px solid #ccc;
}

/* Reset specific borders that got overridden by nth-child rules */
.exam-table td.exam-category-col {
    border-right: 1px solid #777;
    border-left: 1px solid #777;
    font-size: 1rem;
}

.exam-table tr:first-child th,
.exam-table tr:first-child td {
    border-top: 1px solid var(--text-black);
}

.exam-table tr:last-child th,
.exam-table tr:last-child td {
    border-bottom: 1px solid var(--text-black);
}

/* Override padding for exam table for tighter fit */
.exam-table th,
.exam-table td {
    padding: 0.6rem 0.5rem;
}

/* ナビゲーター面談 & インターンシップ Blocks */
.recruit-sub-title.bg-title {
    color: #fff;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border-radius: 4px 4px 0 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.recruit-sub-title.red-bg-title {
    background: var(--dark-red);
    width: 100%;
}

.recruit-sub-title.cyan-bg-title {
    background: var(--light-blue);
    width: 100%;
}

.interview-catch {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-black);
}

.interview-catch.cyan-text {
    color: var(--light-blue);
}

.interview-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* details list */
.interview-details {
    display: table;
    font-size: 1rem;
    line-height: 1.6;
}

.interview-details dt {
    display: table-cell;
    color: var(--dark-red);
    font-weight: 700;
    white-space: nowrap;
    padding-right: 1rem;
    padding-bottom: 0.75rem;
}

.interview-details dd {
    display: table-cell;
    padding-bottom: 0.75rem;
    font-weight: 700;
    margin: 0;
}

/* Flex layout for Interview block */
.flex-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.interview-text-area {
    flex: 1;
}

.interview-circle-area {
    flex: 0 0 140px;
    display: flex;
    justify-content: center;
}

/* The red circle button concept */
.red-circle {
    width: 130px;
    height: 130px;
    background: var(--dark-red);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    border: 5px solid var(--light-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.red-circle:hover {
    transform: scale(1.05);
}

/* =====================================================
   GLOBAL FOOTER
===================================================== */
.global-footer {
    background: linear-gradient(to right, var(--accent-red) 50%, var(--primary-blue) 50%);
    width: 100%;
    color: var(--text-black);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
    display: flex;
    justify-content: center;
}

.footer-inner .migi,
.footer-inner .hidari {
    width: 200px;
    display: flex;
    justify-content: center;
    column-gap: 16px;
    align-items: flex-start;
}

.footer-inner .migi a {
    display: block;
    width: 60px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #FFF;
    border-radius: 100px;
}

.footer-inner .hidari a {
    display: block;
    width: 82px;
}

.footer-inner .migi a img,
.footer-inner .hidari a img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.recruit-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-row-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-row-bottom {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.contact-btn {
    background: #888;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-info {
    font-size: 2rem;
    letter-spacing: 0.05em;
}

.contact-tel {
    font-size: 1.25rem;
}

.contact-tel strong {
    font-size: 1.75rem;
    margin: 0 0.2rem;
    font-weight: 500;
}

.contact-tel-sub {
    font-size: 1rem;
}

.contact-address {
    font-size: 0.85rem;
}

/* =====================================================
   GLOBAL HEADER
===================================================== */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Brand Area (Left) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-brand-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: center;
    gap: 1rem;
}

.header-title {
    font-size: 1.25rem;
    color: #222;
    margin: 0;
    font-weight: bold;
}

.header-tags {
    display: flex;
    gap: 0.25rem;
}

.tag-cyan {
    background: var(--light-blue);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tag-red {
    background: var(--dark-red);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Navigation Area (Right) */
.header-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.header-nav li {
    /* To emulate the bracket design from the image */
    position: relative;
    padding-left: 10px;
    border-left: 2px solid #555;
    border-bottom: 2px solid #555;
    display: flex;
    align-items: flex-end;
}

.header-nav a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 2px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--dark-red);
    border-bottom: 2px solid var(--dark-red);
}

/* Hamburger Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    /* Above mobile menu */
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-black);
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

/* Prevent scroll when menu is open */
.nav-no-scroll {
    overflow: hidden;
}

/* Hamburger Lines */
.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

/* Active State (X shape) */
.menu-toggle.is-active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* =====================================================
   RECRUITMENT FLOW & PRIOR EXAM BOX
===================================================== */
.red-title {
    color: var(--dark-red) !important;
    margin-bottom: 1rem;
}

.exam-flow-diag {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    /* Center it */
    text-align: center;
}

.exam-flow-diag img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove small bottom gap */
}

.prior-exam-box {
    border: 12px solid var(--accent-red);
    border-top: none;
    /* Header forms the top border */
    max-width: 1080px;
    margin: 0 auto 4rem auto;
    /* Connect to diagram above */
    position: relative;
    background: #fff;
    clear: both;
}

.prior-exam-header {
    background: var(--accent-red);
    color: #fff;
    text-align: center;
    padding: 1rem 2rem;
}

.prior-exam-header h3 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    /* Match design tracking */
}

.prior-exam-top-text {
    padding: 2.5rem 200px 0 3rem;
}

.prior-exam-content {
    padding: 1.5rem 330px 0 3rem;
    display: block;
}

.prior-exam-text {
    padding-bottom: 2.5rem;
}

.prior-exam-main-title {
    color: var(--accent-red);
    font-size: 2.875rem;
    letter-spacing: 4px;
}

.prior-exam-catch {
    font-size: 2.375rem;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-black);
    display: inline;
    background: linear-gradient(transparent 70%, #ffff00 70%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    letter-spacing: 3px;
}

.flex-container-apart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prior-exam-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.prior-exam-bullets li {
    position: relative;
    padding-left: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-black);
    text-indent: -1.2rem;
}

.prior-exam-bullets li::before {
    content: "●";
    color: var(--text-black);
    margin-right: 0.3rem;
}

.prior-exam-note {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-top: 1.5rem;
}

.prior-exam-illustration {
    position: absolute;
    bottom: -12px;
    right: 5px;
    width: 320px;
    z-index: 2;
}

.prior-exam-illustration img {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* =====================================================
   NAVIGATOR INTERVIEW SECTION
===================================================== */
.navigator-section {
    max-width: 1080px;
    margin: 3rem auto;
    background: #fff;
}

.navigator-header {
    background: var(--accent-red);
    padding: 0.9rem 1.5rem;
}

.navigator-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.05em;
}

.navigator-body {
    padding: 2rem 0 2.5rem;
}

.navigator-catch {
    color: var(--accent-red);
    font-size: 1.4rem;
    margin: 0 0 1rem;
}

.navigator-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-black);
    margin-bottom: 1.5rem;
}

.navigator-info-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigator-table {
    flex: 1;
    border-collapse: collapse;
    font-size: 1rem;
}

.navigator-table th,
.navigator-table td {
    padding: 0.7rem 1rem;
    vertical-align: top;
    border: none;
    line-height: 1.6;
}

.navigator-table th {
    color: var(--accent-red);
    white-space: nowrap;
    width: 130px;
    padding-right: 1.5rem;
    border-right: 1px solid #888888;
}

.recruit-block.internship-block .navigator-table th {
    color: var(--light-blue);
}

.navigator-table tr:last-child th,
.navigator-table tr:last-child td {
    border-bottom: none;
}

.ph-mendan img {
    display: block;
    width: 60%;
    margin: 0 auto;
}

/* Circular donut button */
.navigator-form-btn {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: conic-gradient(#00b5e4 0deg 180deg, var(--accent-red) 18deg 360deg);
    position: relative;
    transition: opacity 0.2s;
}

.navigator-form-btn:hover {
    opacity: 0.85;
}

.navigator-btn-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.navigator-btn-donut span {
    font-size: 1rem;
    /* font-weight: 900; */
    color: var(--text-black);
    /* line-height: 1.5; */
}

/* =====================================================
   PAGE TOP BUTTON
===================================================== */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-top-btn.is-active {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    background: #009acc;
    transform: translateY(-3px);
}

.page-top-btn::before {
    content: '';
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translateY(3px) rotate(45deg);
}

/* =====================================================
   RESPONSIVE STYLES
===================================================== */

@media screen and (min-width: 801px) {
    .director-content {
        position: relative;
    }

    .director-image {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 320px;
        float: none;
        /* Override any potential float from mobile styles */
        margin: 0;
    }

    .director-text-content {
        margin-left: 360px;
        /* 320px for image + 40px gap */
        padding-bottom: 110px;
    }
}

@media screen and (min-width: 601px) {
    .qa-card-q3-reasons::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -14px;
        transform: translateY(-50%);
        border-style: solid;
        border-width: 14px 14px 14px 0;
        border-color: transparent #fff transparent transparent;
    }
}

@media screen and (max-width: 1200px) {
    .interview-illustration {
        width: 380px;
    }

    /* iPad size: Adjust huge fonts to fit in the grid without breaking */
    .stat-card .stat-value,
    .age-card .age-value {
        font-size: 4rem;
        /* Reduced from 6.25rem */
        align-items: flex-end;
    }

    .stat-card .stat-value .suffix,
    .age-card .age-value .a-suffix {
        font-size: 1.8rem;
    }

    .stat-card .stat-value .sep {
        font-size: 2.5rem;
    }

    [data-stat="childcare_leave"] .stat-value .prefix,
    [data-stat="overtime"] .stat-value .suffix,
    [data-stat="overtime"] .stat-value .prefix {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .header-nav {
        position: fixed;
        top: 60px;
        /* Below the fixed header inner */
        left: 0;
        width: 100%;
        background: #fff;
        height: auto;
        max-height: 0;
        /* Slide down effect basis */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* When menu is active, expand it */
    .header-nav.nav-open {
        max-height: 500px;
        /* High enough to contain all nav items */
        border-top: 1px solid #eee;
    }

    .header-nav ul {
        flex-direction: column;
        padding: 10px 0;
        gap: 0;
    }

    .header-nav li {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding: 0;
        margin: 0 20px;
    }

    .header-nav li:last-child {
        border-bottom: none;
    }

    .header-nav a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        width: 100%;
    }
}

@media screen and (max-width: 850px) {

    /* At tablet sizes < 850px, scale down further to keep 2 columns */
    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-card .stat-value,
    .age-card .age-value {
        font-size: 3rem;
    }

    .stat-card .stat-value .suffix,
    .age-card .age-value .a-suffix {
        font-size: 1.4rem;
        padding-bottom: 0.4rem;
    }

    [data-stat="childcare_leave"] .stat-value .prefix,
    [data-stat="overtime"] .stat-value .suffix,
    [data-stat="overtime"] .stat-value .prefix {
        font-size: 1.1rem;
        padding-bottom: 0.4rem;
    }

    .stat-card .stat-value .prefix {
        padding-bottom: 0.4rem;
    }

    .stat-card .stat-value .sep {
        font-size: 2rem;
    }
}

@media screen and (max-width: 830px) {

    /* ヘッダー下からファーストビューいっぱい */
    .main-visual {
        height: calc(100svh - 60px);
        min-height: 500px;
        overflow: hidden;
    }

    /* 背景パネルはそのまま (左赤・右青 各50%) */

    /* hv01「#土木部プライド」: 上部に配置・縦長のため高さを広く */
    .mv-title-bg {
        height: 55%;
        align-items: flex-start;
        padding-top: 2%;
    }

    .mv-title-svg {
        width: 100%;
        object-position: center top;
        padding: 0 5%;
    }

    /* hv05 中段テキストブロック: モバイルのみ表示 */
    .mv-hv05 {
        display: block;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 500px;
        z-index: 6;
        text-align: center;
    }

    .mv-hv05 img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* hv03 キャラクター: 下部に大きく表示 */
    .mv-chara {
        height: 55%;
        bottom: 0;
    }

    /* デスクトップのhv04バーとテキストを非表示 */
    .mv-bottom-bar {
        display: none;
    }

    .mv-recruit-text {
        display: none;
    }

    .director-container {
        margin: 0 auto;
        padding: 30% 20px 20px;
        background-size: 70%;
    }

    .director-content {
        display: block;
        /* Switch from flex to block to enable float */
    }

    .director-image {
        float: right;
        width: 40%;
        max-width: none;
        margin-left: 1rem;
        margin-bottom: 0.5rem;
        margin-top: 25px;
    }

    .director-text-content {
        display: block;
        /* Override desktop flex so text fills around the float */
        text-align: left;
    }

    .director-message-body p {
        text-align: left;
        font-size: 1rem;
    }

    .director-signature {
        text-align: right;
        clear: right;
    }

    .vtitle-en {
        font-size: 3rem;
    }

    .vtitle-ja {
        font-size: 1.5rem;
    }

    .video-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .vheader-left,
    .vheader-right {
        justify-content: center;
        padding: 0;
    }

    .video-swiper {

        /* Mobile Specific Overrides */
        .swiper-controls {
            padding-top: 1rem;
        }

        .swiper-button-prev,
        .swiper-button-next {
            width: 2.5rem;
            height: 2.5rem;
            top: calc(50% - 40px);
        }

        .swiper-button-prev {
            left: 0;
        }

        .swiper-button-next {
            right: 0;
        }
    }

    .interview-columns {
        flex-direction: column;
        gap: 3rem;
    }

    .interview-col.left,
    .interview-col.right {
        padding: 0;
        text-align: center;
    }

    .col-footer {
        margin-top: 1rem;
    }

    .btn-voice-cyan {
        padding: 1rem;
        text-align: right;
    }

    .btn-voice-red {
        padding: 1rem;
        text-align: left;
    }

    .interview-illustration {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 72%;
        margin: 0 auto 25px;
        order: -1;
    }

    .interview-card {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.2rem;
        margin-top: 0;
    }

    .interview-col.left .col-main-title,
    .col-main-title {
        font-size: 1.5rem;
    }

    .interview-col.left .col-main-title {
        text-align: right;
    }

    .interview-col.right .col-main-title {
        text-align: left;
    }

    .col-main-title br {
        display: none;
    }

    .interview-col.left .col-info {
        text-align: right;
        padding-right: 0;
    }

    .interview-col.right .col-info {
        text-align: left;
        padding-left: 0;
    }

    .btn-hexagon {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0px;
    }

    .roles-intro {
        flex-direction: column;
        gap: 2rem;
    }

    .roles-header h2 {
        font-size: 1.5rem;
    }

    .roles-text {
        font-size: 1rem;
    }

    .mission-section {
        padding: 3rem 0;
    }

    .mission-container {
        max-width: 100%;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-header h2 {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .mission-desc {
        text-align: left;
    }

    .roles-diagram img {
        max-width: 72%;
    }

    .recruit-container {
        padding: 2rem 1.25rem;
        margin: 0 1rem;
    }

    .flex-block {
        flex-direction: column;
        align-items: center;
    }

    .interview-circle-area {
        margin-top: 1.5rem;
    }

    .recruit-table {
        /* display: block; */
        overflow-x: auto;
        white-space: nowrap;
    }

    .conditions-table th {
        width: auto;
    }

    .recruit-header-wrap {
        width: 100%;
        max-width: 320px;
    }

    .recruit-contact {
        flex-direction: column;
        gap: 0.25rem;
    }

    .exam-flow-diag {
        padding: 0 0 3rem;
    }

    .prior-exam-box {
        margin: 0 0 3rem;
    }

    .prior-exam-header {
        text-align: left;
        padding: 1rem 0;
    }

    .prior-exam-header h3 {
        font-size: 1.2rem;
    }

    .prior-exam-top-text {
        padding: 1.2rem 16px 0;
    }

    .prior-exam-content {
        display: block;
        padding: 1.5rem 16px 0;
    }

    .prior-exam-text {
        padding-bottom: 1.5rem;
    }

    .prior-exam-illustration {
        position: relative;
        right: 0;
        bottom: -12px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        flex: 0 0 auto;
        right: 0;
    }

    .prior-exam-illustration {
        display: none;
    }

    .prior-exam-main-title {
        font-size: 1.25rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }

    .prior-exam-catch {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0;
        letter-spacing: 1px;
    }

    .prior-exam-catch {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .prior-exam-bullets li {
        font-size: 0.95rem;
    }

    .navigator-section {
        margin: 2rem 0;
    }

    .navigator-header h3 {
        font-size: 1.1rem;
    }

    .navigator-body {
        padding: 1.5rem 1rem 2rem;
    }

    .navigator-catch {
        font-size: 1.2rem;
    }

    .navigator-info-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .navigator-table,
    .navigator-table tbody,
    .navigator-table tr,
    .navigator-table th,
    .navigator-table td {
        display: block;
        width: 100%;
        padding: 0;
    }

    .navigator-table tr {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .navigator-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .navigator-table th {
        padding: 0 0 0.5rem 0;
        border: none;
        font-size: 1.1rem;
        text-align: center;
    }

    .navigator-table td {
        padding: 0 0 1rem 0;
        border: none;
    }

    .navigator-form-btn {
        margin: 0 auto;
    }

    .ph-mendan img {
        width: 100%;
        margin: 0 auto 1.5rem;
    }

    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .page-top-btn::before {
        width: 12px;
        height: 12px;
    }

    .qa-card+.qa-card {
        margin-left: 0;
    }

    .qa-card {
        padding: 1.25rem 14px 1.25rem;
    }

    .qa-card-q4 {
        margin-top: 2.5rem;
        padding: 0 14px 1.5rem;
    }

    .qa-q4-header {
        text-align: left;
        padding: 3rem 0 1.5rem;
    }

    .qa-q4-header br {
        display: none;
    }

    .qa-q4-question,
    .qa-q3-question,
    .qa-q-text {
        font-size: 1.25rem;
    }

    /* フッター連絡先 */
    .contact-btn {
        margin-bottom: 1.25rem;
    }

    .contact-row-top,
    .contact-row-bottom {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .contact-info,
    .contact-address,
    .contact-tel {
        white-space: nowrap;
    }

    .contact-info {
        font-size: 1.25rem;
        letter-spacing: 0;
    }

    .contact-tel strong {
        font-size: 1.25rem;
    }

    /* Q3 Reasons */
    .qa-q3-outer {
        flex-direction: column;
        padding: 1.5rem 14px;
    }

    .qa-card-q3-reasons::before {
        display: none;
    }

    .reasons-columns-container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-inner {
        padding: 0 10px 80px;
        flex-direction: column;
        row-gap: 1.5rem;
        align-items: center;
    }
}

@media screen and (max-width: 650px) {
    .mission-header h2 span.kaigyo {
        display: block;
    }

    .col-main-title br {
        display: block;
    }

    .suji-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.left {
        border-right: none;
        border-bottom: 2px solid #ccc;
        /* Add separator between stacked cards */
    }

    .stat-card.right {
        border-bottom: 2px solid var(--primary-blue);
        /* Match existing grid style */
    }

    /* Override the nth-child(odd) behavior if stacked */
    .suji-grid>.stat-card {
        border-image: none !important;
        border-bottom: 2px solid var(--primary-blue);
    }

    .suji-grid>.stat-card:nth-child(even) {
        border-bottom: 2px solid var(--dark-red);
    }

    .suji-grid>.stat-card:last-child {
        /* border-bottom: none; */
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-card .stat-value,
    .age-card .age-value {
        font-size: 3.5rem;
    }

    .stat-card .stat-value .suffix,
    .age-card .age-value .a-suffix {
        font-size: 1.6rem;
    }

    .age-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }
}

@media screen and (max-width: 600px) {
    .qa-row {
        flex-direction: column;
    }

    .qa-row-q3 {
        flex-direction: column;
    }

    .pie-chart {
        width: 5.5rem;
        height: 5.5rem;
    }

    .qa-section {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .header-title {
        font-size: 1.1rem;
        font-weight: bold;
    }

    .gender-img {
        width: 38px;
    }

    .age-card .age-value,
    .stat-card .stat-value {
        font-size: 4.8rem;
    }

    .stat-card .val-content {
        font-size: 2.8rem;
    }

    .stat-card .stat-value .sep {
        font-size: 2rem;
    }

    .stat-card .stat-value .suffix,
    .age-card .age-value .a-suffix {
        font-size: 1.3rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .kaigyo {
        display: block;
        line-height: 1.4;
    }
}

@media screen and (max-width: 320px) {

    .stat-card .stat-value,
    .age-card .age-value {
        font-size: 2.2rem;
    }

    .stat-card .stat-value .prefix {
        font-size: 1rem;
    }

    .stat-card .stat-value .suffix,
    .age-card .age-value .a-suffix {
        font-size: 1.1rem;
    }
}

/* =====================================================
   Key Visual 2
===================================================== */
.key-visual-2 {
    width: 100%;
    overflow: hidden;
}

.key-visual-2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   Mobile Video Slider Adjustments
===================================================== */
@media screen and (max-width: 767px) {
    .video-container:not(.video-container2) .video-swiper .swiper-wrapper {
        display: block;
        transform: none !important;
        /* Override Swiper's inline transform for centering */
    }

    .video-container:not(.video-container2) .video-swiper .swiper-slide {
        width: 95%;
        /* Use percentage to be responsive */
        margin: 0 auto 20px auto !important;
        /* Center the slide and add bottom margin */
        float: none;
        /* Clear any floats that might be inherited */
    }

    .video-container:not(.video-container2) .video-swiper .swiper-controls {
        display: none;
        /* Hide pagination and next/prev buttons */
    }
}