@charset "UTF-8";

/* --- Hero Section --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* 全画面 */
    overflow: hidden;
    background: #000;
}
.hero-slider.sub_pages {
    height: 50vh; /* 全画面 */
    min-height: 250px;
    max-height: 450px;
}
.hero-slider.article_pages {
    height: 60vh; /* 全画面 */
    min-height: 250px;
}
.hero-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease; z-index: 0;
}
.hero-item.active { opacity: 1; z-index: 1; }
.hero-item img, .hero-item video {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.85; /* 画像を少し暗く */
}
.hero-overlay {
    /* グラデーションで文字を見やすく */
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 90%;
}
.hero-title h1 {
    font-size: 5rem; /* 巨大な文字 */
    margin: 0;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.sub_pages .hero-title h1, .article_pages .hero-title h1 {
    font-size: 3rem; /* 巨大な文字 */
    padding-top: 5rem;
}
.article_pages .hero-title h1 {
    font-size: 2.9rem; /* 巨大な文字 */
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 20px;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
@media screen and (max-width: 768px) {
    .hero-slider.article_pages {
        height: 70vh; /* 全画面 */
        min-height: 250px;
    }
    .sub_pages .hero-title h1, .article_pages .hero-title h1 {
        font-size: 2.7rem; /* 巨大な文字 */
        padding-top: 5rem;
    }
}
@media screen and (max-width: 438px) {
    .hero-slider.article_pages {
        height: 75vh; /* 全画面 */
        min-height: 250px;
        max-height: 80vh;
    }
    .sub_pages .hero-title h1, .article_pages .hero-title h1 {
        font-size: 2.2rem; /* 巨大な文字 */
        padding-top: 4.3rem;
    }
}

/* --- Intro Section (New) --- */
.intro-section {
    padding: 100px 5%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}
.btn-rust {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-rust);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 2px;
}
.btn-rust:hover { background: #a04e00; color: #fff; }

/* --- Gallery (Insta-like) -> "Adventures" --- */
.gallery-section {
    padding: 50px 5%;
    background: #fff;
}
.section-head {
    text-align: center;
    margin-bottom: 60px;
}
.section-head h2 {
    font-size: 2.5rem;
    color: var(--accent-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-head h2::after {
    content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--accent-rust);
}
.section-head p {
    font-family: var(--font-body);
    font-style: italic;
    color: #888;
    margin-top: 20px;
}


/* --- Mosaic Gallery (Random Grid) --- */
.masonry-grid {
    display: grid;
    /* PC: 画面幅に合わせて自動で列数を計算。隙間なく埋める */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px; /* PCでの基準の高さ */
    gap: 0; /* ★隙間をなくす */
    grid-auto-flow: dense; /* 隙間を自動で埋める */
    background-color: #fde9d2;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #fff; /* ★画像同士がくっつきすぎないよう極細の白線を入れる（お好みで削除可） */
}
/* PC用サイズ定義 */
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.big  { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block; /* 画像下の余白消し */
}
/* PCのみホバーで拡大 */
@media (hover: hover) {
    .gallery-item:hover img { transform: scale(1.05); }
    .gallery-item:hover .gallery-overlay { opacity: 1; }
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 文字を見やすく */
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: 0.3s ease;
    text-align: center;
    pointer-events: none; /* ★重要: これが無いとスマホでタップ判定が邪魔されることがある */
}
.gallery-overlay p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
/* --- Mobile Responsive (Gallery Fix) --- */
@media (max-width: 768px) {
    /* 重要: 既存コードの末尾にある `grid-template-columns: 1fr` を
      ここで上書きして2カラムに戻します。
    */
    .masonry-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* 強制的に2列 */
        grid-auto-rows: 150px; /* スマホ用に少し高さを抑える */
        gap: 0;
        grid-auto-flow: dense;
    }
    /* 重要: 以前のCSSにある「全て span 1 !important」を打ち消します */
    .gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    /* --- スマホでの漫画風コマ割り定義 --- */
    /* 横長: 2列またぎ（横いっぱい） */
    .gallery-item.wide {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }
    /* 縦長: 1列幅で高さ2倍（縦に長い） */
    .gallery-item.tall {
        grid-column: span 1 !important;
        grid-row: span 2 !important;
    }
    /* 特大: 2列幅で高さ2倍（正方形の巨大版） */
    .gallery-item.big {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }
    /* フィラーや標準: 1x1 */
    .gallery-item:not(.wide):not(.tall):not(.big) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}
/* --- Gallery Modal (New!) --- */
.gallery-modal {
    display: none; /* 初期状態は非表示 */
    position: fixed; z-index: 2000; /* ナビより上 */
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.9); /* 暗い背景 */
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-modal.show {
    display: flex; 
    opacity: 1;
    box-sizing: border-box;
}
.gallery-modal-content {
    background: #fffdf5; /* チケットと同じ紙っぽい色 */
    padding: 15px 15px 30px 15px; /* 下を広めにとってポラロイド風に */
    max-width: 800px; width: 100%;
    max-height: 90vh;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9); transition: transform 0.3s ease;
    overflow-y: auto; /* コンテンツが縦に長い場合スクロール */
    text-align: center;
}
.gallery-modal.show .gallery-modal-content {
    transform: scale(1);
}
.modal-img-wrapper {
    width: 100%;
    background: #000;
    margin-bottom: 20px;
}
.modal-img-wrapper img {
    width: 100%; height: auto; display: block;
    max-height: 70vh; object-fit: contain;
}
.modal-caption {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
    padding: 0 10px;
    border-left: 3px solid var(--accent-rust); /* アクセントカラーのライン */
    text-align: left;
    white-space: pre-wrap; /* 改行を反映 */
}
.close-modal {
    position: absolute;
    top: 1px; right: 1px;
    width: 40px; height: 40px;
    background: var(--accent-rust);
    color: #fff;
    border-radius: 50%;
    text-align: center; line-height: 40px;
    font-size: 24px; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    z-index: 10;
}
.close-modal:hover {
    background: var(--accent-dark); transform: rotate(90deg);
}



/* --- Blog (Journal) --- */
.latest-blog {
    padding: 100px 5%;
    background: var(--bg-color);
}
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.t-blog-card {
    display: block;
    background: transparent; /* カードっぽくしない */
}
.t-blog-thumb {
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 2px;
}
.t-blog-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.t-blog-card:hover .t-blog-thumb img { transform: scale(1.05); }

.t-blog-info { text-align: center; }
.t-blog-date {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--accent-rust);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.t-blog-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 15px;
    transition: 0.3s;
}
.t-blog-card:hover .t-blog-title { color: var(--accent-rust); }


/* --- JOURNAL (Blog List) Design --- */
.journal-page-header {
    background: #1a1a1a; padding: 150px 0 80px; text-align: center; color: #fff;
}
.journal-page-header h1 { color: #fff; font-size: 3rem; }
.journal-page-header p { color: #888; font-style: italic; }

.journal-container {
    max-width: 1200px; margin: 0 auto; padding: 80px 5%;
}
.journal-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 50px;
}
.journal-card {
    display: block; transition: 0.3s;
}
.journal-thumb {
    height: 220px; overflow: hidden; position: relative; margin-bottom: 20px;
}
.journal-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.journal-card:hover .journal-thumb img { transform: scale(1.1); }
.journal-meta {
    font-family: var(--font-head); font-size: 0.8rem; color: var(--accent-rust); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em;
}
.journal-title {
    font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; color: var(--accent-dark); transition: 0.3s;
}
.journal-card:hover .journal-title { color: var(--accent-rust); }
.journal-excerpt {
    font-size: 0.95rem; color: #666; line-height: 1.6;
}

/* --- CONTACT Design --- */
.contact-hero {
    background: url('https://source.unsplash.com/1600x900/?map,compass') center/cover no-repeat;
    padding: 150px 0 100px; text-align: center; position: relative;
}
.contact-hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6);
}
.contact-hero-content { position: relative; z-index: 2; color: #fff; }
.contact-hero h1 { color: #fff; font-size: 3rem; margin-bottom: 10px; }

.contact-section {
    max-width: 800px; margin: 0 auto; padding: 80px 5%;
}
.contact-intro { text-align: center; margin-bottom: 50px; font-size: 1.1rem; color: #555; }
.contact-form {
    display: grid; gap: 30px;
}
.form-group label {
    display: block; font-family: var(--font-head); font-size: 0.9rem; margin-bottom: 10px; color: var(--accent-dark); letter-spacing: 0.05em;
}
.form-control {
    width: 100%; padding: 15px; border: 2px solid #ddd; background: #fff;
    font-family: var(--font-body); font-size: 1rem; transition: 0.3s; border-radius: 0;
}
.form-control:focus {
    border-color: var(--accent-dark); outline: none;
}
.submit-btn {
    background: var(--accent-dark); color: #fff; border: none; padding: 15px;
    font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.1em; cursor: pointer; transition: 0.3s; width: 100%;
}
.submit-btn:hover { background: var(--accent-rust); }


/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title h1 { font-size: 3rem; }
    .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
    .masonry-grid { grid-template-columns: 1fr; }
}