@charset "utf-8";

/* 画像を囲む親要素を設定 */
.photo {
    position: relative;
    /* オーバーレイの基準を設定 */
    padding: 10px;
    /* 枠外にスペースを追加 */
    display: inline-block;
    /* 必要に応じて調整 */
    border: 2px solid transparent;
    /* 見えない枠を追加 */
}

img {
    display: block;
    width: 100%;
    /* 画像の幅調整 */
}

/* 初期状態で非表示のテキスト */
.overlay-text {
    display: none;
    /* 初期は非表示 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(200, 126, 65, 0.826);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
  
}

/* 親要素全体をホバー対象に */
.photo:hover {
    border: 2px solid rgba(0, 0, 0, 0.2);
    /* ホバーで枠の変化を追加（オプション） */
}

/* ホバー時にテキストを表示 */
.photo:hover .overlay-text {
    display: block;
    /* 親要素全体でホバーしたら表示 */

}


/* ここから マウスを画像に乗せると、黒い半透明の背景に白い文字が現れる  */






/* トップページ常設ボタン */

#page_top {
    width: 90px;
    height: 90px;
    position: fixed;
    right: 0;
    bottom: 0;
    background: #ef3f98;
    opacity: 0.6;
    border-radius: 50%;
}

#page_top a {
    position: relative;
    display: block;
    width: 90px;
    height: 90px;
    text-decoration: none;
}

#page_top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f102';
    font-size: 25px;
    color: #fff;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -40px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

#page_top a::after {
    content: 'PAGE TOP';
    font-size: 13px;
    color: #fff;
    position: absolute;
    top: 45px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center; }


body {
    font-family: Arial, sans-serif;
    text-align: left;
    /* centerで中央寄りになる。どっちがいいか、、、 */
    margin: 20px;
    font-size: 1.2em;
    /* 基本文字サイズを少し拡大 */
}

h1 {
    font-size: 2em;
    /* タイトルサイズをアップ */   

}

select,
input[type="text"],
button {
    font-size: 1em;
    /* フォーム要素を見やすく */
    padding: 0.6em 1em;
    /* 少し余白も追加でタップしやすく */
    margin: 0.5em;
}

img {
    max-width: 250px;
    /* 画像を少し大きく */
    margin: 20px;
}


/* 固定ヘッダー */

body {
    margin-top: 150px;
    /* 余白を空ける（調整可）
    ヘッダーの高さ分（100pxだと検索欄が見えない） */
}

.fixed-header {
    position: fixed;
    /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f4ccea ;
    /* 背景色　トップページボタンと似た色 */

    /* 背景色（ページに馴染むように）#fff */
    z-index: 999;
    /* 他の要素より前面に */
    padding: 10px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 背景色が白系のとき下に影をつけて浮かせる感 */


}


/* パンくずリスト */
/* #topicpath*/

#topicpath ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

#topicpath ol li {
    font-size: 1.5rem;
    color: #444;
}



/* 画像下テキストの文字 */
.photo p {
    text-align: center;
    /* テキストを中央揃えにします */
    margin-top: 5px;
    /* 画像とテキスト間の余白を設定（必要なら調整） */

}


/* 該当画像がないとき */
/* .image-container */



.fallback-message {
    display: none;
    /* 初期は非表示 */
    color: #555;
    font-size: 30px;
    margin-top: 10px;
    border-style: double;
    text-align: left;
}








/* ここから
画像絞り込み検索のスマホ版 */

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        margin-top: 125px;
        text-align: left;
    }

    input[type="text"],
    select {
        width: 100%;
        font-size: 16px;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
        padding: 8px;
        font-size: 16px;
        margin-bottom: 10px;
    }


    /* .photo {
        width: 48%;
        margin: 1%;
        display: inline-block;
        vertical-align: top;
    } */

    .photo img {
        width: 100%;
        height: auto;
        object-fit: cover;
    } 


}

/* ここまで
スマホ版*/