/* ---------------------------------- */
/* アニメーション用キーフレーム */
/* ---------------------------------- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-from-top {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 追加: スクロールで表示時にホバー風アニメーション */
@keyframes voice-button-hover-in {
    0% {
        transform: translateY(6px);
        box-shadow: 0 2px 8px rgba(26, 58, 110, 0.18);
    }

    60% {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(26, 58, 110, 0.3);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(26, 58, 110, 0.2);
    }
}

@keyframes voice-button-tint {

    0%,
    100% {
        background: linear-gradient(135deg, #1a3a6e, #3c5fa3);
    }

    50% {
        background: linear-gradient(135deg, #142c56, #2f4d85);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

:root {
    --primary: #1a73e8;
    --primary-deep: #0f4fa8;
    --text: #22314a;
    --muted: #5f6b81;
    --line: #dce9f7;
    --surface: #ffffff;
    --surface-soft: #f7fbff;
}

<!--body {
    background: linear-gradient(180deg, #fcfeff 0%, #f7fbff 100%);
} -->

/* =========================
/  基本・共通スタイル
========================= */
body {
    letter-spacing: 0.2em;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 80px;
    background-color: #ffffff;
    color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
    /* 横方向のスクロールバーを非表示 */
}

a {
    color: #1a3a6e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
}

/* =========================
/ ヒーローセクション
========================= */
.page-hero.career-map-hero {
    background-color: #ffffff;
    padding: 110px 10px 10px;
    text-align: center;
    border-bottom: 5px solid #1a3a6e;
}

.page-hero.career-map-hero .eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background-color: rgba(26, 115, 232, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
}

.page-hero.career-map-hero h1 {
    text-align: center;
    font-size: 4em;
    margin: 0;
    color: #000000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: slide-in-from-top 1s ease-out forwards;
}

.page-hero.career-map-hero p {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.3em;
    line-height: 1.8;
    letter-spacing: 0.1em;
    color: #000000;
    margin-top: 15px;
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.5s forwards;
}

/* =========================
/ マップセクション
========================= */
.section.map-section {
    padding: 16px 24px 20px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100dvh - 120px);
    box-sizing: border-box;
    overflow: hidden;
}

.section-head {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.explain-map {
    font-size: 15px;
    text-align: center;
    color: #000000;
}

.map-card {
    position: relative;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #e6eef8;
    border-radius: 30px;
    box-shadow: 0 16px 40px rgba(15, 79, 168, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.map-card .introduce-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.map-card .map-figure {
    position: relative;
    width: 100%;
}

.map-card .map-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    pointer-events: auto;
}

.map-card .map-overlay .employee {
    position: absolute;
    z-index: 5;
    pointer-events: auto;
}

.map-card:hover {
    box-shadow: 0 24px 56px rgba(15, 79, 168, 0.16);
    transform: translateY(-4px);
}

.map-caption-front {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================
/  マップ上のアイコン
========================= */
.employee {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(26, 115, 232, 0.16);
    box-shadow: 0 10px 22px rgba(15, 79, 168, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    z-index: 3;
}

.employee:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 26px rgba(15, 79, 168, 0.16);
    z-index: 100;
}

.employee-badge {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #67a6ff 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 9), 0 8px 18px rgba(0,0,0,.28);
    animation: pulse 2.2s ease-in-out infinite;
}

.employee-badge-01 {
    background-image: url('../../assets/images/employee_01.png');
    background-position: center 0px;
}

.employee-badge-02 {
    background-image: url('../../assets/images/employee_02.png');
    background-position: center 10%;
}

.employee-badge-03 {
    background-image: url('../../assets/images/employee_03.png');
    background-position: center 0px;
}

.employee-badge-04 {
    background-image: url('../../assets/images/employee_04.png');
    background-position: center 10%;
}

.employee-badge-05 {
    background-image: url('../../assets/images/employee_05.png');
    background-position: center 10%;
}

.employee-badge-06 {
    background-image: url('../../assets/images/employee_06.png');
    background-position: center 10%;
}

.employee-badge-07 {
    background-image: url('../../assets/images/employee_07.png');
}

.employee-badge-08 {
    background-image: url('../../assets/images/employee_08.png');
    background-position: center 15%;
}

.employee-info {
    display: none;
    min-width: 100px;
    padding: 5px 6px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    text-align: center;
    box-shadow: 0 12px 24px rgba(34, 49, 74, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.1);
    z-index: 101;
}

.employee:hover .employee-info {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;
}

.employee strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.employee p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--muted);
}

.employee-01 {
    top: 18%;
    left: 18%;
    width: 15px;
    height: 15px;
}

.employee-02 {
    top: 24%;
    right: 16%;
    width: 15px;
    height: 15px;
}

.employee-03 {
    top: 54%;
    left: 28%;
    width: 15px;
    height: 15px;
}

.employee-04 {
    bottom: 18%;
    right: 24%;
    width: 15px;
    height: 15px;
}

.employee-05 {
    bottom: 20%;
    left: 16%;
    width: 15px;
    height: 15px;
}

.employee-06 {
    top: 38%;
    left: 44%;
    width: 15px;
    height: 15px;
}

.employee-07 {
    bottom: 22%;
    left: 40%;
    width: 15px;
    height: 15px;
}

.employee-08 {
    top: 28%;
    right: 8%;
    width: 15px;
    height: 15px;
}

.map-caption-before {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    flood-color: #000000;
}

/* =========================
/　モーダル
========================= */
.employee-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0;
    box-sizing: border-box;
    z-index: 9999;
}

.employee-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(1320px, calc(100vw - 48px));
    max-height: calc(100dvh - 24px);

    background: #f5f7fb;
    border-radius: 28px;
    padding: 40px 42px 42px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 28px 72px rgba(0,0,0,.18);
}

/* =========================
/  モーダル閉じるボタン  /
========================= */
.modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid #d9e2ef;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(15,23,42,.16);
    cursor: pointer;
    z-index: 30;
    transition:
        transform .15s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.modal-close:hover {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15,23,42,.22);
    transform: scale(1.06);
}

.modal-close:active {
    transform: scale(0.96);
}

.modal-close::before {
    content: "×";
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #334155;
}

/* =========================
   プロファイルヘッダー
========================= */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:  24px;

    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    padding: 26px 30px;
    margin-bottom: 28px;
}

.profile-person {
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.profile-image {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    border-radius:  50%;
    background: #ffffff;
    padding: 10px;
    flex-shrink: 0;
}

.profile-name-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-name {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #10203a;
    letter-spacing: .03em;
}

.profile-sub {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    letter-spacing: .12em;
}

.profile-meta {
    display: flex;
    gap: 28px;
}

.meta-item {
    min-width: 180px;
    padding-left: 28px;
    border-left: 1px solid #d9e2ef;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 11px;
    color: #7b8aa1;
    letter-spacing: .18em;
}

.meta-value {
    font-size: 20px;
    font-weight: 700;
    color: #10203a;
}

/* =========================
   プロファイルカード
========================= */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-card {
    background: #27467d;
    color: #fff;
    border-radius: 24px;
    padding: 28px 30px;
    min-height: 180px;

    box-shadow: 0 16px 32px rgba(0,0,0,.18);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(0,0,0,.22);
}

.profile-card h3 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.profile-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: rgba(255,255,255,.75);
    border-radius: 2px;
}

.profile-card p {
    margin: 0;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,.94);
}

.meta-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef4ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.meta-icon svg {
    width: 24px;
    height: 24px;
    stroke: #27467d;
    stroke-width: 2;
}

.meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* =========================
   カードタイトル（アイコン付き）
========================= */
.card-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* Lucide アイコン */
.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #27467d;
    stroke-width: 2;
}

/*スマホサイズのみ表示*/
.sp-only {
    display: none;
}

/* =====================================
/* レスポンシブ対応 */
/*===================================== */
/* ------------
 * タブレット表示最適化
 * ------------- */
@media screen and (min-width: 769px) and (max-width: 1200px) {

    /* ------------
     * ページヒーロー
     * ------------- */
    .page-hero.career-map-hero {
        padding: 80px 24px 20px;
    }

    .page-hero.career-map-hero h1 {
        font-size: 3em;
    }

    .page-hero.career-map-hero p {
        font-size: 1.1em;
        line-height: 1.8;
    }


    /* ------------
     * マップセクション
     * ------------- */
    .section.map-section {
        padding: 20px 32px 40px;
        min-height: auto;
        overflow: visible;
    }

    .explain-map {
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
    }

    .explain-map p {
        margin: 20px auto 24px;
        padding: 0 20px;
        line-height: 1.8;
    }


    /* ------------
     * 社員紹介マップ
     * ------------- */
    .map-card {
        width: 100%;
        max-width: 100%;
        padding: 24px;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .map-card .introduce-map-image {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    .map-card .map-overlay {
        top: 24px;
        left: 24px;
        right: 24px;
        bottom: 24px;
    }


    /* ------------
     * 社員アイコン
     * ------------- */
    .employee {
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .employee-badge {
        width: 52px;
        height: 52px;
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.9),
            0 6px 14px rgba(0, 0, 0, 0.24);
    }

    .employee-info {
        min-width: 90px;
        font-size: 0.9rem;
    }


    /* ------------
     * 社員プロフィールモーダル
     * ------------- */
    .employee-modal {
    align-items: center;
    padding: 24px 0;
    }

    .modal-content {
        width: calc(100vw - 48px);
        max-width: 1000px;
        max-height: calc(100dvh - 48px);
        margin: 0 auto;
        padding: 32px;
    }
    .profile-header {
        gap: 20px;
        padding: 24px;
    }

    .profile-image {
        width: 88px !important;
        height: 88px !important;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-meta {
        gap: 18px;
    }

    .meta-item {
        min-width: 140px;
        padding-left: 20px;
    }

    .meta-value {
        font-size: 1rem;
    }

    .profile-grid {
        gap: 18px;
    }

    .profile-card {
        padding: 22px;
        min-height: 160px;
    }

    .profile-card h3 {
        font-size: 1.3rem;
    }

    .profile-card p {
        font-size: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* ------------
     * モーダル中央配置
     * ------------- */
    .employee-modal {
        align-items: center;
        padding: 24px 0;
    }

    .modal-content {
        width: calc(100vw - 48px);
        max-width: 1000px;
        max-height: calc(100dvh - 48px);
        margin: 0 auto;
    }
}


/* ------------
 * スマホ表示最適化
 * ------------- */
@media screen and (max-width: 768px) {

    body {
        padding-top: 64px;
        letter-spacing: 0.08em;
    }

    /* ヒーロー */
    .page-hero.career-map-hero {
        padding: 88px 16px 28px;
    }

    .page-hero.career-map-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-hero.career-map-hero p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* マップカード */
    .section.map-section {
        padding: 12px;
        min-height: auto;
    }

    .map-card {
        width: 100%;
        padding: 12px;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .introduce-emp-image {
        width: 100%;
        height: auto;
        border-radius: 16px;
        display: block;
    }

    /* オーバーレイを画像上に維持 */
    .map-card .map-overlay {
        position: absolute;
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    /* アイコンサイズ拡大 */
    .employee {
        width: auto !important;
        height: auto !important;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .employee-badge {
        width: 44px;
        height: 44px;
        border: 3px solid #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,.25);
    }

    /* ホバー情報はスマホでは非表示 */
    .employee-info {
        display: none !important;
    }

    .employee-modal {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 0;
    }

    .modal-content {
        width: calc(100vw, - 24px);
        max-width: 560px;
        max-height: calc(100dvh - 32px);
        margin: 0 auto;
        padding: 18px 16px 20px;
        border-radius: 20px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 16px;
        margin-bottom: 18px;
    }

    .profile-person {
        width: 100%;
        gap: 14px;
    }

    .profile-image {
        width: 72px !important;
        height: 72px !important;
        padding: 6px;
    }

    .profile-name {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .profile-sub {
        font-size: 0.72rem;
    }

    .profile-meta {
        width: 100%;
        flex-direction: column;
        gap: 18px;
    }

    .meta-item {
        width: 100%;
        border-left: none;
        border-top: 1px solid #d9e2ef;
        padding-left: 0;
        padding-top: 14px;
        min-width: 0;
    }

    .meta-head {
        gap: 12px;
    }

    .meta-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .meta-icon svg {
        width: 20px;
        height: 20px;
    }

    .meta-value {
        font-size: 1rem;
        white-space: normal;
    }

    .meta-label {
        font-size: 0.65rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-card {
        min-height: auto;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .card-title {
        gap: 12px;
        margin-bottom: 12px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .profile-card h3 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .profile-card p {
        font-size: 0.92rem;
        line-height: 1.8;
    }

    body.modal-open {
        overflow: hidden;
    }

    .modal-close {
        position: sticky;
        top: 0;
        right: 0;
        margin-left: auto;
        display: block;
        width: 40px;
        height: 40px;
        border: none;
        background: #f5f7fb;
        border-radius: 50%;
        z-index: 20;
    }

    .modal-close::before {
        font-size: 28px;
        line-height: 1;
    }
}

/* 小さいスマホ */
@media screen and (max-width: 480px){

    .page-hero.career-map-hero h1 {
        font-size: 1.7rem;
    }

    .page-hero.career-map-hero p {
        font-size: 0.88rem;
    }

    .employee-badge {
        width: 38px;
        height: 38px;
    }
}
