/* ==========================================================
   共通設定
========================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.8;
  margin: 0;
  background: #fff;
}

body h1 {
  font-size: 30px;
}

body h2 {
  font-size: 26px;
}

body h3 {
  font-size: 20px;
}

body p {
  font-size: 18px;
}

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

h2.center {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2em 0 1em;
  position: relative;
}

h2.center::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0078d7;
  margin: 0.5em auto 0;
  border-radius: 2px;
}

/* ==========================================================
   ヘッダー
========================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  background: rgba(0, 16, 105, 0.4);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 16, 105, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 70px;
}

.logo-text p {
  margin: 0;
  font-size: 0.75rem;
  color: #fff;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

/* ==========================================================
   PCナビ
========================================================== */
.pc-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-nav a {
  color: #fff;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.pc-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

.pc-nav a:hover::after {
  width: 100%;
}

/* ==========================================================
   ハンバーガーメニュー
========================================================== */
.hamburger {
  display: none;
  width: 32px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================
   モバイルナビ
========================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: rgba(0, 16, 105, 0.97);
  backdrop-filter: blur(6px);
  padding-top: 120px;
  transition: right 0.4s ease;
  z-index: 900;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 18px 30px;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================
   ブレイクポイント
========================================================== */
@media (max-width: 900px) {
  .pc-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================================================
   メインビジュアル
========================================================== */
.mv {
  position: relative;
  height: 100vh;
  background: url("../image/hd03.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: 10%;
  color: #fff;
}

.hero-text h2 {
  font-size: 2.4rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-text h3 {
  font-weight: 400;
  margin-bottom: 30px;
}

/* ==========================================================
   ボタン
========================================================== */
.btn-primary {
  background: #f7c600;
  color: #333;
  padding: 20px 32px;
  border-radius: 50px;
  display: inline-block;
  font-weight: bold;
  font-size: large;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 20px;
}

.btn-primary:hover {
  background: #fddf76;
}

/* ==========================================================
   事業内容
========================================================== */
.service-section {
  padding: 80px 0;
  background: #f9fafc;
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================================================
   campaign（縦並び）
========================================================== */
.campaign {
  padding: 60px 0;
  background: #f9fafc;
}

.campaign .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.campaign a {
  display: block;
  width: 100%;
  max-width: 900px;
}

.campaign img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.campaign a:hover img {
  transform: translateY(-4px);
}

/* ==========================================================
   施工実績
========================================================== */
.works {
  padding: 80px 0;
  text-align: center;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ==========================================================
   代表紹介
========================================================== */
.about {
  text-align: center;
}

.about h3 {
  margin: 40px;
}

.about .about-main {
  max-width: 100%;
}


.staff-profile {
  background-color: aliceblue;
  padding: 40px;
  display: flex;
  justify-content: center;
  /* 横方向中央 */
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  /* 横に広がりすぎ防止 */
  margin: 40px auto;
  /* ブロック自体を中央へ */
}

.staff-profile img {
  max-width: 200px;
  border-radius: 10px;
}

.profile-text {
  text-align: left;
}

/* ==========================================================
   会社概要
========================================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  text-align: center;
}

.company-table th,
.company-table td {
  border: 1px solid #ddd;
  padding: 12px 16px;
}

.company-table th {
  background: #f0f4f8;
  width: 30%;
}

/* ==========================================================
   採用情報
========================================================== */

.recruit {
  padding: 80px 0;
  background: #f9fafc;
}

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

.recruit>.container>p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.recruit img {
  display: block;
  margin: 0 auto 40px;
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.recruit-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.recruit-box h3 {
  text-align: left;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  border-left: 4px solid #2b6cb0;
  padding-left: 10px;
}

.recruit-box p {
  line-height: 1.8;
  margin-bottom: 10px;
}

.recruit-contact {
  margin-top: 30px;
  font-weight: bold;
  text-align: center;
}


/* ==========================================================
   お問い合わせ
========================================================== */
.contact-section {
  padding: 80px 0;
  background: #f9fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 40px auto 0;
  /* 全体を中央へ */
}

.contact-item {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  /* 中身も中央 */
}

.contact-section h2,
.contact-section p {
  text-align: center;
}

.tel-large {
  font-size: 1.8rem;
  font-weight: bold;
  color: #004b8d;
}

.line-qr {
  width: 160px;
  height: auto;
  margin: 20px auto;
  display: block;
}

/* ==========================================================
   ページトップボタン
========================================================== */
.pagetopBtn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f7c747;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.pagetopBtn.is-show {
  opacity: 1;
  transform: translateY(0);
}

.pagetopBtn a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}

/* ==========================================================
   フッター
========================================================== */
.site-footer {
  background: rgb(0, 16, 105, 0.95);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* ==========================================================
   スマホレスポンシブ
========================================================== */
@media (max-width: 768px) {
  .mv {
    height: auto;
    padding: 120px 20px 60px;
  }

  .hero-text {
    margin: 0 auto;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 1.4rem;
  }

  .staff-profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-text {
    text-align: center;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    display: block;
    margin-bottom: 18px;
  }
}