/* ONE SONG workshop apply page */
/* ================================================
   APPLY PAGE STYLES
   ================================================ */
.wa-page {
  font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
  background: #fef9f7;
  color: #4a3535;
  min-height: 80vh;
}

.ws-apply-back {
  text-align: center;
  margin-top: 24px;
}
.ws-apply-back__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #b09090;
  text-decoration: none;
  letter-spacing: .1em;
}

/* パンくず */
.wa-breadcrumb {
  padding: 16px 24px;
  font-size: 12px;
  color: #b09090;
  max-width: 720px;
  margin: 0 auto;
}
.wa-breadcrumb a { color: #b09090; text-decoration: none; }
.wa-breadcrumb a:hover { color: #d4907a; }
.wa-breadcrumb span { margin: 0 6px; }

/* ヘッダー */
.wa-header {
  background: linear-gradient(135deg, #fdeee9, #eef4f3);
  padding: 60px 24px 48px;
  text-align: center;
}
.wa-header__type {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.wa-header__type--trial { background: #fdeee9; color: #d4907a; border: 1px solid #e8bdb3; }
.wa-header__type--main  { background: #d4907a; color: #fff; }
.wa-header__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  color: #4a3535;
  line-height: 1.5;
  margin: 0 0 10px;
}
.wa-header__sub {
  font-size: 14px;
  color: #7a5f5a;
  line-height: 1.8;
  margin: 0;
}

/* タブ切り替え */
.wa-tab-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.wa-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid #f0ddd8;
  border-radius: 12px;
  overflow: hidden;
}
.wa-tab {
  padding: 14px 16px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #b09090;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.wa-tab:hover { background: #fdeee9; color: #d4907a; }
.wa-tab.is-active { background: #d4907a; color: #fff; }
.wa-tab__sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.8;
}

/* サマリーボックス */
.wa-summary {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.wa-summary-box {
  background: #fff;
  border: 1px solid #f0ddd8;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.wa-summary-item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #7a5f5a;
}
.wa-summary-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #4a3535;
  margin-top: 2px;
}
.wa-summary-divider { width: 1px; height: 36px; background: #f0ddd8; flex-shrink: 0; }

/* フォームエリア */
.wa-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* フォームカード */
.wa-form-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f0ddd8;
  padding: 40px 36px;
}
@media (max-width: 480px) { .wa-form-card { padding: 28px 20px; } }

.wa-alert {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
}
.wa-alert--success { background: #eefaf2; color: #216d3b; }
.wa-alert--error { background: #fff0f0; color: #9f3131; }

/* フォームグループ */
.wa-form-group {
  margin-bottom: 28px;
}
.wa-form-label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4a3535;
  margin-bottom: 8px;
}
.wa-form-required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: #d4907a;
  color: #fff;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.08em;
}
.wa-form-optional {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: #eef4f3;
  color: #8fada4;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.08em;
}
.wa-form-note {
  display: block;
  font-size: 12px;
  color: #b09090;
  margin-top: 6px;
  line-height: 1.7;
}

/* 入力フィールド */
.wa-form-input,
.wa-form-select,
.wa-form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #f0ddd8;
  border-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #4a3535;
  background: #fef9f7;
  transition: border-color 0.2s;
  box-sizing: border-box;
  appearance: none;
}
.wa-form-input:focus:not(:focus-visible),
.wa-form-select:focus:not(:focus-visible),
.wa-form-textarea:focus:not(:focus-visible) {
  outline: none;
  border-color: #d4907a;
  background: #fff;
}
.wa-form-input::placeholder,
.wa-form-textarea::placeholder { color: #d4c0bc; }
.wa-form-textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.wa-form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4907a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* チェックボックス群（希望日程） */
.wa-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 480px) { .wa-checkbox-group { grid-template-columns: repeat(3, 1fr); } }
.wa-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  background: #fef9f7;
  border: 1.5px solid #f0ddd8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4a3535;
  line-height: 1.4;
}
.wa-checkbox-label:hover { border-color: #e8bdb3; background: #fff; }
.wa-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4907a;
  flex-shrink: 0;
  margin-top: 1px;
}
.wa-checkbox-label input:checked ~ span { color: #d4907a; }
.wa-checkbox-label:has(input:checked) {
  border-color: #d4907a;
  background: #fdeee9;
}

/* ラジオボタン */
.wa-radio-group { display: flex; flex-direction: column; gap: 10px; }
.wa-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fef9f7;
  border: 1.5px solid #f0ddd8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4a3535;
}
.wa-radio-label:hover { border-color: #e8bdb3; }
.wa-radio-label input[type="radio"] { accent-color: #d4907a; width: 18px; height: 18px; }
.wa-radio-label:has(input:checked) { border-color: #d4907a; background: #fdeee9; color: #d4907a; }
.wa-radio-label__sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #b09090;
  margin-top: 2px;
}
.wa-radio-label:has(input:checked) .wa-radio-label__sub { color: #e8bdb3; }

/* 区切り */
.wa-form-divider {
  border: none;
  border-top: 1px solid #f0ddd8;
  margin: 32px 0;
}
.wa-form-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4907a;
  margin: 0 0 20px;
}

/* プライバシー */
.wa-privacy {
  background: #fdeee9;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 12px;
  color: #7a5f5a;
  line-height: 1.8;
  margin-bottom: 28px;
}
.wa-privacy a { color: #d4907a; }

/* 送信ボタン */
.wa-submit-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: #d4907a;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.wa-submit-btn:hover {
  background: #c07a64;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,144,122,0.35);
}
.wa-submit-note {
  text-align: center;
  font-size: 12px;
  color: #b09090;
  margin-top: 12px;
  line-height: 1.8;
}

/* CF7 カスタマイズ */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip {
  color: #d4907a;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}
.wpcf7-response-output {
  border: 2px solid #f0ddd8 !important;
  border-radius: 10px;
  padding: 14px 18px !important;
  font-size: 14px;
  margin: 16px 0 0 !important;
}

/* 完了メッセージ */
.wa-thanks {
  text-align: center;
  padding: 60px 24px;
  display: none;
}

/* Accessibility: stable touch targets and keyboard focus */
.ws-apply-back__link,
.wa-tab,
.wa-submit-btn,
.wa-form input,
.wa-form select,
.wa-form textarea {
  min-height: 44px;
}

.ws-apply-back__link,
.wa-tab,
.wa-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-apply-back__link:focus-visible,
.wa-tab:focus-visible,
.wa-submit-btn:focus-visible,
.wa-form input:focus-visible,
.wa-form select:focus-visible,
.wa-form textarea:focus-visible {
  outline: 3px solid rgba(212, 144, 122, 0.85);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .wa-page *,
  .wa-page *::before,
  .wa-page *::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.001ms !important;
  }
}

