/* Product Detail & Legal Content Styles for New Design */
.product-detail-page {
  color: #111;
  padding: 140px 0 180px;
}

.product-detail-shell {
  width: min(1400px, calc(100% - var(--gutter, 40px) * 2));
  margin-inline: auto;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(48px, 4.7vw, 90px);
  align-items: start;
}

.product-detail-main {
  min-width: 0;
}

.product-detail-header {
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ddd;
}

.product-detail-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .05em;
  color: #111;
}

.product-detail-code {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

/* Slick / Gallery Area */
.product-gallery-wrap {
  max-width: 720px;
  margin: 0 auto 48px;
}

.product-gallery-wrap .slider {
  width: 100%;
  margin: 0 auto;
}

.product-gallery-wrap .slick-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  background: #fff;
}

.product-subimages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.product-subimage-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.product-subimage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  display: block;
  margin-bottom: 10px;
}

.product-subimage-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* Product Price & Specs Block */
.product-info-box {
  background: #f9f8f6;
  border-block: 1px solid #222;
  padding: 28px 24px;
  margin-bottom: 40px;
}

.product-info-name {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-info-desc {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 16px;
}

.product-info-price {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  letter-spacing: .04em;
}

.product-info-price span {
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.product-spec-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.product-spec-card {
  border: 1px solid #e5e5e5;
  padding: 20px;
  background: #fff;
}

.product-spec-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.product-spec-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto 0;
}

/* Order Option Form Area (preserving existing cont_sma & validate classes) */
.product-order-section {
  margin-top: 48px;
  padding: 36px 32px;
  background: #fdfcfb;
  border: 1px solid #e2ddd7;
  border-radius: 6px;
}

.product-order-section h3.order-section-heading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
}

.product-order-section .cont_sma {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eae6e1;
}

.product-order-section .cont_sma h2,
.product-order-section .cont_sma p.bold {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #222;
}

.product-order-section select,
.product-order-section input[type="text"],
.product-order-section textarea {
  width: min(100%, 460px);
  padding: 11px 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #222;
}

.product-order-section input[type="submit"],
.product-order-section .btn-order-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 36px;
  background: var(--accent, #e65757);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.2s ease;
}

.product-order-section input[type="submit"]:hover,
.product-order-section .btn-order-submit:hover {
  opacity: 0.9;
}

.product-order-section .error {
  color: #e65757;
  font-size: 13px;
  margin-left: 8px;
}

/* Legal / Static Content Page Box (riyo.php, privacy.php, tokutei.html) */
.legal-page {
  padding: 96px 0 140px;
}

.legal-container {
  width: min(960px, calc(100% - var(--gutter, 40px) * 2));
  margin-inline: auto;
}

.legal-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid #222;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2,
.legal-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent, #e65757);
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #ddd;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 28%;
  background: #f7f6f4;
  font-weight: 500;
}

@media (max-width: 1199px) {
  .product-detail-page {
    padding: 38px 0 120px;
  }
  .product-detail-layout {
    display: block;
  }
}

@media (max-width: 699px) {
  .product-order-section {
    padding: 24px 18px;
  }
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
}

/* Scoped styles for existing product.php inner classes inside .product-detail-main */
.product-detail-main .clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.product-detail-main .clear { clear: both; }
.product-detail-main .mb50 { margin-bottom: 40px; }
.product-detail-main .pt30 { padding-top: 24px; }
.product-detail-main .title-column {
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #222;
}
.product-detail-main .headTitle {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: .06em;
  color: #111;
}
.product-detail-main .cont1200 {
  width: 100%;
  max-width: 100%;
}
.product-detail-main .shohin-list-1,
.product-detail-main .shohin-list-2 {
  width: 100%;
  margin-bottom: 32px;
}
.product-detail-main .gazolist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.product-detail-main .gazo {
  background: #fafafa;
  padding: 12px;
  text-align: center;
}
.product-detail-main .gazo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (min-width: 1025px) {
  .product-detail-main .shohin-list-1 > .slider,
  .product-detail-main .shohin-list-1 > .gazo {
    max-width: 520px;
    margin-inline: auto;
  }
}
.product-detail-main .sub-h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}
.product-detail-main .sub-h6 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
  color: #222;
}
.product-detail-main .kakaku {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent, #e65757);
  margin: 16px 0;
}
.product-detail-main .sen {
  border-top: 1px solid #e5e5e5;
  margin: 24px 0;
}
.product-detail-main dl.form,
.product-detail-main .form .list {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px 24px;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.product-detail-main dl.form dt,
.product-detail-main .form .list dt {
  font-weight: 500;
  color: #222;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.product-detail-main dl.form dt span {
  border: 1px solid #6A0305;
  padding: 2px 6px;
  color: #6A0305;
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
  line-height: 1.2;
}
.product-detail-main dl.form dd,
.product-detail-main .form .list dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.product-detail-main span.error input,
.product-detail-main span.error textarea,
.product-detail-main span.error select,
.product-detail-main span.error label {
  background: #FFCCCC !important;
}
.product-detail-main span p.error,
.product-detail-main p.error {
  margin: 0 0 6px 0;
  color: #d00;
  font-size: 12px;
  font-weight: 500;
}
.product-detail-main .form input[type="text"],
.product-detail-main .form select,
.product-detail-main .form textarea {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #888;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.product-detail-main .botan-column {
  margin: 36px 0 48px;
  text-align: center;
}
.product-detail-main .button2 {
  display: inline-grid;
  place-items: center;
  min-width: 280px;
  min-height: 56px;
  padding: 14px 36px;
  background: var(--accent, #e65757);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.product-detail-main > section:last-of-type {
  text-align: center;
}
.product-detail-main .button3 {
  display: inline-grid;
  place-items: center;
  min-width: 200px;
  min-height: 48px;
  padding: 10px 28px;
  background: #555;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 40px;
}
@media (max-width: 699px) {
  .product-detail-main dl.form,
  .product-detail-main .form .list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


