.detail-page {
  background: #f5f5f5;
  padding: 20px 0 40px;
}

/* 横パディングは各セクション／タイトル側（背景をビューポート幅まで広げるためラップには付けない） */
.detail-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* test4.html / stayer/style.css と同スケール（hero-text1 h1）
   スマホは clamp で縮小。商品名に含まれる改行は pre-line で維持 */
.detail-page-title {
  text-align: center;
  font-size: clamp(1rem, 4vw + 0.75rem, 2.6rem);
  font-weight: 700;
  margin: 20px 0 20px;
  line-height: 1.25;
  padding-left: 5%;
  padding-right: 5%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-line;
  overflow-wrap: break-word;
}

/* パンくず（詳細ページ用に少し見やすく調整） */
.topicpath .breadcrumb {
  flex-wrap: wrap;
  row-gap: 4px;
}

.topicpath .breadcrumb li {
  line-height: 1.45;
}

/* stayer/style.css .hero / .left-area / .hero-image に準拠 */
.detail-hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  background: transparent;
  border: 1px solid #e5e5e5;
  padding: 40px 0;
  margin-bottom: 20px;
}

.detail-hero__image {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
  width: 100%;
  max-width: 520px;
}

.detail-hero__image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 0;
  background: transparent;
}

.detail-hero__body {
  flex: 1 1 auto;
  min-width: 300px;
  padding: 0 10px;
}

.detail-slider {
  border: 1px solid #eee;
  background: #fff;
}

.detail-slide {
  padding: 10px 12px;
}

.detail-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}

.detail-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.detail-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-thumb.is-active {
  border-color: #e60023;
}

.detail-hero__noimage {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px solid #eee;
  color: #888;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-tag {
  background: #ef6c00;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
}

.detail-tag--alt {
  background: #4f4f4f;
}

/* .hero-text h1 / p（stayer/style.css） */
.detail-catch {
  margin: 0 0 20px;
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1.25;
}

.detail-lead {
  margin: 0 0 30px;
  white-space: pre-wrap;
  font-size: 1.2em;
  line-height: 1.8;
}

/* Markdown の # 直下〜最初の ## 手前の本文（test4 .hero-text p：1.2em / 行間1.8） */
.detail-lead--md {
  white-space: normal;
  margin: 0 0 30px;
  font-size: 1.2em;
  line-height: 1.8;
}

.detail-lead--md p {
  margin: 0 0 1em;
  font-size: inherit;
  line-height: 1.8;
}

.detail-lead--md p:last-child {
  margin-bottom: 0;
}

.detail-price {
  background: #f3f3f3;
  padding: 10px 12px;
  border-left: 4px solid #ef6c00;
}

/* .price-box / .main-price（stayer/style.css） */
.detail-price-box {
  margin: 30px 0 0;
  padding: 20px;
  border: 0;
  background-color: #f2f2f2;
  border-left: 5px solid #111;
  font-size: 1.2em;
}

.detail-price-label {
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-weight: bold;
  color: #111;
}

.detail-price-value {
  margin: 0;
  padding: 0;
  font-size: 1.4em;
  font-weight: bold;
  color: #e60023;
  line-height: 1.3;
}

.detail-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 18px;
  margin-bottom: 20px;
}

/* .specs h2（stayer/style.css） ≒ 1.8em */
.detail-section h2 {
  margin: 0 0 20px;
  font-size: 1.8em;
  border-left: 4px solid #ef6c00;
  padding-left: 8px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  border: 1px solid #e6e6e6;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  width: 170px;
  background: #f68b1f;
  color: #fff;
  font-weight: 700;
}

.detail-box p {
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.detail-price-summary {
  text-align: center;
}

.detail-mini-table {
  border-collapse: collapse;
  margin: 0 auto;
  width: min(380px, 100%);
}

.detail-mini-table th,
.detail-mini-table td {
  border: 1px solid #e6e6e6;
  padding: 8px;
}

.detail-mini-table th {
  background: #f68b1f;
  color: #fff;
}

.detail-mini-table--insurance {
  width: min(480px, 100%);
}

.detail-mini-table--insurance th:first-child,
.detail-mini-table--insurance td:first-child {
  text-align: left;
}

.detail-mini-table--insurance th:last-child,
.detail-mini-table--insurance td:last-child {
  text-align: right;
}

.detail-info-grid {
  display: grid;
  gap: 10px;
}

.detail-info-card {
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 12px;
}

.detail-info-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.detail-info-card p {
  margin: 0;
  font-size: 14px;
}

.detail-md-story__inner {
  max-width: 920px;
}

.detail-md-section + .detail-md-section {
  margin-top: 28px;
}

/* test4.html .product-points h2 インライン 1.5em */
.detail-md-section__title {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.35;
}

/* test4 リスト: font-size 1.1em; line-height 1.8 */
.detail-md-section__body {
  font-size: 1.1em;
  line-height: 1.8;
}

.detail-md-section__body p {
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.detail-md-section__body p:last-child {
  margin-bottom: 0;
}

.detail-md-h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.detail-md-inline-h1 {
  font-size: inherit;
  font-weight: 700;
  margin: 0 0 10px;
}

.detail-checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.detail-checklist li {
  position: relative;
  margin: 0 0 0.6em;
  padding-left: 1.65em;
  font-size: 1em;
  line-height: 1.8;
  font-weight: 400;
}

.detail-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #ef6c00;
  font-weight: 800;
  font-size: 1.05em;
}

.product-info {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 0;
  margin-bottom: 0;
  font-size: 1.1em;
  line-height: 1.7;
}

.product-info h2 {
  margin: 0 0 30px;
  font-size: 1.8em;
  border-left: 4px solid #ef6c00;
  padding-left: 8px;
}

.info-box {
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 12px;
  margin-bottom: 10px;
}

.info-box:last-child {
  margin-bottom: 0;
}

.info-box h3 {
  margin: 0 0 8px;
  font-size: 1.3em;
}

.info-box p {
  margin: 0;
  font-size: 1em;
}

.info-box ul {
  margin: 0 0 8px 1.2em;
}

.info-box li {
  margin: 0 0 4px;
  font-size: 1em;
}

.detail-cta {
  text-align: center;
  margin-bottom: 12px;
}

.detail-btn {
  display: inline-block;
  text-decoration: none;
  background: #111;
  color: #fff;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 1.2em;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .detail-page {
    padding: 12px 0 28px;
  }

  .detail-page-title,
  .detail-wrap > section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .topicpath {
    margin: 10px 4% 8px;
  }

  .topicpath .breadcrumb {
    font-size: 13px;
  }

  .detail-hero {
    flex-wrap: wrap;
    padding: 30px 0;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  /* stayer/style.css @768：縦並び・サムネ60px */
  .detail-hero {
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
  }

  .detail-hero__image {
    max-width: 100%;
    margin: 0 auto;
  }

  .detail-hero__body {
    min-width: 100%;
    margin-top: 30px;
    padding: 10px 0;
  }

  .detail-slider {
    overflow: hidden;
  }

  .detail-slide {
    padding: 6px;
  }

  .detail-page-title,
  .detail-wrap > section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-page-title {
    text-align: left;
    margin-top: 0;
  }

  .topicpath {
    margin: 8px 12px 8px;
  }

  .topicpath .breadcrumb {
    font-size: 12px;
    letter-spacing: 0;
  }

  .topicpath .breadcrumb li:not(:last-of-type)::after {
    margin: 0 6px;
  }

  .detail-thumbs {
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .detail-thumb {
    width: 60px;
    flex: 0 0 60px;
  }

  .detail-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .detail-tag {
    font-size: 11px;
    padding: 2px 6px;
  }

  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table tr {
    border: 1px solid #e6e6e6;
    margin-bottom: 8px;
  }

  .detail-table th {
    border: 0;
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 10px;
  }

  .detail-table td {
    border: 0;
    padding: 8px 10px;
  }

  .detail-mini-table {
    width: 100%;
    font-size: 13px;
  }

  .detail-info-card,
  .info-box {
    padding: 10px;
  }

  .detail-btn {
    width: 100%;
    max-width: 360px;
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .detail-page-title,
  .detail-wrap > section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topicpath {
    margin: 6px 10px 8px;
  }

  .topicpath .breadcrumb {
    font-size: 11px;
  }
}

/* ---- test4 / stayer 準拠の下地 ---- */
.detail-page {
  background: #fafafa;
}

.detail-hero,
.detail-section,
.product-info {
  border: 0;
  box-shadow: none;
  background: transparent !important;
}

.detail-info-card,
.info-box {
  border: 0;
  background: #fafafa;
}

/* ---- ストライプをビューポート幅まで（左右の白すじを解消）／色は一段薄く ---- */
.detail-wrap > section {
  position: relative;
  z-index: 0;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
  padding: 26px 5%;
  background: transparent !important;
}

.detail-wrap > section::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.detail-wrap > section:nth-of-type(odd)::before {
  background: #ffffff;
}

.detail-wrap > section:nth-of-type(even)::before {
  background: #f8f8f8;
}

.detail-wrap > section.detail-md-story {
  padding-block: 30px !important;
}

/* 「白枠」っぽく見える内側ボックスの枠線を抑える（価格は test4 の左アクセント線を維持） */
.detail-slider,
.detail-hero__image img,
.detail-hero__noimage,
.detail-info-card,
.info-box {
  border: 0 !important;
  box-shadow: none !important;
}

.detail-price-box {
  box-shadow: none !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 5px solid #111 !important;
}

/* 仕様表の可読性は維持（表線は残す） */
.detail-table th,
.detail-table td,
.detail-mini-table th,
.detail-mini-table td {
  border-color: #dcdcdc;
}

@media (max-width: 768px) {
  .detail-wrap > section {
    padding: 18px 12px;
  }

  .detail-wrap > section.detail-md-story {
    padding-block: 24px !important;
  }
}
