/**
 * Success Digiplus Theme - 自定义样式
 * 基于 Tailwind CSS 的自定义样式
 */

/* ========================================
   重置和基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   字体设置 - 匹配原始设计
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

/* Gotham Font - Bold only */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --delta-blue: #0f2f8e;
    --delta-dark-blue: #17284b;
    --delta-red: #c24e4a;
    --delta-cyan: #34b6d9;
    --delta-light-cyan: #3577c8;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.font-shs {
    font-family: 'source-han-sans-japanese', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
}

.font-gotham {
    font-family: 'Gotham', 'Inter', system-ui, -apple-system, 'Noto Sans JP', sans-serif;
    letter-spacing: 0.02em;
}

/* ========================================
   颜色类
   ======================================== */
.bg-delta-blue {
    background-color: var(--delta-blue);
}

.text-delta-blue {
    color: var(--delta-blue);
}

/* ========================================
   标题样式 - 匹配原始设计
   ======================================== */
.sec-title {
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 1.2;
    font-family: 'Gotham', 'Inter', system-ui, -apple-system, 'Noto Sans JP', sans-serif;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .sec-title {
        font-size: 44px;
        line-height: 1.4;
    }
}

.sec-title-en {
    font-weight: 700;
    line-height: 0.9;
    font-size: 48px;
}

@media (min-width: 768px) {
    .sec-title-en {
        font-size: 56px;
    }
}

@media (min-width: 1024px) {
    .sec-title-en {
        font-size: 80px;
    }
}

.sec-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    letter-spacing: normal;
}

@media (min-width: 768px) {
    .sec-sub {
        font-size: 0.875rem;
        letter-spacing: 0.3em;
    }
}

.read-more-link {
    font-family: 'Gotham', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 0.02em;
}

/* ========================================
   Reveal 动画 - 自然流畅的入场系统
   ======================================== */

/* 基础设置：所有 reveal 元素初始隐藏 */
[data-reveal] {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal='up'] { transform: translateY(16px); }
[data-reveal='left'] { transform: translateX(-16px); }
[data-reveal='right'] { transform: translateX(16px); }
[data-reveal='scale'] { transform: scale(0.97); }
[data-reveal='fade'] { transform: none; }
[data-reveal='rise'] { transform: translateY(22px); }

[data-reveal].is-inview {
    opacity: 1;
    transform: none;
}

/* Section 级别淡入 */
.section-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-reveal.is-inview { opacity: 1; transform: none; }

/* 子元素级联 */
.stagger [data-reveal]:nth-child(1) { --reveal-delay: 0ms; }
.stagger [data-reveal]:nth-child(2) { --reveal-delay: 30ms; }
.stagger [data-reveal]:nth-child(3) { --reveal-delay: 60ms; }
.stagger [data-reveal]:nth-child(4) { --reveal-delay: 90ms; }
.stagger [data-reveal]:nth-child(5) { --reveal-delay: 110ms; }
.stagger [data-reveal]:nth-child(6) { --reveal-delay: 130ms; }
.stagger [data-reveal]:nth-child(7) { --reveal-delay: 150ms; }
.stagger [data-reveal]:nth-child(8) { --reveal-delay: 170ms; }

/* 快速级联 */
.stagger-fast [data-reveal]:nth-child(1) { --reveal-delay: 0ms; }
.stagger-fast [data-reveal]:nth-child(2) { --reveal-delay: 20ms; }
.stagger-fast [data-reveal]:nth-child(3) { --reveal-delay: 40ms; }
.stagger-fast [data-reveal]:nth-child(4) { --reveal-delay: 60ms; }
.stagger-fast [data-reveal]:nth-child(5) { --reveal-delay: 80ms; }
.stagger-fast [data-reveal]:nth-child(6) { --reveal-delay: 95ms; }
.stagger-fast [data-reveal]:nth-child(7) { --reveal-delay: 110ms; }
.stagger-fast [data-reveal]:nth-child(8) { --reveal-delay: 120ms; }
.stagger-fast [data-reveal]:nth-child(n+9) { --reveal-delay: 130ms; }

/* ========================================
   跑马灯动画 - 匹配原始设计
   ======================================== */
.marquee-track {
    position: absolute;
    width: 300%;
    overflow: hidden;
    pointer-events: none;
}

.marquee-track.rotate {
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.marquee-track.rotate-top {
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.marquee-track.rotate-outline {
    top: 84%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.marquee-track .marquee-inner {
    display: flex;
    width: 200%;
}

.marquee-inner.animate {
    animation: marquee 40s linear infinite;
}

.marquee-inner.animate-reverse {
    animation: marquee-reverse 40s linear infinite;
}

.marquee-segment {
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 6rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ========================================
   Read More リンク - 下線展開 + 矢印スライド
   ======================================== */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 6px;
    transition: opacity 0.3s ease;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.read-more-link:hover::after {
    width: 100%;
}

.read-more-link:hover {
    opacity: 1 !important;
}

.read-more-link span {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.read-more-link:hover span {
    transform: translateX(6px);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* ========================================
   グローバルヘッダー - Refined Design
   ======================================== */
#global-header {
    will-change: transform;
}

/* ヘッダー背景 - シンプル＆確実 */
.global-header-bg {
    background: rgba(15, 47, 142, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* お問い合わせボタン - 日本企業サイト定番の枠線ボタン（contact-btn-glow はキャッシュ対策で両方対応） */
#global-header .contact-btn-glow,
#global-header .contact-btn-header {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#global-header .contact-btn-glow:hover,
#global-header .contact-btn-header:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

#global-header .contact-btn-header:active,
#global-header .contact-btn-glow:active {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ナビリンク - 下線アニメーション */
#global-header nav > a,
#global-header nav > .gh-dropdown > a {
    position: relative;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#global-header nav > a::after,
#global-header nav > .gh-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #34b6d9, rgba(255, 255, 255, 0.9));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#global-header nav > a:hover::after,
#global-header nav > .gh-dropdown:hover > a::after {
    width: 100%;
}

#global-header nav > a:hover,
#global-header nav > .gh-dropdown:hover > a {
    color: #fff;
}

/* Logo ホバー時の滑らかなスケール */
.global-header-logo img {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-menu-toggle .menu-bar {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.global-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.global-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.global-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reduced Motion - ヘッダー */
@media (prefers-reduced-motion: reduce) {
    #global-header,
    .global-header-bg {
        transition-duration: 0.01ms;
    }
    .global-header-logo img,
    #global-header nav > a::after,
    .global-menu-toggle .menu-bar {
        transition: none;
    }
}

/* ========================================
   菜单样式
   ======================================== */
#sidebar-menu.menu-open {
    visibility: visible;
}

#sidebar-menu.menu-open .sidebar-overlay {
    opacity: 0.5;
}

#sidebar-menu.menu-open .sidebar-panel {
    transform: translateX(0);
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   サイドメニュー — 日本企業サイト風 リファインデザイン
   White background / hairline borders / restrained navy
   ======================================== */

/* パネル基本：オフホワイト背景 + 微細グレインを思わせる白 */
.sidebar-panel {
    background: #ffffff;
    color: #1a1a1a;
}

/* 上部ヘッダー：ロゴ + CLOSE */
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
}
.sidebar-logo-link { display: inline-flex; align-items: center; }
.sidebar-logo-img {
    height: 44px;
    width: auto;
    display: block;
    /* Use logo-dark.png (the brand multi-color version designed for white BG) — no filter */
}
.sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 8px 4px;
    cursor: pointer;
    color: #555;
    transition: color .2s ease;
}
.sidebar-close-btn:hover { color: #00205B; }
.sidebar-close-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}
.sidebar-close-icon span {
    position: absolute;
    top: 50%; left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform-origin: center;
}
.sidebar-close-icon span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.sidebar-close-icon span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }
.sidebar-close-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

/* 本体スクロール領域 */
.sidebar-body {
    padding: 8px 0 24px;
    height: calc(100vh - 73px);
    overflow-y: auto;
    background: #ffffff;
    /* iOS safe area */
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.sidebar-nav { padding: 8px 0; }

/* ============= メニュー項目 ============= */
.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    transition: background-color .2s ease, color .2s ease;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
/* Remove old slide-in animation noise — keep the menu calm */
#sidebar-menu.menu-open .sidebar-menu-item { opacity: 1; transform: none; animation: none; }
.sidebar-menu-group { opacity: 1; transform: none; }
#sidebar-menu.menu-open .sidebar-menu-group { animation: none; }

.sidebar-menu-item:hover { background: #fafafa; color: #00205B; }
.sidebar-menu-item:active { background: #f4f4f4; }

/* 当前页面高亮 — 控えめに左の細い線で示す */
.sidebar-menu-item.sidebar-menu-active {
    background: #fafafa;
    color: #00205B;
}
.sidebar-menu-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00205B;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.sidebar-menu-item.sidebar-menu-active .sidebar-menu-indicator { transform: scaleY(1); }

/* 内容領域：英タイトル + 和タイトルを縦並び */
.sidebar-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sidebar-menu-title {
    font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #999;
    text-transform: uppercase;
    line-height: 1;
    transition: color .2s ease;
}
.sidebar-menu-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    line-height: 1.3;
    transition: color .2s ease;
}
.sidebar-menu-item:hover .sidebar-menu-title,
.sidebar-menu-item.sidebar-menu-active .sidebar-menu-title { color: #00205B; }
.sidebar-menu-item:hover .sidebar-menu-subtitle,
.sidebar-menu-item.sidebar-menu-active .sidebar-menu-subtitle { color: #00205B; }

/* 矢印アイコン — グレーで控えめ、ホバー時のみ navy に */
.sidebar-menu-arrow {
    width: 14px;
    height: 14px;
    color: #c0c0c0;
    flex-shrink: 0;
    transition: color .2s ease, transform .2s ease;
}
.sidebar-menu-item:hover .sidebar-menu-arrow {
    color: #00205B;
    transform: translateX(2px);
}

/* ============= 子メニュー ============= */
.sidebar-menu-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.sidebar-menu-chevron {
    width: 14px;
    height: 14px;
    color: #c0c0c0;
    transition: transform .25s ease, color .2s ease;
    flex-shrink: 0;
}
.sidebar-menu-group.sidebar-submenu-open .sidebar-menu-chevron,
.sidebar-menu-toggle:hover .sidebar-menu-chevron { color: #00205B; }
.sidebar-menu-group.sidebar-submenu-open .sidebar-menu-chevron { transform: rotate(180deg); }

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-menu-group.sidebar-submenu-open .sidebar-submenu { max-height: 600px; }

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 48px;
    color: #555;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background-color .15s ease, color .15s ease;
    border-bottom: 1px solid #ededed;
    position: relative;
}
.sidebar-submenu-item:last-child { border-bottom: 0; }
.sidebar-submenu-item:hover { color: #00205B; background: #f3f3f3; }
.sidebar-submenu-item.sidebar-sub-active {
    color: #00205B;
    font-weight: 600;
    background: #fff;
}

/* ドット → 細い縦線スタイルに */
.sidebar-submenu-dot {
    width: 6px;
    height: 1px;
    border-radius: 0;
    background: #c0c0c0;
    flex-shrink: 0;
    transition: background-color .15s ease, width .15s ease;
}
.sidebar-submenu-item:hover .sidebar-submenu-dot,
.sidebar-submenu-item.sidebar-sub-active .sidebar-submenu-dot {
    background: #00205B;
    width: 12px;
    box-shadow: none;
}

/* ============= お問い合わせカード ============= */
.sidebar-contact-card {
    margin: 32px 24px 0;
    padding: 28px 22px 26px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    text-align: center;
}
.sidebar-contact-eng {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #999;
    margin: 0 0 4px;
}
.sidebar-contact-jpn {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 18px;
}
.sidebar-contact-tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #00205B;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    transition: opacity .2s ease;
}
.sidebar-contact-tel:hover { opacity: 0.75; }
.sidebar-contact-tel svg { width: 22px; height: 22px; flex-shrink: 0; }
.sidebar-contact-hours {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    color: #777;
    margin: 0 0 18px;
    letter-spacing: 0.04em;
}
.sidebar-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: #00205B;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color .2s ease;
    border: 1px solid #00205B;
}
.sidebar-contact-btn:hover { background: #001640; border-color: #001640; }
.sidebar-contact-btn svg { width: 16px; height: 16px; }

/* ============= フッター ============= */
.sidebar-foot {
    margin: 28px 24px 0;
    padding-top: 20px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sidebar-foot-copy {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10.5px;
    color: #999;
    margin: 0;
    letter-spacing: 0.04em;
}
.sidebar-foot-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.sidebar-foot-link:hover { color: #00205B; border-bottom-color: #00205B; }

/* ============= タブレット 768px+ : 中央寄せパネル ============= */
@media (min-width: 768px) {
    .sidebar-top { padding: 24px 36px; }
    .sidebar-menu-item { padding: 22px 36px; }
    .sidebar-submenu-item { padding-left: 64px; padding-right: 36px; }
    .sidebar-contact-card { margin-left: 36px; margin-right: 36px; }
    .sidebar-foot { margin-left: 36px; margin-right: 36px; }
}


/* ========================================
   グローバルヘッダー ドロップダウン - Premium Clean Style
   ======================================== */
.gh-dropdown {
    position: relative;
}

/* hover 感知エリア拡張 - 間隙を完全にカバー */
.gh-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 28px;
}

.gh-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.06);
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 下拉指示三角 */
.gh-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px 0 0 0;
    z-index: 1;
}

/* 非 hover 時: 少し遅延して閉じる（マウスの一瞬離脱を許容） */
.gh-dropdown .gh-dropdown-menu {
    transition-delay: 80ms;
}

.gh-dropdown:hover .gh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.gh-dropdown:hover > a {
    color: #fff;
}

.gh-dropdown:hover > a svg {
    opacity: 1;
    transform: rotate(180deg);
}

.gh-dropdown > a svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.gh-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
    position: relative;
}

.gh-dropdown-item + .gh-dropdown-item {
    margin-top: 2px;
}

.gh-dropdown-item:hover {
    color: var(--delta-blue);
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    padding-left: 16px;
    box-shadow: none;
}

.gh-dropdown-item:hover span:first-child {
    transform: scale(1.05);
}

/* メガメニュー - Shopify Premium style */
.gh-mega-menu {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
}

/* メガメニュー三角隐藏（メガメニューは幅広のため） */
.gh-mega-menu::before {
    display: none;
}

/* メガメニュー画像カード */
.gh-mega-col {
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.gh-mega-col:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    transform: translateY(-2px);
}

.gh-mega-col:hover img {
    transform: scale(1.06);
}

/* 全画面メニューパネル */
#sidebar-menu .sidebar-panel {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   产品幻灯片
   ======================================== */
.product-slide {
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
    display: none;
    /* 触摸优化 */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.product-slide.is-active {
    opacity: 1;
    display: block;
}

@media (min-width: 768px) {
    .product-slide {
        display: auto;
        position: absolute;
    }

    .product-slide.is-active {
        display: auto;
    }
}

.product-slide .slide-image,
.product-slide .slide-content {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-slide.is-active .slide-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 50ms;
}

.product-slide.is-active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 100ms;
}

/* 幻灯片容器触摸优化 */
.product-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* 添加视觉反馈 - 移动端点击时减少高亮 */
.product-slide a {
    -webkit-tap-highlight-color: transparent;
}

.slide-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
    /* 触摸优化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* 增大触摸区域 - 使用伪元素而不是padding/margin */
    position: relative;
}

.slide-indicator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

.slide-indicator:hover {
    opacity: 0.8;
}

@media (hover: hover) {
    .slide-indicator:hover {
        transform: scale(1.2);
    }
}

/* ========================================
   滚动到顶部按钮
   ======================================== */
#scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:active {
    transform: scale(0.95);
}

/* ========================================
   视频容器
   ======================================== */
video {
    object-fit: cover;
}

/* ========================================
   响应式容器
   ======================================== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* ========================================
   工具类
   ======================================== */
.aspect-video {
    aspect-ratio: 16 / 9;
}

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

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

/* ========================================
   过渡效果
   ======================================== */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ========================================
   辅助功能
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   加载动画
   ======================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   渐变背景
   ======================================== */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #00BCD4 0%, #2196F3 100%);
}

/* ========================================
   分页导航
   ======================================== */
/* ul.page-numbers 容器 */
ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
}

ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 个别页码项（a / span） */
a.page-numbers,
span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

span.page-numbers.current {
    background-color: #0f2f8e;
    color: #ffffff;
    border: none;
}

a.page-numbers {
    background-color: #ffffff;
    color: #0f2f8e;
    border: 1px solid #e5e7eb;
}

a.page-numbers:hover {
    background-color: #0f2f8e;
    color: #ffffff;
    border-color: #0f2f8e;
}

span.page-numbers.dots {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: auto;
}

a.page-numbers.prev,
a.page-numbers.next {
    font-size: 1.25rem;
}

/* ========================================
   新闻列表项样式
   ======================================== */
.news-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 0;
    transition: background-color 0.2s ease;
}

.news-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 新闻标签样式 */
.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    min-width: 90px;
}

.news-tag-info {
    background-color: #D8D8D9;
    color: #333333;
}

.news-tag-recruit {
    background-color: #C5D86D;
    color: #333333;
}

.news-tag-event {
    background-color: #7EB6D9;
    color: #333333;
}

.news-tag-media {
    background-color: #E8A87C;
    color: #333333;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: #6b7280;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #00205B;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #374151;
}

/* ========================================
   Logo 样式
   ======================================== */
.custom-logo-link img,
.custom-logo {
    height: 56px !important;
    width: auto !important;
    max-height: none !important;
}

@media (min-width: 768px) {
    .custom-logo-link img,
    .custom-logo {
        height: 96px !important;
    }
}

/* ========================================
   導入事例 (Case Study) 页面样式
   ======================================== */

/* 案例卡片样式 */
.case-study-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
}

.case-study-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.case-study-card .card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.case-study-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover .card-image img {
    transform: scale(1.1);
}

/* 案例标签样式 */
.case-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}

.case-tag-product {
    background-color: rgba(6, 182, 212, 0.9);
    color: white;
}

.case-tag-industry {
    background-color: #f1f5f9;
    color: #475569;
}

/* 案例详情页区块样式 */
.case-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .case-section {
        padding: 2rem;
    }
}

.case-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* 客户评价引用框 */
.case-quote {
    position: relative;
    background: linear-gradient(135deg, #00205B 0%, #0E2F8E 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    color: white;
}

.case-quote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.case-quote blockquote {
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* 规格表样式 */
.case-specs {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #475569;
    white-space: pre-line;
}

/* 案例筛选器样式 */
.case-filter-select {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.case-filter-select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* 案例画廊缩略图 */
.case-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.case-thumb:hover,
.case-thumb.active {
    border-color: #06b6d4;
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 案例 Lightbox */
.case-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.case-lightbox.active {
    display: flex;
}

.case-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.case-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}.case-lightbox-close:hover {
    color: #06b6d4;
}

/* 行数限制工具类 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 案例相关产品卡片 */
.related-case-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-case-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-case-card img {
    transition: transform 0.5s ease;
}

.related-case-card:hover img {
    transform: scale(1.05);
}

/* CTA 区块渐变背景 */
.case-cta-gradient {
    background: linear-gradient(135deg, #00205B 0%, #0E2F8E 100%);
    position: relative;
    overflow: hidden;
}.case-cta-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 25%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    filter: blur(60px);
}

/* ========================================
   Loading Screen - 页面载入动画
   ======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00205B 0%, #0E2F8E 50%, #1a4fd8 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    position: relative;
}

/* Logo 动画 */
.loading-logo {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: logoReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.loading-logo-img {
    height: 120px;
    width: auto;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 脉冲圆环加载动画 */
.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
}

.spinner-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.spinner-pulse.delay-1 {
    animation-delay: 0.4s;
}

.spinner-pulse.delay-2 {
    animation-delay: 0.8s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
        border-color: rgba(52, 182, 217, 0.8);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: rgba(52, 182, 217, 0);
    }
}

/* 进度条 */
.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 auto 24px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #34b6d9, #fff, #34b6d9);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.15s ease-out;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 加载文字 */
.loading-text {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.6s forwards;
    font-family: 'Gotham', 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* 装饰性背景元素 */
.loading-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loading-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.loading-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 182, 217, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.loading-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.loading-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 182, 217, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 20px); }
    50% { transform: translate(-40px, 0); }
    75% { transform: translate(-20px, -20px); }
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* ========================================
   页面加载状态 - 初始隐藏内容（初回のみ）
   ======================================== */
html:not(.skip-loading) body:not(.page-loaded) #page,
html:not(.skip-loading) body:not(.page-loaded) main {
    opacity: 0;
    pointer-events: none;
}

html:not(.skip-loading) body.page-loaded #page,
html:not(.skip-loading) body.page-loaded main {
    opacity: 1;
    pointer-events: auto;
    animation: pageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 确保 Loading 屏幕始终在最上层 */
.loading-screen {
    pointer-events: auto;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Hero 区域增强入场动画
   ======================================== */
body.page-loaded .hero-text-line1,
body.page-loaded .hero-text-line2,
body.page-loaded .hero-text-line3 {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-loaded .hero-text-line1 {
    animation-delay: 0.3s;
}

body.page-loaded .hero-text-line2 {
    animation-delay: 0.45s;
}

body.page-loaded .hero-text-line3 {
    animation-delay: 0.6s;
}

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

/* Section 标题装饰线动画 - 已移除 */

/* ========================================
   卡片悬停增强效果
   ======================================== */
.product-slide {
    position: relative;
}

.product-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 32, 91, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-slide:hover::before {
    opacity: 1;
}

/* ========================================
   Reduced Motion 支持
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .loading-screen {
        transition-duration: 0.01ms;
    }
    
    .loading-logo,
    .loading-progress,
    .loading-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .spinner-pulse {
        animation: none;
        opacity: 0.5;
    }
    
    .loading-orb {
        animation: none;
    }
    
    body.page-loaded .hero-text-line1,
    body.page-loaded .hero-text-line2,
    body.page-loaded .hero-text-line3 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   移动端优化
   ======================================== */
@media (max-width: 768px) {
    .loading-logo-img {
        height: 88px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 24px;
    }
    
    .loading-progress {
        width: 160px;
    }
    
    .loading-orb.orb-1 {
        width: 250px;
        height: 250px;
    }
    
    .loading-orb.orb-2 {
        width: 180px;
        height: 180px;
    }
    
    .loading-orb.orb-3 {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   Phone Card - 和モダン信頼感
   ======================================== */
.phone-card {
    border: 1px solid rgba(200, 169, 98, 0.28);
    box-shadow:
        0 1px 0 rgba(200, 169, 98, 0.08) inset,
        0 8px 24px -12px rgba(26, 42, 94, 0.18);
    background:
        linear-gradient(180deg, #ffffff 0%, #fdfbf6 100%);
}

/* 二重罫線：金色細線 + 太線（上） */
.phone-card-rule-top {
    height: 4px;
    background:
        linear-gradient(180deg, transparent 0px, transparent 1px, rgba(200, 169, 98, 0.5) 1px, rgba(200, 169, 98, 0.5) 2px, transparent 2px, transparent 3px),
        linear-gradient(90deg, transparent, #C8A962 12%, #b89548 50%, #C8A962 88%, transparent);
    background-size: 100% 100%, 100% 3px;
    background-position: 0 0, 0 bottom;
    background-repeat: no-repeat;
}

.phone-card-rule-bottom {
    height: 4px;
    background:
        linear-gradient(180deg, transparent 0px, transparent 1px, rgba(200, 169, 98, 0.5) 1px, rgba(200, 169, 98, 0.5) 2px, transparent 2px, transparent 3px),
        linear-gradient(90deg, transparent, #C8A962 12%, #b89548 50%, #C8A962 88%, transparent);
    background-size: 100% 100%, 100% 3px;
    background-position: 0 0, 0 top;
    background-repeat: no-repeat;
}

/* タイトル */
.phone-card-title {
    font-family: var(--font-shs, 'Noto Sans JP', sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: #1a2a5e;
    letter-spacing: 0.22em;
    margin: 0;
}

@media (min-width: 768px) {
    .phone-card-title { font-size: 14px; }
}

/* ライブステータスバッジ */
.phone-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-size: 10.5px;
    font-weight: 700;
    color: #047857;
    letter-spacing: 0.08em;
    font-family: var(--font-shs, 'Noto Sans JP', sans-serif);
}

.phone-card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    animation: phone-status-pulse 2s ease-in-out infinite;
}

@keyframes phone-status-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}

/* 営業時間外バリアント */
.phone-card-status.phone-card-status-closed {
    background: rgba(120, 130, 145, 0.08);
    border-color: rgba(120, 130, 145, 0.3);
    color: #5b6573;
}

.phone-card-status-closed .phone-card-status-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
    animation: none;
}

@media (min-width: 768px) {
    .phone-card-status { font-size: 11.5px; padding: 5px 14px; }
}

/* 直通ラベル */
.phone-card-direct {
    text-align: center;
    font-family: var(--font-shs, 'Noto Sans JP', sans-serif);
    font-size: 11px;
    color: #8a7a4a;
    letter-spacing: 0.2em;
    margin: 0 0 4px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .phone-card-direct { font-size: 12.5px; margin-bottom: 6px; }
}

/* 信頼バッジ群 */
.phone-card-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(200, 169, 98, 0.35);
    flex-wrap: wrap;
}

.phone-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-shs, 'Noto Sans JP', sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    color: #4a5566;
    letter-spacing: 0.05em;
}

.phone-card-badge svg {
    width: 13px;
    height: 13px;
    color: #C8A962;
    flex-shrink: 0;
}

.phone-card-badge-divider {
    width: 1px;
    height: 10px;
    background: rgba(200, 169, 98, 0.35);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .phone-card-badges {
        gap: 16px;
        margin-top: 22px;
        padding-top: 18px;
    }
    .phone-card-badge { font-size: 11.5px; gap: 6px; }
    .phone-card-badge svg { width: 15px; height: 15px; }
    .phone-card-badge-divider { height: 12px; }
}

/* 極小画面でバッジが詰まらないように */
@media (max-width: 380px) {
    .phone-card-badges { gap: 8px; }
    .phone-card-badge { font-size: 10px; }
    .phone-card-badge svg { width: 12px; height: 12px; }
    .phone-card-badge-divider { display: none; }
}

/* ========================================
   Mobile Fixed CTA Bar
   ======================================== */
#mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(8, 16, 44, 0.92) 0%, rgba(8, 16, 44, 0.98) 35%, #08102c 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
    padding-top: 0;
}

.cta-bar-tagline {
    margin: 0;
    padding: 6px 12px 4px;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1;
}

.cta-bar-row {
    display: flex;
    gap: 8px;
    padding: 6px 10px 10px;
}

.cta-bar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-shs, 'Noto Sans JP', sans-serif);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.cta-bar-btn:active {
    transform: scale(0.97);
    filter: brightness(0.92);
}

/* 電話ボタン（35%・アウトライン風）*/
.cta-bar-tel {
    flex: 0 0 35%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    font-size: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cta-bar-tel:active {
    background: rgba(255, 255, 255, 0.12);
}

/* お問い合わせボタン（65%・エメラルド）*/
.cta-bar-contact {
    flex: 1;
    background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%);
    font-size: 15px;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 6px 18px rgba(16, 185, 129, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.25);
}

/* メイン CTA 上端の発光ライン（エメラルドグロー） */
.cta-bar-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(167, 243, 208, 0.95) 30%,
        rgba(220, 252, 231, 1) 50%,
        rgba(167, 243, 208, 0.95) 70%,
        transparent 100%
    );
    box-shadow:
        0 0 6px rgba(110, 231, 183, 0.85),
        0 0 14px rgba(52, 211, 153, 0.55);
    pointer-events: none;
    animation: cta-glow-pulse 3.5s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* メイン CTA に微妙なシャイン効果 */
.cta-bar-contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
    animation: cta-shine 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes cta-shine {
    0%, 60% { transform: translateX(-100%); }
    75% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* アイコン円形バッジ */
.cta-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    overflow: hidden;
}

.cta-icon-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
    transform-origin: center;
}

/* メイン CTA 内のバッジは白背景でメリハリ */
.cta-bar-contact .cta-icon-badge {
    background: rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

/* 電話アイコン: 着信風 wiggle（5 秒ごと） */
.cta-icon-phone svg {
    animation: cta-phone-wiggle 5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes cta-phone-wiggle {
    0%, 88%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(-14deg); }
    92% { transform: rotate(12deg); }
    94% { transform: rotate(-10deg); }
    96% { transform: rotate(8deg); }
    98% { transform: rotate(0deg); }
}

/* メールアイコン: 送信スライド（6 秒ごと、やや遅め） */
.cta-icon-mail svg {
    animation: cta-mail-send 6s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes cta-mail-send {
    0%, 85%, 100% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(14px); opacity: 0; }
    90.01% { transform: translateX(-14px); opacity: 0; }
    95% { transform: translateX(0); opacity: 1; }
}

.cta-bar-label {
    line-height: 1;
}

.cta-arrow {
    width: 14px;
    height: 14px;
    color: #fff;
    margin-left: 2px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

/* 画面が極小の時のフォールバック */
@media (max-width: 360px) {
    .cta-bar-row { gap: 6px; padding: 6px 8px 8px; }
    .cta-bar-tel { font-size: 13px; gap: 6px; }
    .cta-bar-contact { font-size: 14px; gap: 6px; }
    .cta-icon-badge { width: 26px; height: 26px; }
    .cta-icon-badge svg { width: 14px; height: 14px; }
    .cta-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-bar-contact::after { animation: none; display: none; }
    .cta-bar-contact::before { animation: none; opacity: 0.85; }
    .cta-icon-phone svg,
    .cta-icon-mail svg { animation: none; }
    .cta-bar-btn { transition: none; }
}

/* ========================================
   Products Section - LED Pixel Background
   ======================================== */
.products-led-bg {
    background-color: #F4F7FE;
    position: relative;
    isolation: isolate;
}

.products-led-pixels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(14, 47, 142, 0.18) 1.1px, transparent 1.4px),
        radial-gradient(circle, rgba(14, 47, 142, 0.08) 1px, transparent 1.3px);
    background-size: 22px 22px, 22px 22px;
    background-position: 0 0, 11px 11px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 55%, transparent 100%);
    opacity: 0.9;
}

.products-led-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.55), transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, rgba(183, 198, 243, 0.35), transparent 75%);
}

.products-led-fade-top,
.products-led-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 90px;
    pointer-events: none;
    z-index: 1;
}

.products-led-fade-top {
    top: 0;
    background: linear-gradient(to bottom, #ffffff, rgba(244, 247, 254, 0));
}

.products-led-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, #ffffff, rgba(244, 247, 254, 0));
}

#products .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .products-led-pixels {
        background-size: 16px 16px, 16px 16px;
        background-position: 0 0, 8px 8px;
    }

    .products-led-fade-top,
    .products-led-fade-bottom {
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-led-pixels {
        opacity: 0.7;
    }
}
