/* 🍭 キャンディポップ＆キャッチーなトレンディデザイン */
:root {
    --primary-color: #ff6b81;   /* ベリーピンク */
    --secondary-color: #2ed573; /* 爽快ピスタチオグリーン */
    --accent-color: #ffa502;    /* ハニーマリーゴールド */
    --bg-light: #fff9f1;       /* ミルクバニラ（温かみのある背景） */
    --text-color: #2f3542;     /* チャコールソフト */
    --radius-pop: 20px;         /* 丸みのある可愛い角丸 */
    --border-pop: 3px solid #2f3542; /* クッキリ太枠線 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Maru Gothic ProN", "Maru Gothic", "Comic Sans MS", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 60px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ポートフォリオ用デモバー */
.demo-top-bar {
    background-color: #2f3542;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}
.demo-top-bar strong {
    color: var(--accent-color);
}

/* ヘッダー */
header {
    background: #ffffff;
    border-bottom: var(--border-pop);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 8px 0px rgba(0,0,0,0.05);
}
.logo-area h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
}
.logo-area h1 span {
    color: var(--primary-color);
    background: #ffeaa7;
    padding: 2px 10px;
    border-radius: 10px;
    margin-right: 5px;
    display: inline-block;
    transform: rotate(-2deg);
}
.subtitle {
    font-size: 0.9rem;
    color: #747d8c;
    font-weight: bold;
    margin-top: 5px;
}

/* イントロメッセージ */
.intro-box {
    background: #ffffff;
    border: var(--border-pop);
    border-radius: var(--radius-pop);
    padding: 30px;
    margin: 40px 0;
    box-shadow: 8px 8px 0px var(--text-color);
    text-align: center;
}
.intro-box h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 🗺️ 円形路線図セクション */
.map-section {
    background: #ffffff;
    border: var(--border-pop);
    border-radius: var(--radius-pop);
    padding: 50px 20px;
    box-shadow: 8px 8px 0px var(--text-color);
    margin-bottom: 40px;
}
.map-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}
.map-title span {
    border-bottom: 4px dashed var(--secondary-color);
    padding-bottom: 5px;
}

/* 横スクロール可能なコンテナ（スマホ対策） */
.map-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

/* 🔄 円形路線図のベース */
.yamanote-circle-wrapper {
    position: relative;
    width: 650px;
    height: 650px;
    margin: 0 auto;
    background: #ffffff;
}

/* 緑の環状線レール */
.yamanote-rail-line {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 550px;
    height: 550px;
    border: 12px solid var(--secondary-color);
    border-style: double; /* 二重線で線路感を演出 */
    border-width: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(46, 213, 115, 0.15);
}

/* 中心に浮かぶロゴマークスペース */
.circle-center-logo {
    position: absolute;
    top: 225px;
    left: 225px;
    width: 200px;
    height: 200px;
    background: #fff9f1;
    border: var(--border-pop);
    border-radius: 50%;
    box-shadow: 6px 6px 0px var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    z-index: 10;
}

/* 🚉 駅ピンの絶対配置スタイル（三角関数による配置） */
.station-node {
    position: absolute;
    width: 100px;
    height: 44px;
    margin-left: -50px; /* 中心合わせ */
    margin-top: -22px;  /* 中心合わせ */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.station-link {
    display: block;
    width: 100%;
    padding: 6px 4px;
    background: #ffffff;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 900;
    font-size: 0.75rem;
    text-align: center;
    box-shadow: 3px 3px 0px var(--text-color);
    white-space: nowrap;
    transition: all 0.1s ease;
}
.station-link:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-color);
}

/* 実装済みの5大駅 */
.node-active .station-link {
    background: #ffeaa7;
    border-width: 3px;
    font-size: 0.8rem;
}
.node-active .station-link:hover {
    background: var(--primary-color);
    color: white;
}

/* 新着ブログエリア */
.update-section {
    margin-top: 50px;
}
.section-pop-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
    background: var(--secondary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 12px;
    border: var(--border-pop);
    box-shadow: 4px 4px 0px var(--text-color);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.blog-card {
    background: white;
    border: var(--border-pop);
    border-radius: var(--radius-pop);
    overflow: hidden;
    box-shadow: 5px 5px 0px var(--text-color);
}
.blog-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: var(--border-pop);
}
.blog-body {
    padding: 20px;
}
.blog-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}
.blog-title {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 🚉 下層：駅詳細ページ */
.station-hero {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: var(--border-pop);
    margin-bottom: 40px;
    box-shadow: inset 0 -8px 0 rgba(0,0,0,0.1);
}
.station-hero h2 {
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 3px 3px 0px var(--text-color);
}
.station-hero p {
    font-weight: bold;
    margin-top: 5px;
    background: rgba(0,0,0,0.15);
    display: inline-block;
    padding: 3px 15px;
    border-radius: 20px;
}

.back-home-btn {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    background: #ffffff;
    border: var(--border-pop);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 3px 3px 0px var(--text-color);
}
.back-home-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--text-color);
}

/* スポット紹介カード */
.spot-box {
    background: #ffffff;
    border: var(--border-pop);
    border-radius: var(--radius-pop);
    margin-bottom: 45px;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--text-color);
}
.spot-header-tag {
    padding: 10px 20px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ffffff;
    border-bottom: var(--border-pop);
}
.tag-meisho { background-color: var(--primary-color); }
.tag-gourmet { background-color: var(--accent-color); }
.tag-omiyage { background-color: #38ef7d; }
.tag-sanpo { background-color: #00ced1; }

.spot-body {
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
}
.spot-img-container { flex: 1; }
.spot-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: var(--border-pop);
    border-radius: 15px;
    box-shadow: 4px 4px 0px var(--text-color);
}
.spot-desc { flex: 1.2; }
.spot-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

/* 🚧 準備中ページ */
.not-found-box {
    background: #ffffff;
    border: var(--border-pop);
    border-radius: var(--radius-pop);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 8px 8px 0px var(--text-color);
    margin: 40px auto;
    max-width: 600px;
}
.train-illustration {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 1.5s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: var(--border-pop);
    font-weight: bold;
}

@media (max-width: 768px) {
    .spot-body { flex-direction: column; }
    .spot-img { height: 180px; }
}
/* ==========================================
   microCMSパターンB：もっと見るボタン
   ========================================== */
#gourmet-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* ボタンを中央に配置 */
    gap: 20px;
}

#gourmet-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px; /* カード同士の間隔 */
}

.more-btn {
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #2f3542;
    background-color: #ffeaa7; /* ポップなイエロー */
    border: 3px solid #2f3542; /* 特徴的な太枠 */
    border-radius: 12px;
    box-shadow: 4px 4px 0px #2f3542; /* ネオブロータリズムの影 */
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

/* ボタンをホバーした時の可愛い動き */
.more-btn:hover {
    transform: translateY(2px);
    box-shadow: 2px 2px 0px #2f3542;
    background-color: #ffd32a;
}

.more-btn:active {
    transform: translateY(4px);
    box-shadow: 0px 0px 0px #2f3542;
}
/* ==========================================
   📸 microCMSから届く画像のレイアウト崩れ対策
   ========================================== */

/* グルメコンテナ内の画像コンテナのサイズを固定 */
#gourmet-container .spot-img-container {
    width: 100%;
    max-width: 300px; /* 手書き時と同じ横幅に固定 */
    height: 180px;    /* 高さを一律で固定 */
    border: 3px solid #2f3542;
    border-radius: 12px;
    overflow: hidden; /* 枠からはみ出た部分をカット */
    flex-shrink: 0;   /* スマホ画面等で画像が潰れるのを防ぐ */
}

/* 中身の画像をどんな比率のものでも綺麗にフィットさせる魔法 */
#gourmet-container .spot-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を維持したまま、枠いっぱいにトリミング表示 */
    object-position: center; /* 画像の中心を基準にする */
    border: none; /* 親要素に線を引いたので、画像自体の線は消す */
}

/* スマホなどの縦並び画面になった時の調整 */
@media (max-width: 600px) {
    #gourmet-container .spot-img-container {
        max-width: 100%; /* スマホでは横幅いっぱいに広げる */
        height: 200px;   /* 少し高さを出すと見栄えが良いです */
    }
}
/* ==========================================
   📝 本文（リッチエディタ）の中に貼られた画像のはみ出し対策
   ========================================== */

/* 本文内の画像が枠からはみ出るのを防ぎ、自動で綺麗なサイズにする */
#gourmet-container .spot-desc img {
    max-width: 100%;    /* 親要素の白い枠からは絶対に右にはみ出さない */
    height: auto;       /* 縦横比を完全に維持したまま縮小する */
    display: block;
    margin: 15px auto;  /* 画像の上下に少し隙間を作り、中央に配置する */
    border-radius: 8px; /* 画像の角を少し丸くしてサイトの雰囲気に合わせる */
    border: 2px solid #2f3542; /* 写真にも可愛い細い枠線をつける */
}

/* ==========================================
   📄 本文アコーディオン（続きをよむ）のスタイル
   ========================================== */

/* 通常時は3行だけ見せて、それ以降は非表示にする */
.text-clamp-box {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* ここで見せる行数を指定 */
    line-clamp: 3; /* これを追加 */
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

/* 「続きをよむ」が押されたら制限を解除して全開にする */
.text-clamp-box.is-open {
    display: block;
    overflow: visible;
    line-clamp: none;
    -webkit-line-clamp: none;
}

/* 続きをよむボタンの可愛いデザイン */
.read-more-text-btn {
    background: none;
    border: none;
    color: #ff6b81; /* ポップなピンク */
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 5px;
    transition: all 0.2s ease;
}

.read-more-text-btn:hover {
    color: #2f3542;
    text-decoration: underline; /* ホバーで下線 */
}