/* 色を工場っぽく落ち着いた配色に */
:root {
  --main-color: #0d47a1; /* 信頼感のある濃紺 */
  --sub-color: #f5f5f5; /* 背景用の薄いグレー */
  --accent-color: #ff9800; /* CTA用のオレンジ */
  --text-color: #333;
}

/* 背景固定用 */
body.fixed {
  overflow: hidden;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}
/* ベース */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: white;
}
#page-transition {
  position: fixed;
  inset: 0;
  background: #0d47a1; /* ブルーのオーバーレイ */
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-in-out;
  pointer-events: none;
}

#page-transition.active {
  transform: scaleX(1);
}
/* ヘッダー */
/* ヘッダーのレイアウトを調整 */
header {
  background: rgba(13, 71, 161, 0.95);
  color: white;
  padding: 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #f5f5f5;
}

/* ナビゲーション */
nav {
  display: flex;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* ホバー時に下線アニメーション */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* スクロール時に固定 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
/* スマホ　ハンバーガー */
@media (max-width: 768px) {
  /* メニューをスライドインに */
  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 240px;
    height: 100vh;
    background: rgba(13, 71, 161, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
  }
  nav ul {
    flex-direction: column;
    gap: 3rem;
  }
  nav.active {
    right: 0;
  }
  nav.active {
    animation: fadeIn 0.3s ease;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .hamburger {
    display: flex;
  }
}
/* オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.overlay.active {
  display: block;
  opacity: 1;
}
/* ヒーローエリア */
.hero {
  background: url("../images/hero-fv.jpg") no-repeat center center/cover;
  min-height: 90vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* セクション */
section {
  padding: 4rem 4%;
  margin: 0 auto;
}

h2 {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--main-color);
}

/* サービス */
.services {
  background: var(--sub-color);
}

.service-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.service-item {
  background: white;
  flex: 1;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 250px;
}
.service-item img {
  border-radius: 8px 8px 0 0;
}
.service-text-box {
  padding: 10px;
}
.service-title {
  font-size: 24px;
  text-align: center;
}
/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease;
}

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

.fade-in.delay-1 {
  transition-delay: 0.2s;
}
.fade-in.delay-2 {
  transition-delay: 0.4s;
}
.fade-in.delay-3 {
  transition-delay: 0.6s;
}
/* 製品紹介 */
.products {
  padding: 4rem 1rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.product-card h3,
.product-card p {
  margin: 0.5rem 0;
  padding: 0 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}

/* 会社概要 */
.about-container {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 左：テーブル広め / 右：写真狭め */
  gap: 2rem;
  align-items: stretch;
  max-width: 1000px; /* 全体の幅を制限 */
  margin: 0 auto; /* 中央寄せ */
}

.about-image img {
  width: 100%;
  max-width: 380px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.company-table th {
  background: #f5f7fa;
  font-weight: 600;
  color: #0d47a1;
  width: 30%;
}

/* スマホ表示は縦並び */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  .about-image img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* フッター */
footer {
  background: var(--main-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
}
/*-------------
about.html
-------------*/
.about {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #e3f2fd, #ffffff);
  background-image: linear-gradient(90deg, rgba(13, 71, 161, 0.05) 1px, transparent 1px), linear-gradient(180deg, rgba(13, 71, 161, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #0d47a1;
}

.about-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
}

.about-table {
  border-collapse: collapse;
  min-width: 320px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-table th,
.about-table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
}

.about-table th {
  background: #0d47a1;
  color: #fff;
  width: 30%;
}

.about-image img {
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/*-------------
contact.html
-------------*/
.contact {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #e3f2fd, #ffffff);
}
.contact h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0d47a1;
}

.contact-text {
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #0d47a1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0d47a1;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.2);
}

.contact-btn {
  display: flex;
  justify-content: center;
}
.btn {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #1565c0;
}
