:root {
    --vivid-blue: #0889d1;
    --accent-orange: #F97316;
    --accent-orange-hover: #EA580C;
    --text-dark: #0F172A;
    --text-main: #334155;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --bg-base: #ffffff;
    --bg-alt: #F8FAFC;
    --bg-vivid: #F0F7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.9;
    letter-spacing: 0.02em;
    background-color: var(--bg-base);
    min-width: 0;
    text-align: left;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a, a:link, a:visited {
    color: inherit;
    text-decoration: none;
}

ol, ul { list-style: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ================================================
   ヘッダー
================================================ */
#header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 90px;
    background: rgba(255,255,255,0.95);
    z-index: 10000;
}
#header .logo {
    position: absolute;
    top: 19px;
    left: 30px;
}
#header .logo a {
    display: block;
    width: 120px;
    height: 52px;
    background: url(/assets/images/common/header_logo_blue.png) no-repeat left top;
    text-align: left;
    text-indent: -777px;
    overflow: hidden;
    background-size: 240px 52px;
}
#header #headerNavToggleBtn {
    display: none;
}

@media (min-width: 768px) {
    #gNav { display: block !important; }
    #gNav ul.main {
        display: flex;
        height: 90px;
        margin: 0 250px 0 180px;
        justify-content: center;
        align-items: center;
    }
    #gNav ul.main li {
        position: relative;
        font-size: .875rem;
        font-weight: bold;
        line-height: 1;
        padding: 0 .875rem;
    }
    #gNav ul.main li a {
        display: block;
        padding: 1rem 0;
        color: #1c2e4a;
        border: none !important;
    }
    #gNav ul.sub {
        position: absolute;
        display: flex;
        align-items: center;
        top: 0;
        right: 30px;
        height: 90px;
    }
    #gNav ul.sub li {
        font-size: .875rem;
        font-weight: bold;
        line-height: 2.5;
        margin-left: 1rem;
    }
    #gNav ul.sub li a { color: #bbb; }
    #gNav ul.sub li.jp a { color: #377ab8; }
    #gNav ul.sub li.contact a {
        display: inline-block;
        color: #fff;
        padding: 0 1rem;
        background: #367ab7;
        border-radius: 2rem;
    }
}

@media (max-width: 767px) {
    #header { min-width: 300px; height: auto; }
    #header .headerWrap {
        position: relative;
        height: 50px;
        background: #fff;
        border-bottom: 1px solid #dfeaf4;
        overflow: hidden;
    }
    #header .logo { top: 8px; left: 15px; }
    #header .logo a {
        width: 200px;
        height: 34px;
        background-image: url(/assets/images/common/header_logo_blue.png) !important;
        background-size: contain;
    }
    #header #headerNavToggleBtn {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0; right: 0;
        width: 50px; height: 50px;
        margin: 0; padding: 0;
        background: none; border: none;
        cursor: pointer;
    }
    #header #headerNavToggleBtn .line {
        position: relative;
        display: inline-block;
        width: 24px; height: 19px;
    }
    #header #headerNavToggleBtn .line span {
        position: absolute;
        display: inline-block;
        left: 0; width: 100%; height: 3px;
        background-color: #377ab8;
        border-radius: 3px;
        transition: all .4s;
    }
    #header #headerNavToggleBtn .line span:nth-child(1) { top: 0px; }
    #header #headerNavToggleBtn .line span:nth-child(2) { top: 8px; }
    #header #headerNavToggleBtn .line span:nth-child(3) { top: 16px; }
    #header #headerNavToggleBtn.active .line span:nth-of-type(1) { top: 8px; transform: rotate(315deg); }
    #header #headerNavToggleBtn.active .line span:nth-of-type(2) { display: none; }
    #header #headerNavToggleBtn.active .line span:nth-of-type(3) { top: 8px; transform: rotate(-315deg); }
    #gNav {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        padding: 50px 0 0;
        text-align: left;
        z-index: -1;
    }
    #gNav .gNavWrap {
        max-height: 100%;
        background: #fff;
        box-shadow: 0px 0px 7px rgba(0,0,0,0.7);
        overflow: auto;
    }
    #gNav ul.main { margin: 0; }
    #gNav ul.main li {
        display: block;
        font-weight: bold;
        line-height: 3;
        padding: 0;
        border-bottom: 1px solid #dfeaf4;
        text-align: center;
    }
    #gNav ul.main li a {
        position: relative;
        display: block;
        color: #000 !important;
        border-bottom: none !important;
    }
    #gNav ul.sub { display: flex; flex-wrap: wrap; }
    #gNav ul.sub li {
        width: 50%;
        font-size: 1rem;
        font-weight: bold;
        line-height: 3;
        margin: 0;
        text-align: center;
    }
    #gNav ul.sub li a { display: block; color: #000; }
    #gNav ul.sub li.jp a { color: #377ab8; }
    #gNav ul.sub li.en { border-left: 1px solid #dfeaf4; }
    #gNav ul.sub li.contact {
        width: 100%;
        padding: 20px 40px;
        border-top: 1px solid #dfeaf4;
    }
    #gNav ul.sub li.contact a {
        display: block;
        color: #fff;
        background: #63adf1;
        border-radius: 2rem;
    }
}


/* ================================================
   Reveal Animation
================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   パンくず
================================================ */
#breadcrumb {
    background: #d0e0ee;
    padding: 12px 0;
    margin-top: 90px;
}
#breadcrumb .breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
#breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
}
#breadcrumb li {
    font-size: 13px;
    color: #3779b8;
}
#breadcrumb li + li::before {
    content: ">";
    margin: 0 8px;
    color: #3779b8;
}
#breadcrumb li:last-child { color: #666; }
#breadcrumb a {
    color: #3779b8;
    text-decoration: none;
    transition: opacity 0.2s;
}
#breadcrumb a:hover { opacity: 0.7; }
@media (max-width: 767px) {
    #breadcrumb { margin-top: 50px; }
}

/* ================================================
   Hero（固定 900px：上品な読み物感）
================================================ */
.hero {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.hero-flex { display: flex; align-items: stretch; gap: 80px; }
.hero-photo-wrapper {
    flex: 1.5;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 20px 20px 0px var(--bg-vivid);
}
.hero-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

.id-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--vivid-blue);
    letter-spacing: 0.4em;
    margin-bottom: 20px;
    display: block;
}

/* イニシャル：フルネームより小さく */
.hero h1 {
    font-size: 2.2rem; /* 変更前: 3.2rem */
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 900;
    line-height: 1.1;
}

/* 職種名＋役職名：横並び */
.job-type-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 30px;
}

/* 職種名：青色テキスト */
.job-type {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    color: var(--vivid-blue) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0; /* job-type-row の margin-bottom で制御 */
}

/* 役職名：青色テキスト */
.job-role {
    font-size: 1.1rem;
    color: var(--vivid-blue);
    font-weight: 700;
}

.hero-meta {
    font-size: 1rem;
    color: var(--text-dark);
    border-top: 6px solid var(--vivid-blue);
    padding-top: 20px;
    font-weight: 700;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 12px;
}
.category-badge {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
.category-badge::before {
    display: none !important;
    content: none !important;
}


/* ================================================
   Layout（本文エリアは広めに 1200px）
================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    border-top: 1px solid var(--border-color);
}


/* ================================================
   Sidebar（INDEXの左に余白を追加して画面端から離す）
================================================ */
.sidebar-container {
    padding: 80px 30px 80px 40px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-base);
}
.sidebar { position: sticky; top: 80px; }
.toc-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--vivid-blue);
    letter-spacing: 0.3em;
    margin-bottom: 30px;
}
.toc-list { list-style: none; }
.toc-link {
    display: block;
    padding: 18px 0;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.4s;
    border-bottom: 1px solid transparent;
    position: relative;
}
.toc-link.active { color: var(--vivid-blue); padding-left: 10px; }
.toc-link.active::before {
    content: '';
    position: absolute;
    left: -40px; top: 50%;
    width: 30px; height: 2px;
    background: var(--vivid-blue);
}


/* ================================================
   Main Content
================================================ */
.main-content section { padding: 80px 80px; scroll-margin-top: 0px; }
.main-content section:first-child {
    padding-top: 40px;
}
.main-content section:nth-child(even) { background-color: var(--bg-alt); }
.main-content section:nth-child(3n) { background-color: var(--bg-vivid); }

h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 20px;
}
h2::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

.section-num {
    font-family: 'Inter', sans-serif;
    color: var(--vivid-blue);
    font-size: 1rem;
    margin-right: 10px;
}

.question {
    font-weight: 900;
    color: var(--text-dark);
    display: block;
    margin-bottom: 30px;
    font-size: 1.5rem;
    line-height: 1.4;
    border-left: 8px solid var(--vivid-blue);
    padding-left: 24px;
}
.answer { text-align: justify; font-size: 1.1rem; color: var(--text-main); }


/* ================================================
   Statement / Quote
================================================ */
.statement-wrap { padding: 40px 80px 100px; background-color: var(--bg-base); }
.statement {
    padding: 80px 40px;
    border: 2px solid var(--text-dark);
    text-align: center;
    position: relative;
}
.statement p { font-size: 2.2rem; font-weight: 900; color: var(--vivid-blue); line-height: 1.4; }
.statement::after {
    content: 'QUOTE';
    position: absolute;
    bottom: -12px; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-dark);
}


/* ================================================
   Hobby Grid
================================================ */
.tgif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}
.tgif-img { border: 1px solid var(--border-color); width: 100%; box-shadow: 15px 15px 0 #659cdb; }


/* ================================================
   Interview Cards
================================================ */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.interview-card {
    background: #fff;
    padding: 40px;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.interview-card:hover {
    background: var(--vivid-blue);
    color: #fff;
    border-color: var(--vivid-blue);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--text-dark);
}


/* ================================================
   Recruitment CTA（本文と揃えて 1200px）
================================================ */
.cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    border-top: 1px solid var(--border-color);
}

.cta-box {
    border: 1px solid var(--border-color);
    padding: 60px 80px;
    background: var(--bg-base);
}

.cta-text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 2;
    margin-bottom: 50px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 64px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    transition: opacity 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.cta-btn--blue {
    background: var(--vivid-blue) !important;
}

.cta-btn--orange {
    background: var(--accent-orange) !important;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

/* ================================================
   スマホ・タブレット対応（1000px以下）
================================================ */
@media (max-width: 1000px) {
    .cta-section {
        padding: 60px 24px;
    }
    
    .cta-box {
        padding: 40px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cta-btn {
        max-width: 100%;
        font-size: 1rem;
        min-height: 56px;
    }
}

/* ================================================
   Footer
================================================ */
footer.site-footer {
    background-color: #3a7abf !important;
    padding: 50px 40px !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
}
footer.site-footer .site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
footer.site-footer .site-footer__logo img {
    height: 50px !important;
    width: auto !important;
    display: block !important;
}
footer.site-footer .site-footer__nav-link {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.9;
    transition: opacity 0.2s;
}
footer.site-footer .site-footer__nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}
footer.site-footer .site-footer__copy {
    color: #fff !important;
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}


/* ================================================
   Responsive
================================================ */
@media (max-width: 1000px) {
    .hero { padding-top: 60px; }
    .hero-flex { flex-direction: column; gap: 40px; }
    .container { grid-template-columns: 1fr; }
    .sidebar-container { display: none; }
    .main-content section { padding: 60px 24px; }
    .tgif-grid { grid-template-columns: 1fr; }
    .link-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .cta-buttons { flex-direction: column; gap: 16px; }
    .statement-wrap { padding: 24px 24px 60px; }
    .statement { padding: 24px; }
    .statement p { font-size: 1.4rem; }
}

/* ================================================
   前後ナビゲーション（社員詳細ページ）
================================================ */
.mi-pager {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0 auto 48px;
    max-width: 900px;
    padding: 0 40px;
}
.mi-pager-inner {
    display: flex;
    align-items: stretch;
    min-height: 64px;
}
.mi-pager-prev,
.mi-pager-next {
    flex: 1;
    display: flex;
    align-items: center;
}
.mi-pager-next { justify-content: flex-end; }
.mi-pager-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 8px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.mi-pager-link:hover { color: var(--vivid-blue); }
.mi-pager-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3d7ab5;
    color: #fff;
    border-radius: 4px;
    font-size: 20px;
    flex-shrink: 0;
}
.mi-pager-divider {
    width: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}
@media (max-width: 1000px) {
    .mi-pager { padding: 0 24px; }
}
@media (max-width: 600px) {
    .mi-pager-text { font-size: 12px; }
    .mi-pager-arrow { width: 28px; height: 28px; font-size: 16px; }
}

/* ===== もっと知るボタン：カード出現アニメーション ===== */
@keyframes mi-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mi-card-item.is-appearing {
  animation: mi-fadein 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}