@charset "utf-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
ul, li {
  list-style: none;
  text-decoration: none;
}
a {
  color: inherit;
  text-decoration: none;
}
/* フッターが浮いてしまうため設定 */
html, body {
  height: 100%;  
  margin: 0;     
  display: flex; 
  flex-direction: column; 
}
/* 全体のスタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1;
  background-color: #ffffff;
  height: 100%;
}
main{
  margin: 100px 0;
  /* height: min(100dvh - 70px); */
}
img {
  max-width: 100%;
} 
.toggle-menu-button {
  display: none; /* 初期状態では非表示 */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.toggle-menu-button .bar {
  width: 30px;
  height: 4px;
  background-color: #000;
  border-radius: 2px;
}
/* 横幅と左右の余白 */
.w-container {
  width: min(92%, 1166px);
  margin: auto;
  position: relative;
}
.titles{
  padding: 80px 0;
  font-size: 30px;

}
/* ヘッダー */
header{
  background-color: #ffffff;
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  z-index: 9999;
}
.header-container{
  width: min(92%, 1166px);  
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-container img {
  max-height: 60px;  
  width: auto; 
  object-fit: contain; 
}
.header-container ul {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.header-contact-btn {
  background-color: black;
  color: #fff;
  min-width: 100px;
  width: 50%;  /* 必要に応じて調整 */
  height: 30px;  /* ボタンの高さを指定 */
  border-radius: 24px;  /* 丸みをつける */
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;  /* 文字サイズ調整 */
  display: block;  /* aタグ全体をブロック要素にする */
  text-align: center;  /* 文字を中央揃え */
  margin: 0 auto;  /* 上下中央揃え */
  line-height: 30px;  /* 縦方向に中央揃え */
}

.header-contact-btn a {
  display: block;  /* aタグをブロック要素にする */
  text-decoration: none;  /* リンクの下線を消す */
  height: 100%;  /* 高さを親要素に合わせる */
  width: 100%;  /* 幅を親要素に合わせる */
  line-height: 30px;  /* 縦方向に中央揃え */
  color: white;  /* 文字色 */
  text-align: center;  /* 文字を中央揃え */
}

/* --------------------------------------------------------------- */

/* フォーム */
.box-container {
  width: min(92%, 1166px);
  margin: auto;
  position: relative; /* ボタン配置のために追加 */
}

.box-container form {
  width: 100%;
  padding-top: 80px;
}

.box-container form table {
  width: 100%;
}

.box-container form table tr {
  position: relative;
}

.box-container form table tr th {
  width: 30%;
  font-weight: normal;
  box-sizing: border-box;
  font-size: 16px;
  padding: 10px;
}
.box-container ul li:last-child {
  border-bottom: none;
}
.box-container form table tr th span {
  padding: 0 .3em;
  color: #ff0000;
  margin-left: .5em;
  box-sizing: border-box;
}

.box-container form table tr td {
  padding: 1em .5em;
  box-sizing: border-box;
}

.box-container form table tr td input,
.box-container form table tr td select {
  width: 100%;
  height: 3em;
  padding: .5em;
  box-sizing: border-box;
}

.box-container form table tr textarea {
  width: 100%;
  height: 10em;
  padding: .5em;
  box-sizing: border-box;
}
/* --------------------------------------------------------------- */
.box-container .titles .p {
  font-size: 24px;
}
.box-container ul {
  background-color: #eeeeee;
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  text-align: left;
  display: inline-block;
  width: 100%;
}
.box-container ul li{
  line-height: 24px;
}
/* --------------------------------------------------------------- */
.box-container .btn .form {
  width: auto;
}
.btn {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  position: absolute; /* 絶対位置指定 */
  left: 50%; /* 左端を50%に */
  transform: translateX(-50%); /* X軸方向に自身の50%分移動 */
}
.btn form {
  margin: 0;
  justify-content: center;
}



.btn input {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn input:hover {
  opacity: 0.7;
}
/* --------------------------------------------------------------- */
/* お問い合わせ完了画面（thankyou.php） */
.thank-you-container {
  min-height: 400px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
  background-color: #f1f1f1;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✔ チェックマークのデザイン */
.check-icon {
  width: 60px;
  height: 60px;
  background-color: #000000; /* 緑色のチェックマーク */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin: 0 auto 20px; /* 上下の中央＆下に余白 */
}

/* メッセージのスタイル */
.thank-you-message {
  font-size: 20px;
  color: #333;
  margin: 50px auto;
}

.thank-you-sub-message {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

/* ボタンのスタイル */
.thank-you-btn-container {
  margin-top: 30px;
}

.home-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000000; /* 緑色 */
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn input:hover {
  opacity: 0.7;
}
/* --------------------------------------------------------------- */

footer {
  width: 100%;
  height: 70px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
  margin-top: auto;
}

.footer-container{
  display: flex;
  justify-content: space-between;
  color: #000000;
}

.footer-container ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* モバイル（768px以下）の場合 */
@media screen and (max-width: 768px) {
  .header-container ul {
    display: none; /* 最初はメニューを非表示 */
    flex-direction: row;
    gap: 15px;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0; /* 初期状態で透明 */
    color: #000000; /* 文字色は白 */
    transition: opacity 1s ease; /* フェードイン・フェードアウトのアニメーション */
    font-size: 14px;
    font-family: 'Noto Sans JP';
  }

  .header-container.active ul {
    display: flex; /* activeクラスが追加された場合にメニューを表示 */
    opacity: 1; /* メニュー表示時に不透明 */


  }

  .toggle-menu-button {
    display: flex;
    flex-direction: column; /* バーを縦に並べる */
    justify-content: space-between; /* バーの間隔を均等に */
    width: 30px; /* ボタンの横幅を調整 */
    height: 22px; /* ボタンの高さを調整 */
  }

  .toggle-menu-button .bar {
    width: 30px; /* バーの横幅 */
    height: 4px; /* バーの高さ */
    background-color: #000; /* バーの色 */
    border-radius: 2px; /* バーの角を丸くする */
  }
  /* contact ボタンのスタイル */
  .header-contact-btn {
    display: flex;
    background-color: transparent;
    min-width: auto;
    text-align: center;  /* 文字を中央揃え */
    margin: 0 auto;  /* 上下中央揃え */
    line-height: 30px;  /* 縦方向に中央揃え */
    border-radius: none;
    border-color: transparent;
  }
  .header-contact-btn a {
    color: #000000; /* 文字色は白 */
    font-family: 'Noto Sans JP';
    padding: 0;
    margin: 0;
  }
 



  /* フッター */
  footer {
    flex-direction: column; /* フッターアイテムを縦並び */
    text-align: center;
    padding: 10px 0;
  }

  .footer-container {
    display: flex;
    flex-direction: column; /* アイテムを縦並びに */
    align-items: center;
    gap: 15px;
    font-size: 12px; /* メニューアイテムのフォントサイズ調整 */
    margin-top: auto;
  }

  .footer-container ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
}