/* showcase.infobypass.com 共通スタイル 骨格版 v0.1.0
   ベース: hotel.fx1000.com レイアウト資産
   アクセント: アンティーク・ブラウン系 (#7a4f21) */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #333; line-height: 1.6; background-color: #f5f2ec; margin: 0; padding: 0; }
.container { max-width: 960px; margin: 0 auto; padding: 15px; }

/* ===== ヘッダー・検索（トップ） ===== */
header { background: #fff; padding: 25px 20px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 25px; border-top: 4px solid #7a4f21; }
.brand-container { display: flex; align-items: center; margin-bottom: 20px; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #a8763e, #7a4f21); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 12px; color: #fff; font-size: 20px; flex-shrink: 0; }
.site-title-link { text-decoration: none; }
.site-title-link:hover h1 { text-decoration: underline; color: #7a4f21; }
h1 { margin: 0; font-size: 1.25rem; color: #1a1a1a; letter-spacing: -0.5px; }
.brand-subtitle { font-size: 0.75rem; color: #5a5a5a; margin-top: 2px; }

.search-inputs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }
select, input[type="search"] { width: 100%; padding: 14px; font-size: 16px; border: 2px solid #e6ddd0; border-radius: 10px; outline: none; background: #fff; }
select:focus, input[type="search"]:focus { border-color: #7a4f21; }
.button-group { display: flex; flex-direction: column; gap: 8px; }
.button-row { display: flex; gap: 8px; }
.search-trigger { flex: 1; padding: 15px 5px; font-size: 13px; font-weight: bold; color: #fff; border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.btn-standard { background: linear-gradient(135deg, #a8763e, #7a4f21); }
.btn-old      { background: linear-gradient(135deg, #8d6e63, #5d4037); }
.btn-new      { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.btn-reset    { background: linear-gradient(135deg, #78909c, #546e7a); }

/* ===== 検索結果ヘッダ ===== */
.result-info { text-align: center; margin-bottom: 15px; font-size: 0.85rem; color: #5a5a5a; scroll-margin-top: 8px; }
.sort-badge { display: inline-block; margin-top: 6px; border: 2px solid; border-radius: 6px; padding: 4px 14px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.no-hit { text-align: center; color: #333; margin-top: 50px; }
.no-hit a { color: #7a4f21; }

/* ===== 一覧グリッド =====
   PC: ヤフオク式タイル（縦横グリッド）
   スマホ: hotel式 縦カード（画像左・情報右） */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.item-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.06); border: 1px solid #d9c9ae; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
.item-card:hover { box-shadow: 0 6px 16px rgba(122,79,33,0.18); transform: translateY(-2px); }

.item-img-box { position: relative; background: #faf7f0; border-bottom: 1px solid #eee; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-count { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.7rem; border-radius: 5px; padding: 2px 7px; }

.item-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.status-badge { display: inline-block; align-self: flex-start; font-size: 0.68rem; font-weight: bold; border: 1px solid; border-radius: 5px; padding: 2px 8px; }
.item-name { font-size: 0.95rem; font-weight: bold; color: #4a3316; line-height: 1.4; }
.item-era { font-size: 0.75rem; color: #8d6e63; font-weight: 500; }
.item-summary { font-size: 0.78rem; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.want-count { margin-top: auto; font-size: 0.75rem; color: #c62828; font-weight: bold; background: #ffebee; border: 1px solid #ef9a9a; border-radius: 6px; padding: 3px 8px; align-self: flex-start; }

/* スマホ: hotel.fx1000.com式 縦スクロールカード */
@media (max-width: 599px) {
    .item-grid { grid-template-columns: 1fr; gap: 14px; }
    .item-card { flex-direction: row; align-items: stretch; }
    .item-img-box { width: 110px; flex-shrink: 0; aspect-ratio: auto; border-bottom: none; border-right: 1px solid #eee; }
    .item-info { padding: 12px; min-width: 0; }
}

/* ===== サブヘッダー（詳細・サブページ） ===== */
.sub-header { background: #fff; padding: 18px 20px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); margin-bottom: 25px; border-top: 4px solid #7a4f21; display: flex; align-items: center; gap: 14px; }
.sub-logo { width: 36px; height: 36px; font-size: 18px; margin-right: 0; }
.sub-site-name { font-size: 1.05rem; font-weight: bold; color: #1a1a1a; text-decoration: none; }
.sub-site-name:hover { color: #7a4f21; }
.sub-back { margin-left: auto; font-size: 0.8rem; color: #7a4f21; text-decoration: none; border: 1px solid #7a4f21; border-radius: 6px; padding: 4px 12px; white-space: nowrap; }
.sub-back:hover { background: #7a4f21; color: #fff; }

/* ===== コンテンツカード（詳細） ===== */
.content-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); padding: 30px 25px; margin-bottom: 25px; }
.content-card h1 { font-size: 1.3rem; color: #1a1a2e; border-left: 4px solid #7a4f21; padding-left: 12px; margin-top: 0; margin-bottom: 20px; letter-spacing: normal; }
.content-card h2 { font-size: 1.05rem; color: #7a4f21; margin-top: 30px; margin-bottom: 10px; border-bottom: 1px solid #ead9c0; padding-bottom: 6px; }
.content-card p { margin: 0 0 14px; font-size: 0.92rem; color: #444; }
.content-card a { color: #7a4f21; }
.detail-status { margin-bottom: 10px; font-size: 0.8rem; }
.detail-title { margin-bottom: 15px; }

/* ===== ヤフオク式ギャラリー ===== */
.gallery { margin-bottom: 22px; }
.gallery-main-wrap { position: relative; background: #faf7f0; border: 1px solid #e6ddd0; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-height: 560px; }
.gallery-main { max-width: 100%; max-height: 100%; object-fit: contain; display: block; cursor: pointer; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; font-size: 1rem; cursor: pointer; z-index: 2; transition: background 0.15s; }
.gal-nav:hover { background: rgba(122,79,33,0.85); }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.gal-counter { position: absolute; right: 12px; bottom: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.8rem; border-radius: 6px; padding: 3px 10px; font-family: monospace; }

.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gal-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid #e6ddd0; cursor: pointer; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb.active { border-color: #7a4f21; opacity: 1; box-shadow: 0 0 0 2px rgba(122,79,33,0.25); }
.gal-hint { font-size: 0.75rem; color: #999; margin: 8px 0 0; text-align: center; }

/* ===== リアクションボタン ===== */
.react-area { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.react-btn { width: 100%; padding: 15px 10px; font-size: 0.95rem; font-weight: bold; color: #fff; border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,0.2); transition: 0.1s; }
.react-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.2); }
.react-btn:disabled { opacity: 0.6; cursor: wait; }
.react-want    { background: linear-gradient(to bottom, #ff9800, #f57c00); box-shadow: 0 4px 0 #e66d00; }
.react-auction { background: linear-gradient(to bottom, #43a047, #2e7d32); box-shadow: 0 4px 0 #1b5e20; }
.react-num { display: inline-block; margin-left: 6px; background: rgba(255,255,255,0.25); border-radius: 6px; padding: 1px 10px; font-family: monospace; }
.react-msg { font-size: 0.82rem; color: #7a4f21; text-align: center; min-height: 1.2em; margin: 0; }

/* ===== スペック表・タグ・思い出話 ===== */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 14px; }
.spec-table th, .spec-table td { border: 1px solid #e6ddd0; padding: 9px 12px; text-align: left; }
.spec-table th { background: #faf7f0; font-weight: bold; width: 28%; color: #5d4037; }
.mono { font-family: monospace; }

.tag-area { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag { font-size: 0.78rem; color: #7a4f21; background: #faf3e8; border: 1px solid #ead9c0; border-radius: 15px; padding: 4px 12px; text-decoration: none; }
.tag:hover { background: #7a4f21; color: #fff; }

.story-area { background: #fdfaf4; border-left: 4px solid #c9a86a; border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 0.92rem; color: #444; line-height: 1.8; }
.story-area p { margin: 0 0 12px; }
.story-area p:last-child { margin-bottom: 0; }

/* ===== フッター ===== */
footer { text-align: center; padding: 20px 15px; margin-top: 40px; border-top: 1px solid #ddd; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.footer-links a { color: #00e; text-decoration: underline; font-size: 0.85rem; }
.footer-links a:visited { color: #551a8b; }
.footer-copy { font-size: 0.75rem; color: #555; margin: 0; }

#back-to-top { position: fixed; bottom: 20px; right: 20px; background: #7a4f21; color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 100; }
#back-to-top.show { opacity: 1; visibility: visible; }
