/* select-detail.css - 位牌詳細ページ */

/* ---- ページタイトル ---- */
#pageTtl {
  background: #fff;
  border-top: 1px solid #e6dfd0;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #e6dfd0;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
#pageTtl h1 {
  font-size: 1.4rem;
  color: var(--color-brown);
  margin: 0;
}

/* ---- 商品概要エリア ---- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1em 1.5em 1em 1.5em;
  align-items: start;
}

/* 画像エリア */
.detail-images {
  text-align: center;
}
.detail-img-pair {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(to bottom, #fff 0%, #ddd 74%, #fff 75%, #eee 100%);
  border-radius: 8px;
  padding: 1.5em 1em 4em 1em;
  min-height: 420px;
}
.detail-img-panel {
  flex: 1;
  text-align: center;
  position: relative;
  max-width: 280px;
}
.detail-img-panel img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  scale: 1.4;
}
.detail-img-label {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.7rem;
  color: #fff;
  background: var(--color-gold);
  padding: 0.15em 0.6em;
  border-radius: 3px;
  z-index: 1;
}
.detail-img-panel:first-child .detail-img-label {
  left: 0;
  right: auto;
}
.detail-360-link {
  text-align: center;
  margin-top: 1.5em;
}
.detail-360-link img {
  max-width: 200px;
  width: 100%;
  border-radius: 6px;
}

/* 商品情報エリア */
.detail-info {
  padding-top: 0.5em;
}
.detail-category {
  display: inline-block;
  padding: 0.2em 0.8em;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 3px;
  margin-bottom: 0.6em;
  background: var(--color-gold);
  color: #fff;
}
.detail-category[data-cat="普及品"]  { background-color: #c6a261; color: #fff; }
.detail-category[data-cat="本金粉"]  { background-color: #e6d291; color: #866231; }
.detail-category[data-cat="本金箔"]  { background-color: #ffff80; color: #563211; }
.detail-category[data-cat="黒檀"]    { background-color: #000040; color: #fff; }
.detail-category[data-cat="紫檀"]    { background-color: #400040; color: #fff; }
.detail-category[data-cat="モダン"]  { background-color: #dde; color: #667; }
.detail-category[data-cat="会津"]    { background-color: #563211; color: #ffff80; }
.detail-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-brown);
  margin: 0 0 0.6em;
  line-height: 1.4;
}
.detail-price {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-red);
  margin-bottom: 0.3em;
}
.detail-price-note {
  font-size: 0.8rem;
  color: #888;
  font-weight: normal;
}
.detail-note {
  margin: 1em 0;
  padding: 0.8em 1em;
  background: #fff8f0;
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
}

/* 基本情報テーブル */
.detail-spec-list {
  margin: 1.5em 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}
.detail-spec-list dt {
  padding: 0.6em 1em 0.6em 0;
  font-weight: bold;
  color: var(--color-brown);
  font-size: 0.85rem;
  border-bottom: 1px dotted #ddd;
  white-space: nowrap;
}
.detail-spec-list dd {
  padding: 0.6em 0;
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  border-bottom: 1px dotted #ddd;
  line-height: 1.6;
}

.detail-oisogi {
  font-size: 0.8rem;
  color: var(--color-red);
}

/* ---- お位牌を作るセクション ---- */
.detail-order {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 2em;
  padding: 0;
  background: none;
}
.detail-order-header {
  background: #fff;
  border-top: 1px solid #e6dfd0;
  padding: 1.8em 1em 1.5em;
  text-align: center;
}
.detail-section-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin: 0 0 1.5em;
  letter-spacing: 0.05em;
}
.detail-section-title::after {
  content: "";
  display: block;
  width: 3em;
  height: 3px;
  background: #c6a261;
  margin: 0.5em auto 0;
  border-radius: 2px;
}
.detail-order-lead {
  font-size: 1em;
  font-weight: bold;
  color: #888;
  margin: 0;
  line-height: 1.6;
}
.detail-order-sub {
  color: var(--color-gold-dark);
  font-size: 1em;
  font-weight: bold;
}
.detail-order-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
}

/* サイズ選択リスト */
.detail-size-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.detail-size-item {
  display: flex;
  align-items: center;
  padding: 1em 1.2em;
  background: #fff;
  border-bottom: 1px solid #f0ede8;
  cursor: pointer;
  transition: all 200ms;
  position: relative;
}
.detail-size-item:last-child {
  border-bottom: none;
}
.detail-size-item:hover {
  background: #fffbf0;
  padding-left: 1.5em;
}
.detail-size-item.soldout {
  background: #f7f7f7;
  cursor: default;
  opacity: 0.6;
}
.detail-size-item.soldout:hover {
  padding-left: 1.2em;
}
.detail-size-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  background: var(--color-gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 0.8em;
  flex-shrink: 0;
}
.detail-size-item.soldout .detail-size-num {
  background: #ccc;
}
.detail-size-name {
  flex: 1;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.4;
}
.detail-size-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-brown);
  margin-right: 0.8em;
  white-space: nowrap;
}
.detail-size-action {
  font-size: 1.6rem;
  color: #ccc;
  line-height: 1;
  transition: all 200ms;
}
.detail-size-item:hover .detail-size-action {
  color: var(--color-gold);
  transform: translateX(3px);
}
.detail-size-soldout {
  font-size: 0.75rem;
  color: #999;
  font-weight: bold;
  background: #eee;
  padding: 0.3em 0.6em;
  border-radius: 4px;
}

/* 360° */
.detail-360 {
  text-align: center;
  margin-top: 1.5em;
  padding: 0 1em;
}
.detail-360 a {
  display: inline-block;
  transition: transform 200ms;
}
.detail-360 a:hover {
  transform: scale(1.03);
}
.detail-360 img {
  max-width: 200px;
  width: 100%;
  border-radius: 6px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 575.98px) {
  #pageTtl {
    height: 59px;
  }
  #pageTtl h1 {
    font-size: 1.2rem;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 3em 0.8em 1em 0.8em;
  }
  .detail-img-pair {
    padding: 1.5em 1em 4em;
    min-height: 280px;
    gap: 0.8em;
    margin-left: -0.8em;
    margin-right: -0.8em;
  }
  .detail-img-panel {
    max-width: none;
  }
  .detail-img-panel img {
    max-height: 350px;
  }
  .detail-name {
    font-size: 1.25rem;
  }
  .detail-price {
    font-size: 1.3rem;
  }
  .detail-order-body {
    padding: 0;
  }
  .detail-size-list {
    border-radius: 0;
  }
  .detail-size-item {
    padding: 0.9em 1em;
  }
  .detail-size-action {
    opacity: 1;
    transform: none;
  }
  .detail-size-name {
    font-size: 1rem;
  }
  .detail-size-price {
    font-size: 1rem;
    margin-right: 0.5em;
  }
}
