/* =============================================================
   pm_sub.css
   Private Museum 子ページ共通スタイル
   ・タイル背景（1→4→2→5→3→6→10→7→9→8）
   ・抹茶色（黄緑）オーバーレイ（private_museum_main.css準拠）
   ・レスポンシブ対応 / 固定ボタン3種
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'MS PGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #ffffff;
  background-color: #050a03;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

/* ====== タイル背景（並び順：1→4→2→5→3→6→10→7→9→8） ====== */
#tile-bg {
  position: fixed; inset: 0; z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  pointer-events: none;
  background: #050a03;
}
@media screen and (max-width: 768px) {
  #tile-bg { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 1fr); }
}
#tile-bg .tile-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  filter: brightness(0.55) saturate(0.70);
  background: #050a03;
}

/* ====== 抹茶色オーバーレイ ====== */
#tile-overlay {
  position: fixed; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(30,55,10,.72) 0%, rgba(15,40,5,.65) 50%, rgba(20,50,8,.70) 100%);
  pointer-events: none;
}

/* ====== ガラス反射・斜め線オーバーレイ ====== */
#glass-lines { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#glass-lines svg { width: 100%; height: 100%; }

/* ====== リンク ====== */
a { color: #ffff00; text-decoration: none; }
a:hover { color: #ffffff; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border: none; }

/* ====== ページ外枠 ====== */
.page-wrapper {
  position: relative; z-index: 3;
  max-width: 760px; margin: 0 auto;
  padding: 10px 15px 120px;
}

/* ====== サイトヘッダー（H1） ====== */
.site-header { text-align: center; padding: 10px 0 6px; }
.site-header h1 {
  font-size: clamp(11px, 2.2vw, 14px);
  font-weight: normal; color: #ddffdd; line-height: 1.6;
}
.site-header h1 a { color: #ffffff; }
.header-hr { border: none; border-top: 2px solid #336633; margin: 8px 0; }

/* ====== ページタイトルエリア ====== */
.page-title-area {
  background: rgba(0, 25, 8, 0.80);
  border: 1px solid #336633; border-radius: 4px;
  padding: 10px 14px; margin: 10px 0;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px;
}
.page-title-area h2 {
  color: #ccffcc; font-size: clamp(13px, 2.8vw, 16px); line-height: 1.5;
}
.page-title-area h2 span {
  font-size: 12px; color: #88aa88; font-weight: normal; margin-left: 6px;
}
.nav-back-link { color: #ffff99; font-size: 12px; white-space: nowrap; }
.nav-back-link:hover { color: #ffffff; }

/* ====== ナビゲーション ====== */
.page-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.page-nav a {
  display: inline-block; padding: 5px 12px;
  font-size: 12px; color: #ffff99;
  border: 1px solid rgba(100, 160, 60, 0.50);
  border-radius: 3px; background: rgba(10, 40, 5, 0.60);
  transition: background 0.15s;
}
.page-nav a:hover { background: rgba(20, 70, 10, 0.80); color: #ffffff; text-decoration: none; }

/* ====== 区切り線 ====== */
.section-hr { border: none; border-top: 1px solid #336633; margin: 14px 0; }

/* ====== ショーケース番号バッジ ====== */
.sc-badge {
  background: rgba(0, 30, 10, 0.85);
  border: 1px solid #336633; border-radius: 4px;
  padding: 8px 14px; margin: 10px 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.sc-badge .sc-no { color: #88dd88; font-size: clamp(12px, 2.5vw, 14px); font-weight: bold; }
.sc-badge .sc-title { color: #ccffcc; font-size: clamp(13px, 2.8vw, 15px); font-weight: bold; line-height: 1.5; }

/* ====== メイン画像エリア ====== */
.main-photo {
  text-align: center;
  background: rgba(0, 20, 5, 0.75);
  border: 1px solid #336633; border-radius: 4px;
  padding: 16px 10px; margin: 12px 0;
}
.main-photo img {
  margin: 0 auto 20px;
  max-width: 100%; max-height: 500px;
  width: auto; height: auto; object-fit: contain;
}
.main-photo img:last-child { margin-bottom: 0; }

/* ====== 仕様・説明リスト ====== */
.spec-block {
  background: rgba(0, 20, 5, 0.70);
  border: 1px solid #336633; border-radius: 4px;
  padding: 14px 16px; margin: 12px 0;
}
.spec-block ul { list-style: none; padding: 0; }
.spec-block ul li {
  color: #e8ffe8; font-size: clamp(13px, 2.3vw, 14px);
  line-height: 1.9; padding: 4px 0 4px 1.2em; position: relative;
  border-bottom: 1px solid rgba(51, 102, 51, 0.40);
}
.spec-block ul li:last-child { border-bottom: none; }
.spec-block ul li::before { content: '・'; position: absolute; left: 0; color: #88cc88; }
.spec-block ul li a { color: #ffff99; }
.spec-block ul li a:hover { color: #ffffff; }

/* ====== サブセクション見出し ====== */
.sub-section-heading {
  color: #ccffcc; font-size: clamp(13px, 2.5vw, 15px); font-weight: bold;
  padding: 8px 12px;
  background: rgba(0, 40, 10, 0.70);
  border-left: 3px solid #4aaa4a;
  margin: 16px 0 10px;
}

/* ====== サムネイルグリッド ====== */
.thumb-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 10px 0;
}
@media (max-width: 480px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); } }
.thumb-item {
  background: rgba(0, 20, 5, 0.70);
  border: 1px solid #336633; border-radius: 3px;
  overflow: hidden; text-align: center;
}
.thumb-item img {
  width: auto; max-width: 100%; height: auto; max-height: 180px;
  display: block; margin: 0 auto;
  transition: opacity 0.2s;
}
.thumb-item img:hover { opacity: 0.85; }
.thumb-item .thumb-caption { font-size: 11px; color: #aaddaa; padding: 5px 6px; line-height: 1.5; }

/* ====== 外部リンク付き画像 ====== */
.ext-img-links { text-align: center; margin: 12px 0; }
.ext-img-item { display: inline-block; text-align: center; margin: 6px auto; }
.ext-img-item img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.ext-img-label { color: #aaddaa; font-size: 12px; margin-top: 6px; line-height: 1.5; text-align: center; }

/* ====== キャプション ====== */
.photo-caption-text {
  color: #aaddaa; font-size: 12px; text-align: center;
  margin: 4px 0 8px; line-height: 1.6;
}

/* ====== 特定商取引リンク ====== */
.tokushou-row { font-size: 12px; color: #668866; margin: 10px 0; }
.tokushou-row a { color: #88aa88; }
.tokushou-row a:hover { color: #ffffff; }

/* ====== フッター ====== */
footer {
  text-align: center; color: #668866; font-size: 12px;
  padding: 20px 0 30px;
  border-top: 1px solid #336633; margin-top: 20px; line-height: 1.8;
}
footer a { color: #88cc88; }
footer a:hover { color: #ffff00; }

/* ====== 固定フローティングボタン（左下3つ＋右下トップ） ====== */
.float-btns {
  position: fixed; bottom: 20px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding-left: 12px; gap: 8px; z-index: 1000; pointer-events: none;
}
.float-btns > * { pointer-events: auto; }

.btn-call {
  display: flex; align-items: center; gap: 7px;
  background: #c8251a; color: #fff; font-size: 0.82em; font-weight: bold;
  padding: 9px 14px; border-radius: 30px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6); white-space: nowrap; transition: background 0.2s;
}
.btn-call:hover { background: #e02d20; color: #fff; text-decoration: none; }
.btn-call .icon { font-size: 1.1em; }

.btn-inquiry {
  display: flex; align-items: center; gap: 7px;
  background: #1a5c1a; color: #fff; font-size: 0.82em; font-weight: bold;
  padding: 9px 14px; border-radius: 30px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6); white-space: nowrap; transition: background 0.2s;
  border: 1px solid #2d8b2d;
}
.btn-inquiry:hover { background: #236b23; color: #fff; text-decoration: none; }
.btn-inquiry .icon { font-size: 1.1em; }

.btn-access {
  display: flex; align-items: center; gap: 7px;
  background: #1a3a5c; color: #fff; font-size: 0.82em; font-weight: bold;
  padding: 9px 14px; border-radius: 30px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6); white-space: nowrap; transition: background 0.2s;
  border: 1px solid #2d6098;
}
.btn-access:hover { background: #234b7a; color: #fff; text-decoration: none; }
.btn-access .icon { font-size: 1.1em; }

.btn-totop {
  position: fixed; bottom: 20px; right: 12px;
  width: 46px; height: 46px;
  background: rgba(0, 80, 0, 0.85); border: 1px solid #2d8b2d;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3em; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5); z-index: 1000; transition: background 0.2s;
}
.btn-totop:hover { background: rgba(0, 110, 0, 0.95); color: #fff; text-decoration: none; }

/* ====== レスポンシブ ====== */
@media screen and (max-width: 600px) {
  .page-wrapper { padding: 8px 10px 120px; }
  .sc-badge { flex-direction: column; gap: 4px; }
  .float-btns { padding-left: 8px; gap: 6px; bottom: 16px; }
  .btn-call, .btn-inquiry, .btn-access { font-size: 0.75em; padding: 8px 11px; }
  .btn-totop { bottom: 16px; right: 8px; width: 42px; height: 42px; font-size: 1.1em; }
}
@media screen and (max-width: 400px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .thumb-item img { max-height: 130px; }
}
