badge light /* Reset & base */
* {
  box-sizing: border-box
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Noto Sans JP', sans-serif;
  color: #0a0a0a;
  background: #ffffff;
  scroll-behavior: smooth
}
img {
  max-width: 100%;
  height: auto;
  display: block
}
a {
  color: inherit;
  text-decoration: none
}
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.container2 {
  width: min(1200px, 92vw);
  margin-inline: auto;
  margin-top: 20px;
}
.section {
  padding: 50px 0
}
.section .sectionnews {
  padding: 0px 0
}
h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 16px
}
p {
  line-height: 1.8;
  margin: 0 0 12px
}
/* Header */
.header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(8px);
  transition: background .3s, box-shadow .3s
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px
}
.header.scrolled {
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .08)
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center
}
.nav a {
  font-weight: 600;
  opacity: .8
}
.nav a:hover {
  opacity: 1
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px
}
.logo img {
  height: 36px
}
/* Hero */ :root {
  --accent: #111;
  --heroBlend1: #eaf2ff;
  --heroBlend2: #fff2ec
}
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 90% -10%, var(--heroBlend1) 0, transparent 60%), radial-gradient(1200px 600px at 10% 120%, var(--heroBlend2) 0, transparent 60%), #fff;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* テキスト側を広め／画像側を少し小さめに */
  gap: min(4vw, 36px);
  align-items: center
}
@media (max-width: 800px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 20px
  }
}
.hero .badge {
  border-color: var(--accent)
}
.hero .lead {
  font-size: clamp(15px, 2.4vw, 20px);
  opacity: .85;
  margin: 0
}
/* Hero slider */
.hero-visual {
  position: relative;
  width: 100%;
  height: 800px
}
.hero-slider {
  position: relative;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fafafa
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .75s ease, transform .9s ease
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1)
}
.hero-slider .controls {
  position: absolute;
  inset: auto 0 12px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  opacity: .7;
  cursor: pointer
}
.dot[aria-current="true"] {
  background: var(--accent);
  opacity: 1
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
  z-index: 4;
  opacity: .88
}
.nav-btn:hover {
  opacity: 1
}
.nav-btn.prev {
  left: 10px
}
.nav-btn.next {
  right: 10px
}
/* Sync text animation with slide */
.hero-body .sync-enter {
  animation: syncIn .6s ease both
}
@keyframes syncIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
  to {
    opacity: 1;
    transform: none
  }
}
/* Hero main layout & text */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 90% -10%, #eaf2ff 0, transparent 60%), radial-gradient(1200px 600px at 10% 120%, #fff2ec 0, transparent 60%), #ffffff;
  overflow: hidden
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 50vh;
  background: linear-gradient(90deg, #111, #666, #111);
  opacity: .06;
  filter: blur(60px)
}
.hero-body {
  position: relative;
  z-index: 1;
  text-align: left;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  background: #fff;
  margin-bottom: 8px
}
/* 見出しを画面いっぱいに大きく（画面幅で調整） */
.hero h1 {
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  margin-top: 18px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: clamp(14px, 2.4vw, 18px);
  opacity: .8
}
.hero-visual img {
  width: min(960px, 88vw);
  margin: 0 auto;
  opacity: .95;
  transform: translateY(20px);
  animation: floatY 7s ease-in-out infinite
}
@keyframes floatY {
  50% {
    transform: translateY(-6px)
  }
}
/* Marquee */
.marquee {
  white-space: nowrap;
  overflow: hidden;
  border-block: 1px solid #eee;
  background: #fff
}
.marquee-track {
  display: inline-block;
  padding: 10px 0;
  animation: marquee 25s linear infinite
}
@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}
.marquee span {
  font-weight: 800;
  letter-spacing: .06em;
  margin-inline: 24px
}
/* Projects */
.projects {
  display: grid;
  gap: 24px
}
.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid #eee;
  border-radius: 20px;
  background: #fafafa;
  overflow: hidden
}
.project:nth-child(even) {
  grid-template-columns: 1fr 1.2fr
}
.project .meta h3 {
  font-size: 28px;
  margin: 4px 0
}
.project .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #555
}
.project .meta p {
  opacity: .85
}
.project .img-wrap {
  border-radius: 16px;
  overflow: hidden;
  transform: scale(1.02)
}
/* プロジェクト内のボタンを2列グリッドで */
.project-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 12px; /* 余白 */
}
.project-buttons .btn.primary {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
/* スマホで縦1列に */
@media (max-width:600px) {
  .project-buttons {
    grid-template-columns: 1fr;
  }
}
/* Teams */
.teams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px
}
.team-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff
}
.team-card h4 {
  font-size: 14px;
  margin: 10px 0 6px
}
.team-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none
}
.team-card ul li {
  font-size: 12px;
  background: #f2f3f5;
  border: 1px solid #e6e7ea;
  border-radius: 999px;
  padding: 4px 8px
}
/* Solutions grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px
}
.sol-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px
}
/* Why section */
.kv-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px
}
.kv-3 figure {
  margin: 0;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff
}
.kv-3 figcaption {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600
}
/* News (filterable) */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap
}
.tab {
  padding: 8px 12px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer
}
.tab[aria-selected="true"] {
  background: #111;
  color: #fff
}
.news-list.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; /* カード間の距離、お好みで変更可 */
}
.news-card {
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  font-size: 15px;
  margin-top: 15px;
  padding: 14px 16px;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.news-card {
  padding: 14px;
}

a:hover .news-card {
  background: #f0ffff;                 /* 好きな色に変更OK */
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);         /* 少し浮かせる（お好みで） */
}

.news-category {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;        /* → pill型にする */
  background: #ffebe0;        /* ボタン背景色（柔らかいオレンジ） */
  color: #d35400;             /* 文字色（濃いめのオレンジ） */
  font-weight: 600;
  margin-right: 6px;          /* 複数カテゴリ並んだ時の余白 */
  line-height: 1.4;
  transition: .25s;
}

.news-title {
  font-size: 15px;
  margin-top: 6px;
}
.news-summary {
  font-size: 13px;
  line-height: 1.6;
}
.news-card img {
  aspect-ratio: 5 / 3;
  object-fit: cover
}
.news-card .body {
  padding: 14px 14px 18px
}
.news-card .meta {
  font-size: 12px;
  opacity: .7
}
.numbers-card {
  text-align: center; /* すでに指定済みなら不要 */
}
.numbers-card .numbers-icon {
  width: 50px; /* お好みでサイズ調整 */
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 12px auto 8px; /* 上端から少し下げて中央寄せ */
}
/* CTA */
.cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 24px;
  background: #f8f9fb
}
/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid #eee;
  background: #fff;
  color: #222
}
.footer .grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center
}
.footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end
}
.footer small {
  opacity: .6
}
/* Responsive */
@media (max-width: 960px) {
  .project, .cta {
    grid-template-columns: 1fr
  }
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .kv-3 {
    grid-template-columns: 1fr
  }
  .teams {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .news-grid {
    grid-template-columns: 1fr
  }
}
/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}
.reveal.visible {
  opacity: 1;
  transform: none
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid #f20;
  font-weight: 800;
  color: #f20;
  background: #fff;
  cursor: pointer;
  transition:
}
.btn:hover {
  background-color: #f20;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn.primary {
  background: #fff;
  color: #888
}
.btn.primary:hover {
  background-color: #f20;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.badge.light {
  border-color: #ddd;
  color: #333
}
/* Fixed slider height & caption の部分を修正 */
.hero-visual {
  position: relative;
  width: 100%;
  height: auto; /* ← ここを auto に */
}
/* メディアクエリ内の height 指定は削除（もしくはコメントアウト） */
@media (max-width: 1200px) {
  .hero-visual {
    /* height: 550px; ←消す */
  }
}
@media (max-width: 960px) {
  .hero-visual {
    /* height: 60vh;  ←消す */
  }
}
/* 画像はすでに横長の指定になっているのでこのままでOK */
.slide-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e6e7ea
}
.slide-caption h3 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  color: #778899
}
.slide-caption p {
  margin: 0;
  font-size: clamp(13px, 2vw, 16px);
  opacity: .9;
  color: #778899
}
.slide-btn {
  justify-self: start
}
/* Hero background image layer */
.hero {
  position: relative;
  isolation: isolate
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero_bg.png") center/cover no-repeat;
  z-index: -1;
  opacity: 1;
}
/* 「無限」の赤 */
.hero-title-accent {
  color: red;
}
/* ボタン上の余白 */
.hero-cta {
  margin-top: 1.5rem;
}
/* 沿革エリア全体 */
.history-area {
  position: relative;
  display: flex;
  gap: 24px;
  min-height: 320px;
  overflow: hidden; /* はみ出た写真を隠す */
}
/* タイムラインは左側に寄せる */
.history-area .timeline {
  flex: 0 0 30%; /* 左 55% 幅くらい */
  margin: 0;
}
/* 写真用レイヤー（右側エリア） */
.history-photo-layer {
  position: relative;
  flex: 0 0 70%; /* 幅の基準を 60% 固定っぽくする */
  pointer-events: none;
}
/* 出てくる写真のスタイル */
.history-photo-layer img.history-photo {
  position: absolute;
  max-width: 100px;
  border-radius: 16px;
  box-shadow: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: historyPhotoPop 2.8s ease-out forwards;
}
/* ふわっと出て消えていくアニメーション */
@keyframes historyPhotoPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7); /* もっと小さいところから */
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05); /* 少しオーバーシュート */
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}
/* スマホでは縦並びに */
@media (max-width: 768px) {
  .history-area {
    flex-direction: column;
  }
  .history-area .timeline {
    flex: 1 1 auto;
  }
  .history-photo-layer {
    min-height: 220px;
  }
}
/* 製造部ページ専用のヒーローセクション */
.section.making-hero {
  /* 製造部ページのヒーローは通常の.hero背景をリセット */
  background: #ffffff;
  min-height: auto;
  padding-top: 96px; /* 固定ヘッダー分を考慮したゆったりめの上余白 */
  padding-bottom: 24px; /* 下の余白は少しタイトに */
  display: block;
}
/* 中身のレイアウト調整（必要に応じて） */
.making-hero .teams-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* トップ画像をそのまま使う場合 */
.making-hero .hero-image-full img {
  width: 100%;
  height: auto;
  display: block;
}
/* もし画像を非表示にしたいなら */
.making-hero .hero-image-full .sustainability-image-full{
  display: block; /* トップバナーを表示する */
}
/* 見出し・本文のデザイン例 */
.making-hero .making-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.making-hero .making-intro p {
  line-height: 1.8;
}
/* 製造部のテキストブロック内のリスト文字サイズを大きくする */
.making-text-block ul li {
  font-size: 1.1rem; /* 例：ベースより少し大きめ。好みで 1.2rem や 16px などに変更 */
  line-height: 1.8; /* 行間も少し広げると読みやすい */
}
/* =========================
   Manufacturing page layout (making.html)
   ========================= */
/* セクションタイトルのまとまり */
#making .making-section-header {
  max-width: 880px;
  margin: 0 auto 24px;
  margin-left: 0; /* ← 左を0に固定して左寄せ */
}
#making .making-section-header h1, #making .making-section-header h2 {
  margin-bottom: 8px;
}
#making .making-section-header p {
  font-size: 14px;
  color: #555;
}
/* テキスト＋写真の2カラムレイアウト */
#making .making-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}
/* 左側テキストブロック */
#making .making-text-block {
  font-size: 14px;
  line-height: 1.9;
}
#making .making-text-block h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
#making .making-text-block ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
#making .making-text-block li + li {
  margin-top: 4px;
}
/* 右側 写真ボックス */
#making .making-photo-box {
  border-radius: 18px;
  border: 1px solid #eee;
  background: radial-gradient(circle at 0 0, #fef6f3 0, #ffffff 55%);
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
#making .making-photo-box img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}
/* 製造している商品一覧エリア */
#making .product-section {
  background: #fafafa;
}
#making .product-section .making-section-header {
  text-align: left;
}
/* カードグリッド */
#making .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
/* 商品カード */
#making .product-card {
  border-radius: 18px;
  border: 1px solid #eee;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#making .product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
#making .product-card-body {
  padding: 14px 14px 16px;
  font-size: 13px;
}
#making .product-card-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
#making .product-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe5e0;
  color: #f20;
  margin-bottom: 6px;
  font-weight: 700;
}
/* ホバー時にふわっと浮かせる */
#making .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}
/* レスポンシブ調整 */
@media (max-width: 960px) {
  #making .making-layout {
    grid-template-columns: 1fr;
  }
  #making .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #making .product-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Contact Page
   ========================= */
/* ヒーローエリア */
.contact-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.contact-hero .teams-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* making.html でも使っている横長画像レイアウトを汎用化 */
.product-image-full {
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 24px;
}
.product-image-full img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 1; /* 1200px × 400px の横長ヘッダー想定 */
}
/* ヒーロー下のテキスト部 */
.contact-intro {
  max-width: 720px;
  margin: 0 auto;
}
.contact-intro h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.contact-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}
/* フォームセクション全体の余白 */
.contact-section {
  padding-top: 24px;
  padding-bottom: 80px;
}
/* フォーム本体のカード風デザイン */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}
/* 各フォーム行 */
.contact-form .form-group {
  margin-bottom: 20px;
}
/* ラベル */
.contact-form .form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
/* 必須バッジ */
.contact-form .required {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffe5e0;
  color: #f20;
  vertical-align: middle;
}
/* テキスト系フィールド共通 */
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
/* テキストエリアだけ少し丸み控えめ */
.contact-form textarea {
  border-radius: 16px;
  min-height: 160px;
  resize: vertical;
}
/* フォーカス時のスタイル（赤ベース） */
.contact-form input[type="text"]:focus, .contact-form input[type="email"]:focus, .contact-form input[type="tel"]:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #f20;
  box-shadow: 0 0 0 3px rgba(255, 51, 0, 0.15);
  background: #fff;
}
/* セレクトの見た目微調整（必要に応じて） */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
/* チェックボックス行 */
.contact-form .checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.contact-form .checkbox input[type="checkbox"] {
  margin-top: 3px;
}
/* 送信ボタン位置 */
.contact-form .form-actions {
  margin-top: 28px;
  text-align: center;
}
/* 送信ボタンを少し大きめに */
.contact-form .form-actions .btn.primary {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 800;
}
/* スマホ向け調整 */
@media (max-width: 768px) {
  .contact-hero {
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .contact-intro h1 {
    font-size: 24px;
  }
  .contact-form {
    padding: 24px 18px;
    border-radius: 20px;
  }
}
/* =========================
   TOP ヒーロー画像専用のサイズ調整
   ========================= */
.hero-visual {
  position: relative;
  width: 100%;
  height: auto; /* 固定高さをやめて画像に任せる */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
/* 直接入っている画像だけに適用 */
.hero-visual > img {
  width: min(700px, 100%); /* 最大750px、画面が狭いときは100% */
  aspect-ratio: 15 / 8; /* ≒ 750×400 の比率 */
  height: auto;
  object-fit: contain; /* 画像を切り取らず全体を表示 */
  opacity: .95;
  transform: translateY(20px);
  animation: floatY 7s ease-in-out infinite;
}
/* =========================
   News detail page
   ========================= */
/* 上部ヒーロー（タイトルまわり） */
.detail-hero {
  padding-top: 56px;
  padding-bottom: 24px;
}
.detail-inner {
  max-width: 880px;
  margin: 0 auto;
}
.detail-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.detail-category {
  background: #fef2ef;
  color: #f20;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
/* 本文エリア */
.detail-body {
  margin-top: 24px;
  line-height: 1.8;
  font-size: 15px;
}
/* 本文直下に置かれた「単体の画像」だけを横幅100％にする */
.detail-body > img {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}
/* 戻るリンク */
.back-link {
  margin-top: 40px;
  display: inline-block;
  font-size: 14px;
}
/* テキスト左＋写真右回り込みボックス */
.detail-feature {
  margin: 32px 0;
  overflow: hidden; /* floatのはみ出しをクリア */
}
.detail-feature-img-right {
  float: right;
  width: 600px; /* 600px幅で表示 */
  max-width: 100%; /* スマホ時のはみ出し防止 */
  height: auto; /* 元画像比率（600×400）を維持 */
  margin: 0 0 16px 24px; /* 左に余白をつけてテキストと分離 */
  border-radius: 12px;
  display: block;
}
/* スマホでは縦並びにする */
@media (max-width: 768px) {
  .detail-feature-img-right {
    float: none;
    margin: 16px auto;
  }
}
/* =========================
   Biomass LP (viomas.html)
   ========================= */
/* ヒーローエリアの微調整 */
.bio-hero {
  padding-top: 96px; /* 固定ヘッダー分の余白 */
}
.bio-hero-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}
/* セクション共通タグ */
.bio-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #e7f7f0;
  color: #0d6b3f;
  margin-bottom: 10px;
}
/* うっすら色付きの背景セクション */
.bio-section-accent {
  background: linear-gradient(180deg, #f7fbff 0, #ffffff 70%);
}
.bio-section-light {
  background: #fafafa;
}
/* 2カラムレイアウト（テキスト＋画像） */
.bio-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}
.bio-two-col .bio-image img {
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
/* 特長カード */
.bio-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.bio-feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #e2e5ea;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
}
.bio-feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
/* 循環フロー */
.bio-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}
.bio-flow-step {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e5ea;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-flow-step img {
  border-radius: 12px;
}
.bio-flow-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #0d6b3f;
  text-transform: uppercase;
}
.bio-flow-arrow {
  display: none; /* PCでは矢印は省略。SPで縦並び時に使う場合は調整 */
}
/* ラインナップ */
.bio-lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.bio-lineup-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e5ea;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bio-lineup-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.bio-lineup-card h3 {
  font-size: 16px;
  padding: 10px 14px 4px;
}
.bio-lineup-card p {
  padding: 0 14px 14px;
  font-size: 14px;
}
/* CTA ボックス強調 */
.bio-cta-box {
  border-color: #f4c7bd;
  background: linear-gradient(135deg, #fff7f4, #ffffff);
}
.bio-cta-actions {
  display: grid;
  gap: 8px;
  justify-items: flex-start;
}
.bio-tel-link {
  font-size: 13px;
  text-decoration: underline;
}
/* レスポンシブ調整 */
@media (max-width: 960px) {
  .bio-two-col {
    grid-template-columns: 1fr;
  }
  .bio-feature-grid {
    grid-template-columns: 1fr;
  }
  .bio-flow {
    grid-template-columns: 1fr;
  }
  .bio-lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .bio-lineup-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Biomass Column (viomas3.html)
   ========================= */
/* コラム用ヒーロー：画像なしでテキストをセンター寄せ */
.bio-article-hero .hero-wrap {
  grid-template-columns: 1fr;
}
.bio-article-hero .hero-body {
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}
/* コラム全体の背景とカード風レイアウト */
.bio-article-section {
  background: radial-gradient(circle at top, #f7fbff 0, #ffffff 55%);
}
.bio-article-shell {
  max-width: 880px;
  margin-inline: auto;
  padding: 28px 24px 32px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e4e7ec;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
/* キーコンセプト枠 */
.key-concept {
  background-color: #e8f5e9;
  padding: 18px 20px;
  border-left: 5px solid #4CAF50;
  border-radius: 16px;
  margin: 20px 0 28px;
}
.key-concept h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f5132;
}
/* 画像コンテナ */
.image-container {
  text-align: center;
  margin: 22px 0;
}
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
/* 製品グリッド（ラインナップ） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.product-item {
  border: 1px solid #e4e7ec;
  padding: 16px 14px 18px;
  text-align: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.product-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 15px;
}
/* お問い合わせボタンの中央寄せ */
.bio-contact-actions {
  margin-top: 28px;
  text-align: center;
}
.bio-contact-actions .btn {
  min-width: 220px;
  justify-content: center;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .bio-article-shell {
    padding: 20px 16px 24px;
    border-radius: 18px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   viomas3.html Section4 用
   利用シーンイメージカード
   ========================= */
.bio-usage-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* PC：4列均等 */
}
.bio-usage-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bio-usage-thumb img {
  width: 100%; /* カード幅いっぱい→画像の横幅が均等になる */
  height: auto;
  display: block;
  border-radius: 10px;
}
.bio-usage-title {
  margin: 10px 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.bio-usage-text {
  font-size: 0.9rem; /* 小さめの文字サイズ */
  line-height: 1.6;
  color: #555;
}
/* レスポンシブ：タブレットで2列、スマホで1列 */
@media (max-width: 1024px) {
  .bio-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .bio-usage-grid {
    grid-template-columns: 1fr;
  }
}
/* company.html 専用のレイアウト微調整 */
/* ヘッダー（ヒーロー）を1枚画像にする */
.company-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.company-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero-image-full {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}
.hero-image-full img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 6; /* 好みで変更可：横長ヘッダー画像 */
}
.company-intro {
  max-width: 1200px;
  margin-top: 12px;
}
.company-intro p {
  margin-bottom: 16px;
}
.company-outline {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  row-gap: 8px;
  column-gap: 16px;
  font-size: 14px;
}
.company-outline dt {
  font-weight: 700;
}
.company-outline dd {
  margin: 0;
}
.company-section-header {
  margin-bottom: 24px;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.philosophy-card {
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fff;
  padding: 18px 18px 20px;
}
.philosophy-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.philosophy-card p {
  font-size: 14px;
  margin: 0;
}
.company-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.numbers-card {
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 16px;
  text-align: center;
}
.numbers-card .label {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 4px;
}
.numbers-card .value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.numbers-card .note {
  font-size: 11px;
  opacity: .8;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #eee;
}
.timeline-item {
  position: relative;
  padding: 12px 0 12px 18px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f20;
}
.timeline-year {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}
.timeline-body {
  font-size: 14px;
}
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}
.access-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f5f5f5;
}
.access-map img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.access-detail {
  font-size: 14px;
}
.access-detail p {
  margin-bottom: 6px;
}
.access-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}
.company-contact-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 960px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .company-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .company-outline {
    grid-template-columns: 1fr;
  }
  .company-numbers {
    grid-template-columns: 1fr 1fr;
  }
}
.title-with-icon {
  display: inline-flex; /* アイコンと文字を横並びに */
  align-items: center; /* 垂直方向の中央揃え */
  gap: 8px; /* アイコンと文字の間隔 */
}
.title-with-icon img {
  width: 60px; /* アイコンサイズ調整 */
  height: auto;
}
/* サイト利用規約ページ専用 h1 デザイン */
#terms h1.terms-title {
  background: #d00000;
  color: #ffffff;
  padding: 20px;
}
/*プライバシーページ専用 h1 デザイン */
#privacy h1.privacy-title {
  background: #d00000;
  color: #ffffff;
  padding: 20px;
}

/* 3カラム専用レイアウト */
.news-grid.news-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;          /* ボックスの間隔はお好みで */
  align-items: stretch;
}

/* レスポンシブ（必要なら） */
@media (max-width: 960px) {
  .news-grid.news-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .news-grid.news-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* カードの見た目調整（新クラスだけに適用） */
.news-card-3col {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-3col .body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 画像はカードの幅にフィットさせる */
.news-card-3col img {
  display: block;
  width: 100%;
  height: auto;
}

/* 中身の余白などもお好みで */
.news-card-3col .meta {
  margin: 8px 16px 4px;
  font-size: 0.85rem;
  color: #777;
}

.news-card-3col h3 {
  margin: 0 16px 8px;
  font-size: 1rem;
}

.news-card-3col p {
  margin: 0 16px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* アイコンを並べる枠：最大幅2100px、入るだけ横に並んで折り返し */
.icon-grid{
  max-width: 2100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 0.8fr));
  gap: 22px;
  align-items: start;
}

/* アイコンカード本体 */
.iconbox{
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

/* 200px角アイコン */
.iconbox img{
  width: 150px;
  height: 150px;
  object-fit: contain; /* 画像の比率維持 */
  display: block;
}

/* 下の太字テキスト */
.iconbox b{
  font-size: 18px;
  line-height: 1.2;
  display: block;
}
/* =========================
   Recruit (2-column cards)
   ========================= */

.recruit{
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 18px;
}

.recruit-title{
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 16px;
  line-height: 1.2;
}

/* ほんのり背景（カードが映える） */
.recruit{
  background:
    radial-gradient(900px 400px at 12% 0%, rgba(0,0,0,.04), transparent 60%),
    radial-gradient(700px 360px at 95% 8%, rgba(0,0,0,.03), transparent 60%);
  border-radius: 18px;
}

/* 2列グリッド */
.recruit-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 0;
  padding: 0;
}

/* カード */
.recruit-item{
  position: relative;
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);

  /* “デザイナブル感”が出る影 */
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 10px 24px rgba(0,0,0,.06);

  /* そっと動く */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  align-content: start;
  overflow: hidden;
}

/* 左上のアクセント */
.recruit-item::before{
  content:"";
  position:absolute;
  inset: 0 auto auto 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #e60012, #ffb3c1);
  opacity: .25;/* モノトーンで上品に */
}


/* 見出し(dt)を見やすく */
.recruit-item dt{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* dtの前に小さなドット */
.recruit-item dt::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

/* 本文 */
.recruit-item dd{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,.78);
}

/* 長文の改行が詰まりすぎないように */
.recruit-item dd br{
  line-height: 2.2;
}

/* 重要な数字（時給など）だけ強調したい場合に使える */
.recruit-item dd strong{
  font-weight: 800;
}

/* スマホ：1列 */
@media (max-width: 820px){
  .recruit{
    padding: 26px 14px;
    border-radius: 14px;
  }
  .recruit-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .recruit-item{
    border-radius: 14px;
  }
}

/* ユーザーが「動き少なめ」設定ならアニメ無効 */
@media (prefers-reduced-motion: reduce){
  .recruit-item{
    transition: none;
  }
  .recruit-item:hover{
    transform: none;
  }
}

