/* ===================== */
/* ベース */
/* ===================== */
body{
  margin:0;
  font-family:"Yu Gothic","Meiryo",sans-serif;
  color:#333;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

/* ===================== */
/* ヘッダー（最重要） */
/* ===================== */
header{
  position:fixed; /* ←これが重要（追従） */
  top:0;
  width:100%;
  z-index:999;
  transition:0.4s;
  background:transparent;
}

/* スクロール後 */
header.scrolled{
  background:transparent;
  box-shadow:0 2px10px rgba(0,0,0,0.1);
}

/* 中身 */
.header-inner{
  max-width:980px;
  margin:auto;
  display:flex; /* ←ここ重要 */
  justify-content:space-between;
  align-items:center;
  padding:5px;
}

/* ロゴ */
h1 img{
  width:200px;
  filter:brightness(0) invert(1);
  transition:0.3s;
}

/* スクロール後ロゴ */
header.scrolled h1 img{
  filter:none;
}

/* ===================== */
/* ナビ */
/* ===================== */
nav ul{
  display:flex;
  gap:20px;
  list-style:none;
  margin:0;
  padding:0;
}

nav a{
  color:#fff;
  font-weight:bold;
}

/* スクロール後 */
header.scrolled nav a{
  color:#0D4CB4;
}

/* ===================== */
/* ハンバーガー */
/* ===================== */
.menu-toggle{
  width:30px;
  height:16px;
  position:relative;
  cursor:pointer;
  display:none;
}

/* 線 */
.menu-toggle span{
  position:absolute;
  width:100%;
  height:1.8px;
  background:#fff;
  transition:0.3s;
}


.menu-toggle span:nth-child(1){ top:0; } 
.menu-toggle span:nth-child(2){ top:7px; } 
.menu-toggle span:nth-child(3){ bottom:0; }

/* スクロール後黒 */
header.scrolled .menu-toggle span{
  background:#fff;
}

/* ×変形 */
.menu-toggle.active span:nth-child(1){
  transform:rotate(45deg);
  top:10px;
}
.menu-toggle.active span:nth-child(2){
  opacity:0;
}
.menu-toggle.active span:nth-child(3){
  transform:rotate(-45deg);
  bottom:10px;
}

/* ===================== */
/* ヒーロー（MV） */
/* ===================== */
.hero{
  position:relative;
  height:100vh;
  overflow:hidden;
}

.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  animation:zoom 20s infinite;
}

@keyframes zoom{
  0%{transform:scale(1);}
  50%{transform:scale(1.08);}
  100%{transform:scale(1);}
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
}

/* テキスト */
.hero-text{
  position:absolute;
  top:50%;
  left:8%;
  transform:translateY(-50%);
  color:#fff;
  z-index:2;
}

.hero-text h2{
  font-size:40px;
  line-height:1.4;
}

.hero-sub{
  margin-top:15px;
  font-size:14px;
  letter-spacing:2px;
  color:rgba(255,255,255,0.8);
}

.hero-badges{
  margin-top: 30px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.badge{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 英語メイン */
.badge .en{
  font-size: 13px;
  color: #fff;
  letter-spacing: 1px;
}

/* 日本語サブ */
.badge .jp{
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.hero-badges{
  position:absolute;   /* ←追加 */
  bottom:80px;         /* ←位置 */
  left:8%;
  z-index:2;

  display:flex;
  gap:25px;
  flex-wrap:wrap;
}

@media(max-width:768px){

  .hero-badges{
    gap: 15px;
  }

  .badge .en{
    font-size: 11px;
  }

  .badge .jp{
    font-size: 10px;
  }

}
.badge{
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 12px;
}
@media(max-width:768px){

  .hero-badges{
    bottom:60px;
    left:5%;
    right:5%;
  }

}

/* ===================== */
/* スクロール矢印 */
/* ===================== */
.scroll-indicator{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
}

.scroll-indicator span{
  display:block;
  width:24px;
  height:24px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
  animation:arrow 1.5s infinite;
}

@keyframes arrow{
  0%{opacity:0;transform:translateY(0) rotate(-45deg);}
  50%{opacity:1;}
  100%{opacity:0;transform:translateY(15px) rotate(-45deg);}
}

/* ===================== */
/* コンテンツ */
/* ===================== */
.container{
  max-width:980px;
  margin:auto;
  padding:60px 15px;
}

/* ===================== */
/* カード */
/* ===================== */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.card{
  background:#fff;
  border:1px solid #ddd;
  padding:15px;
}

.card h4{
  color:#0D4CB4;
}

/* ===================== */
/* ギャラリー */
/* ===================== */
.lead-gallery,
.new-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.lead-gallery img,
.new-gallery img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

/* ===================== */
/* 製品メニュー */
/* ===================== */
.product-menu{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  list-style:none;
  padding:0;
}

.product-menu li{
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 15px rgba(0,0,0,0.15);
}

.product-menu img{
  width:100%;
  transition:.3s;
}

.product-menu a:hover img{
  transform:scale(1.05);
}


/* ===================== */
/* 製品グリッド 完全版 */
/* ===================== */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
}

.product-list li {
  list-style: none;
}

/* カード */
.product-list a {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 画像 */
.product-list img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

/* ホバー */
.product-list a:hover img {
  transform: scale(1.08);
}

/* テキスト（画像上に表示） */
.product-list a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* ===================== */
/* スマホ */
/* ===================== */
@media(max-width:768px){

  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-list a::after {
    font-size: 13px;
    padding: 10px;
  }

}
/* コンテンツ中央寄せ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
/* ===================== */
/* セクション背景 */
/* ===================== */

/* 製品案内 */
.products {
  background: #f8fbff;
}

/* 新規取扱製品 */
.new-products {
  background: #eef5ff;
}

/* 会社概要 */
.company-section {
  background: #ffffff;
}

/* 品質方針 */
.policy-section {
  background: #f4f7fa;
}

/* お問い合わせ */
/* ===================== */
/* お問い合わせ（統一版） */
/* ===================== */
.contact-area {
  background: linear-gradient(135deg, #0D4CB4, #002a7a);
  color: #fff;
  padding: 80px 20px;
  border-radius: 12px;
  text-align: center;
}

/* テキスト */
.contact-text {
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* CTA全体 */
.cta-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ボタン共通 */
.cta-btn {
  padding: 16px 28px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

/* 電話 */
.cta-btn.tel {
  background: #fff;
  color: #0D4CB4;
}

/* メール */
.cta-btn.mail {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* ホバー */
.cta-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* ===================== */
/* スマホ */
/* ===================== */
@media(max-width:768px){

  .contact-area {
    background: linear-gradient(135deg, #6ec1ff, #3a86ff);
  }


  .cta-box {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
  }

}

/* ===================== */
/* 品質方針（ハイエンド版） */
/* ===================== */
/* ===================== */
/* 品質方針（明るく＆正方形） */
/* ===================== */
.policy-section {
  background: #f4f8ff; /* ← 明るいブルー */
  padding: 80px 0;
}

/* ボックス全体 */
.policy-box {
  max-width: 900px;
  margin: auto;
}

/* リード文 */
.policy-lead {
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #444;
}

/* グリッド */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 各カード */
.policy-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;

  /* 正方形にする */
  aspect-ratio: 1 / 1;

  /* かっこよく */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* ホバー */
.policy-item:hover {
  transform: translateY(-5px);
}

/* タイトル */
.policy-item h3 {
  color: #0D4CB4;
  margin-bottom: 10px;
  font-size: 16px;
}

/* テキスト */
.policy-item p {
  font-size: 13px;
  color: #555;
}

/* 署名 */
.policy-sign {
  text-align: right;
  margin-top: 40px;
  font-size: 14px;
  color: #333;
}

/* ===================== */
/* スマホ（2列） */
/* ===================== */
@media(max-width:768px){

  .policy-grid {
    grid-template-columns: repeat(2, 1fr); /* ← 2列 */
    gap: 15px;
  }

  .policy-item {
    padding: 15px;
  }

  .policy-item h3 {
    font-size: 14px;
  }

  .policy-item p {
    font-size: 12px;
  }

}
/* ===================== */
/* 会社概要（プロ仕様） */
/* ===================== */
.company-section{
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  padding: 80px 0;
}

/* タイトル */
.section-header{
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2{
  font-size: 32px;
  color: #0D4CB4;
  margin-bottom: 10px;
}

.section-header p{
  color: #777;
  letter-spacing: 2px;
}

/* レイアウト */
.company-box{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* ===================== */
/* 左：会社情報 */
/* ===================== */
.company-info{
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* テーブル */
.company-table{
  width: 100%;
  border-collapse: collapse;
}

.company-table th{
  width: 30%;
  text-align: left;
  padding: 12px;
  background: #f5f7fb;
  color: #0D4CB4;
  font-weight: bold;
  border-radius: 6px;
}

.company-table td{
  padding: 12px;
  border-bottom: 1px solid #eee;
}

/* ===================== */
/* 右：地図 */
/* ===================== */
.company-map{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.company-map iframe{
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ===================== */
/* スマホ */
/* ===================== */
@media(max-width:768px){

  .company-box{
    grid-template-columns: 1fr; /* ←縦並び */
  }

  .company-info{
    padding: 20px;
  }

  .section-header h2{
    font-size: 24px;
  }

}

/* ===================== */
/* MVアニメーション */
/* ===================== */
.mv-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,#001a33,#003a5d,#00263d);
  background-size: 200% 200%;
  animation: bgMove 10s infinite alternate;
  z-index: 0;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* テキスト切替 */
.mv-title {
  position: relative;
  height: 60px;
}

.mv-title span {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: textSwitch 12s infinite;
}

.mv-title span:nth-child(1){animation-delay:0s;}
.mv-title span:nth-child(2){animation-delay:3s;}
.mv-title span:nth-child(3){animation-delay:6s;}
.mv-title span:nth-child(4){animation-delay:9s;}

@keyframes textSwitch {
  0% {opacity:0; transform:translateY(20px);}
  5% {opacity:1; transform:translateY(0);}
  25% {opacity:1;}
  30% {opacity:0;}
}

/* ===================== */
/* フッター（シンプル） */
/* ===================== */
.footer{
  background:#00263d;
  color:#fff;
  padding:40px 20px;
}

.footer-inner{
  max-width:800px;
  margin:auto;
  text-align:left;
}

.footer-logo{
  width:140px;
  margin-bottom:15px;
  filter:brightness(0) invert(1);
}

.footer-info p{
  margin:5px 0;
  font-size:14px;
}

.copyright{
  margin-top:20px;
  font-size:12px;
  opacity:.7;
}

/* ===================== */
/* スマホ */
/* ===================== */
@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:60px;
    width:100%;
    background:rgba(0,0,0,0.9);
    display:none;
  }

  nav.active{
    display:block;
  }

  nav ul{
    flex-direction:column;
  }

  nav a{
    display:block;
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,0.2);
  }

  .hero{
    height:70vh;
  }

  .hero-text h2{
    font-size:22px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .product-menu,
  .lead-gallery,
  .new-gallery{
    grid-template-columns:repeat(2,1fr);
  }

  .container{
    padding:40px 10px;
  }
}

/* ===================== */
/* フェード初期状態 */
/* ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

/* 表示されたら */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:768px){

/* ===================== */
/* スクロール時ヘッダー縮小 */
/* ===================== */

header.scrolled{
  background:transparent;
  box-shadow:0 0px 0px rgba(0,0,0,0.1);
}

/* ヘッダー中身をコンパクト化 */
header.scrolled .header-inner{
  padding:5px 5px;
  transition:0.3s;
}

/* ロゴ縮小 */
header.scrolled h1 img{
  width:200px;
  transition:0.3s;
}

/* ハンバーガー微調整 */
header.scrolled .menu-toggle{
  transform:scale(0.9);
  transition:0.3s;
}



}

/* ===================== */
/* お問い合わせ（見やすさ改善） */
/* ===================== */
.contact-area {
  background: #fff; /* ← 白に変更 */
  color: #333;
  padding: 60px 30px;
  border-radius: 12px;

  /* 浮かせる */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* タイトル */
.contact-area h2 {
  color: #0D4CB4;
}

/* 説明文 */
.contact-text {
  color: #555;
}

/* ボタン */
.cta-btn.tel {
  background: #0D4CB4;
  color: #fff;
}

.cta-btn.mail {
  border: 2px solid #0D4CB4;
  color: #0D4CB4;
}

/* ===================== */
/* 品質方針 */
/* ===================== */

.policy-section {
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  padding: 80px 0;
  overflow: hidden;
}

/* リード */
.policy-lead {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 50px;
  color: #444;
}

/* ===== PC（4列） ===== */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* カード */
.policy-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* ホバー */
.policy-item:hover {
  transform: translateY(-8px);
}

/* アイコン */
.policy-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: #0D4CB4;
}

/* タイトル */
.policy-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #0D4CB4;
  font-weight: bold;
}

/* テキスト */
.policy-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* 署名 */
.policy-sign {
  text-align: right;
  margin-top: 60px;
  font-size: 14px;
  color: #333;
}

/* ===== スマホ（2列で中央ピタ） ===== */
@media(max-width:768px){

  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;

    padding: 0 12px;       /* ←左右バランス */
    margin: 0 auto;        /* ←中央 */
  }

  .policy-item {
    aspect-ratio: 1 / 1;
    padding: 15px;
    border-radius: 12px;
  }

}}
/* ===================== */
/* 品質方針の位置ズレ修正 */
/* ===================== */

/* ヘッダー被り防止 */
.policy-section {
  padding-top: 120px; /* ←これ超重要 */
}

/* コンテナ中央 */
.policy-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* グリッド中央制御 */
.policy-grid {
  justify-content: center; /* ←これ追加 */
}
@media(max-width:768px){

  .policy-section {
    padding-top: 100px;
  }

  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

}
