/* =========================
   Base & Typography
========================= */
body {
  margin: 0;
  font-family: "Noto Sans JP", "Helvetica Neue" Arial, sans-serif;
  line-height: 1.8;
  color: #1e293b; /* 少し柔らかい黒 */
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll; /* ← スクロールバー対策だが任意 */
}

a {
  color: inherit;
}

/* =========================
   Header （より透明感のあるデザインへ）
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* ← widthを使わない（スクロールバー対策） */
  height: 72px;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(8px); /* 背景をぼかす */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box; /* ← 超重要（スクロールバー対策） */
  z-index: 1000;
}

.company-name {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* PCナビ */
.pc-nav {
  display: none;
}

.pc-nav a {
  margin-left: 32px;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  position: relative;
}

.pc-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s;
}

.pc-nav a:hover::after {
  width: 100%;
}

/* =========================
   Menu Button
========================= */
.menu-btn,
.close-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   Overlay
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Slide Menu
========================= */
.menu {
  position: fixed;
  top: 0;
  right: 0; /* スクロールバー対策 */
  width: 280px;
  height: calc(100vh - 32px);
  margin-top: 16px;
  background: #111827;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 2000;
}

.menu.open {
  transform: translateX(0);
  opacity: 1;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-weight: bold;
  letter-spacing: 0.05em;
}

.menu ul {
  list-style: none;
  padding: 24px 0;
  margin: 0;
  text-align: center;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  font-size: 18px;
  text-decoration: none;
  color: #e5e7eb;
  transition: color 0.3s;
}

.menu a:hover {
  color: #38bdf8;
}

/* =========================
   Hero
========================= */
.hero {
  max-width: none; /* ヒーローエリアの横幅制限を解除 */
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-image: url("../images/building.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  background-attachment: fixed; /* パララックス効果 */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
}

/* ↑ ヒーローエリアの画像を暗くして文字を読みやすくするもの。今回は微妙だったためコメントアウト */

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 24px 140px;
  color: #fff;
}

.hero,
.hero * {
  box-sizing: border-box;
}

.hero-subtitle {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #38bdf8;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-shadow: none; /* モダンなデザインでは影を消すか薄くする */
}

.hero p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 40px;
  color: #e5e7eb;
}

.hero h1,
.hero p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #2ea8ff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  transition: background 0.3s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.4);
  background: #1b8ad9;
}

/* =========================
   Main
========================= */
main {
  padding-top: 80px;
}

/* セクション共通 */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #38bdf8;
  margin-top: 8px;
}

section p {
  font-size: 16px;
  color: #444;
}

/* =========================
   Mission / Vision (カードデザインの強化)
========================= */
.mv-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mv-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f1f5f9;
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.mv-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.mv-content {
  padding: 32px;
}

.mv-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #0f172a;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.mv-content p {
  margin: 0;
  line-height: 1.8;
  color: #555;
}


/* =========================
   Service（事業紹介）（グリッドと装飾）
========================= */

#service {
  background: #f8f9fb;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 20px 20px 8px;
  color: #0b1c3d;
  font-weight: 700;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  margin-left: 20px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin: 0 20px 24px;
}

.service-link {
  display: inline-block;
  margin: 0 20px 24px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.service-link:hover {
  background: #005fcc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* =========================
   PC表示：2×2レイアウト
========================= */

@media (min-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .service-card img {
    height: 220px;
  }
}

/* =========================
   Company Table（モダンなリスト形式へ）
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border-top: 2px solid #0f172a;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

th {
  width: 30%;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  border-right: 1px solid #e2e8f0;
}

td {
  padding-left: 24px;
}

/* =========================
   Map
========================= */
.map {
  margin-top: 32px;
  border-radius: 12px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-button {
  text-align: center;
  margin-top: 16px;
}

.map-button a {
  display: inline-block;
  padding: 12px 32px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.map-button a:hover {
  background: #444;
  transform: translateY(-2px);
}

/* =========================
   Footer
========================= */
.footer {
  background: #0f172a;
  color: #cbd5f5;
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
}

/* =========================
   Mobile
========================= */
@media (max-width: 480px) {
  section {
    padding: 72px 16px;
  }

  section h2 {
    font-size: 24px;
  }

  .menu {
    width: 85%;
  }

  .hero-inner {
    padding: 120px 16px 100px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* =========================
   PC
========================= */
@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }

  .pc-nav {
    display: block;
  }

  .menu,
  .overlay {
    display: none;
  }
  
  .mv-section {
    flex-direction: row;
    gap: 48px;
  }

  .mv-card {
    flex: 1;
  }

  .mv-image img {
    height: 300px;
  }
}


/* =========================
   Animations
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner {
  animation: fadeInUp 1s ease-out;
}