html, body { height:100%; margin:0; }
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

/* ← ここを先頭近くに追加（はみ出し根絶） */
/* 常にスクロールバー分の溝を確保 → 幅のガタつき防止 */
html { scrollbar-gutter: stable both-edges; }

/* 念のための保険（画像や埋め込みが幅を超えないように） */

.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    z-index:1000; transition: all 0.3s; border-bottom: 1px solid rgba(0,0,0,0.1);
}
.header-inner {
    max-width: 1400px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; padding: 1rem 2rem;
}
.logo { font-size: 1.8rem; font-weight: bold; color: #333; text-decoration: none; letter-spacing: 0.1em; }
.nav ul { display: flex; list-style: none; gap: 2.5rem; }
.nav a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; position: relative; }
.nav a:hover { color: #0066cc; }
.nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: #0066cc; transition: width 0.3s; }
.nav a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background: #333; transition: all 0.3s; }

.logo img {
  height: 50px;           /* 高さだけ指定すれば、幅は自動で縮小される */
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img {
    height: 36px;
  }
}

/* --- ハンバーガーで開くモバイルナビ --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 80vw;
  max-width: 340px;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  box-shadow: 4px 0 24px rgba(0,0,0,0.13);
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.7,.1,.3,1);
  padding-top: 2.5rem;
}

.mobile-nav.active {
  display: flex;
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #e3e6ee;
}

.mobile-nav a {
  display: block;
  font-size: 1.2rem;
  color: #222;
  padding: 1.3rem 0;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: #eef6ff;
  color: #0066cc;
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  line-height: 1;
}

/* オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  z-index: 1400;
  inset: 0;
  background: rgba(40,44,60,0.25);
  transition: opacity 0.2s;
}
.nav-overlay.active {
  display: block;
}

/* スマホだけ表示 */
@media (max-width: 768px) {
  .nav { display: none !important; }
  .mobile-nav { display: flex; }
  .mobile-nav:not(.active) { display: none; }
  .nav-overlay { display: none; }
  .nav-overlay.active { display: block; }
}



/* ヒーローセクション */
/*
.hero { height: 100vh; position: relative; padding-top:80px; }
.swiper { width: 100vw; height: calc(100vh - 80px);}
.swiper-slide { display:flex; align-items:center; justify-content:center; font-size:2rem; color:white;}

.slide-1 {
    background-image: url('https://picsum.photos/id/1015/1600/900');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .slide-2 {
    background-image: url('https://picsum.photos/id/1016/1600/900');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .slide-3 {
    background-image: url('https://picsum.photos/id/1018/1600/900');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }


.hero-content { text-align: center; color: white; z-index: 2; max-width: 800px; padding: 4rem 2rem; position: relative;}
*/

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-swiper, .swiper-wrapper, .swiper-slide {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.7s;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  height: 100%;
  pointer-events: none; /* クリック不可。ボタンのみpointer-events: auto; */
}
.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
  /* JSからanimation:none;→再適用 */
  text-shadow: 0 4px 24px rgba(0,0,0,0.16);
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.7s forwards;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.cta-button {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  margin-top: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(0,102,204,0.13);
  transition: background 0.3s;
  text-decoration: none;
  pointer-events: auto; /* ここでボタンだけクリック可 */
}
.cta-button:hover {
  background: #003366;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* レスポンシブ調整 */
@media (max-width: 900px) {
  .hero-title { font-size: 2.1rem; }
  .hero-content { padding: 2rem 0.8rem;}
}
@media (max-width: 700px) {
  .hero-title { font-size: 1.45rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-content { padding: 1rem 0.2rem;}
}

/* ---- アニメーション定義 ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- レスポンシブ調整 ---- */
@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .hero-content { padding: 0 2vw; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-content { padding: 0 4vw; }
}

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0);}}
.swiper-pagination { bottom: 30px !important;}
.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; width: 12px !important; height: 12px !important;}
.swiper-pagination-bullet-active { background: white !important;}

/* セクション共通スタイル */
.section { padding: 5rem 0;}
.section-alt { background: #f8f9fa;}
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem;}
.section-title { text-align: center; font-size: 2.5rem; font-weight: bold; margin-bottom: 1rem; color: #333;}
.section-subtitle { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 4rem;}
/* ニュースセクション */
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem;}
.news-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s;}
.news-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15);}
.news-content { padding: 2rem;}
.news-date { color: #0066cc; font-size: 0.9rem; font-weight: bold; margin-bottom: 0.5rem;}
.news-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; color: #333;}
.news-excerpt { color: #666; margin-bottom: 1.5rem; line-height: 1.6;}
.news-link { color: #0066cc; text-decoration: none; font-weight: bold; transition: color 0.3s;}
.news-link:hover { color: #004499;}
/* 製品情報セクション */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem;}
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s;}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.2);}
.product-image { height: 200px; background: linear-gradient(45deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #666;}
.product-content { padding: 2rem;}
.product-title { font-size: 1.3rem; font-weight: bold; margin-bottom: 1rem; color: #333;}
.product-description { color: #666; margin-bottom: 1.5rem; line-height: 1.6;}
.product-link { color: #0066cc; text-decoration: none; font-weight: bold; transition: color 0.3s;}
.product-link:hover { color: #004499;}
/* お問い合わせフォーム */
.contact-form { max-width: 800px; margin: 0 auto; background: white; padding: 3rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);}
.form-group { margin-bottom: 2rem;}
.form-label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #333;}
.required { color: #e74c3c; margin-left: 0.25rem;}
.form-input, .form-textarea { width: 100%; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; font-family: inherit; box-sizing: border-box;}
.form-input:focus, .form-textarea:focus { outline: none; border-color: #0066cc;}
.form-textarea { height: 120px; resize: vertical;}
.submit-button { background: #0066cc; color: white; padding: 1rem 3rem; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s; display: block; margin: 0 auto;}
.submit-button:hover { background: #004499; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,102,204,0.3);}
/* フッター */
.footer { background: #333; color: white; padding: 4rem 0 2rem;}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 2rem;}
.footer-section h3 { font-size: 1.2rem; margin-bottom: 1rem; color: #0066cc;}
.footer-section p, .footer-section a { color: #ccc; text-decoration: none; margin-bottom: 0.5rem; display: block; transition: color 0.3s;}
.footer-section a:hover { color: white;}
.social-links { display: flex; gap: 1rem; margin-top: 1rem;}
.social-link { display: inline-block; width: 40px; height: 40px; background: #555; border-radius: 50%; text-align: center; line-height: 40px; color: white; transition: background 0.3s;}
.social-link:hover { background: #0066cc;}
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #555; color: #999;}
@media (max-width: 768px) {
    .hero { padding-top:70px; }
    .header-inner { padding: 1rem;}
    .nav { display: none;}
    .hamburger { display: flex;}
    .hero-title { font-size: 2.5rem;}
    .hero-subtitle { font-size: 1.1rem;}
    .section { padding: 3rem 0;}
    .section-title { font-size: 2rem;}
    .news-list, .products-grid { grid-template-columns: 1fr;}
    .contact-form { padding: 2rem 1rem; margin: 0 1rem;}
    .footer-content { grid-template-columns: 1fr; text-align: center;}
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem;}
    .cta-button { padding: 0.8rem 2rem;}
    .container { padding: 0 1rem;}
}
@media (max-width: 768px) {
.contact-form {
    padding: 2rem 1rem;
    margin: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
}
.form-input, .form-textarea {
    max-width: 100%;
    box-sizing: border-box;
}
}

@media (max-width: 480px) {
.contact-form {
    padding: 1rem 0.5rem;
    margin: 0 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
}
.form-input, .form-textarea {
    max-width: 100%;
    box-sizing: border-box;
}
}

/* 特集セクション */
.feature-section {
background: #f6f7fb;
padding: 5rem 0;
}
.feature-section.alt {
background: #fff;
}
.feature-inner {
display: flex;
align-items: center;
justify-content: center;
max-width: 1500px;
margin: 0 auto;
gap: 3rem;
flex-wrap: nowrap;
flex-direction: row;
}
.feature-inner.reverse {
    flex-direction: row-reverse;
}
.feature-image, .feature-text {
flex: 1 1 50%;
min-width: 300px;
}
.feature-image {
flex: 1 1 50%;
min-width: 300px;
text-align: center;
}
.feature-image img {
width: 100%;
max-width: 520px;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.feature-text {
flex: 1 1 50%;
min-width: 300px;
padding: 2rem;
}
.feature-title {
font-size: 2.2rem;
font-weight: bold;
margin-bottom: 1.5rem;
color: #0066cc;
}
.feature-desc {
font-size: 1.2rem;
color: #444;
margin-bottom: 2rem;
line-height: 2;
}
.feature-link {
display: inline-block;
background: #0066cc;
color: #fff;
padding: 0.8rem 2.4rem;
border-radius: 50px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 2px 10px rgba(0,102,204,0.12);
transition: background 0.3s;
}
.feature-link:hover {
background: #003366;
}

/* reverse（左画像右テキスト→右画像左テキスト） */
.feature-inner.reverse {
flex-direction: row-reverse;
}

/* レスポンシブ */
@media (max-width: 768px) {
.feature-inner,
.feature-inner.reverse {
    flex-direction: column !important;
    gap: 2rem;
    padding: 0 1rem;
}
.feature-image,
.feature-text {
    width: 100%;
    text-align: center;
    padding: 0;
}
}

/* スタッフ紹介セクション */
.staff-section {
background: #f8f9fa;
padding: 5rem 0 4rem;
}
.staff-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2.5rem;
max-width: 1100px;
margin: 0 auto;
}
.staff-card {
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0,0,0,0.10);
text-align: center;
padding: 2rem 1.2rem 1.5rem;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
align-items: center;
}
.staff-card:hover {
transform: translateY(-8px) scale(1.03);
box-shadow: 0 8px 36px rgba(0,102,204,0.15);
}
.staff-image {
width: 120px;
height: 120px;
border-radius: 50%;
overflow: hidden;
margin-bottom: 1.2rem;
border: 3px solid #e3e8f0;
background: #f0f0f0;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.staff-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.staff-name {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 0.5rem;
color: #0066cc;
}
.staff-role {
font-size: 1rem;
color: #666;
margin-bottom: 1rem;
}
.staff-bio {
font-size: 1rem;
color: #444;
line-height: 1.7;
}

@media (max-width: 1024px) {
.staff-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
}
@media (max-width: 600px) {
.staff-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.staff-card {
    padding: 1.2rem 0.6rem 1.2rem;
}
}

.recruit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
margin-top: 2.5rem;
}

.recruit-card {
background: #fff;
border-radius: 14px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
transition: transform 0.2s, box-shadow 0.2s;
}
.recruit-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.recruit-image img {
width: 100%;
height: 180px;
object-fit: cover;
background: #eee;
}

.recruit-content {
padding: 1.5rem 1.2rem;
text-align: center;
}
.recruit-title {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 0.6rem;
color: #0066cc;
}
.recruit-desc {
font-size: 1rem;
color: #444;
line-height: 1.7;
}

.recruit-cta {
display: inline-block;
margin: 0 0.6rem;
padding: 0.85rem 2.5rem;
background: #0066cc;
color: #fff;
border-radius: 50px;
font-weight: bold;
text-decoration: none;
transition: background 0.25s;
box-shadow: 0 2px 10px rgba(0,102,204,0.12);
}
.recruit-cta:hover {
background: #003366;
}
.recruit-cta.secondary {
background: #fff;
color: #0066cc;
border: 2px solid #0066cc;
}
.recruit-cta.secondary:hover {
background: #f3f7fc;
color: #003366;
border: 2px solid #003366;
}

@media (max-width: 600px) {
.recruit-image img { height: 130px; }
.recruit-content { padding: 1rem 0.5rem; }
}

.back-to-top {
position: fixed;
right: 30px;
bottom: 40px;
width: 54px;
height: 54px;
border: none;
border-radius: 50%;
background: #0066cc;
color: #fff;
font-size: 2rem;
font-weight: bold;
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
z-index: 1200;
transition: background 0.25s, box-shadow 0.25s, opacity 0.3s;
opacity: 0.85;
}
.back-to-top:hover {
background: #003366;
opacity: 1;
}
@media (max-width: 600px) {
.back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}
}

.sustainability-section {
    width: 100%;
    margin: 0 auto 150px auto;
    position: relative;
    background: #f9f9f9;
    padding: 0;
}

.sustainability-item {
    display: flex;
    flex-direction: row;
    position: relative;
    height: 670px;
    min-height: 670px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.sustainability-item.reverse {
    flex-direction: row-reverse;
  }

.sustainability-item .image-01 {
    position: absolute;
    top: 0;
    right: 0;
    width: 68%;
    height: 100%;
    z-index: 1;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}
.sustainability-item .image-01 img {
    width: 100%;
    height:auto;
    display:block;
    aspect-ratio: 16 / 9;   /* 画像に近い比率をセット */
    object-fit: cover;
}

.sustainability-item .image-02 {
    position: absolute;
    top: 50px;
    right: 8%;
    width: 320px;
    height: 320px;
    z-index: 2;
    opacity: 0.35;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}
.sustainability-item .image-02 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-top-category {
    position: absolute;
    top: 70px;
    left: 60px;
    width: 43%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    z-index: 5;
    padding: 54px 54px 44px 54px;
    min-height: 420px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.box-top-category .box-inner {
    width: 100%;
}

.box-top-category .title {
    font-size: 2.2rem;
    margin-bottom: 0.3em;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.04em;
}

.box-top-category .title-category {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: #3793e0;
    margin-bottom: 1.2em;
    font-weight: bold;
}

.box-top-category .text {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 2em;
    line-height: 1.8;
}

.btn-cmn {
    display: inline-block;
    padding: 0.8em 2.2em;
    background: linear-gradient(90deg, #5bc0eb 0%, #0077ff 100%);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: box-shadow .18s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.btn-cmn:hover { box-shadow: 0 5px 18px rgba(0,0,0,0.16); opacity:0.94; }

/* 追加だけでOK、元のデザインを維持します */
.sustainability-item.reverse .box-top-category {
    left: auto;
    right: 60px;
  }
  
  .sustainability-item.reverse .image-01 {
    right: auto;
    left: 0;
    border-radius: 0 15px 15px 0;
  }
  
  .sustainability-item.reverse .image-02 {
    right: auto;
    left: 8%;
  }

  @media (max-width: 768px) {
    .sustainability-section {
        margin: 0 auto 80px auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
      }

    .sustainability-item,
    .sustainability-item.reverse {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto !important;
        min-width: 0 !important; /* ← はみ出し防止：これが超重要 */
        width: 100% !important;
        overflow: visible;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        min-height: auto !important;

    }
  
    .sustainability-item .image-01,
    .sustainability-item.reverse .image-01 {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        text-align: center;
        z-index: 10;
        
      }
    
      .sustainability-item .image-01 img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0;
      }
  
    .sustainability-item .image-02 {
      display: none; /* 丸背景などの装飾はスマホ非表示 */
    }
  
    .box-top-category,
    .box-top-category.reverse {
        position: relative !important;
        top: -30px;
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        background: #fff;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        box-sizing: border-box;
    }
  
    .box-top-category .title {
      font-size: 1.6rem;
      margin-bottom: 0.5rem;
      font-weight: bold;
    }
  
    .box-top-category .title-category {
      font-size: 1rem;
      margin-bottom: 1rem;
      color: #3793e0;
      font-weight: bold;
    }
  
    .box-top-category .text {
      font-size: 1rem;
      line-height: 1.7;
      color: #444;
      margin-bottom: 1.5rem;
    }
  
    .btn-cmn {
      font-size: 0.95rem;
      padding: 0.7rem 1.6rem;
      border-radius: 40px;
      background: linear-gradient(90deg, #5bc0eb, #0077ff);
      color: white;
      font-weight: bold;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
      text-decoration: none;
    }
  
    .sustainability-item .box-top-category,
    .sustainability-item.reverse .box-top-category {
      left: unset !important;
      right: unset !important;
      margin: 0 auto;
    }
  }

  @media (max-width: 1200px) {
    .sustainability-item { max-width: 100%; }
  }

/* モバイル：三本線を常に右上固定（headerの中にあっても影響されない） */
@media (max-width: 768px) {
  .header{
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
  }
  .header-inner{
    position: relative;                 /* ← これを基準に配置 */
    padding: 12px calc(56px + env(safe-area-inset-right)) 12px
             calc(16px + env(safe-area-inset-left));
    box-sizing: border-box;
  }
  .hamburger{
    display: inline-flex !important;
    position: absolute;                 /* ← fixed をやめる */
    right: calc(50px + env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    width: auto;                        /* fit-content は使わない */
  }
}
html { scrollbar-gutter: stable; }
/* オーバーレイはハンバーガーの下にしてクリックできるようにする */
.nav-overlay { z-index: 1400; }
.mobile-nav  { z-index: 1500; }

/* 3) 100vw 由来の横はみ出し対策（もし残っていたら上書き） */
.hero, .hero-swiper, .swiper, .swiper-wrapper, .swiper-slide,
.nav-overlay, .container { width: auto !important; max-width: 100% !important; }
.hero { width: 100%; }
img, video { max-width: 100%; height: auto; display: block; }

/* 4) AOS の「fade-left/right」が横にはみ出して横スクロールを生む問題を
      モバイルだけ縦方向に変更（デスクトップはそのまま横スライド） */
@media (max-width: 768px) {
  .aos-init:not(.aos-animate)[data-aos="fade-left"],
  .aos-init:not(.aos-animate)[data-aos="fade-right"] {
    transform: translateY(24px) !important;  /* 横→縦の控えめスライド */
    opacity: 0 !important;
  }
}

/* 5) サステナビリティのレイヤはクリップしない（親で隠さない） */
.sustainability-section,
.sustainability-item { overflow: visible; }

:root { --headerH: 72px; }
@media (max-width:768px){ :root { --headerH: 60px; }}

/* ヒーローをヘッダー分だけ確保して全画面に */
.hero{
  position: relative;
  min-height: calc(100vh - var(--headerH));
  margin-top: var(--headerH);   /* ヘッダー固定の被り回避 */
  overflow: hidden;
}

/* 画像を全面にフィット */
.hero-bg-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;       /* 必要なら調整 */
  z-index: 1;
}

/* テキストは最前面で中央配置 */
.hero .hero-content{
  position: relative;
  z-index: 2;
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
  text-align:center;
}