/* ============================
   基本設定
============================ */
:root{
  --bg:#f7f9fc;
  --card:#ffffff;
  --accent:#3b82f6;
  --accent-soft:#60a5fa;
  --text:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --shadow-soft:0 8px 20px rgba(15,23,42,0.06);
  --shadow-strong:0 12px 28px rgba(15,23,42,0.12);
}

*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:"Inter","Noto Sans JP",sans-serif;
  color:var(--text);
  line-height:1.8;
  background:#fff;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit;}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

section{
  padding:80px 0;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}

section h2{
  font-size:1.9rem;
  margin-bottom:10px;
  padding-left:14px;
  font-weight:700;
  color:var(--text);
  position:relative;
}

section h2::before{
  content:"";
  position:absolute;
  left:0;
  top:4px;
  width:4px;
  height:24px;
  background:var(--accent);
  border-radius:2px;
}

section h2::after{
  content:"";
  position:absolute;
  left:14px;
  bottom:-6px;
  width:90px;
  height:2px;
  background:var(--accent-soft);
  border-radius:2px;
}

.sub{
  font-size:0.98rem;
  color:var(--muted);
  margin-bottom:32px;
}

/* ============================
   HEADER
============================ */
header{
  background:#ffffff;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 10px rgba(15,23,42,0.04);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap; /* ← これもあるとさらに安定 */
}

nav ul{
  display:flex;
  gap:20px;
  flex-wrap:wrap; /* ← これが今回の本命 */
  margin:0;
  padding:0;
  list-style:none;
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.header-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-img{
  height:44px;
}

.logo-text{
  font-size:1.25rem;
  font-weight:700;
  color:var(--text);
  line-height:1.4;
}

.logo-text-sub{
  display:block;
  font-size:0.8rem;
  color:var(--muted);
}

nav ul{
  display:flex;
  gap:22px;
  list-style:none;
  font-size:0.9rem;
}

nav a{
  position:relative;
  color:var(--muted);
}

nav a:hover{
  color:var(--text);
}

/* ============================
   HERO（最適化）
============================ */
.hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:50px;
  padding:80px 0;
}

.hero-text{
  flex:1 1 50%;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.badge{
  padding:5px 12px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #e0e7ff;
  font-size:0.8rem;
  color:var(--muted);
}

.hero-text h1{
  font-size:2.5rem;
  font-weight:700;
  margin-bottom:18px;
  color:var(--text);
}

.hero-lead{
  font-size:1rem;
  color:var(--muted);
  margin-bottom:16px;
}

.hero-lead strong{
  color:var(--text);
  font-weight:600;
}

.hero-meta{
  font-size:0.9rem;
  color:var(--muted);
  margin-bottom:22px;
  border-left:3px solid var(--accent-soft);
  padding-left:10px;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.btn-primary{
  background:var(--accent);
  color:#ffffff;
  padding:12px 26px;
  border-radius:999px;
  font-size:0.95rem;
  font-weight:600;
  box-shadow:0 8px 20px rgba(59,130,246,0.35);
  transition:0.25s ease;
}

.btn-primary:hover{
  background:#2563eb;
  transform:translateY(-3px);
}

/* 写真（右側） */
.hero-photo{
  flex:1 1 45%;
  max-width:45%;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-strong);
  cursor:zoom-in;
  transition:transform 0.3s ease;
}

.hero-photo:hover{
  transform:scale(1.02);
}

.hero-photo img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================
   GRID / CARD
============================ */
.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:26px;
}

.card{
  background:var(--card);
  border-radius:18px;
  padding:24px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  transition:0.25s ease;
  position:relative;
  overflow:hidden;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-strong);
}

.card img,
.card video{
  width:100%;
  border-radius:14px;
  margin-top:14px;
  transition:0.3s;
}

.card:hover img,
.card:hover video{
  transform:scale(1.02);
}

/* ============================
   COMPANY / MAP
============================ */
.company-info{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:28px;
  font-size:0.9rem;
}

.company-table{
  width:100%;
  border-collapse:collapse;
  background:#ffffff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
}

.company-table th,
.company-table td{
  padding:9px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.company-table th{
  width:120px;
  color:var(--text);
  background:#f8fafc;
  font-weight:600;
}

.company-table td{
  color:var(--muted);
}

.map{
  position:relative;
  width:100%;
  padding-bottom:75%;
  border-radius:18px;   /* ← 角丸 */
  overflow:hidden;      /* ← 角丸を有効にする */
  box-shadow:0 8px 20px rgba(0,0,0,0.08); /* ← おしゃれに見える影（任意） */
}


.map iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}


/* ============================
   CONTACT
============================ */
.contact-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  font-size:0.9rem;
}

.contact-panel{
  background:#ffffff;
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
}

.contact-panel p{
  color:var(--muted);
}

/* ============================
   ORG IMAGE
============================ */
.org-image{
  margin-top:30px;
  text-align:center;
}

.org-image img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(37,99,235,0.08);
  border:1px solid var(--line);
}

/* ============================
   CALENDAR
============================ */
.factory-photo-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.factory-photo-list img{
  width:100%;
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  transition:0.3s;
}

.factory-photo-list img:hover{
  transform:scale(1.03);
  box-shadow:var(--shadow-strong);
}

/* ============================
   FOOTER
============================ */
footer{
  background:#ffffff;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:0.85rem;
  padding:18px 0;
  text-align:center;
}

/* ============================
   モーダル（クリック拡大）
============================ */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  z-index:9999;
  justify-content:center;
  align-items:center;
}

.modal img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,0.4);
}

.modal-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  color:#fff;
  cursor:pointer;
}

/* ============================
   フェードアニメ
============================ */
.fade{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.9s ease, transform 0.9s ease;
}

.fade.show{
  opacity:1;
  transform:translateY(0);
}

/* ============================
   RESPONSIVE
============================ */
@media(max-width:900px){
  nav ul{
    gap:12px;
    font-size:0.85rem;
    flex-wrap:wrap;
  }
  .hero{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-text h1{
    font-size:2.1rem;
  }
  .hero-photo{
    max-width:100%;
    width:100%;
    margin-top:10px;
  }
  .company-info,
  .contact-box{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  section{
    padding:60px 0;
  }
}

.link-cards{
  margin:40px 0;
}

.link-cards h2{
  text-align:center;
  margin-bottom:20px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:20px;
}

.cards .card{
  background: #f7f9fc; /* ← 薄い青系の上品な色 */
  border-left: 5px solid var(--accent); /* ← 会社カラー（赤）をアクセントに */
  padding:20px;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
  font-weight:600;
  transition:0.2s;
}

.cards .card:hover{
  background:#eef3fa; /* ← ホバー時に少し濃くなる */
  transform:translateY(-3px);
  box-shadow:0 4px 10px rgba(0,0,0,0.15);
}


.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:20px;
  max-width:900px;   /* ← 追加：カード全体の最大幅 */
  
}

/* ============================
   ページロードフェード
============================ */
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.page-loaded {
  opacity: 1;
}
section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}

/* 最初のセクションだけ、下の余白を少し詰める */
.section-tight {
  padding-bottom: 20px; /* 通常 80px → 40px に */
}


