/*=============================================================
  order_case_style.css
  オーダー品製作実例ページ共通スタイル
  ・タイル画背景（mail-form.html と同じ並び順）
  ・ダーク高級感デザイン（mail-form.html よりやや明るく）
  ・XHTML 1.0 Transitional 準拠 ／ レスポンシブ対応
=============================================================*/

/* ====== リセット ====== */
*, *::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: 13px;
  line-height: 1.6;
  color: #e8e8f0;
  background-color: #040812;
  min-width: 320px;
}

/* ======================================================
   タイル背景（fixed・全画面）
   並び順：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: #040812;
}
@media screen and (max-width: 768px) {
  #tile-bg {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  /* mail-form(0.55)より明るく、トップ(0.62)と同程度 */
  filter: brightness(0.60) saturate(0.78);
  background: #040812;
}

/* 暗幕オーバーレイ（高級感） */
#tile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(4,8,30,.70) 0%,
      rgba(15,10,35,.60) 40%,
      rgba(2,5,20,.68) 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: #7ab8e8; text-decoration: none; }
a:hover { color: #ffd700; text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; border: none; }

/* ====== ページ外枠 ====== */
#page-wrap {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 4px 40px;
}

/* ====== ページトップ戻るボタン（右下固定） ====== */
#pagetop {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  background: rgba(20,40,80,.85);
  border: 1px solid rgba(100,160,255,.5);
  border-radius: 6px;
  color: #aaccff;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: background .2s;
}
#pagetop:hover { background: rgba(40,80,160,.9); color: #fff; text-decoration: none !important; }

/* ====== 固定お問い合わせボタン（左下） ====== */
#fixed-contact {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
}
#fixed-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #2255aa 0%, #0d2f6e 100%);
  border: 1px solid rgba(100,160,255,.5);
  border-radius: 6px;
  color: #fff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  text-decoration: none !important;
  transition: background .2s;
}
#fixed-contact a:hover { background: linear-gradient(180deg, #3366cc 0%, #1a3d8f 100%); }

/* ====== H1 ====== */
#page-h1 {
  font-size: clamp(10px, 2vw, 12px);
  font-weight: bold;
  color: #ccd8f0;
  text-align: center;
  padding: 5px 8px;
  background: rgba(0,0,25,.80);
  border-bottom: 1px solid rgba(80,120,200,.4);
  line-height: 1.5;
}
#page-h1 a { color: #ccd8f0; }

/* ====== ヘッダーバナー行 ====== */
#header-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0,10,40,.82);
  border-bottom: 1px solid rgba(60,100,180,.4);
  flex-wrap: wrap;
}
.toplink-cell a {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(20,50,120,.7);
  border: 1px solid rgba(100,150,220,.4);
  border-radius: 4px;
  color: #aaccff !important;
  font-size: 12px;
  white-space: nowrap;
}
.toplink-cell a:hover { background: rgba(40,80,180,.8); color: #fff !important; }

/* ====== ページ内ナビ（三連メニュー） ====== */
#section-nav {
  display: flex;
  border: 1px solid rgba(80,120,200,.4);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
  background: rgba(0,5,30,.7);
}
.section-nav-cell {
  flex: 1;
  text-align: center;
}
.section-nav-cell + .section-nav-cell {
  border-left: 1px solid rgba(80,120,200,.3);
}
.section-nav-cell a {
  display: block;
  padding: 8px 4px;
  color: #b0c8f0 !important;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none !important;
  transition: background .2s, color .2s;
}
.section-nav-cell a:hover,
.section-nav-cell a[href="order_case.htm"]:focus { /* 現在ページは別途JS等で付与 */
  background: rgba(40,80,180,.6);
  color: #ffd700 !important;
}
/* 現在ページ強調クラス */
.section-nav-cell.current a {
  background: linear-gradient(180deg, rgba(20,60,150,.9) 0%, rgba(10,35,90,.9) 100%);
  color: #ffd700 !important;
  border-bottom: 2px solid #ffd700;
}

/* ====== 区切り線 ====== */
hr.hr-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(80,120,200,.6) 20%, rgba(160,200,255,.8) 50%, rgba(80,120,200,.6) 80%, transparent 100%);
  border: none;
  margin: 8px 0;
}

/* ====== カテゴリジャンプメニュー ====== */
#category-menu {
  background: rgba(5,10,40,.82);
  border: 1px solid rgba(80,120,200,.35);
  border-radius: 8px;
  padding: 12px 10px;
  margin: 8px 0;
}
#category-menu-title {
  color: #aac4f0;
  font-size: 12px;
  text-align: center;
  margin-bottom: 8px;
}
#category-menu-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.cat-jump-btn {
  display: inline-block;
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(20,50,130,.85) 0%, rgba(8,25,75,.90) 100%);
  border: 1px solid rgba(100,150,230,.45);
  border-radius: 5px;
  color: #c8daff !important;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
  /* ゴールドの微光 */
  box-shadow: 0 1px 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.cat-jump-btn:hover {
  background: linear-gradient(180deg, rgba(40,90,200,.9) 0%, rgba(15,50,130,.95) 100%);
  border-color: rgba(200,170,80,.7);
  color: #ffd700 !important;
}

/* ====== アクションボタン群 ====== */
#action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 4px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.10);
  transition: filter .2s, transform .15s;
  border: 1px solid transparent;
}
.action-btn:hover { filter: brightness(1.18); transform: translateY(-1px); color: #fff !important; }
.action-btn--inquiry {
  background: linear-gradient(180deg, #1a4fa8 0%, #0d2f6e 100%);
  border-color: rgba(100,160,255,.5);
}
.action-btn--tel {
  background: linear-gradient(180deg, #8b1a1a 0%, #5a0a0a 100%);
  border-color: rgba(255,120,100,.5);
}
.action-btn--access {
  background: linear-gradient(180deg, #1a6633 0%, #0d3d1e 100%);
  border-color: rgba(80,200,120,.5);
}

/* ====== アクセス注記 ====== */
p.access-note {
  font-size: 11px;
  color: #ffeebb;
  text-align: center;
  background: rgba(50,40,0,.55);
  border: 1px solid rgba(200,170,50,.35);
  border-radius: 4px;
  padding: 4px 10px;
  margin: 4px 0 8px;
}
p.access-note a { color: #ffd700 !important; }

/* ====== 銘板告知ブロック ====== */
.meiban-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,10,40,.70);
  border: 1px solid rgba(80,120,200,.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 6px 0;
  font-size: 12px;
  color: #c8daff;
}
.meiban-block img { flex-shrink: 0; border-radius: 4px; }
.meiban-block strong { color: #ffd700; }

/* ====== 追加告知ブロック ====== */
.add-notice {
  background: rgba(5,10,40,.70);
  border: 1px solid rgba(80,120,200,.3);
  border-left: 3px solid #4466aa;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 6px 0;
  font-size: 12px;
  color: #b8ccee;
}
.add-notice p { margin: 3px 0; }

/* ====== カテゴリヘッダー ====== */
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(10,20,70,.90) 0%, rgba(5,15,50,.90) 100%);
  border: 1px solid rgba(100,150,230,.45);
  border-left: 4px solid #7090d0;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  margin: 10px 0 6px;
  /* ゴールド微光 */
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(180,160,100,.08);
}
.category-header-title {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: bold;
  color: #e8d8a0;
  letter-spacing: .05em;
}
.category-header-title a { color: #e8d8a0 !important; }
.category-header-back a {
  font-size: 11px;
  color: #88aadd !important;
  padding: 3px 8px;
  border: 1px solid rgba(80,120,200,.35);
  border-radius: 3px;
  background: rgba(10,25,70,.6);
}
.category-header-back a:hover { color: #ffd700 !important; }

/* ====== サムネイルグリッド ====== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0;
}
@media screen and (max-width: 640px) {
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 400px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====== サムネイルカード ====== */
.thumb-card {
  background: rgba(8,15,50,.82);
  border: 1px solid rgba(80,120,200,.30);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  /* ガラス感 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.thumb-card:hover {
  border-color: rgba(180,150,60,.7);
  box-shadow: 0 4px 16px rgba(0,0,0,.6), 0 0 8px rgba(180,150,60,.2);
  transform: translateY(-2px);
}
.thumb-card a {
  display: block;
  padding: 4px;
}
.thumb-card img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  transition: filter .2s;
  background: rgba(0,0,0,.3);
}
.thumb-card:hover img { filter: brightness(1.12); }

.thumb-label {
  font-size: 10px;
  color: #b0ccf0;
  padding: 3px 4px 0;
  font-weight: bold;
}
.thumb-size {
  font-size: 9px;
  color: #7090b8;
  padding: 0 4px 4px;
  line-height: 1.3;
}
/* 店舗什器用 */
.thumb-label-shop {
  font-size: 10px;
  color: #d0b8f0;
  padding: 3px 4px 0;
  font-weight: bold;
}
.thumb-size-shop {
  font-size: 9px;
  color: #9070c0;
  padding: 0 4px 4px;
}
/* 画像未準備 */
.no-image {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #556688;
  background: rgba(5,10,30,.5);
}

/* ====== CTAエリア ====== */
#contact-cta {
  background: rgba(5,10,45,.88);
  border: 1px solid rgba(100,150,230,.4);
  border-radius: 10px;
  padding: 18px 14px;
  margin: 10px 0;
  text-align: center;
  /* ゴールド枠の微光 */
  box-shadow: 0 4px 20px rgba(0,0,0,.5), inset 0 1px 0 rgba(180,150,80,.10);
}
.cta-title {
  font-size: clamp(13px, 3vw, 16px);
  font-weight: bold;
  color: #e8d080;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
#contact-cta p {
  font-size: 12px;
  color: #b0c4e8;
  margin: 4px 0;
}
.cta-reserve {
  font-size: 11px;
  color: #ffeebb !important;
  background: rgba(50,40,0,.5);
  border: 1px solid rgba(200,170,50,.3);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-block;
  margin: 4px 0 10px !important;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 4px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #1a4fa8 0%, #0d2f6e 100%);
  border: 1px solid rgba(100,160,255,.5);
  border-radius: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: filter .2s;
}
.btn-contact:hover { filter: brightness(1.2); color: #fff !important; }
.btn-tel-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 4px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #8b1a1a 0%, #5a0a0a 100%);
  border: 1px solid rgba(255,120,100,.5);
  border-radius: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: filter .2s;
}
.btn-tel-now:hover { filter: brightness(1.2); color: #fff !important; }

p.access-note { margin-top: 8px !important; }

/* ====== 特定商取引法リンク ====== */
.tokushou-link {
  text-align: center;
  font-size: 12px;
  margin: 6px 0;
}
.tokushou-link a { color: #ffff88 !important; }

/* ====== フッター ====== */
#site-footer {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0,0,20,.80);
  border-top: 1px solid rgba(60,100,180,.35);
  font-size: 11px;
  color: #778899;
}
.footer-nav {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}
.footer-nav a {
  color: #88aacc !important;
  font-size: 11px;
}
.footer-nav a:hover { color: #ffd700 !important; }
#site-footer p { font-size: 11px; }
#site-footer a { color: #88aacc !important; }

/* ====== スマホ全般調整 ====== */
@media screen and (max-width: 500px) {
  #action-btns { flex-direction: column; align-items: stretch; }
  .action-btn { justify-content: center; }
  .btn-contact, .btn-tel-now { justify-content: center; width: 100%; }
  #header-banner-row { flex-direction: column; align-items: center; }
  .cat-jump-btn { font-size: 11px; padding: 6px 8px; }
}

/* ====== Lightbox（order_shelf_wagon / order_etc 用） ====== */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.80);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb-overlay.open { display: flex; }
.lb-frame {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-frame img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
}
#lb-caption {
  color: #ccc;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 6px;
  text-align: center;
  max-width: 90vw;
  max-height: 44px;
  overflow: hidden;
}
.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: #0a0c10;
  background: #e8c96a;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  z-index: 9001;
}
.lb-close:hover { background: #fff; }
.thumb-card a { cursor: zoom-in; }
