@charset "utf-8";
/* CSS Document */

/* ------------------------------
Reset & Base
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #222;
  line-height: 1.6;
  font-size: 14px;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------
Layout
------------------------------ */
#all {
  margin: 0 auto;
  max-width: 1280px;
  min-height: 100vh;
  background-color: #fff;

  /* ▼ フッターに隠れないよう、下の余白を増量 */
  padding: 16px 16px 96px;
}

header {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

#gmenu {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

#logo img {
  max-width: 110px;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  margin-top: 8px;
}

#mainWrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

/* ------------------------------
Finder Intro
------------------------------ */
.finder-intro {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ec;
  border: 1px solid #ffe0c2;
  color: #444;
}

.finder-intro-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cc6a10;
  margin-bottom: 4px;
}

.finder-intro-text {
  font-size: 13px;
  line-height: 1.5;
}

/* Finder 使い方ミニガイド */
.finder-howto {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #ffd2a5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  align-items: flex-start;
  font-size: 12px;
  color: #5a3a16;
}

.finder-howto-label {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ffe3c2;
  color: #8a4b11;
  white-space: nowrap;
}

.finder-howto ol {
  margin: 0;
  padding-left: 18px;
}

.finder-howto li {
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------
Sidebar Filter
------------------------------ */
#side {
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 14px 14px 14px;
  background: #fafafa;

  /* デスクトップ用：スクロール追従 */
  position: sticky;
  top: 8px;
  align-self: flex-start;

  /* ▼ フッターで隠れないよう高さ調整 */
  max-height: calc(100vh - 8px - 72px);
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

/* サイドバー用 modern スクロールバー */
#side::-webkit-scrollbar {
  width: 8px;
}
#side::-webkit-scrollbar-track {
  background: transparent;
}
#side::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}
#side::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

#side h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

.sideInner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 13px;
}

.sideInner input[type="checkbox"],
.sideInner input[type="radio"] {
  width: 16px;
  height: 16px;
}

.sideInner label {
  cursor: pointer;
}

/* ------------------------------
Product List
------------------------------ */
#right {
  width: 100%;
}

#right_wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.unit {
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 10px 10px 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.1s, border-color 0.2s;
}

.unit:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border-color: #ffd9b3;
  transform: translateY(-1px);
}

.unit h2 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.unit .info {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.unit img {
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cards .card {
  border: 1px solid #ddd;
  text-align: center;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  background-color: #fdf5ef;
  white-space: nowrap;
}

.cards .price {
  background-color: #e4f6ff;
  border-color: #b6e2ff;
  font-weight: 700;
}

.cards .creature {
  background-color: #edfbe5;
  border-color: #cbe9b8;
}

.cards .status {
  background-color: #f7f7f7;
  border-color: #dedede;
}

/* ------------------------------
Detail button
------------------------------ */
.unit .detail-btn {
  margin-top: 10px;
  text-align: right;
}

.unit .detail-btn a {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ff922e, #ff7a1a);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.1s;
}

.unit .detail-btn a:hover {
  opacity: 0.9;
}

.unit .detail-btn a:active {
  transform: translateY(1px);
}

/* ------------------------------
Footer (fixed)
------------------------------ */
footer * {
  font-size: 11px;
}

.site-footer-fixed {
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 8px 12px;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.site-footer-fixed .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-company,
.footer-address {
  margin-bottom: 2px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------
フィルタ呼び出しフローティングボタン（スマホ用）
------------------------------ */
.filter-fab {
  position: fixed;
  right: 16px;
  bottom: 96px; /* フッターと被らないよう調整 */
  z-index: 9998;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid #ff7a1a;
  background: #ffffff;
  color: #ff7a1a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, background-color 0.15s, color 0.15s,
    box-shadow 0.15s, border-color 0.15s;
}

.filter-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-fab:hover {
  background: linear-gradient(135deg, #ff922e, #ff7a1a);
  color: #ffffff;
  border-color: #ff7a1a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.filter-fab:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* デスクトップではFAB非表示 */
@media (min-width: 961px) {
  .filter-fab {
    display: none;
  }
}

/* ------------------------------
Responsive
------------------------------ */
@media (max-width: 960px) {
  #gmenu {
    grid-template-columns: 1fr;
    row-gap: 10px;
    text-align: center;
  }

  #logo {
    justify-content: center;
  }

  #mainWrap {
    grid-template-columns: 1fr;
  }

  /* スマホ時はsticky解除 */
  #side {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
    position: static;
    max-height: none;
    overflow: visible;
  }

  #side h3 {
    flex-basis: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 12px;
    opacity: 0.8;
  }

  .sideInner {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
  }

  .sideInner-utils {
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
  }

  #right_wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit .info {
    grid-template-columns: 1fr;
  }

  .finder-howto {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .finder-howto-label {
    display: inline-block;
    margin-bottom: 2px;
  }

  .finder-howto ol {
    padding-left: 16px;
  }
}

@media (max-width: 640px) {
  #right_wrap {
    grid-template-columns: 1fr;
  }

  #all {
    padding: 12px 10px 96px;
  }

  .unit {
    padding: 10px;
  }

  .finder-intro-title {
    font-size: 14px;
  }

  .finder-intro-text {
    font-size: 12px;
  }
}

/* ------------------------------
Desktop header layout
------------------------------ */
@media (min-width: 961px) {
  header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  #gmenu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  .finder-intro {
    margin-top: 0;
    padding: 10px 14px;
  }
}

/* =========================================================
   博物館級（unit.museum）
   ========================================================= */
.unit.museum {
  border-color: #d7c38b;
  background: radial-gradient(
    circle at top left,
    #2b2634 0%,
    #151822 55%,
    #101217 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  color: #f5f0e6;
  position: relative;
}

.unit.museum h2 {
  color: #f7f1e2;
  letter-spacing: 0.02em;
}

.unit.museum img {
  border-color: rgba(255, 255, 255, 0.16);
}

.unit.museum .cards .card {
  background: rgba(8, 10, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f0e6;
}

.unit.museum .cards .price {
  background: linear-gradient(135deg, #f6e7bc, #d9ba71);
  border-color: #f0d78f;
  color: #4b3915;
  font-weight: 700;
}

.unit.museum .cards .creature {
  background: rgba(152, 206, 215, 0.14);
  border-color: rgba(152, 206, 215, 0.7);
}

.unit.museum .cards .status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

/* museum 詳細ボタン */
.unit.museum .detail-btn a {
  background: linear-gradient(135deg, #f6e7bc, #d9ba71);
  color: #3c3012;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.unit.museum .detail-btn a:hover {
  opacity: 0.95;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.unit.museum .detail-btn a:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.unit.museum::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    #f6e7bc,
    rgba(0, 0, 0, 0)
  );
  opacity: 0.8;
}

/* ------------------------------
画像リンクのクリック誘導
------------------------------ */
.unit .info a {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.unit .info a img {
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.unit .info a:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.unit .info a::after {
  content: "クリックして詳細を見る";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.unit .info a::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.unit .info a:hover::before,
.unit .info a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* スマホではホバー演出無効化 */
@media (max-width: 960px) {
  .unit .info a img {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .unit .info a::before,
  .unit .info a::after {
    display: none !important;
  }

  /* スマホではカード枠を少しだけ明確に */
  .unit .info a {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
  }
}
