/* ==========================================================================
   リセット（.product-detail 内のみ適用）
   ========================================================================== */

/* 基本リセット */
.product-detail * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.product-detail {
  line-height: 1.6;
  color: var(--color-text-primary);
  font-size: 16px;
}

/* 見出しのリセット */
.product-detail h1,
.product-detail h2,
.product-detail h3,
.product-detail h4,
.product-detail h5,
.product-detail h6 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* テキスト要素のリセット */
.product-detail p,
.product-detail span,
.product-detail a,
.product-detail strong,
.product-detail em,
.product-detail small,
.product-detail mark,
.product-detail del,
.product-detail ins,
.product-detail sub,
.product-detail sup {
  margin: 0;
  padding: 0;
}

/* リンクのリセット */
.product-detail a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

.product-detail a:hover,
.product-detail a:focus {
  outline: 0;
}

/* リストのリセット */
.product-detail ul,
.product-detail ol,
.product-detail li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 画像のリセット */
.product-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  vertical-align: middle;
}

/* フォーム要素のリセット */
.product-detail button,
.product-detail input,
.product-detail select,
.product-detail textarea {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.product-detail button {
  cursor: pointer;
  border: none;
  background: transparent;
}

.product-detail button:disabled {
  cursor: not-allowed;
}

.product-detail input:focus,
.product-detail select:focus,
.product-detail textarea:focus {
  outline: none;
}

/* テーブルのリセット */
.product-detail table {
  border-collapse: collapse;
  border-spacing: 0;
}

.product-detail th,
.product-detail td {
  padding: 0;
  text-align: left;
}

/* その他の要素のリセット */
.product-detail hr {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--color-border-medium);
}

.product-detail blockquote,
.product-detail q {
  margin: 0;
  padding: 0;
  quotes: none;
}

.product-detail blockquote:before,
.product-detail blockquote:after,
.product-detail q:before,
.product-detail q:after {
  content: '';
  content: none;
}

/* HTML5要素のリセット */
.product-detail article,
.product-detail aside,
.product-detail details,
.product-detail figcaption,
.product-detail figure,
.product-detail footer,
.product-detail header,
.product-detail hgroup,
.product-detail menu,
.product-detail nav,
.product-detail section {
  display: block;
}

/* dl, dt, dd のリセット */
.product-detail dl,
.product-detail dt,
.product-detail dd {
  margin: 0;
  padding: 0;
}

/* フォーカス時のアウトライン設定 */
.product-detail :focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Spacing Utilities */
.product-detail .dv-u-mb-xs {
  margin-bottom: var(--spacing-XS) !important;
}

.product-detail .dv-u-mb-s {
  margin-bottom: var(--spacing-S) !important;
}

.product-detail .dv-u-mb-m {
  margin-bottom: var(--spacing-M) !important;
}

.product-detail .dv-u-mb-l {
  margin-bottom: var(--spacing-L) !important;
}

.product-detail .dv-u-mb-xl {
  margin-bottom: var(--spacing-XL) !important;
}

.product-detail .dv-u-mt-xs {
  margin-top: var(--spacing-XS) !important;
}

.product-detail .dv-u-mt-s {
  margin-top: var(--spacing-S) !important;
}

.product-detail .dv-u-mt-m {
  margin-top: var(--spacing-M) !important;
}

.product-detail .dv-u-mt-l {
  margin-top: var(--spacing-L) !important;
}


@media screen and (max-width: 768px) {

  /* Responsive Spacing Utilities (Variables automatically adjust, but keeping for specificity if needed) */
  .product-detail .dv-u-mb-xs {
    margin-bottom: var(--spacing-XS);
  }

  .product-detail .dv-u-mb-s {
    margin-bottom: var(--spacing-S);
  }

  .product-detail .dv-u-mb-m {
    margin-bottom: var(--spacing-M);
  }

  .product-detail .dv-u-mb-l {
    margin-bottom: var(--spacing-L);
  }



  .product-detail .dv-u-mt-xs {
    margin-top: var(--spacing-XS);
  }

  .product-detail .dv-u-mt-s {
    margin-top: var(--spacing-S);
  }

  .product-detail .dv-u-mt-m {
    margin-top: var(--spacing-M);
  }

  .product-detail .dv-u-mt-l {
    margin-top: var(--spacing-L);
  }

  .product-detail .dv-u-mt-xl {
    margin-top: var(--spacing-XL);
  }
}


/* ==========================================================================
   商品詳細ページ スタイル
   ========================================================================== */

/* 全体コンテナ */
.product-detail {
  margin: 0 auto;
}

/* セクション共通スタイル */
.product-detail .product-section {
  margin: var(--spacing-XL) 0;
}

/* 最初のセクションのみ上部に区切り線 */
.product-detail .product-section-first {
  margin-top: var(--spacing-L);
  border-top: 1px solid var(--color-border-medium);
  padding-top: var(--spacing-L);
}

.product-detail .section-title {
  font-size: var(--heading-S);
  font-weight: 500;
  padding-bottom: var(--spacing-S);
}

/* テキストのみのセクション（香りセクションなど）の段落 */
.product-detail p {
  font-size: var(--text-M);
  line-height: 1.8;
}

.product-detail .caution {
  font-size: var(--text-S);
  line-height: 1.8;
  margin-top: var(--spacing-S);
}


.product-detail strong {
  font-weight: 700;
}

/* ==========================================================================
   汎用メディア・テキストレイアウトシステム
   ========================================================================== */

/* 基本レイアウト */
.product-detail .media-text-layout {
  display: flex;
  gap: var(--spacing-L);
  align-items: flex-start;
  margin-bottom: var(--spacing-L);
}

/* レイアウトパターン1: 左に画像、右にテキスト（デフォルト） */
.product-detail .media-text-layout.image-left {
  flex-direction: row-reverse;
}

/* レイアウトパターン2: 右に画像、左にテキスト */
.product-detail .media-text-layout.image-right {
  flex-direction: row;
}

/* レイアウトパターン3: テキストのみ（画像なし） */
.product-detail .media-text-layout.text-only {
  flex-direction: column;
}

/* 旧reverseクラスの互換性維持 */
.product-detail .media-text-layout.reverse {
  flex-direction: row;
}

/* 画像コンテナ */
.product-detail .media-image {
  flex: 0 0 500px;
  max-width: 500px;
}

/* テキストのみレイアウトの場合、画像を非表示 */
.product-detail .media-text-layout.text-only .media-image {
  display: none;
}

.product-detail .media-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキストコンテナ */
.product-detail .text-content {
  flex: 1;
  min-width: 0;
}

/* テキストのみレイアウトの場合、テキストを全幅に */
.product-detail .media-text-layout.text-only .text-content {
  max-width: 100%;
}

/* 特徴リスト */
.product-detail .feature-list {
  list-style: none;
  padding: 0;

  width: fit-content;
  margin: 0 auto;
}

.product-detail .feature-list li {
  position: relative;
  font-size: var(--text-M);
  padding-left: var(--spacing-L);
  margin-bottom: var(--spacing-XXS);
}

.product-detail .feature-list li::before {

  line-height: 1.5;
  content: "";
  position: absolute;
  width: 7px;
  height: 15px;
  top: 1px;
  left: 8px;
  -webkit-transform: rotate(50deg);
  -ms-transform: rotate(50deg);
  transform: rotate(50deg);
  border-right: 2px solid #9c9c9c;
  border-bottom: 2px solid #9c9c9c;

}

.product-detail .feature-list li::after {

  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 17px;
  height: 17px;
  border: 1px solid #9c9c9c;
  border-radius: 2px;
}

/* 使用カテゴリー（段落の余白） */
.product-detail .text-content>p {
  margin-bottom: var(--spacing-M);
}

.product-detail .text-content>p:last-child {
  margin-bottom: 0;
}

/* シリーズ紹介 */
.product-detail .series-introduction {
  background: var(--color-bg-white);
  padding: var(--spacing-XS);
  margin-top: var(--spacing-L);
}

/* 汎用的なレスポンシブ画像切り替え */
.product-detail .img-pc,
.product-detail .img-sp {
  width: 100%;
  height: auto;
  margin-bottom: var(--spacing-XS);
}

.product-detail .img-sp {
  display: none;
}

.product-detail .series-introduction>p {
  text-align: center;
  font-size: var(--text-M);
  line-height: 1.8;
}

/* 使用方法の注釈 */
.product-detail .note {
  font-size: var(--text-S);
  display: block;
  margin-top: 10px;
}

/* 成分セクション */
.product-detail .ingredient-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--spacing-L) var(--spacing-S);
  align-items: start;
}

.product-detail .ingredient-list dt {
  grid-column: 1;
}

.product-detail .ingredient-list dt img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail .ingredient-list dd {
  font-size: var(--text-M);
  grid-column: 2;
  margin: 0;
}

.product-detail .ingredient-list dd strong {
  color: var(--color-text-primary);
}

/* 上付き文字（注釈番号） */
.product-detail sup {
  font-size: var(--text-XS);
  vertical-align: super;
  line-height: 0;
}

/* 注釈テキスト */
.product-detail .annotations {
  margin-top: var(--spacing-L);
}

.product-detail .annotations p {
  font-size: var(--text-S);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* 全成分セクション */


/* アコーディオン */
.product-detail .accordion {
  border: none;
}

.product-detail .accordion summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.product-detail .accordion summary::-webkit-details-marker {
  display: none;
}

/* アコーディオンのアイコン（矢印） */
.product-detail .accordion summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.3s ease;
}

.product-detail .accordion[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

/* アコーディオンコンテンツ */
.product-detail .accordion-content {
  padding-top: var(--spacing-S);
}

/* 区切り線 */
.product-detail hr {
  border: none;
  border-top: 1px solid var(--color-border-lighter);
  margin: var(--spacing-L) 0;
}


/* ==========================================================================
   レスポンシブデザイン (スマートフォン)
   ========================================================================== */
@media (max-width: 768px) {
  .product-detail {
    padding: var(--spacing-S);
  }

  .section-title {
    font-size: var(--heading-XL);
  }

  /* メディアとテキストのレイアウトを縦並びに */
  .product-detail .media-text-layout,
  .product-detail .media-text-layout.image-left,
  .product-detail .media-text-layout.image-right,
  .product-detail .media-text-layout.reverse {
    flex-direction: column;
    gap: var(--spacing-S);
  }

  /* SP時に画像を上に配置 */
  .product-detail .media-text-layout.sp-image-top .media-image {
    order: -1;
  }

  .product-detail .media-text-layout.sp-image-top .text-content {
    order: 0;
  }

  .product-detail .media-image {
    flex: 0 0 auto;
    max-width: 100%;
  }

  /* テキストのみレイアウトはそのまま維持 */
  .product-detail .media-text-layout.text-only {
    flex-direction: column;
  }

  /* シリーズ画像の切り替え（汎用） */
  .product-detail .img-pc {
    display: none;
  }

  .product-detail .img-sp {
    display: block;
  }

  .product-detail .series-introduction>p {
    text-align: left;
  }


  /* 成分リストはPC時と同じレイアウトを維持 */
  .product-detail .ingredient-list {
    grid-template-columns: 25% 1fr;
    gap: var(--spacing-S) var(--spacing-XS);
  }

  .product-detail .ingredient-list dt,
  .product-detail .ingredient-list dd {
    grid-column: auto;
  }

  .product-detail .ingredient-list dt {
    max-width: none;
    margin: 0;
  }

  /* テキストサイズ調整 */
  .product-detail .annotations p,
  .product-detail .note {
    font-size: var(--text-S);
  }
}

/* ==========================================================================
   追加
   ========================================================================== */

.dv-col-section-header {
  align-items: center;
  text-align: center;
  display: flex !important;
  font-size: var(--heading-L) !important;
  text-align: center;
}

.dv-col-section-header::before,
.dv-col-section-header::after {
  background-color: var(--color-border-medium);
  content: "";
  flex-grow: 1;
  height: 1px;
}

.dv-col-section-header::before {
  margin-right: 30px;
}

.dv-col-section-header::after {
  margin-left: 30px;
}

.column-3 {
  display: flex;
  justify-content: space-between;
}

.column-item {
  text-align: center;
}

.text-center {
  text-align: center !important;
}

.text-center img {
  display: inline-block;
}

@media screen and (max-width: 768px) {

  .column-3 {
    flex-wrap: wrap;
  }

  .column-item {
    width: 48%;
    margin-bottom: var(--spacing-L);
  }

  .column-item:last-child {
    margin: 0 auto;
  }

  .dv-col-section-header::before,
  .dv-col-section-header::after {
    display: none !important;
  }

  .dv-col-section-header {
    display: inline-block !important;
    font-size: var(--dv-col-title-size-m) !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin: 0 auto !important;
    padding: 0px;
  }

  .dv-col-section-header {
    border-top: 1px solid var(--color-border-lighter) !important;
    padding-bottom: 8px !important;
    padding-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 700 !important;
  }


}