:root {
    --bg-white: #ffffff;
    --bg-beige: #f5f2ed;
    --accent-color: #4a5d4e;
    --border-color: rgba(0,0,0,0.05);
    --side-width: 82px;
    --header-height: 80px;
    /* 修正点：スライドのオーバーレイの濃さ（0.0?1.0で調整可能） */
    --hero-overlay-opacity: 0.1;
    --link-beige: #8e8883;
    --service-card-bg-custom: #2d4a22; 
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}
button:focus, a:focus {
    outline: none !important;
}

a, button, div, span, svg {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-beige);
    margin: 0;
    overflow-x: hidden;
}

.hero-title {
        font-size: 2.5rem !important;
        line-height: 1.6 !important;
    }

.sec-title {
    font-size: 1.5rem;
    font-weight: 200;
}

.card-color {
    color: #c9c0b1;
}

/* --- Loader Animation --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    user-select: none;
    padding: 20px;

    /* Firefox/Safariでのローダー要素自体の滑らかな描画を支援 */
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

#loader.loaded {
    transform: translateY(-100%);
}

.loader-phrase {
    display: flex;
    flex-direction: row;
    font-size: 2.2rem;
    font-weight: 200;
    color: #222;
    letter-spacing: 0.5em;
    text-align: center;
    line-height: 1.6;
}

/* * 解決点: Firefoxでのローダーロゴ画像フェードイン完了時の「ブッ」というブレを【完全に解消】
 * * 1. 動作切り替え時のブレ（ガタつき）の原因となる、キーフレーム内の中間変化点（10%）を完全に撤廃しました。
 * 2. 0% から 100% まで一貫して美しい減速を続ける、減速ベジェ曲線 cubic-bezier(0.16, 1, 0.3, 1) を適用。
 * 3. 終了座標（100%）に「Z軸立体値 0.1px」と「Y軸極微小端数 0.02px」を指定し、
 * Firefoxが画像描画をピクセルに吸着させようとする動きを完全にシャットアウト。GPU合成モードのまま綺麗に静止させます。
 */
.loader-logo-img {
    max-width: 450px; /* デフォルトサイズ */
    height: auto;
    opacity: 0;
    
    transform: translate3d(0, 30px, 0.1px) rotate(0.001deg);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;

    outline: 1px solid transparent;
    
    /* 2.2秒の継ぎ目のない完全減速アニメーション */
    animation: logoFadeIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes logoFadeIn {
    0% { 
        opacity: 0; 
        transform: translate3d(0, 30px, 0.1px) rotate(0.001deg); 
    }
    100% { 
        opacity: 0.99; /* 完全に1.0にせずGPUレイヤーをロック */
        transform: translate3d(0, 0.02px, 0.1px) rotate(0.001deg); 
    }
}

@media (max-width: 768px) {
    .loader-phrase {
        font-size: 1.2rem;
        letter-spacing: 0.3em;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 280px;
    }

    /* モバイルサイズにおけるロゴ画像も同じバグ対策・平滑シングルベジェイージングを適用 */
    .loader-logo-img {
        max-width: 280px; /* デフォルトサイズ */
        height: auto;
        opacity: 0;
        transform: translate3d(0, 30px, 0.1px) rotate(0.001deg);
        will-change: transform, opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform-style: preserve-3d;
        
        outline: 1px solid transparent;
        
        animation: logoFadeIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0.3s;
    }
}

/* * 解決点: テキスト(1文字ずつ)フェードインも同様に、キーフレーム変化点をなくし、
 * 静止位置の端数3D化によって、最後の収まり具合を100%シルキーに整えます。
 */
.loader-phrase span {
    display: inline-block;
    opacity: 0;
    
    transform: translate3d(0, 20px, 0.1px) rotate(0.001deg);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;

    outline: 1px solid transparent;
    
    /* 1.8秒の継ぎ目のない完全減速アニメーション */
    animation: charFadeIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charFadeIn {
    0% { 
        opacity: 0; 
        transform: translate3d(0, 20px, 0.1px) rotate(0.001deg); 
    }
    100% { 
        opacity: 0.99; /* 完全に1.0にせずGPUレイヤーを維持 */
        transform: translate3d(0, 0.02px, 0.1px) rotate(0.001deg); 
    }
}

body.menu-open {
    overflow: hidden;
}

/* --- Layout Frame & Sidebar Styles --- */
.fixed-frame {
    position: fixed;
    z-index: 1100;
    background-color: var(--bg-beige);
}

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 1300;
    background-color: var(--bg-beige);
    border-bottom: 1px solid var(--border-color);
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1301;
    user-select: none;
    outline: none !important;
}
.site-logo:hover {
    opacity: 0.7;
}

.logo-icon-svg {
    width: 42px;
    height: 42px;
    color: #444;
    display: block;
    pointer-events: none;
}

.header-nav {
    top: 0;
    left: 0;
    right: var(--side-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    user-select: none;
}

.left-bar {
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--side-width);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-right: 1px solid var(--border-color);
    user-select: none;
}

.desktop-logo-container {
    height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background-color: var(--bg-beige);
}

.corporate-text-vertical {
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: #444;
    font-weight: 500;
    margin-top: 120px;
}

.left-bar .sns-icons-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
}

.right-bar {
    top: 0;
    bottom: 0;
    right: 0;
    width: var(--side-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-top: 0;
    user-select: none;
}

.vertical-text-container {
    margin-top: calc(var(--header-height) + 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-text {
    writing-mode: vertical-rl; letter-spacing: 0.4em; font-size: 0.7rem;
    margin-bottom: 40px; color: #444; text-decoration: none; transition: 0.4s;
    outline: none !important;
}
.vertical-text:hover { color: var(--accent-color); transform: translateY(-5px); }

/* --- Back to Top Button --- */
.btn-totop-container {
    position: fixed;
    bottom: 30px;
    right: 18px;
    width: 44px;
    height: 44px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-totop-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-totop {
    width: 100%;
    height: 100%;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #666;
    background: transparent;
    box-shadow: none !important;
    padding: 0;
    outline: none !important;
}
.btn-totop:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-5px);
}
.btn-totop i {
    font-size: 0.9rem;
    font-weight: 900;
}

@media (max-width: 1024px) {

		.hero-title {
        font-size: 1.7rem !important;
        line-height: 1.6 !important;
    }

    .btn-totop-container {
        right: 20px;
        bottom: 20px;
    }
    .btn-totop {
        width: 48px;
        height: 48px;
        border: 2px solid #ccc;
        background: transparent;
    }
}

/* --- Navigation & Megamenu --- */
.nav-item-has-mega { position: static; }
.mega-menu {
    position: absolute;
    top: var(--header-height);
    left: var(--side-width);
    width: calc(100% - var(--side-width) * 2);
    background-color: var(--bg-beige);
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 999;
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}
.nav-item-has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-img-wrapper { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 12px; }
.mega-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.mega-item:hover img { transform: scale(1.05); }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    margin-left: var(--side-width);
    margin-right: var(--side-width);
    margin-top: var(--header-height);
    overflow: hidden;
    background: #000;
    user-select: none;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Firefox/Safari向け 3D空間化ハック */
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.slide.active { opacity: 1; z-index: 3; }

/* * scale()を完全に廃止。3D空間内でZ軸を手前に移動させることで、
 * ブラウザに画像の再ラスタライズ（縮尺計算）をさせず、ビデオカードに100%描画処理を渡すハック。
 */
.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: 70% 50%;
    z-index: 1;

    /* Firefoxでのサブピクセルに吸着する挙動（ガタつき）を強制的に解除し、なめらかなアンチエイリアスを適用させる */
    transform: translate3d(0, 0, 0) rotate(0.01deg);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    outline: 1px solid transparent;
    filter: blur(0px);
}

.slide-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--hero-overlay-opacity));
    z-index: 2;
}

.slide.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--hero-overlay-opacity));
    z-index: 2;
}

/* 描画スレッドでの滑らかな進行 */
.slide.active .slide-bg {
    animation: zoom-animation 20s linear forwards;
}

/* * Z軸（視点方向）に100px近づけることで、等倍表示（scale1.0）の状態から
 * 画像の再レイアウトを挟まず、極めてヌルヌルとした拡大効果（カメラが近づく動き）を実現します。
 */
@keyframes zoom-animation {
    from {
        transform: translate3d(0, 0, 0) rotate(0.01deg);
    }
    to {
        transform: translate3d(0, 0, 100px) rotate(0.01deg);
    }
}

.slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 10; color: #fff; text-align: center; width: 100%;
    max-width: 900px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.8s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease 1s, transform 1.5s ease 1s;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }
}

/* --- Common UI Components --- */
.nav-link-custom {
    font-size: 0.85rem; letter-spacing: 0.1em; color: #333; text-decoration: none;
    margin: 0 15px; font-weight: 400; cursor: pointer; transition: 0.3s;
    position: relative; padding: 10px 0;
    outline: none !important;
}
.nav-link-custom::after { content: ""; position: absolute; bottom: 5px; left: 0; width: 0; height: 1px; background: var(--accent-color); transition: 0.3s; }
.nav-link-custom:hover::after { width: 100%; }

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; letter-spacing: 0.2em;
    position: relative; display: inline-block; padding-bottom: 1.5rem;
}
.section-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 1px; background: var(--accent-color); }

/* --- Hamburger Menu Fixed --- */
#menu-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1301;
    background: none;
    border: none;
    padding: 0;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
}
.hamburger-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center; /* 中央を基準に変形 */
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 11px; } /* 正確な中央値 */
.hamburger-line:nth-child(3) { bottom: 0; }

/* Open State Transitions */
.menu-open #menu-toggle .hamburger-line:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-open #menu-toggle .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open #menu-toggle .hamburger-line:nth-child(3) { bottom: 12px; transform: rotate(-45deg); }

/* --- Mobile Overlay --- */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background-color: var(--bg-beige); z-index: 1200;
    padding: calc(var(--header-height) + 20px) 20px 40px;
    opacity: 0; visibility: hidden; transition: 0.4s ease;
    overflow-y: auto;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%;
}

.menu-thumb-item {
    text-decoration: none; color: #333; display: flex; flex-direction: column; gap: 8px;
}
.menu-thumb-img {
    aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 4px;
    background-color: #ddd;
}
.menu-thumb-label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-align: center; }

.works-accordion-wrapper {
    grid-column: span 1;
}

.works-trigger-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.works-chevron-mini {
    position: absolute;
    right: 8px;
    top: 8px;
    background: rgba(255,255,255,0.9);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #333;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-sub-menu-content {
    max-height: 0; overflow: hidden; transition: max-height 0.5s ease;
    background: rgba(0,0,0,0.015); border-radius: 4px;
    position: relative;
}

.sub-menu-container {
    grid-column: span 2;
}

.works-accordion-wrapper.active ~ .sub-menu-container .mobile-sub-menu-content {
    max-height: 1200px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.works-accordion-wrapper.active .works-chevron-mini { transform: rotate(180deg); }

.sub-link-list { list-style: none; padding: 10px 0; margin: 0; }
.sub-link-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.03);
    text-decoration: none; color: #555; font-size: 0.85rem;
}
.sub-link-item:last-child { border-bottom: none; }
.sub-link-item span.en { font-size: 0.65rem; color: #aaa; letter-spacing: 0.1em; }

.fixed-frame { position: fixed; z-index: 1100; background-color: var(--bg-beige); }
.left-bar { top: 0; bottom: 0; left: 0; width: var(--side-width); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; }
.right-bar { top: 0; bottom: 0; right: 0; width: var(--side-width); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; }
.header-nav { top: 0; left: var(--side-width); right: var(--side-width); height: var(--header-height); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 40px; }

@media (max-width: 1024px) {
    .header-nav, .left-bar, .right-bar { display: none; }
    .mobile-header { display: flex; }
}

/* セクション・プレースホルダ */
.section-padding { padding: 100px 0; }
.hero { height: 80vh; background: #eee; display: flex; align-items: center; justify-content: center; margin-top: var(--header-height); }

/* --- Scroll Container --- */
.scroll-content {
    margin-left: var(--side-width);
    margin-right: var(--side-width);
    background: #fff;
    position: relative;
    z-index: 10;
}

.service-intro-container { padding-top: 80px; padding-bottom: 30px; }
.service-intro-title-v { writing-mode: vertical-rl; font-size: 2.25rem; letter-spacing: 0.3em; font-weight: 300; color: #333; line-height: 1; margin: 0; user-select: none; }
.service-intro-text { font-size: 1rem; line-height: 1.8; color: #666; margin-bottom: 2rem; }
.img-layout-main { width: 100%; height: auto; aspect-ratio: 10 / 12; object-fit: cover; }
.img-layout-sub-inline { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 20px 20px 0px var(--bg-beige); }

@media (max-width: 1024px) {
    :root { --side-width: 0px; --header-height: 70px; }
    .header-nav, .left-bar, .right-bar { display: none; }
    .mobile-header { display: flex; }
    .hero-section, .scroll-content { margin-left: 0; margin-right: 0; }
    .mega-menu { left: 0; width: 100%; border-left: none; }
.service-intro-title-v { writing-mode: vertical-rl; font-size: 1.8rem; letter-spacing: 0.3em; font-weight: 300; color: #333; line-height: 1; margin: 0; user-select: none; }

}

.news-item { border-bottom: 1px solid #eee; padding: 24px 0; display: flex; align-items: center; gap: 30px; text-decoration: none; color: inherit; transition: 0.3s; outline: none !important; }
.news-item:hover { opacity: 0.6; }
.news-date { font-size: 0.75rem; color: #999; letter-spacing: 0.1em; min-width: 100px; user-select: none; }
.news-title { font-size: 0.9rem; color: #333; font-weight: 400; }
.company-info-row { border-bottom: 1px solid #f0f0f0; padding: 25px 0; display: flex; }
.company-info-label { width: 140px; font-size: 0.75rem; color: #999; letter-spacing: 0.1em; flex-shrink: 0; user-select: none; }
.company-info-value { font-size: 0.85rem; color: #333; line-height: 1.8; }

@media (max-width: 767px) {
    .news-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .company-info-row { flex-direction: column; gap: 5px; }
    .service-intro-title-v { writing-mode: horizontal-tb; margin-bottom: 2rem; }
    .img-layout-sub-inline { width: 100%; box-shadow: none; }
}

/* * 解決点: スクロール監視フェードイン（reveal）で下から滑らかにせり上がる挙動の復活
 * translate3dを指定してGPUスレッドによる超平滑スライドアップ（下から上への移動）を実現します。
 */
.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0); /* 下方向へあらかじめ40pxずらし、3D空間化 */
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0); /* 画面内（元位置）にヒューと綺麗に戻す */
}
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

.showcase-slider-section {
    padding: 50px 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}
.slider-outer-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.slider-wrapper {
    display: flex;
    align-items: center;
    will-change: transform;
}
.slider-item {
    flex: 0 0 800px;
    margin: 0 40px;
    opacity: 0.3;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.slider-item.active {
    opacity: 1;
    transform: scale(1);
}
.slider-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 20;
    pointer-events: none;
}
.nav-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    color: #333;
}
.nav-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Parallax Section */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Service Card Background Styles - Refined Minimal Design */
.service-card {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    overflow: hidden;
    border: none;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.custom-bg {
    background-image: none !important;
    background-color: var(--service-card-bg-custom);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card.custom-bg2 {
    background-image: none !important;
    background-color: #c9c0b1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card.custom-bg3 {
    background-image: none !important;
    background-color: #6fa559;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card:hover::before {

}

.service-card .service-icon,
.service-card h3,
.service-card p {
    color: white !important;
    text-shadow: none;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
}

.service-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.img-zoom-wrap { overflow: hidden; width: 100%; height: 100%; border-radius: 4px; }
.img-zoom-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.img-zoom-wrap:hover img { transform: scale(1.08); }

@media (max-width: 1024px) {
    .slider-item { flex: 0 0 80%; margin: 0 10px; }
    .slider-item img { height: 350px; }
    .nav-btn { width: 45px; height: 45px; }
}
@media (max-width: 768px) {
    .slider-item { flex: 0 0 90%; }
    .slider-item img { height: 250px; }
    .showcase-slider-section { padding: 60px 0; }
}

/* --- Reveal Animation Styles 文字アニメ --- */
.reveal_txt {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal_txt.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}