/* ============================================
   AGNIYOGA School フォームページ 完全自立CSS
   既存CSS(common/schedule)を読み込まないため
   必要なスタイルをすべてここに定義
   2026-03-27 v3
   ============================================ */

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #333;
  line-height: 1.8;
  background: linear-gradient(180deg, #eef3f7 0%, #f8f9fb 100%);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
a { color: #2C5F7C; }
img { max-width: 100%; height: auto; }

/* --- ヘッダー --- */
.school-header {
  background: #fff;
  border-bottom: 3px solid #2C5F7C;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.school-header img { height: 32px; width: auto; }
.school-header .school-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #2C5F7C;
  letter-spacing: 0.5px;
}
.school-header .school-name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #999;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 2px;
}

/* --- コンテナ --- */
#wrapper, .reservation, .confirm {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
main, main_input, section {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
header { margin-bottom: 16px; }
.sp-nav-bg { display: none; }

/* --- 見出し --- */
h2.heading, .heading {
  font-family: 'Noto Serif JP', serif;
  color: #2C5F7C;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e8ed;
}
h3.heading {
  font-family: 'Noto Serif JP', serif !important;
  color: #2C5F7C !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 0 0 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #e0e8ed !important;
  text-align: center !important;
  position: relative !important;
}
.reservation .contents .heading,
.reservation section .heading,
.reservation section:not(.page_title):not(.page_title_input) .heading {
  font-size: 26px !important;
  line-height: 1.5 !important;
  margin: 0 0 20px !important;
}
/* 既存CSSの::before横線を完全に殺す */
h3.heading::before, .heading::before,
.reservation .contents .heading::before { display: none !important; content: none !important; }
h3.heading span,
.reservation .contents .heading span {
  position: relative !important;
  display: inline !important;
  padding: 0 !important;
  background: none !important;
  font-size: 26px !important;
}

/* --- USPバナー --- */
.school-usp {
  background: linear-gradient(135deg, #f4f8fb 0%, #e8f0f5 100%);
  border: 1px solid #d0dce5;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.school-usp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.school-usp-badge {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #E8734A;
  color: #E8734A;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.school-usp-micro {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}
.school-usp-benefit {
  font-size: 14px;
  color: #E8734A;
  font-weight: 700;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* --- ステップ表示 --- */
.school-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.school-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #bbb;
}
.school-step.active { color: #2C5F7C; font-weight: 700; }
.school-step.done { color: #27ae60; }
.school-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.school-step.active .school-step-num { background: #2C5F7C; }
.school-step.done .school-step-num { background: #27ae60; }
.school-step-arrow { color: #ccc; font-size: 16px; }

/* --- 予約内容カード --- */
.contents {
  background: linear-gradient(135deg, #f4f8fb 0%, #eef3f7 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #e0e8ed;
}
.contents dl {
  display: flex;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(44,95,124,0.1);
}
.contents dl:last-child { border-bottom: none; }
.contents dt {
  width: 110px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2C5F7C;
}
.contents dt::after { content: none; } /* 既存CSSの「:」を消す */
.contents dd {
  font-size: 14px;
  color: #333;
  word-break: break-all;
}

/* --- フォーム入力エリア --- */
form .inner {
  padding: 0;
}
form .inner dl, form dl {
  display: block;
  margin-bottom: 20px;
}
form .inner dt, form dl dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  width: auto;
  float: none;
}
form .inner dt span, form dl dt span {
  background: #E8734A;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
form .inner dd, form dl dd {
  margin: 0;
  padding: 0;
}

/* --- テキスト入力 --- */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d0d7de;
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fafbfc;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  line-height: 1.5;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: #2C5F7C;
  box-shadow: 0 0 0 3px rgba(44,95,124,0.1);
  background: #fff;
}
form input::placeholder { color: #bbb; }
form dd p { color: #e74c3c; font-size: 13px; margin-top: 6px; }

/* --- チェックボックス（カード型、完全自立） --- */
input[type="checkbox"] {
  /* 実際のチェックボックスを隠す（displayでなくclipで） */
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
}
label.checkbox01, .checkbox01 {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  margin: 4px 6px 4px 0;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  background: #fafbfc;
  color: #555;
  user-select: none;
  line-height: 1.4;
  position: relative;
  /* ::before / ::after を完全リセット */
}
label.checkbox01::before, .checkbox01::before {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid #c0c8d0;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.2s;
  position: static;
  top: auto; left: auto;
  opacity: 1;
}
label.checkbox01::after, .checkbox01::after {
  /* 既存CSSのチェックマークをリセット */
  content: none;
  display: none;
  border: none;
  position: static;
  opacity: 0;
}
input[type="checkbox"]:checked + label.checkbox01,
input[type="checkbox"]:checked + .checkbox01 {
  background: #eef5f9;
  border-color: #2C5F7C;
  color: #2C5F7C;
  font-weight: 600;
}
input[type="checkbox"]:checked + label.checkbox01::before,
input[type="checkbox"]:checked + .checkbox01::before {
  background: #2C5F7C;
  border-color: #2C5F7C;
  /* CSSチェックマーク */
  content: '\2713';
  color: #fff;
  font-size: 13px;
  text-align: center;
  line-height: 16px;
}
label.checkbox01:hover, .checkbox01:hover {
  border-color: #a0b0c0;
  background: #f0f3f6;
}
/* チェックボックス間のbrを消す */
form .inner dd br, form dd br { display: none; }

/* --- ボタンエリア --- */
.btns {
  list-style: none;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 28px 0 20px;
  padding: 0;
}
.btns li {
  flex: 1;
  max-width: 240px;
}
/* 送信ボタン */
.btns button[type="submit"],
.btns #submit-btn,
.btns li:nth-child(2) button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #E8734A 0%, #d4623d 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(232,115,74,0.3);
  white-space: normal;
  min-height: 56px;
  height: auto;
  -webkit-appearance: none;
  appearance: none;
}
.btns button[type="submit"]:hover,
.btns #submit-btn:hover,
.btns li:nth-child(2) button:hover {
  background: linear-gradient(135deg, #d4623d 0%, #c0522e 100%);
  box-shadow: 0 6px 16px rgba(232,115,74,0.4);
  transform: translateY(-1px);
}
/* 戻るボタン */
.btns button[type="button"],
.btns li:nth-child(1) button {
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: #888;
  border: 1.5px solid #d0d7de;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 56px;
  height: auto;
  -webkit-appearance: none;
  appearance: none;
}
.btns li:nth-child(1) button:hover {
  background: #f5f7f9;
  border-color: #b0bac4;
  opacity: 1;
}

/* --- 送信ボタン上マイクロコピー --- */
.school-submit-micro {
  text-align: center;
  font-size: 13px;
  color: #2C5F7C;
  font-weight: 600;
  margin: 0 0 10px;
}

/* --- テキスト --- */
.txt {
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.7;
}
.txt a { color: #2C5F7C; }
.for_sp { display: none; }

/* --- 確認ページ --- */
.confirm h2.heading, .confirm .heading {
  color: #27ae60;
  font-size: 22px;
}
.confirm .contents {
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
  border-color: #c8e6c9;
}
.confirm .contents dt { color: #2e7d32; }
.btn2 { text-align: center; margin-top: 24px; }
.btn2 a {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #2C5F7C 0%, #1a4a63 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(44,95,124,0.25);
  transition: all 0.2s;
  width: auto; height: auto; line-height: 1.5;
}
.btn2 a:hover {
  background: linear-gradient(135deg, #1a4a63 0%, #143a4f 100%);
  transform: translateY(-1px);
}

/* --- 個人情報モーダル --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.modal:target {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  margin-top: 40px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.modal-content h3 { color: #2C5F7C; font-size: 18px; margin-bottom: 16px; font-family: 'Noto Serif JP', serif; }
.modal-content h4 { color: #333; font-size: 14px; margin: 16px 0 8px; }
.modal-content p, .modal-content li { font-size: 13px; line-height: 1.7; }
.modal-content ul { padding-left: 20px; }
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 28px;
  color: #999;
  text-decoration: none;
  line-height: 1;
}

/* --- hidden要素 --- */
input[type="hidden"] { display: none; }

/* --- 戻るテキストリンク --- */
.school-back-link {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.school-back-link:hover {
  color: #666;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
  main, main_input, section {
    padding: 24px 18px;
    border-radius: 12px;
    margin-left: 8px;
    margin-right: 8px;
  }
  #wrapper, .reservation, .confirm { padding: 16px 0 30px; }
  .contents dl { flex-direction: column; }
  .contents dt { width: auto; margin-bottom: 2px; }
  .btns { flex-direction: column-reverse; align-items: center; }
  .btns li { max-width: 100%; width: 100%; }
  .school-header { padding: 12px 16px; }
  .school-header .school-name { font-size: 13px; }
  .school-header img { height: 28px; }
  h2.heading, .heading { font-size: 18px; }
  .for_sp { display: inline; }
}
