@charset "UTF-8";

/* =====================================
   基本設定
===================================== */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f6f7;
}

/* =====================================
   メインコンテンツ
===================================== */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

/* =====================================
   丸岡城風ヘッダーのレイアウト（PC版）
===================================== */
/* ヘッダー全体の下線と背景 */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ロゴとメニューを左右に振り分ける魔法 */
.header-inner {
    display: flex;
    justify-content: space-between; /* ロゴを左、メニューを右にピタッと分ける */
    align-items: center; /* 縦の中央で一直線に揃える */
    max-width: 1200px; /* PCで広がりすぎないように最大幅を決める */
    margin: 0 auto; /* 中央寄せ */
    padding: 15px 20px;
}

/* =====================================
   ロゴの黄金比設定（案1）
===================================== */
.logo {
    margin: 0;
}

.logo-img {
    height: 45px; /* ★ここでロゴの高さを強制的に固定！ */
    width: auto;  /* 縦横比を崩さない設定 */
    display: block;
}
/* ロゴ画像と文字を綺麗に横並びにする設定 */
.logo a {
    display: flex;
    align-items: center; /* 縦の中央を一直線に揃える */
    gap: 12px;           /* ロゴ画像と文字の間のすき間（黄金比） */
    text-decoration: none; /* 文字の下線を消す */
}

/* タイトル文字のデザイン調整 */
.logo-text {
    font-size: 20px;     /* 文字の大きさ（PCメニューの16pxより少し大きくして目立たせる） */
    font-weight: bold;   /* 太文字に */
    color: #2c3e50;      /* 文字の色（お好みの色に変えられます） */
    letter-spacing: 1px; /* 文字の間隔を少し広げて上品に */
}

/* =====================================
   ナビゲーションメニュー（枠線なしスタイル）
===================================== */
.global-nav ul {
    display: flex; /* メニューの文字たちを横並びに */
    gap: 30px; /* 文字と文字の隙間（抜け感のポイント） */
    list-style: none; /* 点マークを消す */
    margin: 0;
    padding: 0;
}

.global-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease; /* ふわっと色が変わるおまけ */
}

/* マウスが乗った時に少し色を変えて「押せる感」を出す */
.global-nav a:hover {
    color: #2980b9;
}

/* =====================================
   総合トップページ専用ヒーローヘッダー（PC横いっぱい版）
===================================== */

/* 大枠の箱を「横いっぱい（100%）」に解放！ */
.top-hero-container {
    width: 100%; 
    margin: 0;
    position: relative; 
    overflow: hidden;   
}

.top-hero-container .top-hero-image {
    width: 100%;       
    height: 50vh;      
    object-fit: cover; 
    object-position: 50% 80%; /* ★centerから変更：写真の「上の方」を映す設定 */
    display: block;
    position: relative;
    z-index: 0; 
}

/* =====================================
   スマホ用のハンバーガーメニュー（CSSのみで動かす裏技）
===================================== */
/* 初期状態ではチェックボックスとボタンを隠す（PC画面用） */
.menu-btn-check,
.menu-btn {
    display: none;
}

/* =====================================
   パンくずリスト（現在地がわかるリンク）
===================================== */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* ページ内リンクをスルスルッと移動させる魔法の設定（ファイルの一番上あたりに追加推奨） */
html {
    scroll-behavior: smooth;
}

/* ーーー 天守台：4面ナビゲーションボタン ーーー */
.face-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCもスマホも綺麗に2列（田の字）に並べる */
    gap: 15px; /* ボタン同士の隙間 */
    margin-bottom: 40px;
}

.face-nav-btn {
    position: relative;
    display: block;
    height: 100px; /* ボタンの高さ。もっと分厚くしたければ120pxなどに */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

/* マウスを乗せた時に少し浮き上がるギミック（PC用） */
.face-nav-btn:hover {
    transform: translateY(-3px);
}

.face-nav-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 名古屋城ヘッダーと同じく、はみ出た部分をカット */
}

/* 名古屋城と同じ「黒い半透明の膜」 */
.face-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 0.4の数字を大きくするとより暗くなる */
    display: flex;
    justify-content: center; /* 文字を左右のど真ん中に */
    align-items: center; /* 文字を上下のど真ん中に */
    transition: background 0.3s ease;
}

/* マウスを乗せた時に膜を少し薄くして光らせるギミック */
.face-nav-btn:hover .face-nav-overlay {
    background: rgba(0, 0, 0, 0.2); 
}

/* ボタン上の白文字 */
.face-nav-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* 文字が読みやすいように影をつける */
}

/* =====================================
   お城マップ：写真とピンを重ねる設定
===================================== */
/* 写真とピンを包む箱 */
.photo-map-container {
    position: relative; /* ここを基準にしてピンを配置する */
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* 中に入る大きなマップ写真 */
/* 中に入る大きなマップ写真（PC用） */
.photo-map-container .map-image {
    width: 100%;       
    height: 50vh; /* ★ここを40vhから50vh（画面の半分）に変更 */      
    object-fit: cover; 
    object-position: 50% 20%; /* ピントの位置（横50%、縦20%） */
    display: block;
    position: relative;
    z-index: 0; 
}

.photo-map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 下から上に向かって、黒い透明度がじわっと薄くなるグラデーション（プロの定番） */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1; /* 写真（0）と 文字（10）の間にこの「膜」を挟み込むイメージです */
}

/* 写真の上に載るタイトルのデザイン */
.photo-map-container .hero-title {
    position: absolute; 
    top: 50%;           
    left: 50%;          
    transform: translate(-50%, -50%); 
    color: #fff;        /* 文字色は白 */
    font-size: clamp(24px, 5vw, 40px); 
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 軽い影 */
    z-index: 10; /* 🌟超重要：黒い膜（1）よりも手前に引っ張り出すために数字を大きくします！ */
}

/* ピン（番号やボタン）のデザイン */
.photo-map-container .pin {
    position: absolute; 
    transform: translate(-50%, -50%); /* 中心を座標のど真ん中に合わせる */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.photo-map-container .pin:hover {
    transform: translate(-50%, -50%) scale(1.2); /* マウスで少し大きくする */
}

/* =====================================
   大きなボタンの設定（場所別で探すなど）
===================================== */
.large-button {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease; 
}

/* ボタンの中のタイトル（場所の名前） */
.large-button .button-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
}

/* ボタンの中の説明文 */
.large-button .button-desc {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
}

/* マウスが乗ったときの青く光るエフェクト */
.large-button:hover {
    background-color: #3498db; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3); 
}

/* マウスが乗ったときは、中の文字を白に反転させる */
.large-button:hover .button-title,
.large-button:hover .button-desc {
    color: #fff;
}

/* =====================================
   天守台ページ専用：各面セクションのレイアウト
===================================== */
.page-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #2c3e50;
    border-radius: 4px;
}

.face-section {
    margin-bottom: 60px; /* 各面ごとのすき間 */
    padding-top: 20px;
}

/* ミニマップと見出しの横並び設定 */
.face-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.minimap-img {
    width: 60px;  /* シニア層にもパッと見で見えるサイズ */
    height: 60px;
    object-fit: contain;
}

.face-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 0;
}

/* 各面のド迫力写真（PC版は画面の半分：50vh） */
.face-hero-box {
    width: 100%;
    margin-bottom: 25px;
}

.face-hero-img {
    width: 100%;
    height: 50vh; /* 🌟PCではいい感じの半分サイズ */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 🌟共有してもらったサイトを参考にした、綺麗なカード型グリッドレイアウト */
.kokuin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは横に2列並べる */
    gap: 20px;
}

.kokuin-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* マウスが乗ったらふわっと浮き上がるエフェクト */
.kokuin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.card-img-box {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #f4f6f7;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kokuin-card:hover .card-img-box img {
    transform: scale(1.05); /* ホバー時に写真が少しズームするプロの技 */
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.card-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.no-kokuin {
    font-style: italic;
    color: #95a5a6;
    padding: 20px;
    text-align: center;
    grid-column: span 2;
}

/* =====================================
   天守台ページ専用：引きの写真とピンの絶対ズレない設定
===================================== */

/* 引きの写真本体 */
.stone-hiki-img {
    width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 768px) {
    /* PCのメニューを一旦隠して、スマホ用の全画面デザインにする */
    .global-nav {
        position: fixed; /* 画面に固定 */
        top: 0;
        left: 100%; /* 画面の右外に隠しておく */
        width: 100%;
        height: 100vh; /* 画面いっぱいの高さ */
        background-color: rgba(255, 255, 255, 0.95); /* 少し透ける白背景 */
        transition: all 0.3s ease; /* ふわっと出すアニメーション */
        z-index: 100;
    }

    .global-nav ul {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 40px; /* 文字の間隔を広くして押しやすくする */
    }

    .global-nav a {
        font-size: 20px; /* スマホでは押しやすいように文字を大きく */
    }

    /* ハンバーガーボタン（三本線）のデザイン */
    .menu-btn {
        display: flex;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
        z-index: 110; /* メニューより上に表示 */
        cursor: pointer;
        position: relative;
    }

    /* 三本線を作る */
    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s ease; /* 動くときのアニメーション */
    }

    .menu-btn span:before {
        bottom: 8px; /* 上の線 */
    }

    .menu-btn span:after {
        top: 8px; /* 下の線 */
    }

    /* ★ここが裏技：見えないチェックボックスにチェックが入った時（ボタンが押された時）の動き */
    .menu-btn-check:checked ~ .global-nav {
        left: 0; /* 隠していたメニューを画面内（左端）にスライドさせる */
    }

    .menu-btn-check:checked ~ .menu-btn span {
        background-color: transparent; /* 真ん中の線を消す */
    }

    .menu-btn-check:checked ~ .menu-btn span:before {
        bottom: 0;
        transform: rotate(45deg); /* 上の線をナナメに（×の片方） */
    }

    .menu-btn-check:checked ~ .menu-btn span:after {
        top: 0;
        transform: rotate(-45deg); /* 下の線をナナメに（×の片方） */
    }
    .photo-map-container .map-image{
        height: 35vh;
        object-position: center 80%;
    }
    /* ーーー ここからスマホ用の上書き ーーー */
    .face-title {
        font-size: 18px; /* スマホでは見出しを少し小さく */
    }

    .face-hero-img {
        height: 35vh; /* 🌟スマホでは約3分の1サイズに強制変更！ */
    }

    .kokuin-grid {
        grid-template-columns: 1fr; /* 🌟スマホでは縦一列（1列）に並び替える */
        gap: 15px;
    }

    .card-img-box {
        height: 140px; /* スマホに合わせて画像の高さを調整 */
    }

    .map-image {
        height: 50vh;
    }

    .top-hero-container {
        width: 100%;
    }
    
    /* 👇ここを追加！スマホのときだけ高さを3分の1にします */
    .top-hero-container .top-hero-image {
        height: 33.33vh; /* ★画面の高さの3分の1に指定 */
        object-position: 50% 20%; /* もしスマホで映る位置を上下に変えたい場合はここを調整してね */
    }
}