/* 全国神社マップ 共通スタイル。
   旧サイトの css/main2.css（PC）と css/sp.css（768px以下）を1ファイルに統合したもの。
   配色・枠線・レイアウト（2カラム / line_box / list_data / linklist）は旧サイトの見た目を
   そのまま踏襲し、固定幅だったところだけ可変幅にしてレスポンシブに対応させている。

   主要色（旧サイトから継承）
     #920E01 … 背景の深紅        #AA3514 … リンク・見出し
     #99571C … リンクホバー      #CB0000 … 強調（神社名・カテゴリボタン・現在ページ）
     #D9C2BF … line_head の罫線  #FCFBFA … line_box の地色 */

* { margin: 0; padding: 0; }

body {
    font: 13px/1.6 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Tahoma, Arial, sans-serif;
    color: #000;
    background-color: #920E01;
    background-image: url(/img/bg.jpg);
    background-repeat: repeat-x;
}

h1, h2, h3, h4, ul, li, img, p, dl, dt, dd { margin: 0; padding: 0; border: none; list-style: none; }
p { line-height: 1.8; margin: 0 0 22px; color: #666; }
img { border: 0; max-width: 100%; height: auto; }
h1, h2 { font-size: 14px; font-weight: normal; }
h3 { font-size: 14px; font-weight: bold; }
h4 { font-size: 18px; font-weight: normal; }

a { outline: none; color: #AA3514; text-decoration: none; }
a:visited { color: #AA3514; }
a:hover { color: #99571C; text-decoration: underline; }

.clearfix::after { content: ""; clear: both; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ===== ヘッダー ===== */
#header {
    position: relative;
    width: 1050px;
    margin: 0 auto;
    padding: 0 10px;
    min-height: 108px;
}
#header .site-logo { position: absolute; top: 28px; left: 10px; z-index: 1; margin: 0; }
#header .site-logo img { display: block; width: 364px; height: 80px; }
#header .header-title {
    padding: 6px 10px 0 0;
    text-align: right;
    line-height: 2em;
    color: #FFF;
    font-size: 14px;
    font-weight: normal;
}
#header .header-search { position: absolute; top: 56px; right: 10px; }
#header .header-search input[type="text"] {
    width: 220px;
    padding: 5px 8px;
    border: 1px solid #7d0c01;
    font: inherit;
}
#header .header-search input[type="submit"] {
    padding: 5px 14px;
    border: 1px solid #7d0c01;
    background-color: #CB0000;
    color: #FFF;
    font: inherit;
    cursor: pointer;
}

/* ===== パンくず ===== */
#navi { width: 1050px; margin: 0 auto; padding: 5px 10px; color: #FFF; }
#navi ol { display: flex; flex-wrap: wrap; }
#navi li { font-size: 12px; }
#navi li::after { content: ">"; padding: 0 6px; }
#navi li:last-child::after { content: none; }
#navi a, #navi a:visited { color: #FFF; text-decoration: underline; }
#navi h1 { display: inline; font-size: 12px; font-weight: bold; }

/* ===== ページ骨格（PCは 728px + 300px の2カラム） ===== */
#main_bg {
    clear: both;
    width: 100%;
    background-color: #FFF;
    background-image: url(/img/main_bg.gif);
    background-repeat: repeat;
}
#main { width: 1050px; margin: 0 auto; padding: 10px; overflow: hidden; }
#left { float: left; width: 728px; }
#left_wrapper { padding-right: 10px; }
/* ページ見出し（h1）。鳥居に掲げる社号額（扁額）に倣った額装で見せる。
   社号だけ明朝にするのは、社号額が彫りや筆であってゴシックではないため。
   一覧など通常のページは白木地に金枠の軽い額、神社詳細だけ濃茶地に金文字の扁額にして、
   「社号を掲げる」1カ所にだけ強さを寄せる。 */
.page-heading {
    margin: 4px 0 20px;
    padding: 4px;
    background: linear-gradient(180deg, #c8a24a, #a8862f);
    border-radius: 2px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
    font-weight: normal;
}
.page-heading__inner {
    display: block;
    padding: 14px 20px;
    text-align: center;
    background-color: #FCFBFA;
    border: 1px solid #d9c08a;
}
.page-heading__kana {
    display: block;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 11px;
    letter-spacing: .32em;
    line-height: 1.8;
    color: #9a8b83;
}
.page-heading__name {
    display: block;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: .14em;
    line-height: 1.4;
    color: #AA3514;
}
.page-heading__meta { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .16em; color: #8a7f78; }

/* 神社詳細の扁額。朱の枠に金の細線、濃茶地に金文字 */
.page-heading--dark { padding: 5px; background: linear-gradient(180deg, #8a2b12, #5f1a09); box-shadow: 0 3px 0 rgba(0, 0, 0, .16); }
.page-heading--dark .page-heading__inner {
    position: relative;
    padding: 16px 22px;
    /* 麻の葉格子を極薄の金線で重ね、文字の背後に朱のグローをにじませて
       彫りのある木の扁額らしい質感を出す（朱の点はheading__inner::afterで下半分にだけ足す） */
    background:
        repeating-linear-gradient(60deg, rgba(184, 145, 47, .14) 0, rgba(184, 145, 47, .14) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-60deg, rgba(184, 145, 47, .14) 0, rgba(184, 145, 47, .14) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(0deg, rgba(184, 145, 47, .1) 0, rgba(184, 145, 47, .1) 1px, transparent 1px, transparent 14px),
        radial-gradient(ellipse at center, rgba(196, 90, 32, .4) 0%, rgba(59, 42, 32, 0) 65%),
        linear-gradient(180deg, #3b2a20, #221812);
    border-color: #B8912F;
}
/* 朱の点は社号より下半分だけに限定し、読みがなのある天は静かなままにする */
.page-heading--dark .page-heading__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(rgba(196, 90, 32, .6) 1.5px, transparent 1.6px) 0 0/28px 28px,
        radial-gradient(rgba(196, 90, 32, .6) 1.5px, transparent 1.6px) 14px 14px/28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 70%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 70%);
}
.page-heading--dark .page-heading__kana { color: #c9a86a; }
.page-heading--dark .page-heading__name { font-size: 30px; color: #E8C77A; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.page-heading--dark .page-heading__meta { color: #a98f63; }
#right { float: right; width: 300px; text-align: center; }

/* ===== 見出し付きパネル（line_box / line_head） ===== */
.line_box {
    background-color: #FCFBFA;
    padding-bottom: 15px;
    border: 2px solid #AA3514;
    border-top-width: 1px;
    margin-bottom: 20px;
}
.line_head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 8px 15px;
    background-color: #FFF;
    border-top: 1px solid #D9C2BF;
    border-bottom: 1px solid #D9C2BF;
}
.line_head h2 { font-size: 16px; font-weight: bold; color: #AA3514; }
.line_head p.right { margin: 0 0 0 auto; font-size: 12px; }

/* line_box の外に単独で置く見出し（一覧の「〇〇の神社一覧」） */
.line_head--standalone { margin-bottom: 10px; }

/* ===== 日本地図ブロック ===== */
#map_box { position: relative; margin: 10px 0 0 10px; display: flex; gap: 20px; align-items: flex-start; }
#map_box .map_image { flex: 0 0 auto; width: 299px; }
#map_box ul { flex: 1 1 auto; min-width: 0; }
#map_box ul li {
    margin-bottom: 15px;
    line-height: 1.4em;
    border-left: 2px solid #DA5427;
    padding-left: 5px;
}
#map_box ul li .bold { font-weight: bold; }

/* ===== 社号・社格ボタン ===== */
#category_box { margin: 0 10px; color: #AA3514; font-weight: bold; font-size: 14px; }
#category_box ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
#category_box ul.dot_line { border-bottom: 1px dotted #CCC; padding-bottom: 20px; margin-bottom: 10px; }
/* 旧サイト同様、1行に6個ちょうど収める。box-sizing を指定しないと左右paddingが
   width に加算されて実寸110pxになり、6個目が折り返してしまう */
#category_box ul li a {
    display: block;
    box-sizing: border-box;
    width: 100px;
    padding: 10px 5px;
    text-align: center;
    color: #FFF;
    background-color: #CB0000;
}
#category_box ul li a:hover { background-color: #AA3514; color: #FFF; text-decoration: none; }
#category_box .count { font-weight: normal; font-size: 12px; }

/* ===== 地方・市区町村などのリンク列挙 ===== */
#area_sitemap { margin: 0 20px; }
.prefecture_space_sitemap {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
.prefecture_space_sitemap li { line-height: 2em; }
.prefecture_space_sitemap li a { font-size: 14px; }
.prefecture_space_sitemap li::after { content: "|"; padding: 10px; }
.prefecture_space_sitemap li:last-child::after { content: ""; padding: 0; }
.prefecture_space_sitemap:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.prefecture_in_area { display: flex; flex-wrap: wrap; margin-top: 10px; }
.prefecture_in_area li { width: 25%; line-height: 2em; }
.prefecture_in_area li .count { color: #666; font-size: 12px; }

.city_space_sitemap { display: flex; flex-wrap: wrap; margin: 10px 0 0; }
.city_space_sitemap li { width: 180px; line-height: 2em; padding: 2px 5px; }
.city_space_sitemap li a.active { font-weight: bold; color: #CB0000; }
.city_space_sitemap li .count { color: #666; font-size: 12px; }

/* ===== 神社一覧 ===== */
.list_data { margin-top: 20px; }
.list_data .list_main li { border-bottom: 1px solid #ccc; position: relative; }
.list_data .list_main li:first-child { border-top: 1px solid #ccc; }
.list_data .list_main li:last-child { border-bottom: none; }
.list_data .list_main li:hover { background-color: rgba(255, 192, 35, 0.5); }
.list_data .list_main li > a { display: block; color: inherit; }
.list_data .list_main li > a:hover { text-decoration: none; }

.line_box_flat_box { display: flex; gap: 15px; padding: 15px 5px; }
.line_box_flat_box img { flex: 0 0 auto; width: 83px; height: 83px; object-fit: cover; }
.line_box_flat_box .body { min-width: 0; margin: 0; color: #333; }
.line_box_flat_box .shakaku,
.line_box_flat_box .address { display: block; font-size: 14px; line-height: 1.4em; }
.line_box_flat_box .shakaku { padding-bottom: 8px; }
.line_box_flat_box .address { padding-top: 8px; color: #333; }
.line_box_flat_box .shop_name { display: block; color: #CB0000; font-size: 22px; line-height: 1.4em; }
.line_box_flat_box .shop_name rt { font-size: 11px; color: #666; }
.list_empty { padding: 20px 5px; color: #666; }
/* 一覧の途中に挟む広告枠。神社の行ではないので枠線・ホバーの装飾を打ち消す */
.list_data .list_main li.list-ad,
.list_data .list_main li.list-ad:first-child { border: none; }
.list_data .list_main li.list-ad:hover { background-color: transparent; }
.list_data .list_main li.list-ad .ad-slot { margin: 24px 0; }

/* ===== ページ送り ===== */
.linklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0; }
.linklist li { font-size: 18px; text-align: center; }
.linklist li .box {
    display: inline-block;
    min-width: 40px;
    padding: 8px 6px;
    border: 1px solid #ccc;
    background-color: #FFF;
    text-align: center;
}
.linklist li span.box { background-color: #CB0000; color: #fff; border-color: #CB0000; }
.linklist li span.box.dots { background-color: transparent; color: #666; border: none; }
.linklist-info { text-align: center; color: #666; font-size: 12px; margin: 0 0 10px; }

/* ===== 神社詳細 ===== */
#info_area { position: relative; }

/* ===== 写真ギャラリー =====
   縦横が混在するため、写真は切り抜かず高さ固定の枠に収め、余白は同じ写真のぼかしで埋める。
   枠の高さが固定なので読み込み中のガタつき（CLS）も起きない。 */
.shrine-gallery, .shrine-gallery-single { margin: 10px 0 16px; }
.shrine-photo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    overflow: hidden;
    cursor: zoom-in;
    background-color: #f0ece1;
    background-position: center;
    background-size: cover;
}
.shrine-photo-stage::before {
    content: "";
    position: absolute;
    inset: -32px;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(.9);
}
.shrine-photo-stage img { position: relative; z-index: 1; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.shrine-swiper-main { width: 100%; margin-bottom: 6px; }
.shrine-swiper-main .swiper-slide { height: auto; }
.shrine-swiper-main .swiper-button-prev, .shrine-swiper-main .swiper-button-next { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
/* サムネイル列が左右に続いていることを示すぼかし。端に到達したら消す */
.shrine-gallery-thumbs-wrap { position: relative; }
.shrine-gallery-thumbs-wrap::before, .shrine-gallery-thumbs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.shrine-gallery-thumbs-wrap::before { left: 0; background: linear-gradient(to right, #FCFBFA, rgba(252, 251, 250, 0)); }
.shrine-gallery-thumbs-wrap::after { right: 0; background: linear-gradient(to left, #FCFBFA, rgba(252, 251, 250, 0)); }
.shrine-gallery-thumbs-wrap:not(.thumbs-at-start)::before { opacity: 1; }
.shrine-gallery-thumbs-wrap:not(.thumbs-at-end)::after { opacity: 1; }
.shrine-swiper-thumbs { width: 100%; }
.shrine-swiper-thumbs .swiper-slide { width: 72px; height: 56px; opacity: .55; cursor: pointer; }
.shrine-swiper-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid #AA3514; }
.shrine-swiper-thumbs .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shrine-gallery-count { margin: 8px 0 0; color: #8a7f78; font-size: 12px; text-align: right; }

/* 拡大表示（ライトボックス） */
#shrine-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .88); align-items: center; justify-content: center; }
#shrine-lightbox.open { display: flex; }
#shrine-lightbox img { display: block; max-width: 92vw; max-height: 92vh; object-fit: contain; }
#shrine-lb-close { position: absolute; top: 16px; right: 20px; z-index: 1; color: rgba(255, 255, 255, .8); font-size: 28px; line-height: 1; cursor: pointer; user-select: none; }
#shrine-lb-close:hover { color: #fff; }
.shrine-lb-swiper { width: 100%; height: 100%; }
.shrine-lb-swiper .swiper-wrapper { height: 100%; }
/* 写真1枚のページでもSwiperのレイアウトに頼らず中央寄せできるようにする */
.shrine-lb-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; height: 100%; }
.shrine-lb-swiper .swiper-zoom-container { width: auto; height: auto; }
.shrine-lb-prev, .shrine-lb-next { color: rgba(255, 255, 255, .85); --swiper-navigation-size: 32px; }
.shrine-lb-prev:hover, .shrine-lb-next:hover { color: #fff; }

/* 写真投稿の導線。姉妹サイト（shiro/autocamp/pcam）と同じくギャラリー直下に置く */
.shrine-upload-link { margin: 0 0 20px; text-align: center; }
.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid #AA3514;
    background-color: #FFF;
    color: #AA3514;
    font-size: 14px;
    font-weight: bold;
}
a.map-link-btn:hover { background-color: #AA3514; color: #FFF; text-decoration: none; }
.icon-camera { flex: 0 0 auto; }
.icon-compass { flex: 0 0 auto; }
#infocanvas { display: flex; flex-wrap: wrap; }
#info_area dl { padding: 10px; line-height: 1.6em; width: 50%; box-sizing: border-box; }
#info_area dl.wide { width: 100%; }
#info_area dl dt {
    margin-bottom: 2px;
    font-weight: bold;
    font-size: 14px;
    color: #AA3514;
    border-bottom: 1px dashed #AA3514;
}
#info_area dl dd {
    margin-bottom: 7px;
    line-height: 1.8;
    /* 管理画面で入力した改行をそのまま表示する（連続する半角空白は詰める） */
    white-space: pre-line;
    word-break: break-word;
}
/* 住所＋地図リンクのようにテンプレート側で組み立てているddは、
   ソース上の改行が出力されないよう改行保持の対象から外す */
#info_area dl dd.dd--markup { white-space: normal; }
.badge_list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.badge_list a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #CB0000;
    color: #FFF;
    font-size: 12px;
}
.badge_list a:hover { background-color: #AA3514; color: #FFF; text-decoration: none; }
.notice_box { margin: 20px 0; padding: 20px; background-color: #FCFBFA; border: 2px solid #AA3514; }
.notice_box p:last-child { margin-bottom: 0; }
.notice_box__actions { margin-top: 20px; }
.button { display: inline-block; padding: 10px 24px; background-color: #CB0000; color: #FFF; }
/* サイト全体の a:visited { color: #AA3514 } の方が .button より詳細度が高く、
   訪問済みリンクで白文字が上書きされ赤背景に沈んで見えなくなるため明示的に上書きする */
.button:visited { color: #FFF; }
a.button:hover { background-color: #AA3514; color: #FFF; text-decoration: none; }
.button--plain { background-color: #FFF; border: 1px solid #ccc; color: #AA3514; }
a.button--plain:hover { background-color: #f4f3ec; color: #AA3514; }
.button--block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; }
.button--lg { padding: 16px 24px; font-size: 16px; font-weight: bold; letter-spacing: .02em; }

/* 神社詳細ページ: 方位マップ（maikin.jp）への送客リンク。
   notice_boxと同じクリーム地＋赤枠でひとかたまりの案内として目立たせる */
.shrine-maikin-callout {
    margin: 0 0 20px;
    padding: 16px;
    background-color: #FCFBFA;
    border: 2px solid #AA3514;
    text-align: center;
}
.shrine-maikin-callout__text { margin: 0 0 12px; font-size: 13px; color: #333; }
.shrine-maikin-callout .icon-compass { width: 20px; height: 20px; }
.confirm-value input[type="file"] { font: inherit; }

/* ===== お問い合わせフォーム ===== */
.inquiry-form { margin: 0 15px; }
.inquiry-form p { margin: 15px 0; }
/* ハニーポット。position:absolute で画面外へ飛ばす方法は
   Chromeのautocompleteに拾われることがあるため display:none にする */
.form-honeypot { display: none; }
.confirm-box { margin: 15px 0; background-color: #FFF; border: 1px solid #D9C2BF; }
.confirm-row { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid #D9C2BF; }
.confirm-row:last-child { border-bottom: none; }
.confirm-label { flex: 0 0 auto; width: 160px; font-weight: bold; color: #AA3514; }
.confirm-value { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.confirm-value input[type="text"],
.confirm-value input[type="tel"],
.confirm-value input[type="email"],
.confirm-value textarea { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid #ccc; font: inherit; }
.confirm-value textarea { min-height: 180px; resize: vertical; }
.form-required { display: inline-block; padding: 1px 6px; background-color: #CB0000; color: #FFF; font-size: 11px; font-weight: normal; }
.form-error { margin-top: 6px; color: #CB0000; font-size: 12px; }
.form-error--notice { margin: 0 0 16px; padding: 14px 18px; background-color: #FFF6E5; border: 1px solid #CB0000; font-size: 13px; }
.form-char-count { margin-top: 4px; color: #8a7f78; font-size: 12px; text-align: right; }
.confirm-actions { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.confirm-actions input[type="submit"] { padding: 10px 32px; border: none; background-color: #CB0000; color: #FFF; font: inherit; cursor: pointer; }
.confirm-actions input[type="submit"]:disabled { background-color: #b78b84; cursor: default; }
.confirm-actions button { padding: 10px 24px; border: 1px solid #ccc; background-color: #FFF; font: inherit; cursor: pointer; }

/* ===== 写真投稿フォーム ===== */
.form-required-note { margin: 6px 0 0; color: #8a7f78; font-size: 12px; }
/* file input 自体は隠し、ラベル（ドロップゾーン）を押させる */
.upload-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 16px;
    border: 2px dashed #d6c7be;
    background-color: #fdfbf7;
    color: #AA3514;
    text-align: center;
    cursor: pointer;
}
.upload-dropzone:hover, .upload-dropzone--dragover { border-color: #AA3514; background-color: #f7efe9; }
.upload-dropzone--filled { border-style: solid; }
.upload-dropzone .icon-camera { width: 24px; height: 24px; }
.upload-dropzone-text { font-size: 14px; font-weight: bold; }
.upload-dropzone-note { color: #8a7f78; font-size: 12px; }

.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-preview li { position: relative; width: 96px; height: 96px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #D9C2BF; }
.upload-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #CB0000;
    color: #FFF;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
}
.upload-preview-remove:hover { background-color: #AA3514; }

.upload-notes { margin: 16px 0 0; padding-left: 1.2em; color: #666; font-size: 12px; line-height: 1.9; list-style: disc; }
.upload-notes li { list-style: disc; }

/* 送信前の確認モーダル */
.upload-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .6); align-items: center; justify-content: center; padding: 20px; }
.upload-modal-box { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 24px; background-color: #FFF; }
.upload-modal-title { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #D9C2BF; color: #AA3514; font-size: 16px; font-weight: bold; }
.upload-modal-summary { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 13px; }
.upload-modal-summary dt { color: #8a7f78; }
.upload-modal-summary dd { margin: 0; word-break: break-word; }
.upload-modal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.upload-modal-thumbs li { width: 72px; height: 72px; }
.upload-modal-thumbs img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #D9C2BF; }
.upload-modal-actions { display: flex; justify-content: center; gap: 12px; }
.upload-modal-btn { padding: 10px 20px; border: 1px solid #ccc; background-color: #FFF; font: inherit; cursor: pointer; }
.upload-modal-btn--send { border-color: #CB0000; background-color: #CB0000; color: #FFF; font-weight: bold; }
.upload-modal-btn--send:hover { background-color: #AA3514; border-color: #AA3514; }

/* ===== 検索 ===== */
.search_box { margin: 10px; }
.search_box label { display: block; margin-bottom: 8px; font-weight: bold; color: #AA3514; }
.search_box .search_row { display: flex; }
.search_box input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 8px; border: 1px solid #ccc; font: inherit; }
.search_box button { flex: 0 0 auto; padding: 8px 20px; border: none; background-color: #CB0000; color: #FFF; font: inherit; cursor: pointer; }

/* ===== このサイトについて ===== */
dl#about { margin: 10px; }
dl#about dt { font-size: 16px; font-weight: bold; line-height: 2em; color: #600; }
dl#about dd { margin-bottom: 20px; line-height: 1.6em; }
dl#about dd strong { display: block; color: #AA3514; }

/* ===== 広告枠 ===== */
.ad-slot { margin: 20px 0; }
.ad-slot__dummy {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px dashed #ccc;
    background-color: #fafafa;
    color: #999;
    font-size: 12px;
}
.ad-slot__sp { display: none; }
.pr_banner { margin-bottom: 30px; }
.pr_banner img { width: 100%; }

/* 右カラムの方位マップバナー・書籍バナー */
.maikin-banner { margin: 0 0 20px; }
.maikin-banner a {
    display: block;
    box-sizing: border-box;
    border: 2px solid #AA3514;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.maikin-banner a:hover, .maikin-banner a:focus-visible {
    border-color: #E04A20;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
}
.maikin-banner a:focus-visible { outline: 2px solid #AA3514; outline-offset: 2px; }
.maikin-banner a:active { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.maikin-banner img { display: block; width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .maikin-banner a { transition: none; }
    .maikin-banner a:hover, .maikin-banner a:focus-visible, .maikin-banner a:active { transform: none; }
}
.comment-book-wrap { margin: 0 0 20px; text-align: center; }
.comment-book { display: inline-block; }
.comment-book img { display: block; width: 100%; margin: 0 auto; }
/* 旧サイトはキャプションに専用のCSSを持たず素のspanのままだったので、
   画像の下に収まるようブロック化と文字サイズだけ足している */
.comment-book-caption { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }

/* 楽天アフィリエイト商品バナー（250px幅・複数枚を縦並び表示） */
.rakuten-banner { display: flex; justify-content: center; margin-bottom: 12px; }
.rakuten-banner img { display: block; max-width: 100%; height: auto; }


/* ===== フッター ===== */
#footer {
    clear: both;
    color: #FFF;
    background-image: url(/img/foot_bg.jpg);
    background-repeat: repeat-x;
    padding-top: 3px;
}
#foot_box {
    width: 1150px;
    margin: 16px auto 0;
    padding-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 1px 1px 5px 5px rgba(0, 0, 0, 0.1);
}
.footer_navi { padding: 10px 13px; }
.footer_navi a, .footer_navi a:visited { color: #FFF; text-decoration: underline; }
.footer_navi a:hover { text-decoration: none; }
#map_site_links h3 { display: block; padding-top: 10px; font-size: 14px; }
#map_site_links ul { display: flex; flex-wrap: wrap; margin-bottom: 20px; }
#map_site_links ul li { font-size: 12px; padding: 10px 20px 0 0; white-space: nowrap; }
#footer p { clear: both; color: #CCC; padding-left: 10px; line-height: 3em; margin: 0; }

/* ===== モバイル（旧 sp.css 相当。768px以下） ===== */
@media screen and (max-width: 768px) {
    body { background-image: none; }

    #header { width: auto; min-height: 0; padding: 10px; }
    #header .site-logo { position: static; }
    #header .site-logo img { width: 100%; max-width: 364px; height: auto; }
    #header .header-title { padding: 6px 0 0; text-align: left; font-size: 12px; }
    #header .header-search { position: static; margin-top: 10px; display: flex; }
    #header .header-search input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; }

    #navi { width: auto; }

    /* 右カラム（広告）はPCで右にフロートさせるためHTML上は本文より先にあるが、
       1カラムになるスマホではそのままだと広告が本文より上に出てしまう。
       flexのorderで本文→広告の順に並べ替える */
    #main { width: auto; padding: 10px; display: flex; flex-direction: column; }
    #left { float: none; width: auto; order: 1; }
    #left_wrapper { padding-right: 0; }
    .page-heading__inner { padding: 12px 14px; }
    .page-heading__name { font-size: 20px; letter-spacing: .08em; }
    .page-heading--dark .page-heading__name { font-size: 22px; }
    /* 旧サイトはPC専用の右カラム（広告）をスマホで非表示にしていた（class="sp_none"）が、
       現在はレスポンシブ広告のため本文の下に回り込ませる */
    #right { float: none; width: auto; order: 2; margin-top: 20px; }

    .line_head { min-height: 0; padding: 10px; }
    .line_head h2 { font-size: 15px; }

    /* 日本地図の画像は情報量が小さく横幅も取るため、スマホでは隠してリンクだけ残す */
    #map_box { display: block; margin: 10px; }
    #map_box .map_image { display: none; }

    #category_box { margin: 0 10px; }
    #category_box ul li { flex: 1 1 45%; }
    #category_box ul li a { width: auto; }

    #area_sitemap { margin: 0 10px; }
    .prefecture_in_area li { width: 50%; }
    .city_space_sitemap li { width: 50%; }

    .line_box_flat_box { gap: 10px; padding: 12px 5px; }
    .line_box_flat_box .shop_name { font-size: 18px; }
    .line_box_flat_box .shakaku, .line_box_flat_box .address { font-size: 12px; }

    .linklist li { font-size: 16px; }
    .linklist li .box { min-width: 34px; padding: 6px 4px; }

    .inquiry-form { margin: 0 10px; }
    /* ラベル列の固定幅を打ち消さないと、縦積みにしたときラベルの帯が160pxで途切れる
       （プレイブック19-1の「部分上書き漏れ」） */
    .confirm-row { display: block; padding: 14px; }
    .confirm-label { width: auto; margin-bottom: 6px; }
    .confirm-actions { flex-wrap: wrap; }
    .upload-preview li { width: 76px; height: 76px; }
    .upload-modal-summary { grid-template-columns: 1fr; gap: 2px; }
    .upload-modal-summary dt { margin-top: 8px; }
    .upload-modal-actions { flex-direction: column; }

    #infocanvas { display: block; }
    #info_area dl { width: auto; }
    /* スマホでは本文が下に押し下げられ過ぎないよう写真ステージを低くする */
    .shrine-photo-stage { height: 260px; }
    .shrine-swiper-thumbs .swiper-slide { width: 60px; height: 46px; }

    .ad-slot__pc { display: none; }
    .ad-slot__sp { display: block; }

    #foot_box { width: auto; margin: 16px 10px 0; }
    #map_site_links ul li { width: 50%; padding-right: 0; white-space: normal; }
}
