@charset "UTF-8";

/* ============================================
   1. 共通スタイル (Tailwindで補えない部分)
   ============================================ */

/* 背景スライドショー (固定) */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; }

/* 下層ページ用：背景を少し暗くするオーバーレイ */
.overlay-dark {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

/* コンテンツカード (浮き上がり効果) */
.floating-card {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* ふわっと出現アニメーション */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* テキスト装飾系 */
.text-shadow-hard {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}
.leading-extra-loose {
    line-height: 2.5;
}

/* ヘッダーの出し入れアニメーション */
.header-visible {
    transform: translateY(0);
}
.header-hidden {
    transform: translateY(-100%);
}

/* 下層ページ用ヘッダーエリア */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* お探しの車は…セクション用 (上下均等余白) */
.search-section {
    padding: 80px 0;
}

/* ============================================
   2. レンタカーページ専用スタイル
   ============================================ */

/* 料金計算の図 */
.price-calc-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #006400;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    flex-wrap: wrap;
    text-align: center;
}
.price-box-item {
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 140px;
}
.price-plus, .price-equal {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 料金表 */
.rental-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
}
.rental-table th, 
.rental-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}
/* ヘッダー行 */
.rental-table thead th {
    background-color: #d1fae5;
    color: #006400;
    font-weight: bold;
    border-bottom: 2px solid #006400;
}
/* 車種クラスの行 */
.class-header {
    background-color: #000;
    color: #fff;
    text-align: left;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}
.car-image-cell img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.price-cell {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 保険・補償エリア */
.insurance-section {
    background-color: #e6fffa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #b2f5ea;
}
.insurance-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.insurance-table th {
    background: #555;
    color: #fff;
    padding: 10px;
    border: 1px solid #333;
}
.insurance-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}
.red-text {
    color: #e53e3e;
    font-weight: bold;
}

/* 免責補償制度の強調ボックス */
.cdw-box {
    background: #fff;
    border: 2px solid #006400;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
    gap: 15px;
}
.cdw-price {
    background: #006400;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
}
.cdw-arrow {
    font-size: 2rem;
    color: #006400;
}
.cdw-result {
    font-size: 2rem;
    color: #e53e3e;
    font-weight: bold;
    border: 2px solid #e53e3e;
    padding: 10px 20px;
    border-radius: 10px;
    transform: rotate(-3deg);
}

/* NOCテーブル */
.noc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.noc-table th, .noc-table td {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
}
.noc-table th {
    background: #ddd;
    font-weight: bold;
}

/* ============================================
   3. ナビゲーション ドロップダウンメニュー
   ============================================ */

/* ドロップダウンのコンテナ */
.dropdown-menu {
    position: absolute;
    top: 100%; /* 親要素の真下に配置 */
    
    /* 文字の左端を揃えるための調整 */
    /* リンク内のpadding-left(20px)を打ち消すため、左に20pxずらします */
    left: -20px; 
    transform: none; 
    
    /* 【修正】もっと上に (-25pxからさらに-30pxへ変更) */
    margin-top: -30px; 
    
    background-color: #fff;
    min-width: 180px; /* 幅の設定（ご指定の180pxを維持） */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    
    /* アニメーション初期状態 */
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    
    text-align: left;
}

/* ホバー時の表示状態 */
.nav-item-service:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    max-height: 300px;
    padding: 0.5rem 0;
    /* 【重要修正】ホバー時も位置をキープ (-15pxから-30pxへ修正) */
    margin-top: -30px; 
}

/* ドロップダウン内のリンク */
.dropdown-item {
    display: block;
    /* ここの左padding(20px)分、上の .dropdown-menu で left: -20px しています */
    padding: 12px 20px;
    color: #4b5563; /* gray-600 */
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f0fdf4; /* 薄い緑 */
    color: #006400; /* brand-green */
}

/* 親メニューとドロップダウンの間の「隙間」を埋めるための不可視エリア */
.nav-item-service {
    position: relative;
    /* 【修正】メニューが離れないよう、判定エリアを少し下に広げる */
    padding-bottom: 30px; 
    margin-bottom: -30px; 
}

/* ============================================
   4. トップへ戻るボタン (追加)
   ============================================ */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #006400; /* brand-green */
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    
    /* 初期状態：非表示 */
    opacity: 0;
    visibility: hidden;
    
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background-color: #004d00;
    transform: translateY(-3px);
}

/* JavaScriptで付与されるクラス */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}