/* ---------- リセット ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  background: #000 url("../img/background.jpg") center/cover fixed no-repeat;
  color: #fff;
  line-height: 1.6;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: rgba(255, 255, 255);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.logo img {
  height: 90px;
}
.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
.nav a {
  color: #011135;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.3s;
}
.nav a:hover {
  color: #0af;
}

/* ---------- ハンバーガー ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;

  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #011135;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* ---------- HERO - 全体 ---------- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 620px;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
  max-width: 1100px;
}

/* タイトル */
.hero-title {
  font-family: "Volkhov", serif;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.9s ease forwards;
}

/* ---------- 三角形レイアウト ---------- */
.hero-triangle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 72px;
  column-gap: 120px;
  align-items: center;
  justify-items: center;
  width: min(900px, 92%);
  margin: 0 auto;
}
.hero-word {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
  color: #fff;
  transition: transform 0.25s ease;
  white-space: nowrap;
  animation: fadeInUp 0.9s ease forwards;
}
.highlight {
  color: #b1891d;
}
.mastery {
  grid-column: 1 / -1;
  justify-self: center;
  font-family: "Volkhov", serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.mighty {
  grid-column: 1 / 2;
  justify-self: start;
  font-family: "Volkhov", serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.achieve {
  grid-column: 2 / 3;
  justify-self: end;
  font-family: "Volkhov", serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.hero-word:hover {
  transform: translateY(-6px);
}

/* ---------- 下線アニメーション ---------- */
.hero-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );
  transform: scaleX(0);
  transform-origin: center;
  animation: underline 1.1s ease forwards;
}
.mastery::after {
  animation-delay: 0.4s;
}
.mighty::after {
  animation-delay: 1.2s;
}
.achieve::after {
  animation-delay: 2s;
}

@keyframes underline {
  to {
    transform: scaleX(1);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- セクション共通 ---------- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 20px 0 40px;
  letter-spacing: 2px;
  margin-top: 90px;
}

.section-title02 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* ---------- 主力サービス ---------- */

.card-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
  height: 450px;
}
.card:hover {
  transform: translateY(-6px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  font-size: 1.3rem;
  margin: 16px;
  font-weight: 600;
}
.card p {
  font-size: 0.95rem;
  padding: 0 16px 20px;
  color: #ddd;
}

/* ---------- 導入実績 ---------- */
.works {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 6%;
}
.works-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.works-item {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.works-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.works-item p {
  padding: 14px;
  color: #ccc;
}
.works-link {
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 20px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: #444;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #666;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #0a2a43, #000);
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.cta p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #ddd;
}
.btn-primary {
  background: #0af;
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  background: #08c;
}

/* ---------- 企業理念 ---------- */
.philosophy {
  background: url("../img/background.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
  margin-top: 90px;
}
.philosophy-inner h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.philosophy-inner p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.text-background01 {
  display: inline;
  line-height: 1.4em;
  padding: 5px;
  background: linear-gradient(transparent 0%, #000000 110%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 代表挨拶 ---------- */
.message {
  background: rgba(0, 0, 0, 0.98);
  padding: 60px 6%;
}
.message-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.message-photo img {
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.message-text h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.message-text p {
  color: #ccc;
  margin-bottom: 14px;
}
.ceo-sign {
  font-family: "Yuji Syuku", serif;
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

/* ---------- 会社概要 ---------- */
.company-profile {
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 6%;
}
.company-profile table {
  width: 100%;
  border-collapse: collapse;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}
.company-profile th,
.company-profile td {
  padding: 14px 18px;
  border-bottom: 1px solid #333;
}
.company-profile th {
  width: 25%;
  background: #2a2a2a;
  text-align: left;
  color: #aaa;
}

/* ---------- 沿革 ---------- */
.history {
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 6%;
}
.timeline {
  list-style: none;
  border-left: 3px solid #0af;
  padding-left: 20px;
}
.timeline li {
  margin: 20px 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0af;
}
.timeline .year {
  font-weight: 700;
  margin-right: 10px;
  color: #fff;
}

/* ---------- 認定・許可証 ---------- */
.certificates {
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 6%;
}
.cert-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cert-card {
  background: #222;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.cert-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}
.cert-card p {
  color: #ccc;
  font-size: 1.5rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: block;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
  }
  .nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 640px;
    padding: 40px 0;
  }
  .hero-triangle {
    grid-template-columns: 1fr;
    row-gap: 36px;
    column-gap: 0;
    width: 92%;
  }
  .mastery,
  .mighty,
  .achieve {
    grid-column: auto;
    justify-self: center;
  }
  .hero-word::after {
    bottom: -8px;
    height: 3px;
  }
}
@media (min-width: 1300px) {
  .hero-triangle {
    column-gap: 160px;
    row-gap: 90px;
  }
  .hero-title {
    font-size: 3.8rem;
  }
}

/* ---------- サービス紹介ページ ---------- */

.services {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 6%;
}

/* サービス一覧 */
.services-list {
  background: rgba(0, 0, 0, 0.6);
  padding: 80px 6%;
}

.services-list .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列配置 */
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto; /* 中央寄せ */
}

.services-list .card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 550px;
}

.services-list .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.services-list .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.services-list .card h3 {
  font-size: 1.4rem;
  margin: 16px;
  font-weight: 600;
}

.services-list .card p {
  font-size: 0.95rem;
  padding: 0 16px 20px;
  color: #ddd;
  flex-grow: 1;
}
/* モバイル対応（カードを1列表示に切り替え） */
@media (max-width: 768px) {
  .services-list .card-grid {
    grid-template-columns: 1fr; /* スマホでは1列 */
  }
  .services-list .card {
    height: 650px;
  }
}

/* 特徴セクション */
.features {
  background: rgba(0, 0, 0, 0.7);
  padding: 70px 6%;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}
.feature-item h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #0af;
}
.feature-item p {
  color: #ccc;
  font-size: 0.95rem;
}

/* ---------- 導入実績ページ ---------- */
.works-page {
  background: rgba(0, 0, 0, 0.6);
  padding: 80px 6%;
  color: #fff;
}

.works-lead {
  text-align: center;
  margin: 20px auto 50px;
  max-width: 800px;
  color: #ccc;
  line-height: 1.8;
}

.works-category {
  margin-bottom: 50px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.8);
  border-left: 4px solid #0af;
  border-radius: 6px;
}

.works-category h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #0af;
  letter-spacing: 1px;
}

.works-category ul {
  list-style: none;
  padding-left: 0;
}

.works-category li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #eee;
  padding-left: 12px;
  position: relative;
}

.works-category li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #0af;
}

/* ---------- お問い合わせページ ---------- */
.contact {
  background: rgba(0, 0, 0, 0.85);
  padding: 80px 6%;
  color: #fff;
}

.contact-lead {
  text-align: center;
  margin: 20px auto 50px;
  max-width: 800px;
  color: #ccc;
  line-height: 1.8;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #0af;
}

.required {
  color: #f33;
  font-size: 0.9rem;
  margin-left: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  background: #111;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #0af;
}

.contact-form button {
  display: inline-block;
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- 確認画面 ---------- */
#confirm-screen h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #0af;
}

.confirm-item {
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.6;
}

.confirm-item strong {
  display: inline-block;
  min-width: 140px;
  color: #0af;
}

.confirm-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
