@charset "UTF-8";

/* ==========================================================================
   1. 基本設定 & 変数 (Color Palette)
   ========================================================================== */
:root {
    /* サイト共通カラー */
    --main-blue: #4FC3F7;
    --deep-blue: #0277BD;
    --pastel-blue: #E1F5FE;
    --pastel-pink: #FCE4EC;
    --accent-pink: #F06292;
    --pastel-orange: #FFF3E0;
    --accent-orange: #FFB74D;
    
    /* テキスト・背景 */
    --text-color: #455A64;
    --bg-color: #FAFAFA;
    --white: #ffffff;
    
    /* 機能色 */
    --warning-red: #D32F2F;
    --warning-bg: #FFEBEE;
    
    /* フォント */
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    background: var(--bg-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

a { text-decoration: none; color: var(--deep-blue); transition: 0.3s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; vertical-align: bottom; border-radius: 8px; }

/* ==========================================================================
   2. ヘッダー & コンテナ
   ========================================================================== */
header {
    background: var(--white);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
header a {
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    overflow: hidden;
}

@media (max-width: 768px) {
    .container { padding: 20px 15px; margin: 10px auto; }
}

/* ==========================================================================
   3. ナビゲーション (パンくず & 言語ボタン)
   ========================================================================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 0; }
.breadcrumb a { color: var(--main-blue); text-decoration: none; }

.lang-btn-top {
    font-size: 0.85rem;
    padding: 6px 18px;
    border: 1px solid var(--deep-blue);
    color: var(--deep-blue);
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    background: var(--white);
    transition: 0.3s;
    display: inline-block;
}
.lang-btn-top:hover { background: var(--deep-blue); color: var(--white); }

/* ==========================================================================
   4. 記事ヘッダー & 見出しスタイル
   ========================================================================== */
.pr-mark {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-bottom: 5px;
}

h1 {
    font-size: 1.5rem;
    border-bottom: 3px solid var(--main-blue);
    padding-bottom: 10px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--deep-blue);
}

h2 {
    background: var(--pastel-blue);
    padding: 15px;
    border-left: 5px solid var(--main-blue);
    margin-top: 50px;
    border-radius: 0 8px 8px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    line-height: 1.4;
    scroll-margin-top: 80px;
}

h3 {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    scroll-margin-top: 80px;
}

h4 {
    font-size: 1.05rem;
    margin-top: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-orange);
}

/* メタ情報 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 20px 0;
    font-size: 0.85rem;
    color: #78909C;
}
.meta-location {
    color: var(--deep-blue);
    font-weight: bold;
    background: var(--pastel-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 画像エリア */
.spot-img {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}
.spot-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   5. 著者カード (Author Card)
   ========================================================================== */
.author-card {
    background: var(--white);
    border: 1px solid var(--pastel-blue);
    border-radius: 10px;
    padding: 20px;
    margin: 0 0 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.author-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.author-info { flex: 1; }
.author-label {
    font-size: 0.7rem;
    color: var(--white);
    background: #90A4AE;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: bold;
}
.author-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-bottom: 3px;
    display: block;
}
.author-title {
    font-size: 0.8rem;
    color: var(--accent-pink);
    margin-bottom: 10px;
    font-weight: bold;
    display: block;
}
.author-desc {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}
.author-link {
    font-size: 0.85rem;
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--deep-blue);
}

/* ==========================================================================
   6. 目次 (TOC Box)
   ========================================================================== */
.toc-box {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}
.toc-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
    color: var(--text-color);
    text-align: center;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 500;
    display: block;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--accent-pink);
    padding-left: 5px;
}

/* ==========================================================================
   7. ホテルアフィリエイトカード (Hotel Card) - 最新版
   ========================================================================== */
.hotel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

@media (min-width: 600px) {
    .hotel-card { flex-direction: row; }
}

.hotel-card:hover { transform: translateY(-3px); }

/* ホテル画像 */
.hotel-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.8; /* JSで読み込まれるまで少し薄くしておく演出 */
    transition: opacity 0.5s;
}

@media (min-width: 600px) {
    .hotel-card-img { width: 40%; height: auto; }
}

/* カード右側（コンテンツ） */
.hotel-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hotel-card-label {
    display: inline-block;
    background: #FF5252;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
    font-weight: bold;
}

.hotel-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a3a5a; /* deep-blueの代わりに一般的な濃い青 */
    margin-bottom: 5px; /* 少し縮めてAPI情報を入れやすく */
}

/* ★追加：楽天APIデータエリア */
.hotel-api-data {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-height: 1.2rem; /* データが来る前のガタつき防止 */
    flex-wrap: wrap;
}

.rakuten-auto-review {
    color: #f8b400;
    font-weight: bold;
    font-size: 0.9rem;
}

.rakuten-auto-price {
    color: #E53935;
    font-weight: bold;
    font-size: 1rem;
}

.hotel-card-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ★修正：ボタンコンテナ（2つ〜3つのボタンを並べる） */
.hotel-btn-container {
    display: flex;
    gap: 8px;
    margin-top: auto; /* コンテンツが短くてもボタンを下に揃える */
    flex-wrap: wrap;
}

.hotel-btn {
    flex: 1; /* ★ボタンを均等な幅にする */
    min-width: 120px; /* スマホでボタンが細くなりすぎるのを防止 */
    background: #FF5252;
    color: white !important;
    text-align: center;
    padding: 10px 5px; /* 上下10px、左右は自動 */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-btn:hover { background: #E53935; }

/* Klookボタン用の色 */
.hotel-btn.klook {
    background: #ff9800;
}
.hotel-btn.klook:hover {
    background: #f57c00;
}

/* ==========================================================================
   8. 記事リンクカード (Article Card)
   ========================================================================== */
.article-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 30px 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card-thumb {
    width: 120px;
    height: auto;
    object-fit: cover;
}
.card-content {
    padding: 15px;
    flex: 1;
}
.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: bold;
}
.article-card .card-title {
    font-size: 1rem;
    margin: 5px 0;
    line-height: 1.4;
    color: var(--deep-blue);
}
.card-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 600px) {
    .article-card { flex-direction: column; }
    .card-thumb { width: 100%; height: 150px; }
}

/* ==========================================================================
   9. その他パーツ (Table, Banner, Footer)
   ========================================================================== */
/* テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}
.info-table th, .info-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.info-table th {
    background-color: var(--pastel-blue);
    color: var(--deep-blue);
    width: 30%;
    font-weight: bold;
}
.comparison-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { border: 1px solid #ddd; padding: 12px; text-align: left; vertical-align: middle; }
.comparison-table th { background-color: var(--pastel-blue); color: var(--deep-blue); font-weight: bold; text-align: center; white-space: nowrap; }
.comparison-table tr:nth-child(even) { background-color: #f9f9f9; }

/* アプリ誘導バナー */
.app-banner {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--white) 100%);
    border: 2px solid var(--main-blue);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.2);
}
.app-banner h3 {
    border: none;
    justify-content: center;
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--deep-blue);
}
.btn-app {
    background: var(--accent-orange);
    color: var(--white);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(255, 183, 77, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-app:hover {
    background: #FFA726;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 183, 77, 0.4);
}

/* ブログ村 */
.blogmura-area {
    text-align: center;
    margin: 50px 0 20px;
    padding: 20px;
    background: #F5F5F5;
    border-radius: 8px;
}
.blog-ranking-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* 強調テキスト */
strong {
    background: linear-gradient(transparent 60%, #FFF176 60%);
    font-weight: bold;
}
.marker-yellow { background: linear-gradient(transparent 60%, #fff9c4 60%); font-weight: bold; }
.marker-pink { background: linear-gradient(transparent 60%, #ffcdd2 60%); font-weight: bold; }

/* フッター */
footer {
    background: var(--main-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
}
footer a { color: var(--white); text-decoration: underline; margin: 0 10px; }
/* ==========================================================================
   10. モデルコース・タイムライン (Model Course Timeline)
   ========================================================================== */
.timeline-container {
    margin: 20px 0 40px 0;
    padding: 0;
    position: relative;
}

/* タイムラインのアイテム（1つの工程） */
.timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* 左側の時間表示 */
.timeline-time {
    width: 60px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--deep-blue);
    text-align: right;
    padding-right: 15px;
    padding-top: 2px;
    line-height: 1.4;
}

/* 真ん中の線と丸 */
.timeline-marker {
    position: relative;
    width: 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* 縦線 */
.timeline-marker::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: -5px; /* 次の丸まで繋げる */
    width: 2px;
    background-color: #ddd;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::before {
    display: none; /* 最後は線を消す */
}

/* 丸（ポイント） */
.timeline-point {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border: 3px solid var(--main-blue);
    border-radius: 50%;
    z-index: 1;
    margin-top: 5px;
}

/* 移動アイコン（車など）の場合のスタイル */
.timeline-item.move .timeline-point {
    background-color: #ddd;
    border-color: #ddd;
    width: 8px;
    height: 8px;
    margin-left: 2px;
}

/* 右側の内容エリア */
.timeline-content {
    flex: 1;
    padding-left: 15px;
    padding-bottom: 10px;
}

.timeline-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
    line-height: 1.4;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* タイムライン内の画像 */
.timeline-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* タイムライン内の記事カード調整 */
.timeline-content .article-card {
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* スマホ表示調整 */
@media (max-width: 480px) {
    .timeline-time {
        width: 45px;
        font-size: 0.8rem;
        padding-right: 10px;
    }
    .timeline-title {
        font-size: 1rem;
    }
}