@charset "UTF-8";

:root {
  --primary-color: #4b0082;        /* メインテーマ色（濃い紫） */
  --primary-light: #f0ebf7;        /* ホバー時・アクセント背景色 */
  --bg-body: #f8f5fb;              /* ページ背景 */
  --bg-card: #ffffff;              /* カード背景 */
  --text-main: #222222;            /* 基本文字色 */
  --border-color: #e2e8f0;         /* 枠線色 */
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  font-family: var(--font-base);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  width: 100%;
}

/* ナビゲーション（ヘッダー） */
header {
  background-color: #4b0082;
  color: #fff;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo { font-weight: bold; font-size: 1.1rem; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu li a { color: #fff; text-decoration: none; padding: 10px 15px; font-size: 0.95rem; display: block; }
.menu-btn { display: none; }

@media (max-width: 850px) {
  .navbar { height: 65px; }
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: #3b0066;
    z-index: 100;
  }
  .menu li a { padding: 18px; text-align: center; }
  .menu-btn:checked ~ .menu { display: flex; }
  .menu-icon { display: block; padding: 20px 15px; cursor: pointer; }
  .navicon { background: #fff; height: 3px; width: 30px; position: relative; display: block; }
  .navicon:before, .navicon:after { background: #fff; content: ''; display: block; height: 100%; position: absolute; width: 100%; }
  .navicon:before { top: 10px; }
  .navicon:after { top: -10px; }
}

/* お問い合わせセクション */
.contact-section {
  width: 100%;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-section h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.contact-intro {
  text-align: center;
  background: var(--primary-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: #555;
  font-size: 0.95rem;
  border-left: 4px solid var(--primary-color);
}

.contact-intro p { margin: 0 0 8px 0; }
.contact-intro p:last-child { margin-bottom: 0; }

/* カードデザイン */
.contact-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label, .confirm-label {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.required-tag {
  background-color: #d63384;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: normal;
}

/* 入力フィールド */
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fcfcff;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(75, 0, 130, 0.05);
}

/* 確認画面用の表示ボックス */
.confirm-value {
  background-color: #f9f9fc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  font-size: 1rem;
  word-break: break-all;
}

/* ボタングループ */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.submit-btn, .back-btn {
  display: inline-block;
  width: 100%;
  max-width: 260px;
  text-align: center;
  text-decoration: none;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn {
  background: linear-gradient(135deg, #4b0082 0%, #6a11cb 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(75, 0, 130, 0.2);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(75, 0, 130, 0.3);
  opacity: 0.95;
}

.back-btn {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.back-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* エラー・完了メッセージ */
.message-box {
  text-align: center;
  padding: 20px 0;
}
.error-text {
  color: #d63384;
  font-weight: bold;
  margin-bottom: 20px;
}

/* フッター */
footer {
  background-color: #4b0082;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
  width: 100%;
}

.facebook-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 8px 20px;
  border-radius: 25px;
  margin-top: 15px;
  transition: 0.3s;
}
.facebook-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
