/* グローバルリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.particle-network-animation {
  position: fixed; /* スクロール位置に影響されない */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none; /* クリックを無効化して背後の要素をクリック可能にする */
}

/* オーバーレイ効果 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* スモーク効果 */
  z-index: 1;
}

.image-section {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面の高さいっぱいに表示 */
  overflow: hidden;
}

.image-section .background-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面いっぱいにフィット */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.6;
}

.text-box {
  position: absolute; /* 画面中央に配置 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  text-align: center;
  z-index: 2;
}

.text-box .english-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 80px;
  font-weight: normal;
  white-space: nowrap; /* 強制的に改行しない */
  letter-spacing: 0.05em; /* 文字間隔を少し広げる */
  color: whitesmoke;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-box .japanese-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 32px;
  color: whitesmoke;
  letter-spacing: 0.1em; /* 文字間隔を少し広げる */
  margin-top: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.english-text-highlight {
  color: #ff0059;
}

/* ニュースセクションのスタイル */
.news-section {
  background-color: #fcfcfc; /* 薄いグレー背景 */
  padding: 60px 0;
  text-align: center;
}

/* ニュースコンテナ */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* タイトルスタイル */
.news-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #333;
  text-align: left;
  font-weight: normal;
  color: #404040; /* 全体のデフォルトの色（グレー） */
  margin-bottom: 10px;
}

.news-title-highlight {
  color: #ff0059; /* "N" の色 */
}

.news-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: bold;
  display: flex;
  align-items: center;
  text-align: left;
  color: #000;
}

/* ニュースリスト */
.news-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.news-item:last-child {
  border-bottom: none;
}

/* ラベル */
.news-label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 12px;
  color: white;
  text-transform: uppercase;
  margin-right: 16px;
}

.news-label.news {
  background: linear-gradient(90deg, #ff0059, #ffc0cb);
}

.news-label.event {
  background: linear-gradient(90deg, #ff0059, #ffc0cb);
}

.news-date {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.news-date i {
  margin-right: 5px;
  font-size: 16px;
  color: #b6b6b6; /* アイコンの色をテキストに合わせる */
}

/* 内容 */
.news-content {
  font-size: 16px;
  color: #000;
  margin-left: 20px;
  text-align: left;
  flex: 1;
  z-index: 5;
}

.concept-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  position: relative;
  margin-top: 120px;
  margin-bottom: 60px;
}

.concept-content {
  max-width: 50%;
  position: relative;
  z-index: 2;
}

.concept-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #333;
  text-align: left;
  font-weight: normal;
  color: #404040; /* 全体のデフォルトの色（グレー） */
  margin-bottom: 10px;
}

.concept-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #404040;
  margin-bottom: 20px;
}

.concept-title-highlight {
  color: #ff0059; /* Cだけ色を変える */
}

.concept-description {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.concept-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.concept-image {
  position: absolute;
  right: 0; /* 画面の右端に配置 */
  top: 0;
  width: 50%; /* 画面の半分を占める（調整可能） */
  height: 100%; /* 親要素の高さにフィット */
  overflow: hidden;
}

.concept-image img {
  width: 100%; /* 親要素いっぱいに拡大 */
  height: 100%;
  object-fit: cover; /* 画像の比率を維持しながら拡大 */
}

.concept-background {
  position: absolute;
  top: 20%;
  left: 5%;
  transform: translateY(-50%);
  font-size: 160px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05); /* 極薄のグレー */
  z-index: 1;
  font-family: "Montserrat", sans-serif;
}

.company-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  position: relative;
  z-index: 5;
}

.company-content {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 40px; /* 余白を確保 */
  padding-top: 60px;
}

.company-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #333;
  text-align: left;
  font-weight: normal;
  color: #404040; /* 全体のデフォルトの色（グレー） */
  margin-bottom: 10px;
}

.company-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #404040;
  margin-bottom: 20px;
}

.company-title-highlight {
  color: #ff0059; /* Cだけ色を変える */
}

.company-background {
  position: absolute;
  top: 13%;
  left: 10%;
  transform: translateY(-50%);
  font-size: 160px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05); /* 極薄のグレー */
  z-index: 1;
  font-family: "Montserrat", sans-serif;
}

/* プロフィールリストのスタイル */
.profile-list {
  width: 100%; /* 幅を最大にする */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #ddd;
}

.profile-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.profile-list li:last-child {
  border-bottom: none;
}

.tit {
  flex: 0 0 30%;
  font-weight: bold;
  color: #555;
  white-space: nowrap;
}

.tit h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: bold;
  color: #333;
}

.txt {
  flex: 1; /* 余ったスペースを全部使う */
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px; /* ヘッダーの高さを90pxに設定 */
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* ロゴとナビを左右に配置 */
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(
    var(--g-angle),
    var(--g-color-0) var(--g-position-0),
    var(--g-color-1) var(--g-position-1)
  );
}

/* ヘッダーにMontserratフォントを適用 */
header {
  font-family: "Montserrat", sans-serif;
}

.header-container {
  display: flex;
  justify-content: space-between; /* ロゴを左寄せ、ナビを右寄せ */
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  width: 240px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.logo img:hover {
  filter: brightness(0.5) invert(1);
}

.nav-links {
  display: flex;
  gap: 40px;
  margin-left: auto;
  justify-content: flex-end;
}

.nav-links .link {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}

.nav-links .link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: rgba(255, 0, 89, 0.4);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links .link:hover::before {
  width: 100%;
  left: 0;
}

.nav-links .link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* フッター全体のスタイル */
.footer {
  background: linear-gradient(
    var(--footer-angle),
    rgba(50, 50, 50, 0.9) 0%,
    /* 上側: 透明感を抑えて濃く */ rgba(40, 40, 40, 0.85) 35%,
    rgba(30, 30, 30, 0.8) 70%,
    rgba(0, 0, 0, 0.75) 100% /* 下側: より黒に近づける */
  );
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ヘッダーとフッターのグラデーション */
:root {
  /* ヘッダー */
  --g-angle: 180deg;
  --g-color-0: rgba(0, 0, 0, 0.5);
  --g-position-0: 0%;
  --g-color-1: rgba(102, 102, 102, 0);
  --g-position-1: 100%;

  /* フッター（ヘッダーの逆） */
  --footer-angle: 0deg; /* 上から下に向ける */
  --footer-color-0: var(--g-color-1); /* ヘッダーの終点色 */
  --footer-position-0: var(--g-position-1);
  --footer-color-1: var(--g-color-0); /* ヘッダーの開始色 */
  --footer-position-1: var(--g-position-0);
}

/* SNSアイコンリスト */
.footer__sns .snsList {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
  gap: 15px; /* アイコンの間隔 */
}

.footer__sns .snsList__item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.footer__sns .snsList__item img:hover {
  filter: brightness(0.5); /* 濃いグレーになる */
}

.footer__menu {
  position: relative;
}

/* メニューリスト */
.footer__menu .menuList {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.footer__menu .menuList li {
  display: inline;
  margin: 0 10px;
}

.footer__menu .menuList li a {
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.footer__menu .menuList li a:hover {
  text-decoration: underline;
}

.footer__menu,
.footer__sns {
  position: relative;
  z-index: 9999; /* 最前面に持ってくる */
}

/* コピーライト */
.footer__copyright {
  margin-top: 10px;
  font-size: 12px;
  color: #fff;
}

.copyright-symbol {
  font-size: 1.3em;
  font-weight: normal; /* 太字 */
  vertical-align: middle; /* 上下中央揃え */
}

.profile-list li {
  margin-bottom: 4px;
  line-height: 1.6;
}

.profile-list li strong {
  font-weight: bold;
}

/* ネストされたリストのスタイル */
.nested-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 10px 0 0;
}

.nested-list li {
  margin-bottom: 5px;
}

/* テキスト中央寄せ */
.text-center {
  text-align: center;
}

/* 画像のスタイル */
.award-img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.flow-container {
  text-align: center;
  padding: 20px;
}

.title {
  font-size: 24px;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.step {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 400px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
  font-size: 24px;
  color: #c44;
  margin-bottom: 10px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-description {
  font-size: 14px;
  line-height: 1.5;
}

.step-buttons {
  display: flex;
  justify-content: center; /* ボタンを中央寄せ */
  gap: 20px; /* ボタン同士の間隔を広げる */
  margin-top: 30px;
  width: 100%;
  max-width: 500px; /* 必要に応じて調整 */
  margin-left: auto;
  margin-right: auto;
}

.prev-step,
.submit-form {
  flex: 1; /* ボタンのサイズを均等にする */
  max-width: 250px; /* ボタンの最大幅 */
  padding: 15px 30px; /* 余白を増やす */
  font-size: 18px; /* フォントサイズを大きく */
  border-radius: 8px; /* 角丸 */
  text-align: center;
}

.prev-step {
  background-color: #888; /* グレー */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.prev-step:hover {
  background-color: #777;
}

.arrow {
  font-size: 24px;
  color: #666;
}

h2 {
  scroll-margin-top: 100px; /* ヘッダーの高さに合わせて調整 */
}

/* リスト全体の一番上に罫線を追加 */
.profile-list {
  max-width: 1000px; /* 最大幅を広げる */
  border-top: 1px solid #ddd; /* 一番上に罫線を追加 */
  margin: 0 auto; /* 余白をリセット */
  padding: 0; /* 内側の余白をリセット */
}

.profile-list li {
  border-bottom: 1px solid #ddd; /* 薄い罫線を追加 */
  padding: 10px 0; /* 上下に余白を追加 */
  list-style: none; /* リストマーカーを削除（必要に応じて） */
}

.profile-list li:last-child {
  border-bottom: none; /* 最後の項目には罫線を追加しない */
}

.privacy-policy {
  padding-top: 1000px; /* ヘッダーの高さと同じ値を設定 */
  max-width: 800px;
  margin: 50px auto; /* 中央に配置 */
  background-color: #ffffff; /* 白い背景 */
  padding: 40px;
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
}

.left-border {
  position: fixed;
  top: 22%;
  left: -2%;
  z-index: 1;

  @media (max-width: 768px) {
    .left-border {
      display: none;
    }
  }
  .left-text {
    position: relative;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 0.75rem;

    &:before {
      content: "";
      position: absolute;
      top: 150%;
      left: 50%;
      transform: translateX(-50%);
      width: 0.25px;
      height: 100vh;
      background-color: whitesmoke;
    }
  }
}

.about-block {
  flex: 1;
  padding: 5% 10%;
  background: #ffffff;
}

.common-title-above {
  font-size: 0.9rem;
  color: #666;
}

.common-title {
  font-size: 2.5rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-vision {
  font-size: 1.5rem;
  color: #222;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.common-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.common-title .highlight {
  color: #ff0059; /* 一文字目の色を指定 */
}

/* コンテナ */
.company-profile {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* タイトル */
.profile-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
  font-weight: bold;
}

.profile-list li {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.profile-list li:last-child {
  border-bottom: none;
}

/* タイトル部分 */
.tit {
  flex: 0 0 25%; /* タイトルの幅を調整 */
  font-weight: bold;
  color: #555;
  white-space: nowrap; /* テキスト折り返しを無効化 */
}

.tit h3 {
  font-size: 1rem;
  margin: 0;
}

/* テキスト部分 */
.txt {
  flex: 1; /* テキスト部分の幅を自動調整 */
  color: #333;
  line-height: 1.8;
}

/* SERVICES セクション */
.services-section {
  padding: 60px 10%;
  background-color: #fafafa;
  text-align: center;
  position: relative;
}

/* タイトル部分 */
.services-content {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  padding-top: 72px;
}

.services-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #333;
  font-weight: normal;
  margin-bottom: 10px;
}

.services-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #404040;
  margin-bottom: 20px;
}

.services-title-highlight {
  color: #ff0059;
}

/* 背景テキスト */
.services-background {
  position: absolute;
  top: 7%;
  left: 40%;
  transform: translateY(-50%);
  font-size: 160px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05);
  font-family: "Montserrat", sans-serif;
  z-index: 1;
  white-space: nowrap;
}

/* 2カラムのグリッドレイアウト */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  grid-column-gap: 60px; /* 横の間隔 */
  justify-content: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* 各SERVICEのスタイル */
.service-item {
  text-align: left;
  max-width: 480px; /* 各サービスの最大幅を縮小 */
  width: 100%; /* レスポンシブ対応 */
  margin: 0 auto;
  z-index: 5;
}

/* 1,2と3,4の下に間隔を追加 */
.services-grid .service-item:nth-child(1),
.services-grid .service-item:nth-child(2),
.services-grid .service-item:nth-child(3),
.services-grid .service-item:nth-child(4) {
  margin-bottom: 60px; /* 下に80pxの余白 */
}

/* SERVICE番号のデザイン */
.service-number {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}

/* サービスタイトル */
.service-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* 画像コンテナ */
.service-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 240px;
  margin: 0 auto 20px;
  padding-top: 20px;
  z-index: 1;
  overflow: visible;
}

/* 画像 */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 背景オブジェ（楕円） */
.service-image-container::before {
  content: "";
  position: absolute;
  display: block;
  width: 120%; /* 画像より少し大きめ */
  height: 100%;
  background: #e9dfce99;
  border-radius: 38% 46% 36% 49% / 32% 76% 40% 67%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: -1;
  opacity: 0.4;
}

/* 説明文 */
.service-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* サービスセクションここまで */

.heading-1 {
  font-size: 26px;
}

.heading-1 span {
  display: flex;
  align-items: center;
  color: #404040;
  font-size: 18px;
  text-transform: uppercase;
}

.heading-1 span::before {
  content: "";
  display: inline-block;
  margin-right: 20px;
  width: 40px;
  height: 1px;
  background-color: #404040;
}

.heading-2 {
  position: relative;
  font-size: 26px;
}

.heading-2::before {
  content: attr(data-number);
  display: inline-block;
  margin-right: 20px;
  color: #498ee0;
  font-size: 30px;
  border-bottom: 1px solid #498ee0;
}

.wrapper {
  width: 100%;
  max-width: 1200px; /* 最大幅 */
  margin: 0 auto; /* 中央寄せ */
  display: flex;
  justify-content: center; /* 水平方向の中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
  padding: 40px; /* コンテンツの余白を調整 */
  box-sizing: border-box; /* パディングを幅に含める */
}

/* お問い合わせセクション */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  position: relative;
  background-color: #fafafa;
}

/* 🔹 お問い合わせタイトル部分 */
.contact-content {
  text-align: left;
  margin-bottom: 40px;
}

/* 🔹 メインタイトル（日本語） */
.contact-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: #333;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-align: left;
}

/* 🔹 メインサブタイトル（英語） */
.contact-subtitle {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: bold;
  color: #404040;
}

/* 🔹 先頭の "C" の強調 */
.contact-title-highlight {
  color: #ff0059;
}

/* 🔹 お問い合わせ背景テキスト */
.contact-background {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 160px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05); /* 薄いグレー */
  font-family: "Montserrat", sans-serif;
  z-index: 1;
  white-space: nowrap;
}

/* 🔹 ステップバー */
.stepBar {
  display: flex;
  max-width: 400px;
  position: relative;
  margin: 20px auto;
  text-align: center;
}
.stepBar li {
  font-size: 12px;
  list-style: none;
  position: relative;
  width: 33.333%;
}
.stepBar li:after {
  background: #d0e1f9;
  content: "";
  width: calc(100% - 24px);
  height: 4px;
  position: absolute;
  left: calc(-50% + 12px);
  top: 10px;
}
.stepBar li:first-child:after {
  display: none;
}
.stepBar li span {
  background: #d0e1f9;
  color: #ffffff;
  display: inline-block;
  height: 24px;
  margin-bottom: 5px;
  line-height: 24px;
  width: 24px;
  border-radius: 50%;
}
.stepBar .visited:after {
  background: #4d648d;
}
.stepBar .visited span {
  background: #4d648d;
}

.contact-content {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.contact-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

/* フォーム */
.contact-form-container {
  max-width: 700px; /* 以前の400px → 700px に拡大 */
  width: 90%; /* 小さい画面でも適応できるように */
  margin: 0 auto;
  padding: 30px;
  text-align: left;
  z-index: 3;
}

/* 確認画面のコンテンツを中央寄せ */
.confirmation-box {
  max-width: 600px; /* 確認画面の最大幅 */
  width: 100%;
  margin: 0 auto; /* 中央寄せ */
  padding: 20px;
}

/* reCAPTCHA の中央寄せ */
.confirmation-box .g-recaptcha {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* タブレット（横幅768px以下）の場合 */
@media screen and (max-width: 768px) {
  .contact-form-container {
    max-width: 90%;
    padding: 20px;
  }
}

/* スマホ（横幅480px以下）の場合 */
@media screen and (max-width: 480px) {
  .contact-form-container {
    max-width: 95%;
    padding: 15px;
  }
}

/* 🔹 各入力欄のスタイル */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  text-align: left; /* 項目名を左寄せ */
}

.contact-description {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* 🔹 入力欄 */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background: transparent;
}

/* 🔹 プレースホルダーを薄い色に */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  text-align: left;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* 🔹 電話番号の入力欄 */
.phone-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap; /* これでエラーメッセージが下に回り込む */
}

.phone-group input {
  width: 30%;
  text-align: center;
}

/* 🔹 エラーメッセージ */
.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/* 電話番号のエラーメッセージを1つだけ表示する */
.phone-group + .error-message {
  width: 100%;
  text-align: left;
  margin-top: 5px;
}

/* 🔹 reCAPTCHA の配置 */
.g-recaptcha {
  margin-top: 20px;
}

/* 🔹 チェックボックス */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center; /* 水平方向の中央寄せ */
  gap: 10px; /* アイコンとテキストの間隔 */
  width: 100%; /* 幅を100%に */
  margin-top: 20px; /* 上の余白を調整 */
}

.checkbox-group input {
  width: auto;
  transform: scale(1.2);
}

.submit-form {
  background-color: #ff0059;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-form:hover {
  background-color: #b21850;
}

/* 🔹 送信ボタン */
.contact-submit {
  background: #ff0059;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.contact-submit:hover {
  background: #cc0047;
}

.next-step {
  background: #ff0059;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.next-step:hover {
  background: #3a4b70;
}

/* 🔹 ステップの非表示制御 */
.hidden {
  display: none;
}

/* 🔹 ステップの間隔 */
.form-step {
  margin-top: 30px;
}

.access {
  position: relative; /* 親要素を基準にする */
  z-index: 10; /* 必要に応じて数値を変更 */
}

.access iframe {
  position: relative; /* これを設定しないと `z-index` が適用されない */
  z-index: 20; /* 他の要素よりも前面に出るように調整 */
  pointer-events: none; /* iframeを無効化 */
}

.access:hover iframe {
  pointer-events: auto; /* マウスホバー時のみ iframe を有効化 */
}
