/* ==========================================================
   pages.css — サブページ共通スタイル
   ========================================================== */

/* ページヘッダー(各サブページの上部) */
.page-hero {
  background: linear-gradient(135deg, var(--color-skill) 0%, #4aa84a 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 14px;
  opacity: 0.95;
}

/* パンくずリスト */
.breadcrumb {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--text-mid);
  background: var(--bg-soft);
}
.breadcrumb a:hover { color: var(--color-skill); }

/* 汎用カード */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

/* CTAバナー */
.cta-banner {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner .btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-skill);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 12px;
  transition: transform .2s;
}
.cta-banner .btn:hover { transform: scale(1.05); }

/* 特徴リスト(round-lesson.html等で使用) */
.feature-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.7;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-skill);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

/* 注釈テキスト */
.note-text {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 210, 63, 0.15);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dark);
}
.note-text strong { color: var(--color-skill); }

/* カードの見出し */
.card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-skill);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}
.card p { line-height: 1.9; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }

/* ナビゲーション内のアクティブ状態 */
.global-nav a.active {
  color: var(--color-skill);
  font-weight: 700;
  position: relative;
}
.global-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-skill);
  border-radius: 1px;
}

/* ==========================================================
   申込フォーム(contact.html)
   ========================================================== */
.container-narrow {
  max-width: 760px;
}

.form-intro {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
}
.form-intro p { margin-bottom: 8px; }
.form-intro p:last-child { margin-bottom: 0; }

.form-note {
  font-size: 13px;
  color: var(--text-mid);
}

.required-mark {
  color: #e74c3c;
  font-weight: 700;
}

.application-form {
  display: grid;
  gap: 28px;
}

/* フィールドセット(セクション分け) */
.form-fieldset {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.form-fieldset legend {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-skill);
  padding: 4px 12px;
  background: rgba(91, 184, 91, 0.1);
  border-radius: var(--radius-sm);
}

/* フォーム行 */
.form-row {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}
.form-row:first-of-type { margin-top: 12px; }

.form-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-skill);
  box-shadow: 0 0 0 3px rgba(91, 184, 91, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ラジオボタン(カード型) */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card:hover {
  border-color: var(--color-skill);
  background: rgba(91, 184, 91, 0.05);
}

.radio-card:has(input:checked) {
  border-color: var(--color-skill);
  background: rgba(91, 184, 91, 0.1);
}

.radio-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.radio-label strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.radio-label small {
  font-size: 12px;
  color: var(--text-mid);
}

/* コンパクトな2択用ピル型ラジオボタン */
.radio-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.radio-pill {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:hover {
  border-color: var(--color-skill);
  color: var(--color-skill);
}

.radio-pill:has(input:checked) {
  border-color: var(--color-skill);
  background: var(--color-skill);
  color: #fff;
}

/* チェックボックス(同意) */
.form-agree {
  margin-top: 8px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-skill);
  cursor: pointer;
}

/* スパム対策フィールド(画面外に隠す) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信ボタン */
.form-submit {
  text-align: center;
  margin-top: 16px;
}

.btn-submit {
  display: inline-block;
  padding: 16px 56px;
  background: var(--color-skill);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 無効状態(必須項目未入力時) */
.btn-submit:disabled {
  background: #c8ced4;        /* グレー */
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}
.btn-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ヘルプ:ボタン下にメッセージ */
.submit-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-mid);
  min-height: 18px;
}
.submit-hint.show {
  color: #e74c3c;
}

/* ==========================================================
   送信完了ページ(thanks.html)
   ========================================================== */
.thanks-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  background: var(--color-skill);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(91, 184, 91, 0.3);
}

.thanks-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.thanks-lead {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
}

.thanks-info {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  text-align: left;
}
.thanks-info h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-skill);
  margin-bottom: 16px;
  text-align: center;
}

.thanks-steps {
  display: grid;
  gap: 16px;
}
.thanks-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-skill);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}
.thanks-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.thanks-steps p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.thanks-note {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 16px 20px;
  background: rgba(255, 210, 63, 0.15);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  text-align: left;
}

.thanks-actions {
  margin-top: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-skill);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* スマホ調整 */
@media (max-width: 600px) {
  .form-fieldset { padding: 18px 16px; }
  .radio-group { grid-template-columns: 1fr; }
  .thanks-card { padding: 32px 20px; }
  .thanks-icon { width: 64px; height: 64px; font-size: 36px; }
  .thanks-info { padding: 18px 16px; }
}
