:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #b4bbef;
  color: #4a4a68; /* text color */
  text-align: center;
  margin: 0;
  padding: 0;
}

/* PC用に横幅の制限 */
@media (min-width: 640px) {
  body {
    max-width: 800px;
    margin: 0 auto;
  }
}

.fade-in {
  opacity: 0; /* 最初は透明 */
  transform: translateY(50px); /* 50px下にずらしておく */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* スクロールで表示されたらこのクラスが追加される */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.top-box {
  position: relative;
  padding: 20px;
  max-width: 600px;
  height: 100vh; /* 高さを設定 */
  background-image: url("w-ing/background.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.top-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: contain;
}

h1 {
  color: #dcdcdc; /* シルバー */
  font-size: 2em;
}

section {
  background-color: #fff;
  position: relative;
  margin: 20px auto;
  padding: 20px;
  width: 100%;
}

h2 {
  color: #dcdcdc; /* シルバー */
}

.title-img {
  display: block;
  width: 80%;
  object-fit: contain;
  margin: 0 auto;
}

.title-map-img {
  display: block;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.section-img {
  display: block;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.pro-foto{
  display: block;
  width: 80%;
  object-fit: contain;
  margin: 0 auto;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

p {
  font-size: 1em;
  line-height: 2; /* 読みやすくするための行間調整 */
}

.mess_left {
  text-align: left;
}

.mess_center {
  line-height: 2; /* 読みやすくするための行間調整 */
}

.mess_right {
  text-align: right;
}

.event-box {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin: 10px auto;
  width: 95%;
  max-width: 500px;
  border: 2px solid #878b99; /* ブルーグレー */
}

.event-box_date {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin: 10px auto;
  width: 95%;
  max-width: 500px;
}

/* 二重枠の追加 */
.event-box::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 2px solid #878b99; /* ブルーグレー */
}

/* 「挙式」のタイトル部分 */
.event-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #977d27; /* ゴールド */
  position: relative;
  margin-bottom: 20px;
  padding: 2px;
}

.event-title::before,
.event-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #977d27; /* ゴールド */
  margin: 0 10px;
}

/* 開始時刻の部分 */
.event-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 30px;
  margin-bottom: 10px;
}

.event-time span {
  font-size: 14px;
  font-weight: bold;
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 10px;
}

.event-date span {
  font-size: 12px;
  font-weight: bold;
}

/* 受付時間 */
.event-details {
  font-size: 14px;
  margin: 0 10px;
}

.map-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #ccc; /* マップの枠線 */
  margin-bottom: 10px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .map-container {
    border: 2px solid #555;
    /* ダークモード用の枠線 */
  }
}

.rsvp {
  background-color: #e4e4f5;
  position: relative;
  margin: 10px auto;
  padding: 20px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  width: 100%;
  max-width: 600px;
}

.rsvp-date {
  background: linear-gradient(transparent 60%, #d4af37);
  font-size: 20px;
}

.attention {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 10px auto;
  width: 90%;
  max-width: 500px;
  border: 2px solid #878b99; /* ブルーグレー */
}

/* form format */

.rsvp-question {
  background: #ffffff;
  color: #4a4a68;
  padding: 20px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.fieldset {
  border: 1px solid #fff;
  padding: 10px;
  margin-bottom: 15px;
  text-align: left;
}

.rsvp-title {
  font-weight: bold;
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* radio-btn guest&gender */
.radio-group_guegen {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.radio-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  color: #4a4a68;
}

.radio-box span {
  display: block;
  text-align: center;
}

.radio-box small {
  font-size: 0.8em;
  color: #666;
}

.radio-group input {
  display: none;
}

/* radio-btn guest&gender */
.radio-group_guegen input {
  display: none;
}

.radio-box {
  width: 80px;
  height: 70px;
  border: 2px solid #96bda8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

/* radio-btn guest&gender */
.radio-box_guegen {
  background-color: rgba(240, 240, 240, 0.8);
  width: 75px;
  height: 40px;
  border: 2px solid rgba(240, 240, 240, 0.8); /* ゴールド */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

/* radio-btn clicked */
.radio-group input:checked + .radio-box {
  background-color: rgba(150, 189, 168, 0.6);
  color: #1a2a41; /* ネイビー */
  font-weight: bold;
}

/* radio-btn(guest&gender) clicked */
.radio-group_guegen input:checked + .radio-box_guegen {
  background-color: rgba(150, 189, 168, 0.6);
  border: 2px solid #96bda8;
  color: #1a2a41; /* ネイビー */
  font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  background-color: #fff;
  color: #4a4a68;
}

button {
  background-color: #92a8d7;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #112233;
}

.all-hidden {
  display: none;
}

.required {
  color: red;
}

footer {
  background-color: rgba(44, 62, 80, 0.9);
  padding: 10px;
}

#message {
  margin-top: 10px;
  color: green;
  display: none; /* 初期状態では非表示 */
}
