/* =========================================================
   essentialoil_data_list.css
   精油の成分データページ ＋ 商品ページの資料ボタン3つ

   設置先：
   https://gigaplus.makeshop.jp/peachpig/css/essentialoil_data_list.css

   ※ アニメーション（transition / fade）は不使用
   ========================================================= */


/* =========================================================
   1. 商品ページの資料ボタン3つ
      （精油データ／成分分析／IFRA適合証明書）
   ========================================================= */
.pp.pp-ing {
  max-width: 1000px;
  margin: 0 auto;
}
.pp .oil-doc-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.pp .oil-doc-btns .oil-doc-btn {
  flex: 1 1 0;
  min-width: 200px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 1px solid #b9b9b9;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.pp .oil-doc-btns .oil-doc-btn:hover {
  background: #e8f4f0;
  border-color: #2d5a3d;
  color: #2d5a3d;
}

@media screen and (max-width: 767px) {
  .pp .oil-doc-btns {
    gap: 10px;
    margin: 24px auto 28px;
  }
  .pp .oil-doc-btns .oil-doc-btn {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }
}


/* =========================================================
   2. 成分データページ本体
   ========================================================= */

.pp.pp-ing .page-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 40px 0 50px;
  border-bottom: 3px solid #2d5a3d;
  padding-bottom: 15px;
}

.pp.pp-ing .tech-section {
  margin-bottom: 50px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #2d5a3d;

  /* ▼アンカーで飛んだとき、見出しがヘッダーに隠れないようにする */
  scroll-margin-top: 90px;
}

.pp.pp-ing .tech-heading {
  font-size: 22px;
  font-weight: bold;
  color: #2d5a3d;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.pp.pp-ing .tech-subheading {
  font-size: 16px!important;
  font-weight: bold;
  color: #333;
  margin: 25px 0 15px 0;
  padding-left: 10px;
  border-left: 3px solid #2d5a3d;
}

.pp.pp-ing .tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #fff;
  font-size: 15px!important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.pp.pp-ing .tech-table thead {
  background-color: #2d5a3d;
  color: #fff;
}

.pp.pp-ing .tech-table th {
  padding: 12px 15px!important;
  text-align: left;
  font-weight: bold;
  border: 1px solid #d0d0d0;
}

.pp.pp-ing .tech-table td {
  padding: 12px 15px!important;
  border: 1px solid #e0e0e0;
  font-size: 15px !important;
  text-align: left;
}

.pp.pp-ing .tech-table tbody tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.pp.pp-ing .tech-table tbody tr:hover {
  background-color: #e8f4f0;
}

.pp.pp-ing .tech-table td.label {
  font-weight: bold;
  width: 25%;
  background-color: #e8f4f0;
  color: #2d5a3d;
}

/* 成分表：含有量を右寄せ */
.pp.pp-ing .tech-table.ifra-component-table td:last-child {
  text-align: right;
  font-weight: bold;
  color: #2d5a3d;
}

/* IFRAカテゴリ表：最大濃度を中央寄せ */
.pp.pp-ing .tech-table.ifra-restriction-table td:last-child {
  text-align: center;
  font-weight: normal!important;
  color: #2d5a3d;
  text-align: left!important;
}

.pp.pp-ing .tech-note {
  font-size: 14px!important;
  color: #666;
  margin-bottom: 15px!important;
  padding: 10px!important;
  background-color: #fff9e6;
  border-left: 3px solid #ffcc00;
}

.pp.pp-ing .tech-note-box {
  background-color: #e8f4f0;
  padding: 20px!important;
  border-left: 4px solid #2d5a3d;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.8;
}

.pp.pp-ing .tech-note-box p {
  margin: 8px 0;
  color: #333;
}


/* ---------- SP ---------- */
@media screen and (max-width: 768px) {
  .pp.pp-ing .page-title {
    font-size: 18px!important;
    margin: 30px 0 35px;
  }
  .pp.pp-ing .tech-section {
    padding: 20px!important;
    scroll-margin-top: 70px;
  }
  .pp.pp-ing .tech-heading {
    font-size: 18px!important;
  }
  .pp.pp-ing .tech-subheading {
    font-size: 14px!important;
  }
  .pp.pp-ing .tech-table {
    font-size: 13px;
    font-weight: nomal!important;
    text-align: left!important;
  }
  .pp.pp-ing .tech-table td,
  .pp.pp-ing .tech-table th {
    font-size: 14px!important;
    padding: 10px;
    text-align: left!important;
  }
  .pp.pp-ing .tech-table td.label {
    width: 35%;
  }

  /* IFRAカテゴリ表は横に長いので、横スクロールで逃がす */
  .pp.pp-ing .ifra-restriction-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}