/* styles.css */
/* 最小限のリセット */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family:"Noto Sans JP", sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  background-color: #121212;
}
h1, h2 {
  letter-spacing: 0.04em;
}
h3, p {
  letter-spacing: 0.1em;
}

.avenir{
  font-family: 'Avenir';
}
.pacifico{
  font-family: 'Pacifico';
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (max-width: 768px) {
  .header {
      padding: 10px 14px;
  }
}

.logo a {
  font-family: 'Pacifico', cursive, serif !important;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .logo a {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
  }
}

/* グローバルナビゲーションのスタイル */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav ul li {
  margin-left: 20px;
  position: relative;
  letter-spacing: 0.05em;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  display: inline-block;
  padding: 3px 0; /* 下線との距離を調整 */
}

.nav ul li a:hover {
  color: #fff; /* マウスオーバー時の文字色 */
}

/* 下線のマウスオーバーアニメーション */
.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; /* 下線をテキストの下に配置 */
  left: 50%; /* 初期位置を中央に設定 */
  width: 0; /* 初期状態で幅0 */
  height: 1px; /* 下線の太さ */
  background: #fff; /* 下線の色 */
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav ul li a:hover::after {
  width: 100%; /* 下線がテキスト幅いっぱいに広がる */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ローディング画面 */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* 背景は黒 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1; /* 初期状態は完全に表示 */
  transition: opacity 0.5s ease; /* フェードアウト用 */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2); /* 外側を薄い白に */
  border-top: 5px solid #fff; /* 上部を白にして色反転 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

/* 動画コンテナの高さ調整 */
.key-visual {
  position: relative;
  display: flex;
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  height: 100vh; /* 画面全体の高さを確保 */
}

@media (max-width: 768px) {
  .key-visual {
      height: 260px;
  }
}

/* 動画のスタイル */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: block; /* PCでは表示 */
}

/* 静止画のスタイル */
.background-image {
  display: none; /* PCでは非表示 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* スマホ用 (最大幅768px) */
@media (max-width: 768px) {
  .background-video {
      display: none; /* スマホでは非表示 */
  }

  .background-image {
      display: block; /* スマホでは表示 */
  }
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* background-image: 
      url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><line x1="0" y1="0" x2="12" y2="12" stroke="rgba(50,50,50,0.1)" stroke-width="1"/><line x1="12" y1="0" x2="0" y2="12" stroke="rgba(50,50,50,0.1)" stroke-width="1"/></svg>'); */
  /* background-size: 12px 12px; */
  pointer-events: none;
  z-index: 1;
}

.key-visual h1 {
  margin: 0;
  padding: 0;
  position: relative;
  font-size: 42px;
  font-weight: 400;
  color: #FFF;
  z-index: 2;
  opacity: 1; /* 初期状態で透明 */
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px); /* 下からスライドアップ */
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .key-visual h1 {
    font-size: 26px;
  }
}

/* コンテンツエリア */
.main-content {
  max-width: 1140px; /* 横幅を1140pxに制限 */
  margin: 0 auto 60px; /* 中央揃え */
  padding: 20px; /* 内側に余白を追加 */
  background-color: #121212; /* 黒っぽい背景色 */
  color: #ffffff; /* 白い文字色 */
  box-sizing: border-box; /* パディングを含めた幅調整 */
  border-radius: 8px; /* オプション: 角を丸くする */
}
@media (max-width: 768px) {
  .main-content {
    padding: 0;
  }
}

/* テキスト調整 */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content p {
  margin-bottom: 16px; /* 各要素の下部に余白を設定 */
  line-height: 1.8; /* 行間を広げて読みやすくする */
}

.main-content a {
  color: #1e90ff;
  text-decoration: underline; /* 下線を表示 */
}

.main-content a:hover {
  color: #ffffff; /* ホバー時に文字を白に変更 */
  text-decoration: none; /* 下線を削除 */
}

/* Serviceセクション全体のスタイル */
.services {
  padding: 40px 20px;
  background-color: #121212; /* 全体の背景色を踏襲 */
  color: #ffffff; /* 全体のテキスト色を踏襲 */
}

*:target {
  scroll-margin-top: 80px; /* 固定ヘッダーの高さ分のマージン */
}

.services h2 {
  font-size: 36px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0;
  text-align: left; /* 左寄せ */
}

@media (max-width: 768px) {
  .services h2 {
    font-size: 28px;
  }
}

.section-description {
  font-size: 18px;
  color: #dddddd;
  margin: 0 0 40px;
  text-align: left; /* 左寄せ */
}

/* サービス項目のスタイル */
.service-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 4px; /* 少し丸みをつける */
  margin-right: 20px;
}

.content h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
  text-indent: 20px; /* インデント */
}

.content p {
  font-size: 14px;
  color: #dddddd;
  line-height: 1.8;
  text-indent: 20px; /* インデント */
}

@media (max-width: 768px) {
  .content h3 {
    font-size: 16px;
    text-indent: 0;
  }
  .content p {
    font-size: 14px;
    text-indent: 0;
  }
}

/* 罫線のスタイル */
hr {
  border: none;
  border-top: 1px solid #333; /* 罫線の色 */
  margin: 30px 0;
}


/* Companyセクションのスタイル */
.company-overview {
  padding: 40px 20px;
  background-color: #121212; /* 背景色を踏襲 */
  color: #ffffff;
}

.company-overview h2 {
  font-size: 36px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0;
  text-align: left; /* 左寄せ */
}

@media (max-width: 768px) {
  .company-overview h2 {
    font-size: 28px;
  }
}

.section-description {
  font-size: 18px;
  color: #dddddd;
  margin-bottom: 40px;
  text-align: left; /* 左寄せ */
  letter-spacing: 1.5px;
}

/* 会社詳細リスト */
.company-details {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 30px; /* 各項目の間に余白 */
  max-width: 800px; /* 中央配置の幅を制限 */
  margin: 0 auto; /* コンテンツを中央揃え */
}

/* 各詳細項目 */
.detail-item {
  border-left: 4px solid #444; /* 左にラインを追加 */
  padding-left: 20px; /* テキストをラインから離す */
}

.detail-item h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.detail-item p {
  font-size: 16px;
  color: #dddddd;
  line-height: 1.8;
}


/* CONTACTエリア */
.contact-cta {
  padding: 40px 20px 60px;
  background-color: #121212; /* 背景色 */
  color: #ffffff; /* テキスト色 */
  text-align: center; /* 中央揃え */
  border-top: 2px solid #444; /* 上部の区切り線 */
}

.contact-cta h2 {
  font-size: 36px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-cta .section-description {
  font-size: 16px;
  color: #dddddd;
  margin-bottom: 40px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-cta .section-description {
    font-size: 14px;
  }
}

/* Contactエリアのボタン */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background-color: #ffffff; /* 白い背景色 */
  color: #000000; /* 黒い文字色 */
  font-size: 16px;
  font-weight: bold;
  text-decoration: none; /* 下線を削除 */
  border-radius: 9999px; /* 最大の角丸に設定 */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.8); /* ホバー時に透明感を追加 */
  color: #121212; /* ホバー時に少し濃い色に変更 */
}



/* フッター全体 */
.footer {
  position: relative;
  background: #000; /* フッター全体の黒背景 */
  color: #ffffff;
  padding: 70px 20px 20px;
  text-align: center;
  overflow: hidden; /* はみ出し部分の非表示 */
}

.footer::before {
  content: '';
  position: absolute;
  top: 110%; /* フッターの中央に配置 */
  left: 97%; /* フッターの中央に配置 */
  transform: translate(-50%, -50%); /* 完全に中央揃え */
  width: 1000px; /* グラデーションの横幅を広げる */
  height: 800px; /* 高さを維持 */
  background: radial-gradient(circle, rgba(84,224,255,0.22), transparent 50%);
  pointer-events: none; /* 操作を無効化 */
  z-index: 0; /* 背景として配置 */
}

/* フッターの内容全体 */
.footer-content {
  max-width: 1140px; /* フッターの幅を制限 */
  margin: 0 auto; /* 中央配置 */
}

/* キャッチコピー */
.footer h2 {
  font-size: 20px; /* 見出しのフォントサイズ */
  font-weight: 400;
  margin-bottom: 30px; /* 下部余白 */
  letter-spacing: 1.5px; /* 文字間隔 */
}

/* 説明文 */
.footer-description {
  font-size: 14px; /* 段落のフォントサイズ */
  color: #dddddd; /* 控えめな色 */
  margin-bottom: 30px; /* 下部余白 */
  line-height: 1.6; /* 行間 */
}

/* ロゴ */
.footer-logo a {
  font-family: 'Pacifico', cursive;
  font-size: 24px;
  color: #ffffff; /* ロゴの色 */
  text-decoration: none; /* 下線を削除 */
  margin-bottom: 50px;
  display: inline-block; /* 中央揃え用 */
}

/* 区切り線 */
.footer-divider {
  border: none;
  border-top: 1px solid #444; /* 線の色 */
  margin: 30px 0; /* 上下の余白 */
}

/* コピーライト */
.footer-copyright {
  font-size: 10px; /* 小さい文字サイズ */
  color: #888888; /* 控えめな色 */
}


/* 静止画エリア */
.key-visual-static {
  position: relative;
  height: 200px;
  background: url('media/img/static-image6.png') center/cover no-repeat; /* 適切な画像パスを指定 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.key-visual-static h1 {
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  z-index: 2;
}

/* フォームコンテンツエリア */
.contact-form {
  max-width: 800px; /* 最大幅を800pxに指定 */
  margin: 0 auto; /* 中央揃え */
  padding: 40px 20px; /* 内側の余白 */
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.contact-form a {
  color: #000;
  text-decoration: none;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #232323;
  color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1e90ff;
  outline: none;
}

.form-group button {
  display: inline-block;
  padding: 10px 32px;
  background-color: #ffffff;
  border: none;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.form-group button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #121212;
  cursor: pointer;
}

/* プライバシーポリシーの横並び調整 */
.form-agree {
  display: flex;
  align-items: center;
  gap: 8px; /* チェックボックスとテキストの間隔を調整 */
  font-size: 14px;
}

.form-agree input[type="checkbox"] {
  margin: 0 12px 0 0; /* 不要なマージンを削除 */
  width: 16px; /* チェックボックスのサイズ調整 */
  height: 16px;
  vertical-align: sub;
  accent-color: #7fd7ff;
}

.form-agree a {
  color: #fff; /* リンクの色 */
  text-decoration: underline;
}

.form-agree a:hover {
  color: #fff; /* ホバー時のリンク色 */
  text-decoration: underline;
  opacity: 0.8;
}

.back-to-top {
  text-align: center;
  margin: 60px auto 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #121212;
    color: #ffffff;
    border-radius: 8px;
}

.policy-content h1, .policy-content h2 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
}

.policy-content h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.policy-content section {
  margin-bottom: 50px;
}

.policy-content ul {
    list-style: disc inside;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content p {
    margin-bottom: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
  .policy-content p {
    font-size: 14px;
  }
}

.policy-content a {
  color: #fff;
}
.policy-content a:hover {
  opacity: 0.8;
}