/* =========================================
   1. 共通変数 (Variables)
   ========================================= */
:root {
    --brand-primary: #1a2a44; /* ドーミーイン濃紺 */
    --brand-accent: #c5a065;  /* ラグジュアリーゴールド */
    --brand-red: #bf0000;     /* 楽天/温泉レッド */
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-gray: #666666;
}

/* =========================================
   2. 基本設定 (Base & Layout)
   ========================================= */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* フッターを最下部に押し下げる */
}

a {
    transition: all 0.3s ease;
}

/* ナビゲーションバー */
.navbar-custom {
    background-color: var(--brand-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
}
.nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--brand-accent) !important;
}

/* フッター */
footer {
    background-color: #111;
    color: #aaa;
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
}
footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   3. 共通コンポーネント (Components)
   ========================================= */

/* ブランドバッジ (共通化) */
.badge-brand, .brand-badge {
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    /* 詳細ページとトップページで微調整 */
    padding: 0.5em 0.8em; 
    font-size: 0.85rem;
}
/* インデックスページ用の微調整 */
.brand-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ブランド別カラー */
.badge-dormy, .badge-standard { background-color: #00355f; }
.badge-premium { background-color: #333333; }
.badge-express { background-color: #fd7e14; }
.badge-global { background-color: #20c997; }
.badge-nono { background-color: #8d6e63; }

/* 楽天予約ボタン（共通デザイン） */
.btn-rakuten {
    background: linear-gradient(135deg, #bf0000 0%, #a00000 100%);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(191, 0, 0, 0.3);
    transition: all 0.3s;
    border: none;
}
.btn-rakuten:hover {
    background: linear-gradient(135deg, #d00000 0%, #b00000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(191, 0, 0, 0.4);
}

/* カードデザイン (汎用) */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    background: white;
    margin-bottom: 2rem;
    overflow: hidden;
}
.card-header-clean {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
}
.card-header-clean i {
    margin-right: 12px;
    color: var(--brand-accent);
    font-size: 1.2rem;
}

/* スペックタグ */
.badge-custom {
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 500;
    border: 1px solid #dee2e6;
    padding: 0.5em 0.8em;
    margin-right: 4px;
    margin-bottom: 6px;
    display: inline-block;
    border-radius: 4px;
}

/* =========================================
   4. トップページ (Index Page)
   ========================================= */
.hotel-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 42, 68, 0.15);
}

.onsen-badge {
    font-size: 0.75rem;
    color: #fff;
    background: #e63946;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.price-action-area {
    margin-top: auto;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 15px 20px;
    transition: background 0.2s;
    position: relative;
    z-index: 2;
}
.hotel-card:hover .price-action-area {
    background: #fff5f5;
    border-top-color: #ffdce0;
}

.rakuten-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.price-value {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand-red);
    line-height: 1;
}
.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.hotel-card:hover .action-icon {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
    transform: translateX(5px);
}
.btn-search {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: white;
    font-weight: bold;
    padding: 1rem;
    font-size: 1.1rem;
}
.btn-search:hover {
    background-color: #b08d55;
    border-color: #b08d55;
    color: white;
}

/* =========================================
   5. ホテル詳細ページ (Detail Page)
   ========================================= */
.hero-section {
    background-color: var(--brand-primary);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    position: relative;
}
.hero-section::after {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    background: var(--brand-accent);
    position: absolute;
    bottom: 0;
    left: 0;
}

.breadcrumb-custom a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}
.breadcrumb-custom a:hover { opacity: 1; }
.breadcrumb-custom .active { color: #fff; opacity: 1; font-weight: bold; }

.spec-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.spec-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}
.spec-value {
    font-weight: bold;
    color: #1a2a44;
    font-size: 0.95rem;
}

/* サービスカード */
.service-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
}
.service-icon-box {
    width: 48px;
    height: 48px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

/* カレンダー/タブ */
.nav-pills .nav-link {
    color: #1a2a44 !important;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin-left: 5px;
    font-size: 0.9rem;
}
.nav-pills .nav-link.active {
    background-color: #1a2a44 !important;
    color: #fff !important;
    border-color: #1a2a44;
}
.cal-nav-btn {
    background: none;
    border: 1px solid #dee2e6;
    color: #1a2a44;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cal-nav-btn:hover { background-color: #f1f3f5; }

/* 他サイト予約ボタン */
.btn-white {
    background-color: #fff;
    transition: all 0.2s;
}
.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

/* =========================================
   6. 記事・ブログ用スタイル (Article)
   ========================================= */
.article-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    word-wrap: break-word;
}
.article-content h2 {
    position: relative;
    padding: 0.5em 0.7em;
    margin: 2em 0 1em;
    background: #f8f9fa;
    border-left: 6px solid #1a3a5a;
    font-size: 1.4em;
    border-radius: 0 4px 4px 0;
}
.article-content img {
    display: block;
    max-width: 80%;
    width: auto;
    height: auto;
    margin: 1.5em 0 0.2em 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .article-content img { max-width: 95%; }
}
.article-content small {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}
.article-content th, .article-content td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: center;
}
.article-content th {
    background-color: #1a3a5a;
    color: #ffffff;
    font-weight: bold;
}
.article-content tr:nth-child(even) { background-color: #fcfcfc; }
.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em;
    background: #f1f3f5;
    border-radius: 4px;
    color: #555;
    font-style: italic;
    font-size: 0.95em;
}
.article-content ul {
    background: #fdf6e3;
    padding: 1.5em 2em;
    border-radius: 8px;
    list-style-type: '✔ ';
    margin: 1.5em 0;
}
.article-content li { margin-bottom: 0.5em; }
.article-content hr {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 2.5em 0;
}

/* タイムライン（スケジュール） */
.timeline-container {
    border-left: 4px solid #1a3a5a;
    margin-left: 10px;
    padding-left: 20px;
    margin-top: 2em;
    margin-bottom: 2em;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5em;
}
.timeline-time {
    display: inline-block;
    background: #1a3a5a;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.timeline-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0.2em 0 0.5em 0;
    display: flex;
    align-items: center;
}
.timeline-icon {
    font-size: 1.4em;
    margin-right: 0.5em;
}
.timeline-desc {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0.5em;
}
.timeline-point {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9em;
    color: #5d4037;
    margin-top: 10px;
}
.timeline-point strong {
    color: #ff6f00;
    display: block;
    margin-bottom: 4px;
}

/* CVボタン（予約・検索誘導用） */
.cv-area {
    margin: 3em 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ccc;
}
.cv-text {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: block;
}
.btn-cv {
    display: inline-block;
    background-color: #bf0000;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-cv:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}

/* --- トマレバ風ブログパーツ --- */
.booking-widget {
    margin: 2em 0;
    border: 2px solid #eee;
    padding: 1.5rem;
    background: #fff;
}

.booking-widget-inner {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 画像エリア */
.booking-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.no-image {
    width: 120px;
    height: 120px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
    border-radius: 8px;
}

/* 情報エリア */
.booking-info {
    flex: 1;
}

.booking-hotel-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a2a44;
}

.booking-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ボタン群 */
.booking-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-shop {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}
.btn-shop:hover {
    opacity: 0.8;
    color: #fff;
    transform: translateY(-1px);
}

/* 各ショップの色（トマレバ準拠イメージ） */
.btn-rakuten-shop { background-color: #bf0000; }
.btn-jalan { background-color: #ff5e00; } /* じゃらんオレンジ */
.btn-yahoo { background-color: #ff0033; } /* Yahoo赤 */
.btn-ikyu { background-color: #1e3a8a; } /* 一休ブルー */
.btn-jtb { background-color: #cc0000; }  /* JTBレッド */

/* スマホ対応 */
@media (max-width: 600px) {
    .booking-widget-inner {
        flex-direction: column;
        text-align: center;
    }
    .booking-buttons {
        justify-content: center;
    }
    .btn-shop {
        width: 100%; /* スマホなら縦積みでもOK */
        text-align: center;
    }
}

/* --- スペック情報ウィジェット --- */
.modern-spec-widget {
    margin: 2.5em 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    font-family: "Noto Sans JP", sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* セクション区切り */
.section-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* 基本情報エリアの背景色を少し変えてメリハリをつける */
.bg-light-section {
    background-color: #f9f9fa;
}

/* セクションの大見出し */
.section-main-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a44; /* ブランドネイビー */
    border-left: 4px solid #c5a065; /* ブランドゴールド */
    padding-left: 12px;
    line-height: 1.4;
}
.section-main-title.text-secondary {
    border-left-color: #6c757d;
    color: #333;
}
.text-gold { color: #c5a065; }

/* --- 内部コンテンツ（以前と同じパーツ） --- */
.spec-block {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}
.spec-block.no-border {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 各パーツの見出し */
.modern-spec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a2a44;
    color: #fff;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.8rem;
}
.icon-box.warning { background: #b08d55; }
.icon-box.success { background: #4a6fa5; }

.badge-simple-alert {
    font-size: 0.75rem;
    color: #d9534f;
    border: 1px solid #d9534f;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}

/* お風呂グリッド */
.bath-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bath-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.bath-label {
    min-width: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
}
.label-men { color: #00355f; background: #eef4fa; }
.label-women { color: #a50e0e; background: #fbeeee; }
.bath-details { flex: 1; }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.spec-tag {
    font-size: 0.8rem;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    padding: 3px 8px;
    border-radius: 4px;
}
.bath-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* 朝食ボックス */
.breakfast-box {
    background: #fdfaf5;
    border-left: 4px solid #b08d55;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.specialty-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #b08d55;
    text-transform: uppercase;
}
.specialty-name {
    font-weight: bold;
    color: #333;
}

/* サービスグリッド */
.service-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.service-modern-item {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}
.svc-icon { font-size: 1.2rem; color: #ccc; }
.svc-info { display: flex; flex-direction: column; }
.svc-name { font-size: 0.75rem; color: #888; font-weight: bold; }
.svc-time { font-size: 0.9rem; font-weight: bold; color: #333; }

/* 基本情報リスト */
.info-list { margin: 0; }
.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
    width: 30%;
    min-width: 100px;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}
.info-row dd {
    width: 70%;
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}
.map-link {
    font-size: 0.8rem;
    margin-left: 10px;
    color: #1a2a44;
    text-decoration: none;
    border: 1px solid #1a2a44;
    padding: 2px 6px;
    border-radius: 4px;
}
.map-link:hover {
    background: #1a2a44;
    color: #fff;
}

/* スマホ対応 */
@media (max-width: 576px) {
    .info-row { flex-direction: column; }
    .info-row dt { width: 100%; margin-bottom: 4px; font-size: 0.8rem; }
    .info-row dd { width: 100%; }
}