/* Reset & Base */
:root {
  --main-color: #254B68; /* ネイビー */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #222;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
#header {
  position: relative;
  z-index: 1000;
  display: block;      /* ← これを追加 */
  width: 100%;         /* ← これも追加 */
  min-height: 60px;    /* ← 仮でもOK、ヘッダー高さ確保 */
}
.site-header {
  position: fixed;       /* ← stickyの代わりに固定 */
  top: 0;
  left: 0;
  width: 100%;           /* 横幅全体 */
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-inner h1 {
  font-size: clamp(1rem, 2.5vw, 1.5rem); /* ウィンドウ幅で自動調整 */
  margin-left: 10px;
  flex: 1;
  white-space: nowrap;
}
.logo {
  height: 40px;
}
.menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  z-index: 3100;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-img.pc {
  display: none; /* PC用画像はデフォルト非表示 */
}
.hero-text {
  position: absolute;
  bottom: 5%; /* 下から少し余白 */
  left: 50%;
  transform: translateX(-50%); /* 中央揃え */
  text-align: center;
}

.hero-text .btn {
  background-color: var(--main-color);
;
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: 2px solid #fff;
  font-weight: 600;
}
@media (min-width: 768px) {
  .hero-text {
    bottom: 10%;
    right: 6%;
  }
  .hero-text .btn {
    font-size: clamp(1rem, 1.3vw, 1.6rem);
    padding: clamp(12px, 1.5vw, 18px) clamp(28px, 3vw, 48px);
  }
  .hero-img.sp {
    display: none;
  }
  .hero-img.pc {
    display: block;
  }
}
/* Sections */
.section {
  padding: 0 0 40px 0;
}
.section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.section h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color:#254B68;
  margin-top: 10px;
}
.section h3 {
  margin: 20px 0 20px 0;

}
.section img {
  display: block;
  margin: 0 auto;              /* センター配置 */
  max-width: 100%;             /* 横幅100%以内に収める */
  height: auto;                /* アスペクト比を維持 */
  max-width: 768px;            /* 769px以上は拡大しない */
}
/* トップページの画像も下層ページと同じ幅制御を適用 */
.works img,
.recruitment img {
  display: block;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
}
.about img {
  display: block;
  margin: 20px auto 20px auto; /* ← 下の余白を20pxに */
  max-width: 800px;
  width: 100%;
  height: auto;
}
.about p {
  margin-bottom: 20px; /* デフォルト40pxから半分に */
}
/* =============================
  Table Style (全ページ共通)
============================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1rem;
}

th, td {
  padding: 10px 12px;
  border: 1px solid #ccc; /* グレーのボーダー統一 */
  text-align: left;
}

th {
  background-color: #f7f7f7;
  white-space: nowrap;
  width: 25%;
  font-weight: 600;
}

td {
  width: 75%;
}

/* =============================
  Drawer Menu
============================= */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -260px; /* 初期位置: 画面外 */
  width: 260px;
  height: 100%;
  background-color:#254B68;
  color: #fff;
  padding-top: 80px;
  transition: right 0.3s ease;
  z-index: 3000;
}

.side-menu.active {
  right: 0; /* 表示時 */
}

.side-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
  padding: 0 30px;
}

.side-menu ul li {
  margin-bottom: 25px;
}

.side-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.side-menu ul li a:hover {
  opacity: 0.8;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* 下層ページ共通：タイトル帯 */
.section-title {
  background-color: #254B68;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 16px;
/* margin-bottom: 30px; */
}

/* 下層ページ見出し */
.section h3.subpage-ttl {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}
.section h3.subpage-ttl:after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #254B68;
  margin-top: 10px;
}
.section h4.subpage-ttl {
  margin: 20px 0 20px 0;

}
/* 下層ページ本文 */
body.subpage-body {
  padding-top: 10px;
}
.section p {
  line-height: 1.6;
  padding-bottom: 20px;
}
/* Works Page */
.subpage h3.subpage-ttl {
  margin-top: 40px;
  font-size: 1.3rem;
  font-weight: bold;
}
.subpage h3.subpage-ttl::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #254B68;
  margin-top: 8px;
}
/* About Page */
.subpage img {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .subpage img {
    max-width: 800px;
  }
}

/* Footer */
.site-footer {
  background: #254B68; 
  color: white;
  text-align: center;
  padding: 30px 0;
}

.sns-links {
  margin: 20px 0;
}

.sns-links img {
  width: 40px;
  height: auto;
  margin: 0 10px;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}
/* Responsive */
@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
