/* =============================================
   1. 共通設定（ロゴ・スライダー・基本）
   ============================================= */
body { font-size: 16px; font-family: 'Helvetica Neue', Arial, sans-serif; margin: 0; }

/* スライダー */
.slider-container { width: 100%; max-width: 1200px; margin: 0 auto; overflow: hidden; position: relative; }
.slider { display: flex; width: 300%; animation: slide-animation 15s infinite; }
.slide { width: 100%; position: relative; }
.slide img { width: 100%; height: auto; display: block; object-fit: cover; }
.slide-text { position: absolute; bottom: 20%; left: 5%; background: rgba(0, 68, 51, 0.8); color: #fff; padding: 10px 20px; font-size: 1.2rem; font-weight: bold; }

@keyframes slide-animation {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-33.33%); }
    66%, 96% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

/* =============================================
   2. 共通ヘッダー（最強の重なり順と隙間解消）
   ============================================= */
.global-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 10000 !important; /* 他のすべての要素より上に表示 */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-group { display: flex; align-items: center; text-decoration: none; color: #333; }
.header-logo img { height: 50px; width: auto; margin-right: 15px; }
.header-shop-name { font-size: 1.2rem; font-weight: bold; letter-spacing: 1px; line-height: 1.2; }
.header-sub-info { display: flex; gap: 10px; font-size: 0.75rem; color: #888; }

.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { text-decoration: none; color: #444; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.header-nav a:hover { color: #27ae60; }

/* 見積もりボタン */
.btn-header-quote { background-color: #1a432e; color: #fff !important; padding: 8px 18px; border-radius: 4px; font-weight: bold; }

/* ドロップダウンメニュー：隙間を埋める橋を架ける */
.nav-item-parent {
    position: relative;
    padding-bottom: 25px; /* 親メニューの下に見えない橋を作る */
    margin-bottom: -25px; /* レイアウト崩れを防ぐための相殺 */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    z-index: 11000 !important;
    border-top: 3px solid #1a432e;
    margin-top: -15px; /* 橋の部分に食い込ませて隙間を完全に埋める */
}

.dropdown-menu li a { padding: 12px 20px; display: block; color: #333; font-size: 0.9rem; text-decoration: none; }
.dropdown-menu li a:hover { background-color: #f8f5f0; color: #1a432e; }

/* PCでホバー時に表示を維持 */
@media (min-width: 1025px) {
    .nav-item-parent:hover .dropdown-menu { display: block !important; opacity: 1; visibility: visible; }
}

/* =============================================
   3. 特殊コンポーネント（Price Table / Video / H1）
   ============================================= */
/* 3本の色違いバーをあしらったH1 */
.h1-triple-bar {
    position: relative;
    padding: 15px 15px 15px 60px;
    font-size: 1.8rem;
    color: #333;
    background-color: #f5c064;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
}
.h1-triple-bar::before {
    content: "";
    position: absolute;
    top: 50%; left: 15px;
    transform: translateY(-50%);
    width: 6px; height: 70%;
    background-color: #004433;
    box-shadow: 14px 0 0 0 #4B0082, 28px 0 0 0 #D2691E;
}

/* ビデオセクション（強制収束版） */
.zen-video-box {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    overflow: hidden !important;
    background-color: #000;
    margin: 30px 0 !important;
    display: block !important;
}
.zen-video-box video.bg-video {
    position: absolute !important;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    object-fit: cover !important;
    z-index: 1 !important;
}
.zen-video-box .video-overlay {
    position: absolute !important;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; z-index: 10;
    text-align: center;
    pointer-events: none;
}
.zen-video-box .video-overlay h2 { color: #fff; text-shadow: 0 0 15px #000; font-size: 1.3rem; }

/* =============================================
   4. スマホ対応（レスポンシブ）
   ============================================= */
@media screen and (max-width: 1024px) {
    .mobile-menu-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column;
        padding: 20px; border-top: 1px solid #eee;
    }
    .header-nav.active { display: flex; }
    .nav-item-parent { width: 100%; padding-bottom: 0; margin-bottom: 0; }
    .dropdown-menu { position: static; box-shadow: none; width: 100%; background: #fcfcfc; margin-top: 0; display: none; }
}

@media screen and (min-width: 768px) {
    .zen-video-box { height: 500px !important; }
    .zen-video-box .video-overlay h2 { font-size: 2.8rem !important; }
}

.highlight-box {
    background: #f0fdf4;
    padding: 25px;
    border-left: 5px solid #27ae60; /* var(--accent-color)の色を明示 */
    margin: 40px auto;
    max-width: 900px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.highlight-box h3 { margin-top: 0; color: #1a432e; }
.highlight-box p { font-size: 1rem; color: #555; }
.ask-button {
    display: inline-block;
    padding: 12px 25px;
    background: #27ae60; /* var(--accent-color) */
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}
.ask-button:hover { background: #219150; }

.tatami-master-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1a432e; /* 畳のサイトに合わせた深い緑 */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-align: center;
}

.tatami-master-btn:hover {
    background-color: #2a6346;
}

.tatami-master-btn {
    display: inline-block !important; /* ブロックとして表示 */
    padding: 12px 24px !important;
    background-color: #1a432e !important;
    color: #ffffff !important;        /* 文字を強制的に白に */
    text-decoration: none !important; /* 下線を強制的に消す */
    border-radius: 5px !important;
    font-weight: bold !important;
    transition: background 0.3s ease !important;
    text-align: center !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

.tatami-master-btn:hover {
    background-color: #2a6346 !important;
    color: #ffffff !important;        /* ホバー時も白を維持 */
    text-decoration: none !important;
}