/* @import "tailwindcss"; */
@import url('https://googleapis.com');

/* front.css */

/* ==========================================================================
   1. 基本設定・リセット (Base & Reset)
   ========================================================================== */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background-color: #fcfdfd;
    color: #18181b;
}

main {
    width: 100%;
    overflow-x: clip;
    position: relative;
}

::selection {
    background-color: #bfdbfe;
}

/* ==========================================================================
   2. 汎用ユーティリティクラス (Utility Classes)
   ========================================================================== */
.font-serif {
    font-family: "Noto Serif JP", "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
}

.h-100dvh {
    height: 100dvh;
}

/* Font Sizes */
.fs-xl {
    font-size: 3rem;
}

.fs-lg {
    font-size: 2rem;
}

.fs-md {
    font-size: 1.25rem;
}

.fs-base {
    font-size: 1rem;
}

.fs-sm {
    font-size: 0.85rem;
}

.fs-xs {
    font-size: 0.7rem;
}

@media (max-width: 767px) {
    .fs-xl {
        font-size: 2rem;
    }

    .fs-lg {
        font-size: 1.25rem;
    }

    .fs-md {
        font-size: 1rem;
    }

    .fs-base {
        font-size: 0.85rem;
    }

    .fs-sm {
        font-size: 0.7rem;
    }

    .fs-xs {
        font-size: 0.5rem;
    }
}

/* Utilities */
.img-filter {
    filter: contrast(1.1) brightness(0.9);
}

.object-fit-cover {
    object-fit: cover;
}

.transform-gpu {
    transform: translateZ(0);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.translate-y-0 {
    transform: translateY(0);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   3. 共通コンポーネント (Common Components)
   ========================================================================== */
/* --- 下からのフェード表示 --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- VIEW MORE ボタン --- */
.viewMoreBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    border: 1px solid black;
    background-color: transparent;
    color: black;
    letter-spacing: 0.1em;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

@media (max-width: 767px) {
    .viewMoreBtn {
        padding: 0.5rem 1.5rem;
    }
}

.viewMoreBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.viewMoreBtn.white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.viewMoreBtn.white span {
    color: white;
}

.viewMoreBtn.white:hover span {
    color: #000000;
}

.viewMoreBtn:hover {
    color: #ffffff;
    opacity: 1 !important;
}

.viewMoreBtn.white:hover {
    color: black;
    opacity: 1 !important;
}

.viewMoreBtn:hover::before {
    transform: scaleX(1);
}


/* ホバーの判定となる最大サイズのエリア */
.viewMoreBtn-circle {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-top: 36px;
    /* 疑似要素の線の分のスペースを確保 */
    margin-bottom: -4px;
    cursor: pointer;
    text-decoration: none;
}

/* 円の上の線（疑似要素で実装） */
.viewMoreBtn-circle::before {
    content: '';
    position: absolute;
    top: -36px;
    /* margin-topの分上にずらして配置 */
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background-color: #00a0e9;
}

/* 通常時の青い丸 */
.viewMoreBtn-circle .circle-bg {
    position: absolute;
    width: 56px;
    height: 56px;
    background-color: #00a0e9;
    border-radius: 50%;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 矢印アイコンのスタイル */
.viewMoreBtn-circle svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease-out;
}

/* ホバー時: 丸が親要素(96px)のサイズまで広がる */
.viewMoreBtn-circle:hover .circle-bg {
    width: 100%;
    height: 100%;
}

/* ホバー時: 矢印が少し下へ移動する */
.viewMoreBtn-circle:hover svg {
    transform: translateY(4px);
}

.viewMoreBtn-circle-left {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-left: 36px;
    /* 疑似要素の線の分のスペースを左側に確保 */
    cursor: pointer;
    text-decoration: none;
}

/* 円の左の線（疑似要素で実装） */
.viewMoreBtn-circle-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -36px;
    /* margin-leftの分、左にずらして配置 */
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background-color: #00a0e9;
}

/* 通常時の青い丸（共通のクラス名ですが左向き親要素内で指定） */
.viewMoreBtn-circle-left .circle-bg {
    position: absolute;
    width: 56px;
    height: 56px;
    background-color: #00a0e9;
    border-radius: 50%;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 矢印アイコンのスタイル（左向き用） */
.viewMoreBtn-circle-left svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease-out;
}

/* ホバー時: 丸が親要素(96px)のサイズまで広がる */
.viewMoreBtn-circle-left:hover .circle-bg {
    width: 100%;
    height: 100%;
}

/* ホバー時: 矢印が少し左へ移動する */
.viewMoreBtn-circle-left:hover svg {
    transform: translateX(-4px);
}

/* ホバー判定エリア：線と丸を含む横長のエリア */
.viewMoreBtn-circle-horizontal {
    position: relative;
    height: 56px;
    /* 丸の高さに合わせる */
    display: inline-flex;
    align-items: center;
    z-index: 10;
    padding-left: 48px;
    /* 線の分のスペースを確保 */
    cursor: pointer;
    text-decoration: none;
}

/* 左の線（疑似要素） */
.viewMoreBtn-circle-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 48px;
    /* 丸までの距離 */
    height: 1px;
    background-color: #00a0e9;
    transition: width 0.3s ease-out;
    /* ホバーで伸びるアニメーション */
}

/* 青い丸 */
.viewMoreBtn-circle-horizontal .circle-bg {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #00a0e9;
    border-radius: 50%;
    transition: transform 0.3s ease-out;
    /* 移動用アニメーション */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 2;
    /* 線より上に表示 */
}

/* 矢印アイコンのスタイル */
.viewMoreBtn-circle-horizontal svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease-out;
}

/* ホバー時: 丸全体が右へ12px移動する */
.viewMoreBtn-circle-horizontal:hover .circle-bg {
    transform: translateX(12px);
}

/* ホバー時: 丸の移動に合わせて、左の線が12px伸びる */
.viewMoreBtn-circle-horizontal:hover::before {
    width: 60px;
    /* 48px + 12px */
}

/* ホバー時: 矢印単体も少しだけ右に動かして躍動感を出す */
.viewMoreBtn-circle-horizontal:hover svg {
    transform: translateX(2px);
}

/* --- セクション縦書きタイトル --- */
.sectionTitleText {
    color: #d0e7f9;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    left: 0px;
    top: calc(165px + 4dvh);
    z-index: 50;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 767px) {
    .sectionTitleText {
        font-size: 3rem;
        letter-spacing: 0.2em;
        left: -20px;
        top: 105px;
        bottom: auto;
    }
}

.sectionTitleText span {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity, filter;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luxuryReveal {
    0% {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.is-animated.sectionTitleText span,
.is-animated .sectionTitleText span,
.medical-triggered .sectionTitleText span,
#rfid-card.is-animated .sectionTitleText span,
#eco-card.is-animated .sectionTitleText span {
    animation: luxuryReveal 1.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px) !important;
}

/* 文字ごとのディレイ設定 */
.sectionTitleText span:nth-child(1) {
    transition-delay: 0.05s;
    animation-delay: 0.05s;
}

.sectionTitleText span:nth-child(2) {
    transition-delay: 0.13s;
    animation-delay: 0.13s;
}

.sectionTitleText span:nth-child(3) {
    transition-delay: 0.21s;
    animation-delay: 0.21s;
}

.sectionTitleText span:nth-child(4) {
    transition-delay: 0.29s;
    animation-delay: 0.29s;
}

.sectionTitleText span:nth-child(5) {
    transition-delay: 0.37s;
    animation-delay: 0.37s;
}

.sectionTitleText span:nth-child(6) {
    transition-delay: 0.45s;
    animation-delay: 0.45s;
}

.sectionTitleText span:nth-child(7) {
    transition-delay: 0.53s;
    animation-delay: 0.53s;
}

.sectionTitleText span:nth-child(8) {
    transition-delay: 0.61s;
    animation-delay: 0.61s;
}

.sectionTitleText span:nth-child(9) {
    transition-delay: 0.69s;
    animation-delay: 0.69s;
}

.sectionTitleText span:nth-child(10) {
    transition-delay: 0.77s;
    animation-delay: 0.77s;
}

.sectionTitleText span:nth-child(11) {
    transition-delay: 0.85s;
    animation-delay: 0.85s;
}

.sectionTitleText span:nth-child(12) {
    transition-delay: 0.93s;
    animation-delay: 0.93s;
}

.sectionTitleText span:nth-child(13) {
    transition-delay: 1.01s;
    animation-delay: 1.01s;
}

/* 1. ナビゲーション項目のクリック有効幅を横いっぱいに広げる */
.overlay-menu-nav .overlay-nav-item {
    display: block;
    width: 100%;
}

/* 2. アコーディオン展開時にサブメニューが消えないよう、
      アコーディオンを内包する項目のみ overflow を visible に上書きする */
.overlay-menu-nav .overlay-nav-item:has(.custom-prod-submenu-wrapper) {
    overflow: visible;
}

/* 3. ボタン内のテキストがクリックイベントを邪魔しないよう設定する */
#product-toggle-btn .overlay-nav-link,
#product-toggle-btn .jp-sub {
    pointer-events: none;
    /* 子要素へのクリック判定を無効化し、ボタン自体にクリックを集中させます */
}

.custom-prod-toggle-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 10px 0;
    /* タップしやすいように上下に程よい余白を設けます */
    cursor: pointer;
    text-align: left;
}

/* 2. 矢印アイコンの初期状態とアニメーション設定 */
.custom-prod-icon {
    color: #9ca3af;
    /* 矢印の色 */
    transition: transform 0.3s ease-in-out;
}

/* 3. 【JS連動】開いた状態の矢印（180度回転して上を向く） */
.custom-prod-icon.is-open {
    transform: rotate(180deg);
}

/* 4. サブメニューの枠（初期状態は高さ0） */
.custom-prod-submenu-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out;
}

/* 5. 【JS連動】開いた状態のサブメニュー枠（高さが自動で広がる） */
.custom-prod-submenu-wrapper.is-open {
    grid-template-rows: 1fr;
}

/* 6. 高さ0の時にはみ出た中身を隠すための設定 */
.custom-prod-submenu-inner {
    overflow: hidden;
}

/* 7. サブメニュー内のリストデザイン（左側の縦線やインデント） */
.custom-prod-submenu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.75rem;
    /* 左側の余白 */
    margin-left: 0.5rem;
    margin-top: 1rem;
    /* 開いた時の上部の余白 */
    border-left: 1px solid rgba(156, 163, 175, 0.4);
    /* 左側の縦線 */
}

/* 8. サブメニューの各リンクのデザイン */
.custom-prod-link {
    display: block;
    padding: 0.25rem 0;
    color: #e5e7eb;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-prod-link:hover {
    color: #ffffff;
}


/* ==========================================================================
   4. オープニングアニメーション (Opening Animation)
   ========================================================================== */
#opening-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9999999;
    background-color: #000;
    pointer-events: auto;
    font-family: "Playfair Display", serif;
    transition: background-color 1.2s ease;
    overflow: hidden;
}

#line-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    transition: opacity 1s ease;
}

.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.1em;
    display: flex;
    align-items: baseline;
    padding: 10px;
    color: #fff;
    transition: opacity 1s ease;
}

#story-layer {
    font-family: "Noto Serif JP", serif;
}

.story-layer-overlay {
    transition: opacity 1.5s ease-in-out;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
}

.story-bg-overlay {
    filter: brightness(0.65);
    transform: scale(1);
    transition: background-image 1.5s ease-in-out, transform 5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.story-text-overlay {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
    transform: translateY(20px);
    opacity: 0;
    filter: blur(5px);
    transition: opacity 1s ease-in-out, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease-in-out;
    z-index: 10;
    font-weight: 500;
}

.fade-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 100000;
}

.opening-skip-btn {
    top: 30px;
    right: 30px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 1s ease;
}


/* ==========================================================================
   5. ヘッダー・フッター & メニュー (Header, Footer & Navigation)
   ========================================================================== */
.js-header {
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2100;
    background-color: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#header-logo-img {
    height: 16px !important;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    top: 15px;
    left: 20px;
    width: calc(100% - 40px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

#header-links-container {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-link-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.header-separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    margin: 0 16px;
    transition: color 0.4s ease;
    font-weight: 300;
}

.js-header.scrolled .header-separator {
    color: #cccccc;
}

.header-link {
    font-family: inherit;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 18px 4px;
    position: relative;
    transition: color 0.3s ease;
}

.js-header.scrolled .header-link {
    color: #242429;
}

.header-link:hover,
.header-link.active {
    color: #2ca2db !important;
}

/* PC Dropdown */
.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: rgba(162, 227, 248, 0.96);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 2200;
    display: flex;
    flex-direction: column;
}

.header-link-wrapper:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-dropdown-item {
    color: #242429;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 16px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.header-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.55);
    color: #000;
}

/* Right Zone (Lang / Contact) */
.header-right-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lang-switcher {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: color 0.4s ease;
    line-height: 1;
}

.js-header.scrolled .lang-switcher {
    color: #888888;
}

.lang-switcher .active-lang {
    font-weight: 800;
    color: #ffffff;
}

.js-header.scrolled .lang-switcher .active-lang {
    color: #00a0e9;
}

.lang-switcher .inactive-lang {
    color: rgba(255, 255, 255, 0.45);
}

.js-header.scrolled .lang-switcher .inactive-lang {
    color: #b0b0b0;
}

.clickable-lang {
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.clickable-lang:hover {
    opacity: 1 !important;
    color: #2ca2db !important;
}

.lang-divider {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.4s ease;
}

.js-header.scrolled .lang-divider {
    color: #cccccc;
}

.header-contact-btn {
    background-color: #2ca2db;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 10px 16px 12px 16px;
    min-height: 52px;
    width: 96px;
    box-shadow: 0 4px 12px rgba(44, 162, 219, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    top: 20px;
}

.header-contact-btn:hover {
    background-color: #1a8cc3;
    box-shadow: 0 6px 18px rgba(44, 162, 219, 0.45);
    transform: translateY(2px);
}

.header-contact-btn svg {
    margin-top: 4px;
}

/* Hamburger Button */
@media (min-width: 768px) {
    #header-menu-container {
        margin-left: auto !important;
        margin-right: 32px !important;
    }
}

.hamburger-button {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    width: 44px;
    height: 44px;
    z-index: 2300;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.hamburger-line-top,
.hamburger-line-bottom {
    display: block;
    height: 2px;
    background-color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger-line-top {
    width: 28px;
}

.hamburger-line-bottom {
    width: 18px;
}

.hamburger-button:hover .hamburger-line-top,
.hamburger-button:hover .hamburger-line-bottom {
    background-color: #2ca2db !important;
    width: 28px;
}

.hamburger-button.is-active {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.hamburger-button.is-active .hamburger-line-top,
.hamburger-button.is-active .hamburger-line-bottom {
    background-color: #ffffff !important;
    width: 28px;
}

.hamburger-button.is-active .hamburger-line-top {
    transform: translateY(5px) rotate(45deg);
}

.hamburger-button.is-active .hamburger-line-bottom {
    transform: translateY(-5px) rotate(-45deg);
}

/* Overlay Menu */
body.menu-open .js-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 20px 40px !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 2500 !important;
}

body.menu-open #header-menu-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(11, 23, 44, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-nav-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.overlay-menu-inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 120px 40px 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 80px;
}

.overlay-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.overlay-nav-item {
    position: relative;
    overflow: hidden;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-nav-menu.is-open .overlay-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(2) {
    transition-delay: 0.18s;
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(3) {
    transition-delay: 0.26s;
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(4) {
    transition-delay: 0.34s;
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(5) {
    transition-delay: 0.42s;
}

.overlay-nav-menu.is-open .overlay-nav-item:nth-child(6) {
    transition-delay: 0.5s;
}

.overlay-nav-link {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 20px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.overlay-nav-link span.jp-sub {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.overlay-nav-link:hover {
    color: #2ca2db;
    padding-left: 15px;
}

.overlay-nav-link:hover span.jp-sub {
    color: #2ca2db;
}

.overlay-menu-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 60px;
    opacity: 0;
    transform: translateX(35px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.4s;
}

.overlay-nav-menu.is-open .overlay-menu-right {
    opacity: 1;
    transform: translate(0);
}

.overlay-contact-container {
    margin-bottom: 40px;
    width: 100%;
}

.overlay-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    background-color: #2ca2db;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.overlay-contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
}

.overlay-contact-btn:hover {
    background-color: #1a8cc3;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(44, 162, 219, 0.35);
}

.overlay-lang-section {
    margin-bottom: 40px;
}

.overlay-lang-title {
    font-family: "Playfair Display", serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.overlay-lang-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
}

.overlay-lang-btn {
    background: none;
    border: none;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.overlay-lang-btn.active {
    color: #ffffff;
    font-weight: 700;
}

.overlay-lang-btn.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2ca2db;
}

.overlay-lang-btn:hover {
    color: #2ca2db;
}

.overlay-lang-divider {
    color: rgba(255, 255, 255, 0.2);
}

.overlay-info-section {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Noto Serif JP", serif;
    font-size: 0.8rem;
    line-height: 1.8;
}

.overlay-info-brand {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Header/Footer Mobile overrides */
@media (max-width: 767px) {
    #header-logo-img {
        height: 16px !important;
    }

    .js-header {
        height: auto !important;
        min-height: 64px !important;
        padding: 8px 16px !important;
    }

    .header-right-zone {
        gap: 4px !important;
    }

    .lang-switcher {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }

    .header-contact-btn {
        background-color: #ebebeb !important;
        color: #111111 !important;
        width: 68px !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 4px 5px 5px 5px !important;
        font-size: 7.5px !important;
        gap: 1px !important;
        border-radius: 3px !important;
    }

    .header-contact-btn svg {
        color: #111111 !important;
        width: 12px !important;
        height: 12px !important;
        margin-top: 0px !important;
    }

    .js-header.scrolled .header-contact-btn {
        background-color: #2ca2db !important;
        color: #ffffff !important;
    }

    .js-header.scrolled .header-contact-btn svg {
        color: #ffffff !important;
    }

    .js-header.scrolled {
        padding: 8px 18px;
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }

    body.menu-open .js-header {
        padding: 15px 20px !important;
    }

    .hamburger-button {
        position: fixed !important;
        bottom: 24px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        background-color: #3288c3 !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        z-index: 9999 !important;
    }

    .hamburger-line-top {
        width: 20px;
    }

    .hamburger-line-bottom {
        width: 14px;
    }

    .hamburger-button:hover .hamburger-line-top,
    .hamburger-button:hover .hamburger-line-bottom {
        width: 20px;
        background-color: #ffffff !important;
    }

    .hamburger-button.is-active {
        background-color: #3288c3 !important;
        border: none !important;
    }

    .hamburger-button.is-active .hamburger-line-top,
    .hamburger-button.is-active .hamburger-line-bottom {
        width: 20px;
    }

    .hamburger-button.is-active .hamburger-line-top {
        transform: translateY(4px) rotate(45deg);
    }

    .hamburger-button.is-active .hamburger-line-bottom {
        transform: translateY(-4px) rotate(-45deg);
    }

    .overlay-menu-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 24px 40px;
        overflow-y: auto;
        justify-content: start;
        align-items: flex-start;
    }

    .overlay-menu-nav {
        gap: 1.2rem;
    }

    .overlay-menu-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 30px;
        width: 100%;
        transform: translateY(30px);
        transition-delay: 0.55s;
    }

    .overlay-contact-container {
        margin-bottom: 25px;
    }

    footer .bg-black,
    footer .position-relative {
        min-height: auto !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ==========================================================================
   6. メインビジュアル・理念 (Main Visual & Philosophy Section)
   ========================================================================== */
.story-scroll-wrapper {
    height: 300svh;
    background-color: #ffffff;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #ffffff;
}

.main-content-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#anim-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.anim-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    filter: brightness(0.7);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#anim-bg-img-base-0 {
    opacity: 1;
}

#anim-bg-img-base-1,
#anim-bg-img-base-2 {
    opacity: 0;
}

.is-animated .anim-bg-img {
    filter: grayscale(100%) brightness(0.9);
    opacity: 0 !important;
    transform: scale(1.05);
}

#mv-text-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0) 50%);
    transition: all 1s ease;
}

.is-animated #mv-text-layer {
    opacity: 0;
    transform: translateY(-50px);
}

.mv-nav-link {
    text-decoration: none;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.mv-nav-subtext {
    font-size: 0.82rem;
    font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
    margin-left: 2rem;
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid #ffffff;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.08em;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mv-nav-link:hover .mv-nav-subtext {
    opacity: 1;
    transform: translateX(0);
}

.mv-nav-link:hover .custom-underline {
    opacity: 0.8;
}

.mainVisualLeftText {
    position: absolute;
    bottom: 5%;
    left: 40px;
}

.custom-underline {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

#ph-text-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.is-animated #ph-text-layer {
    opacity: 1;
    pointer-events: auto;
}

.container.topSection {
    margin-top: calc(165px + 4dvh);
}

@media (max-width: 767px) {
    .mv-nav-subtext {
        display: none;
    }

    .mainVisualLeftText {
        left: 16px;
    }

    .mainVisualLeftText .fs-1 {
        font-size: 1.5rem !important;
    }

    .mainVisualLeftText .fs-3 {
        font-size: 1rem !important;
    }

    .mv-char-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background-color: rgba(30, 80, 115, 0.8);
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 2px;
        text-decoration: none;
    }

    .mv-char-box.en {
        display: inline-flex;
        align-items: center;
        justify-content: start !important;
        width: 32px;
        height: 32px;
        background-color: transparent !important;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 2px;
        text-decoration: none;
    }

    .custom-underline {
        text-decoration: none;
    }

    .container.topSection {
        margin-top: 105px;
    }
}


/* --- 1. アニメーション前の初期状態（非表示・位置下げ・ぼかし・ズームアウト） --- */
.ph-title,
.ph-desc,
.ph-btn,
.ph-img {
    opacity: 0;
    will-change: opacity, transform, filter;
    /* 超滑らかな減速曲線（cubic-bezier）を設定 */
    transition:
        opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* タイトル・本文・ボタンは、下から上へ移動させるため translateY を設定 */
.ph-title {
    transform: translateY(40px);
    filter: blur(4px);
}

.ph-desc {
    transform: translateY(30px);
    filter: blur(4px);
}

.ph-btn {
    transform: translateY(20px);
}

/* 右側画像は、少し縮小（ズームアウト）した状態で待機 */
.ph-img {
    transform: scale(0.96) translateY(10px);
    filter: blur(6px);
}


/* --- 2. スクロールが10%を超え「.is-animated」が親についた際、順番に立ち上げる --- */

/* ① 右側の風景画像（0.2秒遅れでズームイン） */
.is-animated .ph-img {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
    transition-delay: 0.2s;
}

/* ② 左側の大タイトル（0.5秒遅れで浮き上がり） */
.is-animated .ph-title {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition-delay: 0.5s;
}

/* ③ 左側の詳細テキスト（0.7秒遅れで浮き上がり） */
.is-animated .ph-desc {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition-delay: 0.7s;
}

/* ④ 左側のヨシカワについてボタン（0.9秒遅れで出現） */
.is-animated .ph-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* ==========================================================================
   7. ビジネスセクション (Business Section)
   ========================================================================== */
.business-bg {
    height: 800vh;
    background-color: #ffffff;
}

#intro-panel {
    padding-top: calc(85px + 3vh) !important;
    padding-left: clamp(100px, 9vw, 140px) !important;
    padding-right: clamp(40px, 5vw, 120px) !important;
}

#intro-animated-move-wrapper {
    transform-origin: top right;
}

#intro-header-wrapper {
    max-width: 680px;
    gap: min(4vw, 24px);
    z-index: 4;
}

#intro-title {
    max-width: 480px;
    opacity: 1;
}

#intro-title h2 {
    font-size: clamp(1.1rem, 4.2vw, 1.85rem);
}

#intro-title h3 {
    font-size: clamp(0.7rem, 2.8vw, 1.05rem);
}

#intro-logo {
    transform-origin: center center;
    transition: opacity 0.4s ease;
    z-index: 2;
    opacity: 1;
}

#intro-logo img {
    width: clamp(70px, 11vw, 110px);
    height: auto;
}

#intro-desc {
    margin-top: 35px;
    max-width: 600px;
    z-index: 5;
    opacity: 0;
}


.panel-skew {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 10%;
    right: 10%;
    transform: skewX(-12deg);
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 500ms ease-out, box-shadow 500ms ease-out;
    background-color: #f3f4f6;
}

.panel-skew-content {
    transform: skewX(12deg) scale(1.25);
    background-color: #fca5a5;
    transform-origin: center center;
}

#dept-panels-wrapper-outer {
    padding-top: max(295px, 39dvh);
    width: 100%;
    height: 100%;
}

.panels-wrapper {
    width: 50dvw;
    height: 50dvh;
    margin-right: -10dvw;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.active-info-wrapper {
    position: absolute;
    bottom: 5%;
    right: 0%;
    width: 40%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px -10px rgba(0, 50, 150, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.active-info-id-parent {
    font-size: 8rem;
    opacity: 0.28;
    color: transparent;
    -webkit-text-stroke: 1.5px #00a0e9;
}

@media (min-width: 768px) {
    .active-info-id-parent {
        font-size: 8rem !important;
    }

    #intro-panel>.position-relative {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-right: clamp(40px, 4vw, 80px);
        z-index: 30;
    }

    #intro-animated-move-wrapper {
        width: 100%;
        max-width: 580px;
        margin-left: auto;
        margin-right: 0px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #intro-header-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #intro-title {
        text-align: left !important;
        flex-grow: 1 !important;
    }

    #intro-desc {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 25px !important;
        text-align: left !important;
    }
}

@media (max-width: 767px) {
    #intro-panel {
        padding-top: max(100px, 12vh) !important;
        padding-left: clamp(55px, 12vw, 85px) !important;
        padding-right: clamp(20px, 5vw, 40px) !important;
    }

    .panel-skew {
        transform: skewX(-5deg);
        top: 0;
        bottom: 5%;
    }

    .panel-skew-content {
        transform: skewX(5deg) scale(1.1);
    }

    .panels-wrapper {
        width: 80dvw;
        margin-right: 0;
        height: 25dvh;
        perspective: 1200px;
        transform-style: preserve-3d;
    }

    #dept-panels-wrapper-outer {
        padding-top: calc(180px + 23dvh);
        width: 100%;
        height: 100%;
    }

    .active-info-wrapper {
        width: 95dvw;
        bottom: 2.5dvw;
        margin-right: 2.5dvw;
    }

    .active-info-id-parent {
        font-size: 4rem;
    }
}

/* ==========================================================================
   8. RFID & ECO PRODUCT セクション (Tailwind完全内包版)
   ========================================================================== */

/* --- 全体の固定高さ＆マイナスマージン（PC・モバイル共通） --- */
#rfid-wrapper,
#eco-wrapper {
    position: relative;
    width: 100%;
    height: 350vh;
    height: 350svh;
    margin-top: -100vh;
    margin-top: -100dvh;
    /* 前のセクションと重ね合わせるためのネガティブマージン */
}

/* --- RFID固有スタイル（Tailwind z-[10], bg-[#fdfaf5], shadow-0から移植） --- */
#rfid-wrapper {
    z-index: 10;
    background-color: #fdfaf5;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

/* --- ECO固有スタイル（Tailwind z-[11], bg-[#ebf5eb], shadow-0から移植） --- */
#eco-wrapper {
    z-index: 11;
    background-color: #ebf5eb;
    box-shadow: 0 -20px 30px rgba(0, 0, 0, 0.1);
}

/* スクロール連動カードの透明度フェード */
#rfid-card,
#eco-card {
    transition: opacity 0.5s ease;
}

#rfid-content,
#eco-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-animated #rfid-content,
.is-animated #eco-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s;
}

/* --- 背景ぼかし & 初期拡大率 1.05（Tailwindの scale-105 から移植） --- */
.rfid-bg-overlay,
.eco-bg-overlay {
    opacity: 0.9;
    filter: blur(5px);
    transform: scale(1.05);
    /* 初期拡大率を設定 */
}

.rfid-bg-overlay {
    background-image: url(/common/img/index/rfid/rfid-01.webp);
}

.eco-bg-overlay {
    background-image: url(/common/img/index/ecoproduct/ecoproduct-01.webp);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

/* RFID用の黄金色マスク */
.rfid-overlay {
    background-color: #f7d580;
    opacity: 0.85;
}

/* ECO用の森林グリーングラデーションマスク */
.eco-overlay {
    background: linear-gradient(to top right, rgba(158, 179, 72, 0.9), rgba(78, 138, 56, 0.85), rgba(33, 87, 29, 0.9));
}

/* --- 共通：メインビジュアル画像 (デフォルトPCサイズ) --- */
.productImgBox {
    position: absolute;
    left: 15vw;
    bottom: 0;
    width: 50vw;
    height: 65dvh;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    background-size: cover;
    background-position: center;
}

.productImgBox.rfid {
    background-image: url(/common/img/index/rfid/rfid-01.webp);
}

.productImgBox.eco {
    background-image: url(/common/img/index/ecoproduct/ecoproduct-01.webp);
}

/* --- 共通：詳細テキストボックス (デフォルトPCサイズ) --- */
.productTextBox {
    position: absolute;
    top: 15dvh;
    right: 0;
    width: 45vw;
    padding: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.7);
}

.productTextBox .product-title {
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #18181b;
}

.productTextBox .product-desc {
    line-height: 1.8;
    margin-bottom: 0;
}

.product-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

@media (max-width: 767px) {

    /* 画像を中央・下部に大きく表示 */
    .productImgBox {
        left: 15vw;
        bottom: 10dvh;
        width: 85vw;
        height: 45dvh;
    }

    /* テキストボックスの位置を移動し、余白を縮小 */
    .productTextBox {
        top: 20dvh;
        right: 0;
        width: 100%;
        padding: 1.5rem 1rem 1.5rem 15vw;
    }

}

/* ==========================================================================
   9. プロダクトセクション (Product Section) - 背景連動・青マスク・レスポンシブ版
   ========================================================================== */

/* 全体の固定ラッパー（スマホ時は通常のブロック） */
#product-wrapper {
    position: relative;
    width: 100%;
    z-index: 12;
}

#product-wrapper .product-sticky-card {
    position: relative;
    width: 100%;
    height: auto;
}

/* スマホ表示用の基本設定（共通スタイル） */
.product-unified-section {
    position: relative;
    width: 100%;
    background-color: #0d1e2d;
    padding: 4rem 1.5rem;
}

/* --- 背景画像レイヤー & 青色乗算マスク --- */
.product-section-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-blue-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(208, 231, 249);
    mix-blend-mode: multiply;
    z-index: 2;
}

#product-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(0.8);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

#product-bg-image.is-loaded {
    opacity: 0.45;
}

/* --- 上部イントロテキストボックスの位置 --- */
.top-productMainTextPositon {
    position: absolute;
    top: 15%;
    right: 0;
    width: 55%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    color: #000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* --- メインコンテンツ全体のコンテナ --- */
.top-productMainImgPositon {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 65%;
}

/* --- スマホ表示用スクロール設定 --- */
.unified-cards-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.unified-cards-wrapper::-webkit-scrollbar {
    display: none;
}

.unified-card {
    flex: 0 0 65vw;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.unified-card-image {
    width: 100%;
    height: 20vh;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.slide-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slide-img.active {
    display: block;
}

.slide-img.lg-only {
    display: none !important;
}

.mobile-card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.unified-card-text {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: #ffffff;
}

.cat-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cat-desc {
    font-size: 0.85rem;
    line-height: 2;
    color: #475569;
    text-align: justify;
}

@media (min-width: 768px) {
    #product-wrapper {
        height: 350vh;
        height: 350svh;
        margin-top: -100vh;
        margin-top: -100dvh;
    }

    /* PC時のみ画面上部にピタッと固定 */
    #product-wrapper .product-sticky-card {
        position: sticky;
        top: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        overflow: hidden;
    }

    /* 内部のプロダクトセクション本体：スマホ用余白を解除し、高さを100dvhで固定します */
    .product-unified-section {
        position: relative;
        width: 100%;
        height: 100dvh !important;
        background-color: #0d1e2d;
        padding: 6rem 0 3rem !important;
        /* 内包する絶対配置要素に合致させるための余白調整 */
    }

    /* 全体の配置決め用ラッパー */
    .top-productMainImgPositon {
        position: absolute;
        bottom: 10%;
        left: 0;
        width: 100%;
        height: 65%;
        z-index: 5;
    }

    .unified-cards-wrapper {
        display: block;
        overflow: visible;
        padding-bottom: 0;
        height: 100%;
    }

    /* PC時はカード全体のスタイルと影を透明にし、画面幅に広げて絶対配置の土台にします */
    .unified-card {
        display: none;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .unified-card.active {
        display: block;
    }

    /* 【PC画像の位置】 */
    .unified-card-image {
        position: absolute;
        bottom: 0;
        left: 15%;
        width: 50%;
        height: 100%;
        border-radius: 4px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .slide-img {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        opacity: 0;
        transform: scale(1);
        transition: opacity 1s ease-in-out;
    }

    .slide-img.lg-only {
        display: block !important;
    }

    .slide-img.active {
        opacity: 1;
        animation: kenBurns 6s ease-out forwards;
    }

    @keyframes kenBurns {
        0% {
            transform: scale(1);
        }

        100% {
            transform: scale(1.08);
        }
    }

    /* 【PCテキストの位置】 */
    .unified-card-text {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 35%;
        background-color: white;
        padding: 2.5rem 2rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-card-number {
        display: none;
    }

    .cat-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* タブ関連 */
    .pc-tabs-containerPosition {
        position: absolute;
        bottom: 0;
        width: 100%;
        z-index: 10;
        background-color: white;
    }

    .pc-tabs-container {
        display: flex;
        justify-content: space-around;
        gap: 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
        background-color: transparent;
    }

    .pc-tab {
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 500;
        color: rgba(0, 160, 233, 0.6);
        padding-bottom: 0.5rem;
        position: relative;
        transition: color 0.3s ease;
    }

    .pc-tab:hover {
        color: #00A0E9;
    }

    .pc-tab.active {
        color: #00A0E9;
        font-weight: 700;
    }

    .pc-tab::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #00A0E9;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .pc-tab.active::after {
        width: 60%;
    }
}

/* スマホ用の余白補正 */
@media (max-width: 767px) {
    .top-productMainTextPositon {
        position: relative;
        left: 15%;
        top: 0;
        width: calc(100% - 2rem);
        margin-bottom: 2rem;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .top-productMainImgPositon {
        position: relative;
        bottom: 0;
        left: 15%;
        width: 100%;
        height: auto;
    }

    .pc-tabs-containerPosition {
        display: none;
    }
}

/* ==========================================================================
   10. メディカルセクション (Medical Section) - スマホめり込み解消版
   ========================================================================== */

/* --- スマホ表示時の基本設定（通常通り並び、引き上げを行いません） --- */
.medical-section-wrapper {
    position: relative;
    background-color: white;
    z-index: 1;
    /* スマホ時は重ねる必要がないため基本値にします */
    min-height: 100vh;
    margin-top: 0;
    /* ★重要：スマホ時は上に引き上げず、通常通り下に並べます */
}

.medical-content-sticky {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem 4rem 45px;
}

.medical-anim-bg {
    position: absolute;
    background-color: #e4f3f9;
    z-index: 0;
    right: -4vw;
    width: 80vw;
    top: 4rem;
    height: 110%;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right center;
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.medical-anim-img-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 35vh;
    margin-top: 2rem;
    opacity: 0;
    transform: translateX(60px) scale(0.97);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.medical-anim-img {
    opacity: 0.95;
    object-position: center 75%;
    transform: scale(1.15) translateX(15px);
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.medical-anim-text-area {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    margin-top: -2rem;
    opacity: 0;
    transform: translateY(45px);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.medical-title-text {
    font-size: 1.15rem;
    color: #111;
}

.medical-anim-btn-wrapper {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   PC表示時（min-width: 768px）限定スタイル
   ========================================================================== */
@media (min-width: 768px) {

    /* PC時限定で、PRODUCT（z-index:12）の上に重ね合わせるパララックスを有効化します */
    .medical-section-wrapper {
        z-index: 13;
        margin-top: -100vh;
        margin-top: -100dvh;
    }

    .medical-content-sticky {
        position: relative;
        height: calc(100vh - 160px);
        width: 100%;
        overflow: hidden;
        padding: 0;
        margin-top: 30svh;
        margin-bottom: 30svh;
    }

    .medical-anim-bg {
        right: 0;
        width: 50vw;
        top: 15vh;
        height: 60vh;
    }

    .medical-anim-img-wrapper {
        position: absolute;
        right: 12vw;
        width: 42vw;
        top: 23vh;
        height: 50vh;
        margin-top: 0;
    }

    .medical-anim-text-area {
        position: absolute;
        background: none;
        backdrop-filter: none;
        padding: 0;
        margin-top: 0;
        left: 14vw;
        width: 45vw;
        bottom: 11vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .medical-title-text {
        font-size: 1.6rem;
    }

    .medical-anim-btn-wrapper {
        position: absolute;
        right: 14vw;
        top: calc(23vh + 50vh - 4.5rem);
        margin-top: 0 !important;
    }
}

/* トリガークラス時の出現定義 */
.medical-triggered .medical-anim-bg {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.35s;
}

.medical-triggered .medical-anim-img-wrapper {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.7s;
}

.medical-triggered .medical-anim-img {
    transform: scale(1) translateX(0);
    transition-delay: 0.7s;
}

.medical-triggered .medical-anim-text-area {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition-delay: 1.05s;
}

.medical-triggered .medical-anim-btn-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.25s;
}

/* ==========================================================================
   11. ロケーションセクション (Locations Section)
   ========================================================================== */
.location-section-wrapper {
    position: relative;
    width: 100%;
    height: 400vh;
    z-index: 16;
}

.location-content-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-map-wrapper {
    position: absolute;
    top: 20vh;
    left: 0;
    width: 100%;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-header-area {
    position: absolute;
    top: 18vh;
    right: 5vw;
    width: 90vw;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.location-desc {
    font-size: 0.7rem;
    line-height: 2;
    width: 100%;
}

.location-gallery-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.location-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(115%);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.location-slide-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.5);
    transform: scale(1.05);
}

.location-img-box {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;
    width: 100%;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.5);
}

.location-text-box {
    position: absolute;
    right: 0;
    bottom: 15%;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-city-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.location-divider {
    height: 2px;
    background-color: #00a0e9;
    width: 100%;
    margin-bottom: 1rem;
}

.location-address {
    font-size: 0.75rem;
    margin-bottom: 0;
    white-space: nowrap;
}

#world-map-wrapper {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#locations-header {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#loc-slide-0,
#loc-slide-1,
#loc-slide-2 {
    transform: translateX(115%);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .location-map-wrapper {
        top: 0%;
        width: 52vw;
    }

    .location-header-area {
        top: 24vh;
        right: 10vw;
        width: 60vw;
        text-align: right;
    }

    .location-title {
        font-size: 2rem;
    }

    .location-desc {
        width: 80%;
        margin-left: auto;
        font-size: 0.85rem;
    }

    .location-img-box {
        width: 70%;
    }

    .location-text-box {
        width: 35%;
        bottom: 20%;
        right: 10%;
        padding: 0;
    }

    .location-city-name {
        font-size: 3.5rem;
        width: 100%;
        text-align: end;
    }

    .location-address {
        font-size: 0.85rem;
        width: 100%;
        text-align: end;
    }
}

@media (max-width: 767px) {
    #locations-header {
        right: 15px !important;
    }

    #locations-header h3 {
        font-size: 1.25rem !important;
    }

    #world-map-wrapper {
        top: 20vh !important;
        width: 100% !important;
        left: 0 !important;
    }
}

.locations-triggered #world-map-wrapper,
.locations-triggered #locations-header {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.locations-triggered #loc-slide-0 {
    transform: translateX(0) !important;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.6s !important;
}

.locations-shanghai-active #loc-slide-1 {
    transform: translateX(0) !important;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.locations-kunshan-active #loc-slide-2 {
    transform: translateX(0) !important;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   12. ニュースセクション (News Section)
   ========================================================================== */
.news-section-wrapper {
    z-index: 18;
    padding: 120px 0;
}

.news-accent-sub {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
}

.news-tag-badge {
    min-width: 80px;
    line-height: 1.2;
}

/* ==========================================================================
   13. リクルートセクション (Recruit Section)
   ========================================================================== */
.recruit-section-wrapper {
    position: relative;
    width: 100%;
    height: 250vh;
    z-index: 18;
    background-color: #000;
}

.recruit-content-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruit-fade-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 20;
    pointer-events: none;
}

.recruit-fade-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 20;
    pointer-events: none;
}

.recruit-photos-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease 1.4s;
}

.recruit-marquee-row {
    display: flex;
    width: max-content;
    height: 50%;
    transition: transform 6.0s cubic-bezier(0.16, 1, 0.3, 1) 1.4s;
}

#recruit-marquee-1 {
    transform: translateX(-15vw);
}

#recruit-marquee-2 {
    transform: translateX(0);
}

.recruit-image-track {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 5px;
}

.recruit-photo {
    height: 100%;
    width: 35vw;
    min-width: 300px;
    object-fit: cover;
    filter: brightness(0.85);
    flex-shrink: 0;
}

.recruit-blue-bg-expand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 300vh;
    background-color: rgb(0, 160, 233);
    transform: translate(-50%, -50%) skewX(-30deg) scaleY(0);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, background-color 0.8s ease 1.4s;
}

.recruit-text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease 1.8s, transform 1s ease 1.8s;
    width: 100%;
}

#recruit-logo-line-last {
    transform: skewX(322deg) scaleY(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform-origin: center center;
}

#recruit-logo {
    opacity: 1;
    transition: opacity 0.6s ease 0.8s !important;
}

.recruit-triggered #recruit-logo-line-last {
    transform: skewX(-30deg) scaleY(180) !important;
}

.recruit-triggered .recruit-blue-bg-expand {
    transform: translate(-50%, -50%) skewX(-30deg) scaleY(1) !important;
    width: 300vw !important;
    background-color: rgba(0, 160, 233, 0.4) !important;
}

.recruit-triggered #recruit-logo {
    opacity: 0 !important;
    pointer-events: none;
}

.recruit-triggered .recruit-text-content {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
}

.recruit-triggered .recruit-photos-wrapper {
    opacity: 1 !important;
}

.recruit-triggered #recruit-marquee-1 {
    transform: translateX(-8vw) !important;
}

.recruit-triggered #recruit-marquee-2 {
    transform: translateX(-7vw) !important;
}

/* ==========================================================================
   14. コンタクトセクション (Contact Section)
   ========================================================================== */
#contact-container {
    z-index: 7;
    padding-top: 120px;
    padding-bottom: 0;
    overflow: hidden;
}

.contact-message-text {
    line-height: 2.2;
    font-weight: 500;
    color: #555555;
}

.contact-giant-title {
    font-size: clamp(4rem, 15vw, 14rem);
    color: transparent;
    -webkit-text-stroke: 1.5px #111111;
    letter-spacing: 0.08em;
    pointer-events: none;
    line-height: 0.7;
    font-family: 'Playfair Display', serif;
}






/* オープニングアニメーション　非表示時　ちらつき対策 */
html.is-skipped #opening-scene,
html.is-skipped #opening-skip,
html.is-skipped #story-layer {
  display: none !important;
}