/* =========================================================
   基本レイアウト（全ページ共通）
========================================================= */
.article-block {
  max-width: 960px;
  margin: 60px auto;
  padding: 40px 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
}

.article-block h2 {
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: #145a32;
  letter-spacing: 0.08em;
}

.article-block .sub-en {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-top: 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================
   全ページ共通 h3（デザイン統一）
========================================= */
.article-block h3 {
  font-size: 1.2rem;
  color: #145a32;
  margin: 32px 0 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   ご挨拶ページ（sustainable-article）
========================================================= */
.sustainable-article .lead {
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.sustainable-article .sdgs span {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #e8f5e9;
  color: #1b5e20;
  font-size: 0.8rem;
}

/* =========================================================
   SDGs概要（sdgs-summary）
========================================================= */
.sdgs-summary section {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid #145a32;
  background-color: #f7faf7;
  border-radius: 6px;
}

.sdgs-summary section h3 span.code {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 12px;
  background-color: #e8f5e9;
  color: #1b5e20;
  font-size: 0.8rem;
  font-weight: 600;
}

.sdgs-summary .note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #555;
}

/* =========================================================
   無機繊維製品とは（inorganic-fiber-article）
========================================================= */
.inorganic-fiber-article section {
  margin-top: 24px;
  padding: 18px 20px;
  background-color: #f7faf7;
  border-left: 4px solid #145a32;
  border-radius: 6px;
}

.inorganic-fiber-article section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1b5e20;
}

.inorganic-fiber-article ul {
  margin: 8px 0 0 1.2em;
  padding: 0;
  font-size: 0.96rem;
}

/* =========================================================
   更新履歴（update-history）
========================================================= */
.update-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-history li {
  padding: 14px 18px;
  margin-bottom: 12px;
  background-color: #f7faf7;
  border-left: 4px solid #145a32;
  border-radius: 6px;
}

.update-history .date {
  font-weight: 600;
  color: #145a32;
  margin-right: 8px;
}
/* =========================================================
   署名（全ページ共通）
========================================================= */
.signature {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #dcdcdc;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.05em;
}

/* =========================================================
   undermain（全ページ共通タイトル）
========================================================= */
#undermain {
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

#undermain .caption h2 .sub-en {
  display: block;
  font-size: 1.4rem;
  color: #dcdcdc;
  margin-top: 6px;
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  #undermain .caption h2 {
    font-size: 1.4rem;
    line-height: 1.35;
  }
  #undermain .caption h2 .sub-en {
    font-size: 1rem;
  }
}

/* =========================================================
   プライバシーポリシー（policy-wrapper）
========================================================= */
.policy-wrapper {
  max-width: 960px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.9;
  color: #333;
}

.policy-wrapper h2 {
  font-size: 1.3rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #145a32;
}

.policy-wrapper p {
  margin-bottom: 10px;
}

.policy-wrapper ul {
  margin: 0 0 10px 1.2em;
  padding: 0;
}

.policy-wrapper li {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .policy-wrapper {
    margin: 30px 16px;
    padding: 28px 20px;
  }
}

/* =========================================================
   Sitemap Page Styles
========================================================= */
.sitemap-block {
  max-width: 960px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  line-height: 1.8;
  color: #333;
}

.sitemap-block h2 {
  font-size: 1.8rem;
  color: #145a32;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sitemap-grid li {
  background: #f7faf7;
  border-left: 4px solid #145a32;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 1rem;
}

.sitemap-grid li a {
  color: #145a32;
  text-decoration: none;
  font-weight: 600;
}

.sitemap-grid li a:hover {
  text-decoration: underline;
  color: #0f4a28;
}

@media (max-width: 768px) {
  .sitemap-block {
    padding: 28px 20px;
    margin: 30px 16px;
  }
  .sitemap-block h2 {
    font-size: 1.5rem;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Contact Form（CMS上書き含む）
========================================================= */
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form dt {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #145a32;
}

.contact-form h3 {
  font-size: 1.1rem;
  color: #145a32;
  margin-bottom: 10px;
}

.contact-form input[type="text"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #145a32;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #0f4a28;
  box-shadow: 0 0 4px rgba(20, 90, 50, 0.3);
  outline: none;
}

.contact-form dl.required dt::after {
  content: "必須";
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.contact-form .policy {
  margin-top: 40px;
  padding: 20px;
  background: #f7faf7;
  border-left: 4px solid #145a32;
  border-radius: 6px;
  color: #333;
}

.contact-form .form-button input[type="button"] {
  display: block;
  width: 260px;
  margin: 30px auto 40px;
  padding: 12px 0;
  background: #145a32;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form .form-button input[type="button"]:hover {
  background: #0f4a28;
}

/* CMS の強制上書き対策 */
.contact-form form.inner dl dt,
.contact-form form.inner h3 {
  color: #145a32 !important;
  font-weight: 600;
}

.contact-form form.inner input[type="text"],
.contact-form form.inner textarea,
.contact-form form.inner select {
  border: 1px solid #145a32 !important;
}

/* dt の折り返し対策（横並び） */
@media (min-width: 769px) {
  .contact-form form.inner dl {
    display: flex;
    align-items: flex-start;
  }
  .contact-form form.inner dl dt {
    width: 35%;
    padding-right: 20px;
  }
  .contact-form form.inner dl dd {
    width: 65%;
  }
}

/* スマホ（縦並び） */
@media (max-width: 768px) {
  .contact-form form.inner dl {
    display: block;
  }
  .contact-form form.inner dl dt {
    width: 100%;
    margin-bottom: 6px;
  }
  .contact-form form.inner dl dd {
    width: 100%;
  }
}

/* policy 内の説明文を左揃え */
.contact-form .policy p {
  text-align: left !important;
}
/* =========================================================
   ▼▼▼ 再生工程フロー（rw-flow）統合CSS（最適化済） ▼▼▼
========================================================= */

/* 全体レイアウト */
.rw-flow {
  max-width: 900px;
  margin: 2rem auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.rw-flow h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid #2b7a3d;
  padding-left: 0.6rem;
}

.rw-intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.rw-flow-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 各ステップ */
.rw-step {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fafafa;
}

.rw-step-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.rw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2b7a3d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.rw-step-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.rw-step-body {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.rw-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: #888;
  margin-top: 0.2rem;
}

/* 画像ギャラリー */
.rw-image-gallery {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 0.2rem;
}

.rw-image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
}

.rw-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.rw-image-item p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #444;
}

/* 設備アイコン */
.rw-equipment-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.8rem 0;
}

.rw-equipment {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rw-equipment img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.rw-equipment-label {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.4rem;
  text-align: center;
}

.rw-equipment-detail {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .rw-flow {
    padding: 0 1rem;
  }
  .rw-equipment-row {
    flex-direction: column;
    align-items: center;
  }
  .rw-equipment {
    flex: 1 1 100%;
  }
  .rw-image-gallery {
    flex-wrap: wrap;
  }
  .rw-image-item {
    width: 100%;
  }
}

/* 製品紹介グリッド */
.rw-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.rw-product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.rw-product-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #2b7a3d;
}

.rw-product-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #444;
}

.rw-product-section-title {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2b7a3d;
}
/* 3R図解の縦横比を維持する */
.three-r-image img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* img-text3 の画像（事業紹介サムネイル） */
.img-text3 figure img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
}

/* 工程フロー以外の画像は高さ固定を無効化 */
figure img {
  height: auto !important;
}

.img-text3,
.img-text3 ul {
  margin: 0 !important;
  padding: 0 !important;
}

/* ================================
   共通：Equipment Viewer（小窓）
   ================================ */

.eqv-body {
  margin: 0;
  background: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 小窓本体 */
.eqv-dialog {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  /* padding: 1rem 1rem 2rem; */
  padding-top: 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  animation: eqv-fade-in 0.35s ease-out;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Close ボタン（スクロールに影響されない） */
.eqv-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: #333;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 30;
}


/* ヘッダー */
.eqv-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;

  /* 余白を完全にゼロにする */
  margin: 0;
  padding: 0.3rem 0 0.4rem;

  /* タイトル中央寄せ */
  display: flex;
  justify-content: center;
  align-items: center;
}

.eqv-title {
  margin: 0;
  padding: 0 2.2rem 0 0; /* Close ボタン分の右余白 */
  line-height: 1.3;
}

.eqv-detail {
  font-size: 0.95rem;
  color: #555;
}

.eqv-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin: 0.2rem 0 0;
}

/* 画像コンテナ（縦配置） */
.eqv-images {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  touch-action: pan-y;
}

/* 各画像ブロック */
.eqv-item {
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: eqv-item-in 0.4s ease-out forwards;
}

.eqv-item:nth-child(1) { animation-delay: 0.05s; }
.eqv-item:nth-child(2) { animation-delay: 0.10s; }
.eqv-item:nth-child(3) { animation-delay: 0.15s; }
.eqv-item:nth-child(4) { animation-delay: 0.20s; }

.eqv-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.eqv-item figcaption {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.3rem;
}

/* インジケータ（スワイプ位置表示）
.eqv-indicator {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.eqv-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s, transform 0.2s;
}

.eqv-indicator .dot.active {
  background: #1f6f4a;
  transform: scale(1.2);
} */

/* アニメーション */
@keyframes eqv-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes eqv-item-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .eqv-dialog {
    margin: 0.5rem;
    /* padding: 0.8rem 0.8rem 2.2rem; */
    padding-top: 0 !important;
    border-radius: 10px;
  }

  .eqv-title {
    font-size: 1.05rem;
  }

  .eqv-close {
    position: absolute;
    top: 0.15rem;
    right: 0.25rem;
    padding: 0.2rem 0.55rem;
    font-size: 1.2rem;
  }
}

/* ================================
   モーダル（オーバーレイ）
   ================================ */

.eqv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9990;
}

.eqv-modal.active {
  display: flex;
}

.article-block hr {
  margin: 2.5rem 0; /* 上下に広めの余白 */
}

/* スマホでテーブルが画面外にはみ出さないようにする */
.comparison-table {
  width: 100%;
  table-layout: auto;
}

/* テーブルを横スクロール可能にするラッパー */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* スマホでセル内の長文を折り返す */
.comparison-table th,
.comparison-table td {
  white-space: normal !important;
}

/* ============================
   農材製品ページ専用の軽微な調整
   ============================ */

/* 農材ページの画像を少し大きめに表示 */
.agri-large img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

/* 農材ページの表の読みやすさ向上 */
.agri-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
}
.agri-table th,
.agri-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  vertical-align: top;
}
.agri-table th {
  background: #f5f5f5;
  font-weight: bold;
  text-align: center;
}

/* スマホで表がはみ出さないようにする */
.agri-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* セクション間の余白を少し広げる */
.section-title {
  margin-top: 50px;
}

/* 農材ページのリストを読みやすく */
.agri-list li {
  margin-bottom: 8px;
}

/* ----------------------------------------
   見出し階層最適化（h2 / h3 / h4 / h5）
---------------------------------------- */

/* h2（大見出し） */
.section-title {
  font-size: 1.9rem;
  margin: 60px 0 25px;
  padding-bottom: 8px;
  border-bottom: 3px solid #2a7f62;
  color: #2a7f62;
}

/* h3（製品カテゴリ） */
.article-block h3 {
  font-size: 1.6rem;
  margin: 40px 0 15px;
  padding-left: 6px;
  border-left: 4px solid #2a7f62;
  color: #333;
}

/* h4（カテゴリ内の詳細） */
.article-block h4 {
  font-size: 1.35rem;
  margin: 30px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #5abf90;
  color: #444;
}

/* h5（水耕栽培用成型品の種類） */
.article-block h5 {
  font-size: 1.2rem;
  margin: 25px 0 8px;
  padding-left: 14px;
  border-left: 2px solid #8cd9b5;
  color: #555;
}

/* ----------------------------------------
   製品ラインナップ専用ボックス
---------------------------------------- */
.product-box {
  background: #f7faf8;
  border: 2px solid #dceee4;
  padding: 25px 20px;
  border-radius: 10px;
  margin: 40px 0;
}

/* ----------------------------------------
   アコーディオン（h5）
---------------------------------------- */
.accordion {
  border: 1px solid #dceee4;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-title {
  background: #eef7f3;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #2a7f62;
}

.accordion-content {
  display: none;
  padding: 15px;
  background: #fff;
}

.contact-cta {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
}
.btn-contact {
  display: inline-block;
  background-color: #0078D7;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.btn-contact:hover {
  background-color: #005fa3;
}
