html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* 横スクロール禁止 */
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* ここがページの可変領域になる */
}

:root {
  --accent: #E89110;
  --muted: #ffffff;
}
* {
  box-sizing: border-box;
}

/* 背景設定（PC用） */
body {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  color: #222;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  background: url("images/backgraund.png") no-repeat center top fixed;
  background-size: cover;
}

html, body {
  overflow-x: hidden; /* 横スクロール禁止 */
}
.inner {
  max-width: 1,600px;
  margin: 0 auto;
  padding: 0px;
}

.section {
   margin-bottom: 50px; /*共通の余白 */
}

@media (max-width: 768px) {
  main.inner {
    padding: 0 20px; /* デフォルト：メイン全体に余白 */
  }

  /* main-visual だけ例外的に余白をリセット */
  main.inner .main-visual {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

}

/* デフォルト（PC）では改行しない */
.br-mobile {
  display: none;
}

/* モバイル時だけ改行 */
@media (max-width: 768px) {
  .br-mobile {
    display: block;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  body {
    /* 背景をスクロールに変更 → 固定による余白問題を防ぐ */
    background-attachment: scroll;
  }

  .site-footer {
    min-height: auto;
    height: auto;
    padding: 20px 0;
  }
}

/* --------------------header部分------------------------------------------------------------ */
.site-header {
  background: #E89110;
  border-bottom: 0px solid #ffffff;
  margin-bottom: 0;
  padding-bottom: 0;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 子要素を左右に配置 */
  gap: 60px;
  padding: 0px 10px; 
}

.logo {
  background: url("images/rogo.png") no-repeat center;
  background-size: auto 160%; /* 縦を150%に拡大、横は自動 */
  display: inline-block;
  width: 300px;   
  height: 70px;   /* 枠はそのまま */
  text-indent: -9999px;
  overflow: visible; /* 一部はみ出しても見せたい場合 */
}

.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 10px;
}

/* -------------------- ハンバーガーメニュー -------------------- */

@media (max-width: 768px) {
  .site-header .inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }


  .main-nav {
    display: none; /* デフォルトは非表示 */
    flex-direction: column;
    position: absolute;
    top: 90px; /* ヘッダー下に表示 */
    right: 0px;
    background: #E89110;
    border-radius: 0px;
    padding: 0px 0;
    width: 180px;
    z-index: 1000;
  }

  .main-nav a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
  }

  .hamburger span {
    background: #fff;
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s;
  }

  .logo {
    width: 200px;    /* モバイルでは横幅を縮小 */
    height: 40px;    /* 高さも少し縮小 */
    background-size: auto 150%; /* 縦比率を少し小さく */
  }

    /* ハンバーガーメニューは既存の設定でOK */
  .site-header .inner {
    padding: 10px 15px;
  }


  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 11px; }
  .hamburger span:nth-child(3) { top: 22px; }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
  }
}


/* --------------------header部分------------------------------------------------------------ */

/* ----------------------/* メイン画像背景---------------------------------------- */
.hero {
  position: relative;
  width: 100vw; /* ビューポート幅いっぱい */
  margin-left: calc(-50vw + 50%); /* 横中央にずらす */
  background-image: url("images/main.png"); /* ここに画像パス */
  background-size: cover; /* 画像をコンテナにフィット */
  background-position: center; /* 画像の中心を表示 */
  color: white; /* 文字色は見やすいように白 */
  padding: 130px 30px; /* 上下の余白を増やして高さアップ */
  min-height: 600px;
  text-align: center;
  box-sizing: border-box;
}

/* 文字を見やすくするための背景の薄いオーバーレイ（任意） */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* 半透明の黒 */
  z-index: 0;
} 

/* テキストはオーバーレイより前に出す */
.hero {
  text-align: left; /* ←ここを追加して全体左寄せに */
  padding-left: 40px; /* 左の余白調整、お好みで */
}

.hero h2,
.hero p {
  position: relative;
  z-index: 1;
  margin-top: 0px;
  text-align: left; /* 明示的に左寄せ */
}

.hero .small {
  font-size: 3rem;
  margin-top: 60px;
  color: #fff;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px; /* 上下余白をスマホ用に縮小 */
    padding-left: 20px; /* 左余白も少し小さく */
    min-height: 400px;  /* スマホでは高さを抑える */
    background-size: cover;
    text-align: left;
  }

  .hero h2 {
    font-size: 1.8rem; /* タイトルを小さく */
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;  /* 本文を小さく */
    line-height: 1.4;
  }

  .hero .small {
    font-size: 2rem;  /* サブテキストを縮小 */
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px;
    padding-left: 15px;
    min-height: 300px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero .small {
    font-size: 26px;
    margin-top: 20px;
  }
}

/* ----------------------/* メイン画像背景ここまで ---------------------------------------- */

/* ----------------------/* 製品紹介 ---------------------------------------- */
/* 上段の商品紹介 */

/* セクション全体 */
.product-section {
  max-width: 1150px;   /* 横幅の上限 */
  margin: 0 auto;      /* 中央寄せ */
  padding: 0 0px;     /* 左右に余白 */
}


section .section-main-title {
  text-align: center;
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 60px;
}

.section-main-text {
  font-size: 26px;
  color: #666;
  margin-top: 60px; /* h2との間隔 */
  line-height: 1.6;
  text-align: center; /* 中央揃えにしたい場合 */
  margin-bottom: 100px; /* 下の余白 */
}


.top-products {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.product {
  flex: 1;
  text-align: center;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.product img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-desc {
  margin-top: 10px;
  font-size: 25px;
  color: #333;
}

/* 個別のmargin-top調整 */
.product-left img { margin-top: 0px; }
.product-center img { margin-top: 100px; }
.product-right img { margin-top: 50px; }

@media (max-width: 768px) {
   .top-products .product img {
    width: 90%;              /* 横幅縮小 */
    max-width: 180px;        /* 上限 */
    height: auto;            /* 縦横比を維持 */
    object-fit: cover;       /* 余白なく中央切り抜き */
    margin: 0 0;
    display: block;
  }

  .product {
    flex: 1;
    text-align: center;
  }

  .product img {
    width: 90%;               /* PC比で縮小 */
    max-width: 180px;         /* 上限を設定 */
    margin: 0 auto;
  }

  .section-main-title {
    font-size: 21px!important; /* タイトル縮小 */
    margin-top: 20px;
    margin-bottom: 20px!important;
  }

  .section-main-text {
    font-size: 14px;/* 説明文縮小 */
    margin-top: 20px;
    margin-bottom: 40px;
  }

  /* 個別のmargin-topも軽減
  .product-left img { margin-top: 0px; }
  .product-center img { margin-top: 40px; }
  .product-right img { margin-top: 20px; } */
}

@media (max-width: 480px) {
  .top-products .product img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    margin: 0 0;
  }


  .product-title {
    font-size: 12px;
  }

  .product-desc {
    font-size: 12px;
  }

  /* .product-center img { margin-top: 30px; }
  .product-right img { margin-top: 15px; } */
}


/* 下段のカテゴリ */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
}

.categories {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.category-box {
  width: 100%;
  max-width: 396px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.category-box span {
  display: block;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
}

.category-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  /* メインタイトル縮小 */
  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  /* カテゴリ全体を縦並びに */
  .categories {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 上下の余白 */
    align-items: center; /* 中央揃え */
  }

  /* 各ボックスの幅を調整 */
  .category-box {
    width: 100%;       /* 横幅いっぱいに近く */
    max-width: 300px; /* 適度な最大幅 */
    font-size: 20px;  /* 内部文字も縮小 */
  }

  .category-box span {
    font-size: 20px;
    padding: 10px;
  }

  .category-box img {
    width: 100%;
    height: auto;
  }
}
/* ----------------------/* 商品紹介ここまで ---------------------------------------- */

/* ----------------------/* ニュースここまで ---------------------------------------- */

.news-section {
  max-width: 1100px; /* トップページ用 */
  margin: 100px auto;
}

.news-section.full-width {
  max-width: 100%; /* news.php 側は全幅 */
  padding: 0 20px;
}

.news-item {
  display: flex;
  align-items: flex-start;  /* ← 画像とテキストを上揃えにする */
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
  gap: 15px; /* 画像とテキストの間隔 */
}

.news-thumb {
  flex: 0 0 120px;   /* PC時の画像枠固定 */
}

.news-thumb img {
  width: 120px;
  height: 80px;       /* 高さも固定して揃える */
  object-fit: cover;  /* 枠に収まるようにトリミング */
  display: block;
  border-radius: 4px; /* 好みで角丸 */
}

.news-content {
  flex: 1;
  text-align: left;
}

.news-header {
  margin-bottom: 5px;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  display: block;
}

.news-title {
  font-weight: bold;
  margin: 2px 0;
}

.news-text {
  font-size: 0.9rem;
  color: #444;
}
/* ----------------------/* ニュースここまで ---------------------------------------- */

/* -----------------------about部分 -----------------------------------------------*/

.promo-section {
  position: relative;
  background: url("images/about.png") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 200px 0px; /* 上下の余白 */
}

.promo-overlay {
  /* background-color: rgba(0, 0, 0, 0.4); 半透明の黒で文字を見やすく */
  padding: 0px;
}

.promo-content {
  display: flex;
  justify-content: space-between; /* 左右を端に配置 */
  align-items: stretch;           /* 子要素を縦方向いっぱいに */
}

.promo-left {
  margin-left: 40px;
}

.promo-right {
  margin-top: 0px;
  margin-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* 縦の下に寄せる */
  text-align: right;          /* テキストを右寄せ（必要なら） */
}

.promo-logo {
  margin-top: 30px;
  max-width: 300px;
  height: auto;
}

.promo-title {
  font-size: 28px;
  margin-top: 50px;
  margin-bottom: 15px;
  font-weight: bold;
}

.promo-text {
  font-size: 16px;
  line-height: 1.8;
}

/* aboutここまで */

@media (max-width: 768px) {
  .promo-section {
    position: relative; /* 絶対配置の基準 */
    padding: 0;         /* 余白は不要、角に固定 */
    background-position: center top;
    background-size: cover;
    min-height: 300px;  /* 高さは背景に合わせて調整 */
  }

  .promo-logo {
  margin-top: 30px;
  max-width: 150px;
  height: auto;
}

  /* 左上にロゴ */
  .promo-left {
    position: absolute;
    top: -30px;   /* 上から10px */
    left: -39px;  /* 左から10px */
    max-width: 100px;
    z-index: 10; /* 背景より前に表示 */
  }

  /* 右下に本文 */
  .promo-right {
    position: absolute;
    bottom: 10px; /* 下から10px */
    right: 10px;  /* 右から10px */
    max-width: 90%; /* 幅を制限して収める */
    text-align: right;
    z-index: 10;
  }

  .promo-right .promo-title {
    font-size: 20px;
    margin: 0 0 5px 0;
  }

  .promo-right .promo-text {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
  }
}

/* --------------------about終了------------------------------------------------------------ */
/* -----------------コンタクトフォーム ---------------------------------------------------------*/
form {
  max-width: 600px;   /* PCでは600px */
  margin: 40px auto;  /* 中央寄せ */
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: left;
  font-size: 15px;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #E89110;
  box-shadow: 0 0 4px rgba(0,123,255,0.3);
  outline: none;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form input[type="submit"],
form button {
  display: block;
  margin: 30px auto 0;
  padding: 12px 40px;
  background: #E89110;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

form input[type="submit"]:hover,
form button:hover {
  background: #0056b3;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
  form {
    width: 90%;         /* スマホ時は幅を90%に */
    margin: 20px auto;  /* 余白を調整 */
    padding: 15px;
  }

  form label {
    font-size: 14px;    /* ラベル少し小さめ */
    margin-bottom: 15px;
  }

  form input[type="text"],
  form input[type="email"],
  form textarea {
    font-size: 14px;    /* 入力文字も少し小さめ */
    padding: 10px;
  }

  form input[type="submit"],
  form button {
    width: 100%;        /* ボタンは横いっぱい */
    padding: 14px;
    font-size: 15px;
  }
}

/* --------------------Footer------------------------------------------------------------ */
/* フッター（PCでは最低350px確保） */
.site-footer {
  background-color: #E89110!important;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 330px;
}

/* 内部レイアウト */
.footer-inner {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ナビゲーション */
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0 0 20px;
  padding: 0;
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
}

.footer-nav ul li a:hover {
  opacity: 0.8;
}

/* コピーライト */
.footer-inner p {
  font-size: 14px;
  margin: 0;
}

footer.site-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  color: #777;
}
form label {
  display: block;
  margin: 8px 0;
  font-weight: 600;
}
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form input[type="submit"] {
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.admin-note {
  background: #fff3cd;
  padding: 10px;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  color: #856404;
  margin-bottom: 12px;
}
.small {
  font-size: 0.9em;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent); /* アクセントカラーを使用 */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #005f8a; /* ホバー時の色変更 */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .site-footer {
    height: auto;
    padding: 20px 0;
  }

  .footer-nav ul {
    flex-direction: row; /* 横一列に戻す */
    flex-wrap: wrap;     /* 幅が狭い場合は折り返し */
    gap: 10px;           /* アイテム間の間隔 */
    justify-content: center; /* 中央揃え */
    padding: 0;
    margin: 0 0 20px 0;
  }

  .footer-nav ul li a {
    font-size: 14px;     /* モバイル向けに文字サイズ縮小 */
    padding: 5px 10px;
  }
}
/* --------------------Footerここまで------------------------------------------------------------ */

/* 商品についての部分 */

/* ② メイン画像 */
.main-visual {
  position: relative;
  width: 100%;
  height: 500px;
  background: url("images/productback.png") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.main-visual-text {
  position: relative;
  text-align: center;
  z-index: 1;
}

.main-visual-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .main-visual {
    height: 300px; /* 高さを縮める */
    /* padding は入れない */
  }

  .main-visual-text {
    padding: 0 20px; /* 文字だけ左右に余白を持たせる */
  }

  .main-visual-text h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .main-visual-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .main-visual {
    height: 220px; /* さらに小さい画面用 */
  }

  .main-visual-text {
    padding: 0 15px; /* 小さい端末用に余白を縮める */
  }

  .main-visual-text h2 {
    font-size: 1.5rem;
  }

  .main-visual-text p {
    font-size: 0.9rem;
  }
}

/* ③ カテゴリ */
.fixed-categories {
  text-align: center;
  margin: 60px 0;
}

.fixed-category-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.fixed-category {
  width: 213px;
  height: auto;
  margin: 0 20px;
  text-align: center;
}

.fixed-category img {
  width: 213px;
  height: 204px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* なめらかな変化 */
}

.fixed-category img:hover {
  transform: scale(1.1); /* 拡大 */
  box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* 影を追加 */
}

.fixed-category p {
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
}

.category-divider {
  margin-top: 30px;
  border: none;
  border-top: 2px solid #ccc;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .fixed-category-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 5px; /* 隙間調整 */
    margin: 20px auto;
    max-width: 90%; /* 横幅の収まりを良くする */
  }

  .fixed-category {
    width: auto; /* 固定幅を解除して比率に合わせる */
    margin: 0;
  }

  .fixed-category img {
    width: 100%;  /* 自動的に均等配置 */
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    border-radius: 50%;
    object-fit: cover;
  }

  .fixed-category p {
    font-size: 16px; /* 少し小さめに */
  }
}

/* ④ 商品一覧 */
/* ---------------- 商品リスト④ ---------------- */
.custom-category-products {
  margin-bottom: 100px;
}

.custom-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横3列固定 */
  gap: 20px;
}

.custom-product-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-product-card:hover {
  transform: translateY(-5px);
}

/* 画像用カード */
.product-image-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 100%;
}

.product-image-wrapper img {
  width: 100%;
  height: 300px; /* 固定 */
  object-fit: cover;
  display: block;
}

/* タイトルは独立 */
.product-title {
  font-size: 16px;
  color: #333;
  margin-top: 12px;
  text-align: center;
  background: none;
  box-shadow: none;
}


/* ===== モバイル対応 ===== */
@media (max-width: 1024px) {
  .custom-product-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレット以下は2列 */
    gap: 16px;
  }

  .product-image-wrapper img {
    height: 240px; /* 少し小さく */
  }
}

@media (max-width: 600px) {
  .custom-product-grid {
    grid-template-columns: repeat(2, 1fr); /* スマホも2列固定 */
    gap: 12px;
  }

  .product-image-wrapper img {
    height: 180px; /* スマホ用にさらに調整 */
  }

  .product-title {
    font-size: 14px;
  }
}



/* ---------------- モーダル ---------------- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  width: 80%;
  max-width: 1000px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* メイン領域を左右2分割（高さ揃え） */
.modal-main {
  display: flex;
  gap: 80px;
  align-items: stretch;
}

/* 左側：メイン画像＋サムネイル */
.modal-left {
  flex: 1;
  max-width: 400px; /* メイン画像の基準幅（必要に応じて調整） */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* メイン画像 / 動画 */
.modal-left img,
.modal-left video {
  width: 100%;              /* modal-left の幅いっぱい */
  height: 400px;            /* 高さ固定 */
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #f8f8f8;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.modal-thumb-video {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.modal-thumb-video .play-icon {
  position: absolute;
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  font-size: 20px;       /* アイコンの大きさ */
  color: white;          /* アイコン色 */
  border: 2px solid white; /* 外枠 */
  border-radius: 50%;    /* 丸くする（四角にしたいなら削除） */
  padding: 8px;          /* アイコンと枠の余白 */
  background: rgba(0,0,0,0.3); /* ほんのり背景（不要なら削除） */
}

/* サムネイル群 */
.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 常に4分割 */
  gap: 10px;
  width: 100%;             /* メイン画像と同じ幅に合わせる */
}

.modal-thumbs img {
  width: 100%;             /* グリッドにフィット */
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.modal-thumbs img:hover {
  border-color: #E89110;
  transform: scale(1.05);
}



/* 右側：説明欄 */
.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  /*justify-content: flex-start; /* 左側画像と頭を揃える */
  padding: 30px 10px;
}

.modal-desc ul {
  list-style-type: disc;  /* 「・」を自動表示 */
  padding-left: 20px;     /* 左寄せ */
  margin: 10px 0;
}

.modal-desc li {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* 全体の縦配置 */
.modal-desc {
  text-align: left;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 20px; /* 各ブロックの間隔 */
}

/* --- タイトル＋商品説明 --- */
.modal-desc .title-block {
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}
.modal-desc .title-block h3 {
  font-size: 26px; /* 大きめ */
  color: #222;
  margin: 0 0 10px 0;
}
.modal-desc .title-block p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* --- 商品特徴 --- */
.modal-desc .features {
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}
.features h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}
.features ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 15px;
  color: #555;
}
.features ul li {
  margin-bottom: 10px; /* ← 各項目に余白を追加 */
}

/* --- 商品仕様 --- */
.modal-desc .specs h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}
.modal-desc .specs div {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px; /* ← 各項目に余白を追加 */
}

/* --- モバイル対応 (768px以下) --- */
@media (max-width: 768px) {
  .modal-content {
    /* width: 80%; */
    max-height: 90vh;  /* 画面の90%までに制限 */
    overflow-y: auto;  /* はみ出したらスクロール */
    padding: 15px;
  }

  /* 縦並び */
  .modal-main {
    flex-direction: column;
    gap: 20px;
  }

  .modal-left {
    max-width: 100%;
  }

  /* メイン画像 */
  .modal-left img,
  .modal-left video {
    height: auto;
    max-height: 200px; /* 少し小さめに */
    margin-top: 30px;
  }
  
  .modal-thumb-video .play-icon {
    margin-top: 10px;
    font-size: 22px;   /* 少し小さめに */
    padding: 6px;      /* 余白を減らす */
    border-width: 1.5px;
  }

  /* サムネイル */
  .modal-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .modal-thumbs img {
    height: 90px;
  }

  /* 説明欄 */
  .modal-right {
    padding: 10px 5px;
  }
  .modal-desc {
    gap: 12px;  /* 余白を少なめに */
  }
  .modal-desc .title-block h3 {
    font-size: 18px;
  }
  .modal-desc .title-block p,
  .modal-desc li,
  .modal-desc .specs div {
    font-size: 13px;
  }
  .features h4,
  .modal-desc .specs h4 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-thumb-video .play-icon {
    margin-top: 10px;
    font-size: 18px;   /* スマホ小画面用 */
    padding: 5px;
    border-width: 1px;
  }
}

/* ------------About ページ専用スタイル------------------------- */
.about-container {
  max-width: 1100px;
  margin: 0px auto;
  padding: 20px;
  display: flex;
  flex-direction: column; /* 常に縦並び */
  align-items: center;
  gap: 30px;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0px;
}

.about-text {
  text-align: center;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 50px;
}

.about-desc {
  font-size: 23px;
  margin-top: 50px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-company {
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #E89110;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.about-btn:hover {
  background: #c76f00;
}

.about-desc,
.about-title,
.about-company {
  word-break: keep-all;       /* 日本語の途中で改行させない */
  overflow-wrap: normal;      /* 英単語も途中で改行させない */
}
/* 元のスタイルはそのまま */

/* モバイル用調整 */
@media screen and (max-width: 768px) {

  
  .about-container {
    padding: 15px;
    gap: 20px;
  }

  .about-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .about-desc {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
  }

  .about-company {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .about-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .about-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .about-desc {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .about-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .about-desc,
  .about-title,
  .about-company {
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

/* --- NEWSページ専用CSS --- */

.news-section {
  max-width: 1100px;         /* 中央寄せ */
  margin: 80px auto;         /* 上下余白 */
  padding: 0 20px;
}

.news-section.full-width {
  flex: 1;          /* 余白を埋める */
  display: flex;
  flex-direction: column;
}

/* 各記事 */
.news-item {
  display: flex;
  align-items: flex-start;   /* 画像とテキストを上揃え */
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
  gap: 15px;
}

/* サムネイル */
.news-thumb {
  flex: 0 0 120px;           /* PC用画像枠 */
}

.news-thumb img {
  width: 120px;
  height: 80px;              /* 高さ固定 */
  object-fit: cover;         /* 枠に収めてトリミング */
  display: block;
  border-radius: 4px;
}

/* テキスト部分 */
.news-content {
  flex: 1;
  text-align: left;
}

.news-header {
  margin-bottom: 5px;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  display: block;
}

.news-title {
  font-weight: bold;
  margin: 2px 0;
}

.news-text {
  font-size: 0.9rem;
  color: #444;
}

/* 下部リンク */
.news-link {
  text-align: center;
  margin-top: 20px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .news-section {
    margin: 40px auto;
    padding: 0 10px;
  }

  /* NEWSページ専用 */
 .news-section.full-width {
  min-height: calc(100vh - 200px - 350px);
  /* ↑ 200px = ヘッダーの高さ, 350px = フッターの高さ
       実際の高さに合わせて調整してください */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 記事は上に配置 */
}

  .news-thumb {
    flex: 0 0 70px;
  }

  .news-thumb img {
    width: 70px;
    height: 50px;
  }

  .news-title { font-size: 0.9rem; }
  .news-text { font-size: 0.8rem; }
  .news-date { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .news-thumb {
    flex: 0 0 60px;
  }

  .news-thumb img {
    width: 60px;
    height: 40px;
  }

  .news-title { font-size: 0.75rem; }
  .news-text { font-size: 0.65rem; }
  .news-date { font-size: 0.6rem; }

  .news-item {
    gap: 5px;
    padding: 8px 0;
  }
}

