 /* ベーススタイル */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333; /* 全体の文字色を濃いグレーに */
}

a {
    color: #22704f;
}

h1, h2, h3 {
    color: #22704f; /* メインカラーの緑に統一 */
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0; /* 線の追加でメリハリを出す */
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.3rem;
    color: #555;
    margin-top: 2rem;
}

section {
    padding: 30px 20px;
}

/* ヘッダー */
.main-header {
    background-color: #ffffffcc;
    color: #22704f;
    text-align: center;
    padding: 0rem 0;
    font-weight: bold;
    /*position: fixed;*/
    top: 0;
    width: 100%;
    z-index: 3;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* 影を強めて浮き立たせる */
    backdrop-filter: blur(5px); /* 背景をぼかす */
    
}

.main-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* ヒーローセクション */
/* ヒーローセクションの改善 */
/* ヒーローセクションの修正 */
.hero {
    position: relative;
    background: url('../images/suichu_konbu.jpg') no-repeat center center/cover;
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    
    /* オーバーレイを削除 */
    /* .hero::before { ... } の部分を削除するかコメントアウトしてください。*/
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: white; /* 文字を白に */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* 弱い影で視認性を補助 */
}

.hero h2 {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: white; /* 文字を白に */
    font-weight: bold; /* 文字を太字に */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* 弱い影で視認性を補助 */
    border-bottom: none; /* 下線を削除してよりシンプルに */
}

.hero p {
    font-size: 2.5rem; /* フォントサイズを調整 */
    font-weight: 400;
    letter-spacing: 0.1em;
    background-color: transparent; /* Pタグには背景色を適用しない */
      font-size: 4rem; /* 通常は16px × 1.8 = 約29px */
  font-weight: 500;
  line-height: 1.5;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
   
}

/* 製品情報セクション */
.product-info-section {
    background-color: #f9f9f9; /* セクションごとに背景色を変えてメリハリ */
}

.product-info {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; /* 余白を広げる */
    align-items: flex-start;
}

.product-info .images {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5em; /* 画像間の余白 */
}

.product-info .images img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 画像に影をつけて立体感を出す */
}

.product-info .description {
    flex: 2 1 600px;
}

/* 各種リスト */
.product-features-list,
.api-features-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1em;
}

.product-features-list li,
.api-features-list li {
    background-color: #fff;
    padding: 0.5em 1em;
    border-radius: 8px;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.api-features-list li {
    font-weight: bold;
    color: #22704f;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ← PC時に6枚横並び */
  gap: 16px;
  margin-top: 20px;
}

/* カードスタイル（grid-item） */
.image-grid .grid-item {
  text-align: center;
  background-color: #fafafa;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.image-grid .grid-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}
.image-grid .grid-item:hover {
    transform: translateY(-5px); /* ホバーで少し浮き上がるアニメーション */
}

.image-grid img {
    width: 100%;
    border-radius: 8px;
    height: auto;
    object-fit: cover;
}

.image-grid p {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
}

/* テーブル */
.product-details-table {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    margin-left: auto;
    border-collapse: collapse;
    font-size: 0.75rem; /* フォントを小さく */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-details-table th,
.product-details-table td {
    border: 1px solid #ddd;
    padding: 6px 12px; /* 上下のpaddingを小さくして行の高さを詰める */
    text-align: left;
    vertical-align: top;
}

.product-details-table thead th {
    background-color: #22704f;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 0.85rem; /* ヘッダーのフォントも小さく */
}


/* 追加スタイル：mobile-brはHTMLで使っているため残す */
.mobile-br {
    display: none;
}

.mobile-br-custom {
    display: none;
}
.center-title {
  text-align: center;
  margin: 30px 0 20px;
  font-size: 1.6em;
  color: #22704f;
}

.styled-list {
  list-style: none; /* デフォルトの黒丸を消す */
  padding: 0;
  margin: 0 auto;
  max-width: 800px; /* 中央に収める幅 */
}

.styled-list li {
  position: relative;
  padding: 12px 15px 12px 40px; /* 左に余白 */
  margin: 10px 0;
  background: #f9f9f9;
  border-left: 5px solid #6ab7ff; /* 左のアクセントカラー */
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  line-height: 1.6;
}

/* カスタムマーカー */
.styled-list li::before {
  content: "✔"; 
  position: absolute;
  left: 12px;
  color: #6ab7ff;
  font-weight: bold;
}

.ages-diagram {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.ages-diagram h2 {
  margin-bottom: 20px;
  font-size: 1.6em;
  color: #22704f;
}

.ages-diagram {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.ages-diagram h2 {
  margin-bottom: 20px;
  font-size: 1.6em;
  color: #22704f;
}

.center-box {
  display: inline-block;
  background: #f8bbd0; /* ピンク */
  padding: 20px 30px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 病気リストカード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px auto;
  max-width: 900px;
  font-weight: bold;
}

.card {
  display: flex;
  align-items: center;      /* 垂直方向中央揃え */
  justify-content: center;  /* 横方向中央揃え */
  padding: 15px;
  border-radius: 10px;
  font-size: 0.95em;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.card.yellow { background: #fff59d; }
.card.beige  { background: #ffe0b2; }
.card.green  { background: #c5e1a5; }
.card.orange { background: #ffcc80; }
.card.gray   { background: #e0e0e0; }
.card.pink   { background: #f8bbd0; }

/* 体内フロー（縦並びカード＋矢印） */
.cards-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 500px;
}

.card-flow {
  background: #fff9e0;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;       /* 幅を統一 */
  box-sizing: border-box;
}

img.ya {
  display: block;
  margin: 0 auto;
  width: 60px;        /* 矢印サイズを統一 */
}

/* セクションタイトル */
.center-title {
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
  margin: 40px 0 20px;
}

/* AGEs 図 */
.ages-diagram {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.center-box {
  display: inline-block;
  background: #f8bbd0;
  padding: 20px 30px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}


/* 参考文献 */
.reference {
  margin: 40px auto;
  max-width: 900px;
  font-size: 0.8em;
    line-height: 1.4em;
  color: #444;
  border: 1px solid #ddd;
  padding: 5px;
}

.checklist {
  list-style: none;       /* デフォルトの黒丸を消す */
  padding: 0;
  margin: 20px auto;
  max-width: 700px;
}

.checklist li {
  position: relative;
  padding: 12px 20px;
  margin: 10px 0;
  background: #fff9e6;       /* 薄いオレンジ系 */
  border-left: 5px solid #ffb74d; /* アクセントカラー */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1em;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

/* チェックボックスのスタイル */
.checklist li::before {
  content: "✔";
  display: inline-block;
  margin-right: 10px;
  color: #ffb74d;
  font-weight: bold;
}
.center-title {
  text-align: center;
  margin-bottom: 20px;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;           /* 折り返し */
  gap: 10px;                 /* 画像間スペース */
  justify-content: center;   /* 中央揃え */
  margin: 20px auto;         /* 上下マージンと中央配置 */
  max-width: 900px;          /* ギャラリー全体の最大幅 */
}

.image-gallery img {
  width: calc(33.33% - 10px); /* PCは3列 */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.image-gallery img:hover {
  transform: scale(1.05); /* ホバーで少し拡大 */
}

@media (max-width: 600px) {
  .image-gallery img {
    width: calc(50% - 10px); /* スマホは2列 */
  }
}

.image-gallery2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  gap: 15px;
  max-width: 900px;  /* 任意：全体の最大幅 */
  margin: 0 auto;     /* 中央寄せ */
    padding: 0 15px; /* ← 左右に余白を追加 */
}

.image-gallery2 img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形を維持 */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.image-gallery2 img:hover {
  transform: scale(1.05);
}

.site-footer {
  background-color: #333;       /* 背景色 */
  color: #fff;                  /* 文字色 */
  text-align: center;           /* 中央揃え */
  padding: 20px 15px;           /* 上下左右の余白 */
  font-size: 14px;
  margin-top: 30px;             /* 本文と少し間隔 */
}
.site-footer {
  background-color: #22704f;       /* ヘッダーのメインカラーと統一 */
  color: #fff;                     /* 文字を白に */
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
  margin-top: 50px;
  border-top: 3px solid #6ab7ff;   /* 下にアクセントラインを入れるとデザインに統一感 */
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #f0f0f0;
}

.table-box, .text-box {
  flex: 1 1 50%;
}

.text-box {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #333;
}

/* 見出しに余白 */
.text-box h2, .text-box h3 {
  margin-top: 1.2em;
  color: #22704f;
}


.product-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap; /* スマホ時に縦並び */
}

.text-box {
  flex: 1 1 45%;
  background: #fafafa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.product-details-table {
  flex: 1 1 50%;
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.product-details-table th,
.product-details-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.product-details-table thead th {
  background: #86c6a4;
  color: #fff;
  text-align: center;
  font-size: 1.1em;
}

.product-details-table th {
  background: #f5f5f5;
  width: 30%;
}

.product-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.text-box {
  flex: 1 1 45%;
  background: #fafafa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  order: 1; /* PCでは左側 */
}

.product-details-table {
  flex: 1 1 50%;
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  order: 2; /* PCでは右側 */
}

.product-details-table th,
.product-details-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.product-details-table thead th {
  background: #86c6a4;
  color: #fff;
  text-align: center;
  font-size: 1.1em;
}

.product-details-table th {
  background: #f5f5f5;
  width: 30%;
}

/* テーブル全体 */
.fiber-table {
  width: 80%;               /* PC表示で幅80% */
  margin: 20px auto;        /* 上下余白 + 中央配置 */
  border-collapse: collapse;
  font-size: 14px;          /* PC用文字サイズ */
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ヘッダー1行目 */
.fiber-table thead tr:first-child th {
  background-color: #d5f5e3;
  font-size: 16px;
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

/* ヘッダー2行目 */
.fiber-table thead tr:nth-child(2) th {
  background-color: #f0f0f0;
  font-size: 13px;
  padding: 6px;
  text-align: center;
  border: 1px solid #ccc;
}

/* tbodyのセル */
.fiber-table td {
  padding: 2px 3px;
  border: 1px solid #ddd;
  vertical-align: top;
  font-size: 13px;
}

/* 区分列（1列目）のスタイル */
.fiber-table td:first-child {
  font-weight: bold;
  text-align: center;
}

/* 特徴列は左寄せ */
.fiber-table td:last-child {
  text-align: left;
}

/* 行の背景色パターン */
.fiber-table tbody tr:nth-child(odd) {
  background-color: #f8f8f8;
}
.fiber-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* 区分ごとの色分け（オプション） */
.fiber-table tbody tr td:first-child[rowspan] {
  background-color: #e6fff7; /* 海藻など必要に応じて変える */
}
.fiber-gallery {
  max-width: 800px; /* 好きな幅に調整 */
  margin: 0 auto;
}

.fiber-main img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px; /* 大きい画像は丸みをつける */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 軽い影 */
}

.fiber-sub {
  display: flex;
  gap: 12px; /* 画像間の隙間 */
  flex-wrap: wrap;
  justify-content: center; /* 中央寄せ */
}

.fiber-sub img {
  width: calc(24% - 9px); /* 4枚並べる場合の幅 */
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd; /* フレーム */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー効果 */
.fiber-sub img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.pc { display: block; }
.sumaho { display: none; }

.product-subtitle {
  font-size: 1rem;       /* 標準より少し小さめ */
  color: #22704f;        /* メインカラーの緑 */
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-left: 4px solid #6ab7ff; /* 左ラインでアクセント */
  padding-left: 10px;
}

/* p のデザイン */
.product-text {
  font-size: 0.9rem;     /* 標準より少し小さめ */
  line-height: 1.6;
  color: #555;
  margin-bottom: 1em;
}

/* 参考文献の調整（必要に応じて） */
.reference {
  font-size: 0.8rem;
  color: #777;
  margin-top: 1em;
  border-left: 3px solid #ccc;
  padding-left: 8px;
  font-style: italic;
}

.back-to-top.rectangular {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #38b673, #2fa65b);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.back-to-top.rectangular:hover {
  background: #22704f;
  transform: translateY(-3px);
}




.konbu {
  float: right;       /* 右に寄せる */
  width: 80px;       /* PCサイズ */
  margin-left: 15px;  /* テキストとの間隔 */
}

.summary-text {
  overflow: hidden;   /* フロート回り込みを整理 */
    text-align: left;
}

/* --- データセル (td) の統一設定 --- */
.fiber-table td {
  /* すべてのtdに対して、テキストを左揃えにする */
  text-align: left !important; 
  
  /* すべてのtdに対して、フォントの太さを標準（ノーマル）にする */
  font-weight: normal !important; 
  
  /* 念のため、パディング（余白）を統一し、セルの縦方向を中央揃えにする */
  padding: 5px 4px !important;
  vertical-align: middle !important;
}

/* row-spanで区分セルを結合している部分の見た目を少し強調する（任意） */
.fiber-table td[rowspan] {
  font-weight: bold; /* 区分だけは少し太字に戻す（任意） */
  background-color: #f0f8ff; /* 区分セルに別の背景色（任意） */
}

/* まとめ行は中央揃えを維持 (colspan="6"の行) */
.fiber-table tbody tr:last-child td {
  text-align: center !important;
  /* 画像とテキストのフローティングを解除するため */
  padding-left: 20px !important; 
}

.features-and-images {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 20px 0;
}

/* 左側：リスト */
.product-features-list {
  flex: 0 0 55%; /* ← 幅を短くする（45%） */
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* 右側：画像2枚横並び */
.feature-images {
  display: flex;
  gap: 10px;
}

.feature-images img {
  width: 150px; /* ← お好みで調整（120〜180px程度） */
  border-radius: 6px;
  object-fit: cover;
}

/* 全体の横並びレイアウト */
.ingredients-table-wrap {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin: 40px 0;
}

/* 左：原料画像グリッド（2列×3行） */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 0 0 55%; /* 左側幅 */
}

.grid-item {
  background-color: #fafafa;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.grid-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* 右：成分表 */
.product-table-area {
  flex: 0 0 45%; /* テーブル側幅 */
  max-width: 500px;
}

.product-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.product-details-table th,
.product-details-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  vertical-align: top;
}
.product-details-table th {
  background-color: #f8f8f8;
}
.product-details-table .note {
  background-color: #f5f5f5;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

/* ===============================
   メインナビゲーション
   =============================== */
/* ===============================
   メインナビゲーション
   =============================== */
.main-nav {
  background: #ffffffee;
  backdrop-filter: blur(6px);
  /*position: sticky;
  top: 70px; /* ヘッダーの下に固定 */
  z-index: 5;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 横並びレイアウト */
.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 10px;
  margin: 0;
  gap: 10px;
}

/* 均一幅リンク */
.main-nav li {
  flex: 1 1 auto;          /* 均等幅ベース */
  max-width: 180px;        /* 最大幅を制限（長いテキスト対策） */
}

.main-nav li a {
  display: block;
  width: 100%;             /* 均一幅 */
  text-align: center;
  padding: 10px 0;
  border-radius: 30px;
  background: #22704f;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;      /* 折り返し防止 */
}

.main-nav li a:hover {
  background: #38b673;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
    .note-text {
  margin-top: 12px;
  padding: 10px 14px;
  background-color: #f9f9f9;
  border-left: 4px solid #38b673;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 📱 スマホ表示時 */
@media screen and (max-width: 768px) {
  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;     /* ← ボタン全体を中央に */
    justify-content: center;
    gap: 8px;
    padding: 6px;
    margin: 0 auto;          /* ← ULブロックを中央に */
    width: 100%;             /* ← 横幅を画面幅に合わせる（必要なら80%などに） */
  
  }

  .main-nav li {
    width: 70%;              /* ← すべてのボタン幅を均等に（中央寄せ用） */
    max-width: 300px;        /* ← 幅が広くなりすぎないよう制限 */
    text-align: center;
  }

  .main-nav li a {
    display: block;
    width: 100%;             /* ← 親（li）の幅いっぱいに */
    padding: 5px;
    font-size: 1rem;
    border-radius: 8px;
    background: #22704f;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .main-nav li a:hover {
    background: #38b673;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  }
}

/* スムーズスクロール（オプション） */
html {
  scroll-behavior: smooth;
}

/* 💻 PC表示時のみ適用 */
@media screen and (min-width: 769px) {

  /* 横並びレイアウト全体 */
  .ingredients-table-wrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  /* 左側（こだわりの原料） */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    flex: 0 0 58%; /* 左ブロックを少し広く */
  }

  /* 右側（成分表） */
  .product-table-area {
    flex: 0 0 38%;     /* ← 全体幅を少し短く */
    max-width: 420px;  /* ← はみ出し防止 */
  }

  /* テーブル全体 */
  .product-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.5;
    table-layout: fixed;   /* 列幅を固定して扱いやすく */
    word-break: break-word;
  }

  .product-details-table th,
  .product-details-table td {
    border: 1px solid #ccc;
    padding: 2px 2px;
    vertical-align: top;
  }

  /* 1列目（項目）をやや短くして折り返しOK */
  .product-details-table th {
    background-color: #f8f8f8;
    width: 32%;           /* ← 少し狭め */
    white-space: normal;  /* ← 折り返し許可 */
    word-break: break-all;
  }

  /* 2列目（内容）を広めに */
  .product-details-table td {
    width: 68%;
  }

  /* 説明文セル（最上段） */
  .product-details-table .note {
    background-color: #f5f5f5;
    font-size: 12.5px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
  }
}


/* スマホ時：縦並び */
@media screen and (max-width: 768px) {
  .ingredients-table-wrap {
    flex-direction: column;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    flex: none;
  }

  .product-table-area {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .features-and-images {
    flex-direction: column;
    align-items: center;
  }

  .product-features-list {
    flex: none;
    width: 100%;
  }

  .feature-images {
    justify-content: center;
  }

  .feature-images img {
    width: 45%;
  }
}
/* レスポンシブ対応のためのdata-labelの文字も左揃えを維持 */
@media screen and (max-width: 768px) {
  .fiber-table td::before {
    text-align: left !important;
  }
}

@media (max-width: 600px) {
  .konbu {
    width: 60px;      /* スマホサイズ */
    margin-left: 10px;
  }
}





/* モバイル調整 */
@media (max-width: 600px) {
  .product-subtitle {
    font-size: 0.95rem;
  }
  .product-text {
    font-size: 0.85rem;
  }
  .reference {
    font-size: 0.75rem;
  }
    


/* スマホ用 */
@media (max-width: 600px) {
  .pc { display: none; }
  .sumaho { display: block; }
}

/* スマホ対応 */
@media (max-width: 600px) {
  .fiber-sub img {
    width: calc(48% - 6px); /* 2列 */
  }
}

@media (max-width: 400px) {
  .fiber-sub img {
    width: calc(48% - 6px); /* 2列に維持でバランス良く */
  }
}


/* スマホ用 */
@media screen and (max-width: 600px) {
  .fiber-table {
    width: 95%;             /* 幅を画面いっぱいに */
    font-size: 12px;        /* 文字を少し小さく */
  }
  .fiber-table thead tr:first-child th {
    font-size: 14px;
    padding: 3px;
  }
  .fiber-table thead tr:nth-child(2) th,
  .fiber-table td {
    font-size: 11px;
    padding: 2px 2px;
      line-height: 13px;
  }
}



/* ▼ スマホ表示時（768px以下）で上下逆転 ▼ */
@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
  }
  .text-box, .product-details-table {
    flex: 1 1 100%;
  }
  .text-box {
    order: 2; /* ← スマホでは下 */
  }
  .product-details-table {
    order: 1; /* ← スマホでは上 */
  }
}


/* スマホ表示時は縦並び */
@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
  }
  .text-box, .product-details-table {
    flex: 1 1 100%;
  }
}
/* スマホ時：縦並び */
@media (max-width: 768px) {
  .product-info {
    flex-direction: column;
  }
  .table-box, .text-box {
    flex: 1 1 100%;
  }
}

/* PCサイズでは4列 */
@media (min-width: 768px) {
  .image-gallery2 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .site-footer {
    padding: 20px 10px;      /* 上下左右の余白を小さく */
  }
  .site-footer h2 {
    font-size: 1rem;          /* タイトルを小さめに */
  }
  .site-footer p {
    font-size: 0.7rem;        /* 著作権文字も小さく */
  }
}
/* PCサイズでは3列 */
@media (min-width: 768px) {
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* モバイル調整 */
@media (max-width: 768px) {
    .info-table {
        font-size: 14px;
    }
    .info-table th,
    .info-table td {
        padding: 10px 12px;
    }
}


/* メディアクエリ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .hero p {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .product-info {
        flex-direction: column;
        gap: 2rem;
    }
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
   .product-details-table {
        width: 100%;
        max-width: none;
        margin: 1.5rem auto 0;
        table-layout: auto;
        font-size: 0.75rem; /* モバイル版のフォントも小さく */
    }

    .product-details-table th,
    .product-details-table td {
        padding: 3px 4px; /* モバイル版のpaddingもさらに小さく */
        line-height: 1.5em;
    }
    .mobile-br {
        display: inline;
    }
    .mobile-br-custom {
        display: inline;
    }
    
    .hero {
  position: relative;
  background-image: url('../images/suichu_konbu.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
padding-top: 50px; 
  margin-top: 0px; /* ← ここでOK */
}
    
      .images {
    display: flex;         /* 横並びに */
    justify-content: center; /* 中央揃え */
    gap: 10px;             /* 画像間のスペース */
  }

  .images img {
    width: 48%;   /* 2枚並べて余白を考慮 */
    height: auto;
  }
}

@media (max-width: 600px) {
  .images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .images img {
    flex: 1 1 48%;
    height: auto;
    object-fit: contain;
      
      
  }
    
   .main-header h1 {
    font-size: 1.0rem;
    margin: 0;
       line-height:1.5em;
       background-color: 
} 
    
}
    
    /* =============================
   横揺れ（スマホの左右スライド）防止セット
   ============================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;     /* 横スクロール禁止 */
  position: relative;
}

/* 全要素で余分なはみ出し防止 */
* {
  box-sizing: border-box;
}

/* 固定要素（ナビ・トップへボタンなど）も安全に */
.main-nav, .back-to-top, header, footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* グリッド・ギャラリー・画像のはみ出し防止 */
.image-grid,
.image-gallery,
.image-gallery2,
.features-and-images,
.ingredients-table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* モバイルのナビで意図しない余白が出ないように */
@media screen and (max-width: 768px) {
  body {
    padding-right: 0;
    margin-right: 0;
  }
  .main-nav ul {
    margin: 0 auto;
    width: 100%;
  }
}

