/* ===== Base ===== */
body {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.product-detail {
  width: 100%;
  max-width: 1200px;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.wide-only {
  max-width: 70%;
  margin: 20px auto;
  display: block;
}

@media (max-width: 767px) {
  .wide-only {
    max-width: 90%;
  }
}

h1 {
  font-size: 1.6em;
  text-align: center;
  margin-bottom: 20px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.price {
  text-align: center;
  font-size: 1.2em;
  color: #e53935;
  font-weight: bold;
  margin-bottom: 20px;
}

.description {
  margin-bottom: 20px;
}

.product-image {
  width: 100%;
  height: auto;
  margin: auto;
}

@media (min-width: 1024px) {
  .product-image {
    width: 600px;
  }
}

/* ===== Features ===== */
.features {
  margin: 40px 0;
}

.features h5 {
  font-size: 1.2em;
  margin-bottom: 20px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

.features ol {
  padding-left: 20px;
}

.features li {
  margin-bottom: 40px;
  line-height: 1.7;
}

.features figure {
  margin: 0;
  text-align: center;
}

.features figcaption,
.feature-image.center figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
  margin-bottom: 16px;
  line-height: 1.4;
  text-align: center;
}

.feature-image.center figure {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Gallery ===== */
.feature-gallery {
  margin: 20px 0;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery-row > figure,
.gallery-row > img {
  flex: 0 1 48%;
  max-width: 48%;
  box-sizing: border-box;
  margin: 0;
}

.gallery-row.center {
  justify-content: center;
  margin-top: 20px;
}

.gallery-row.center > figure,
.gallery-row.center > img {
  flex: 0 1 48%;
  max-width: 48%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .gallery-row > figure,
  .gallery-row > img,
  .gallery-row.center > figure,
  .gallery-row.center > img {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ===== Two Column Gallery ===== */
.feature-gallery.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .feature-gallery.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-gallery.two-column figure {
  margin: 0;
}

.feature-gallery.two-column img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .feature-image {
    text-align: center;
  }

  .feature-image img {
    width: 600px;
    margin: 0 auto;
  }
}

/* ===== Specs ===== */
.specs {
  margin: 40px 0;
}

.specs h5 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: top;
  word-break: break-word;
}

.spec-table th {
  width: 34%;
  text-align: left;
  font-weight: 600;
  background: #fafafa;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .spec-table th,
  .spec-table td {
    padding: 8px 10px;
  }

  .spec-table th {
    width: 40%;
  }
}

@media (min-width: 1024px) {
  .spec-table {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
  }
}

/* ===== Other Features ===== */
.other-features {
  margin: 40px 0;
}

.other-features h5 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

.other-features ul {
  list-style: disc inside;
  margin: 0 auto;
  padding: 0;
  width: 80%;
  max-width: 700px;
}

.other-features li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ===== Support ===== */
.support {
  margin: 40px 0;
}

.support h5 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

.support ol {
  counter-reset: main;
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .support ol {
    width: auto;
  }
}

.support ol > li {
  counter-increment: main;
  margin-bottom: 20px;
  line-height: 1.7;
  position: relative;
  padding-left: 1.6em;
}

.support ol > li::before {
  content: counter(main) "．";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.support .sub-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  margin-left: 1.6em;
}

@media (max-width: 767px) {
  .support .sub-list {
    margin-left: 0;
  }
}

.support .sub-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 6px;
  line-height: 1.6;
}

.support .sub-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ===== Shipping Note ===== */
.shipping-note {
  width: 80%;
  max-width: 700px;
  margin: 32px auto 40px;
  background: #fff8f8;
  border: 1px solid #f2caca;
  padding: 20px;
  border-radius: 6px;
}

.shipping-note h5 {
  color: #d32f2f;
  font-size: 1.1em;
  margin: 0 0 10px;
  border: none;
  font-weight: 700;
}

.shipping-note p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95em;
}

/* ===== ***Skin Socks*** ===== */
.skin-socks-embed {
  background: #fff;
  padding-bottom: 20px;
  padding-top: 6px;
}

.skin-socks-embed .section {
  padding: 60px 20px;
  max-width: 1000px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: none;
  background: #fff;
  border-radius: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skin-socks-embed .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.skin-socks-embed .section-header .label {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.skin-socks-embed .section-header h4 {
  font-size: 30px;
  letter-spacing: 0.1em;
  margin: 10px 0;
  font-weight: 700;
}

.skin-socks-embed .text-block {
  font-size: 16px;
  line-height: 1.9;
}

.skin-socks-embed .text-borderbox {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin-bottom: 40px;
  padding: 10px;
  text-align: center;
}

.skin-socks-embed .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Finger Types */
.skin-socks-embed .finger-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (min-width: 1025px) {
  .skin-socks-embed .finger-types {
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .skin-socks-embed .finger-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .skin-socks-embed .section {
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    transition: none;
  }
  .skin-socks-embed .finger-types {
    grid-template-columns: 1fr;
  }
}

/* Feature 1 layout */
@media (min-width: 768px) {
  .skin-socks-embed .feature1-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .skin-socks-embed .section {
    padding: 40px 16px;
  }

  .skin-socks-embed .section-header h4 {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .skin-socks-embed .text-block {
    font-size: 15px;
  }
}

/* ===== デメリット表記 ===== */
.demerit-note {
  margin-top: 40px; /* 特徴カードとの距離調整 */
}

/* ===== 自衛隊専用 ===== */
.skin-socks-embed .section--pre-feature{
background: #ecedea;
}
.skin-socks-embed .section-header--pre .label{
background: #595b44;
}
.skin-socks-embed .section-header--pre h4 {
  font-size: 26px;
  letter-spacing: 0.08em;
}

.skin-socks-embed .label--pre {
  background: #777;
}

/* 上段：2ブロック2カラム */
@media (min-width: 768px) {
  .skin-socks-embed .pre-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
  }
}

/* 各ブロック */
.skin-socks-embed .pre-feature-block {
  display: block;
}

/* 画像 */
.skin-socks-embed .pre-feature-image {
  margin: 14px 0 0;
  text-align: center;
}

.skin-socks-embed .pre-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.skin-socks-embed .pre-feature-image figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 6px;
}

/* 下段：1カラム締め */
.skin-socks-embed .pre-feature-footer {
  margin-top: 20px;
}
@media (min-width: 768px) {
  .skin-socks-embed .pre-feature-block {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  /* 画像を常に上に配置 */
  .skin-socks-embed .pre-feature-image {
    order: 1;
    margin-top: 0;
  }

  /* テキストを下に回す */
  .skin-socks-embed .pre-feature-block .text-block {
    order: 2;
    margin-top: 14px;
  }
}


