/* === 基本リセット === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  color: #333;
  background: url("../img/backgroundimage-1.png") no-repeat center center / cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}

/* === ヘッダー === */
.site-header {
  background-color: rgba(120,120,120,0.5);
  padding: 10px 20px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 50px;
  height: auto;
}
.menubar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menubar .bar {
  width: 100%;
  height: 3px;
  background-color: #000;
}

/* === フォーム全体 === */
.form-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}
.form-container {
  width: 100%;
  max-width: 500px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.form-heading {
  font-size: 22px;
  text-align: center;
  margin-bottom: 10px;
  color: #605f5f;
}
.form-subtitle {
  font-size: 14px;
  margin-bottom: 20px;
  color: #605f5f;
}

/* === 入力欄 === */
.contact-form fieldset {
  border: none;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 14px;
  color: #444;
}
.contact-form input,
.contact-form select {
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
}
.contact-form input::placeholder,
.contact-form select option {
  color: #aaa;
}

/* === ボタン === */
.submit-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: none;
  background: #2dbbe6;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}
.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.submit-btn:active {
  transform: translateY(0);
}

/* === モーダル === */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.close-modal {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.close-modal:hover {
  opacity: 0.9;
}

/* === フッター === */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #000;
  padding: 15px 0;
  background-color: rgba(255,255,255,0.7);
}

/* === レスポンシブ対応 === */
@media (min-width: 768px) {
  .form-container {
    padding: 40px 50px;
  }
  .form-heading { font-size: 26px; }
  .form-subtitle { font-size: 16px; }
}
@media (min-width: 1200px) {
  .form-section {
    align-items: center;
  }
  .form-container {
    max-width: 600px;
  }
}


/* === ヘッダー === */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 60px;
  height: auto;
}

/* === ナビゲーション（PC用） === */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
.site-nav a:hover {
  background: rgba(0,0,0,0.05);
}
.site-nav a.active {
  background: #000;
  color: #fff;
}
.site-nav .btn-contact {
  background: #2dbbe6;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
}
.site-nav .btn-contact:hover {
  opacity: 0.9;
}

/* === ハンバーガーメニュー === */
.menubar {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menubar .bar {
  width: 100%;
  height: 3px;
  background-color: #000;
}

/* === スマホ表示 === */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid #ddd;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
  .menubar {
    display: flex;
  }
  .site-nav.open {
    display: block;
  }
}


/* ===== モーダル全体のスタイル ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* 半透明の背景 */
  display: none; /* 初期は非表示 */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* PHPから送信成功時に表示 */
.modal[aria-hidden="false"] {
  display: flex;
}

/* ===== モーダルの中身 ===== */
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;

  /* 中央配置のために追加 */
  margin: auto;
}

/* ===== モーダル内テキスト ===== */
.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
}

.modal-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* ===== 閉じるボタン ===== */
.close-modal {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover {
  background: #555;
}

/* ===== アニメーション ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== エラーメッセージ ===== */
.error-message {
  background: #ffe4e4;
  border: 1px solid #f5a5a5;
  padding: 10px 15px;
  margin-bottom: 1rem;
  border-radius: 6px;
  color: #c00;
  font-size: 0.9rem;
}


/* スマホ表示時に背景画像を contain に変更 */
@media (max-width: 768px) {
  body {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }
}