/* ==============================
   FAQ・Contact 共通スタイル
   ============================== */

main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(80, 50, 50, 0.2);
  font-family: "Yusei Magic", sans-serif;
  color: #333;
  line-height: 1.8;
}

/* セクション見出し */
h1 {
  font-size: 2.2em;
  text-align: center;
  color: #800020;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

/* 小見出し */
h2 {
  font-size: 1.4em;
  margin-top: 40px;
  color: #502020;
  border-left: 6px solid #800020;
  padding-left: 12px;
}

/* ==============================
   FAQ ページ用
   ============================== */

.faq-item {
  margin: 25px 0;
  padding: 18px 24px;
  background: rgba(255, 248, 245, 0.95);
  border: 1px solid rgba(200, 150, 150, 0.3);
  border-radius: 10px;
  transition: 0.3s;
}

.faq-item:hover {
  background: rgba(255, 240, 235, 1);
  box-shadow: 0 0 6px rgba(128, 0, 32, 0.1);
}

.faq-item h3 {
  font-size: 1.2em;
  color: #800020;
  margin-bottom: 8px;
}

.faq-item p {
  margin-left: 10px;
  color: #444;
}

/* ==============================
   FAQページ 背景設定
============================== */
/* FAQページ 背景設定（bodyに付くスラッグで確実に）*/
body.page-slug-faq {
  background-image: var(--bg-faq);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 文字だけのページを白パネル化しつつ、他ページへの影響を抑える */
body.page-slug-faq main,
body.page-slug-contact main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(80, 50, 50, 0.2);
  font-family: "Yusei Magic", sans-serif;
  color: #333;
  line-height: 1.8;
}


/* ==============================
   Contact ページ用
   ============================== */

.contact-page {
  text-align: center;
}

.contact-header {
  margin-bottom: 30px;
}

.contact-header p {
  font-size: 1.05em;
  color: #555;
}

.contact-form {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 250, 250, 0.9);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(200, 150, 150, 0.3);
  box-shadow: 0 0 6px rgba(128, 0, 32, 0.08);
}

.contact-form label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #5a1a1a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid rgba(180, 120, 120, 0.4);
  background: #fff;
  font-size: 1em;
  font-family: inherit;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #800020;
  outline: none;
  background: #fff9f9;
}

.contact-form button {
  display: block;
  margin: 25px auto 0;
  padding: 10px 30px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #800020, #a03030);
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
}

.contact-note {
  margin-top: 40px;
  font-size: 1em;
  color: #333;
  text-align: center;
}

.contact-note a {
  color: #800020;
  font-weight: bold;
  text-decoration: underline;
  transition: 0.3s;
}

.contact-note a:hover {
  color: #a03030;
}

/* ==============================
   フェードイン効果
   ============================== */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}
