/**
 * 申込フォームページ用CSS
 * index.html モックデザインを再現（CF7生成要素対応）
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== Layout ===== */
.tf-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}

/* ===== Header ===== */
.tf-header {
  background: #43a047;
  padding: 14px 20px;
}
.tf-header h1 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== Main Content ===== */
.tf-main {
  padding: 28px 20px 40px;
}

/* ===== Page Title ===== */
.tf-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}
.tf-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ===== Navigation Buttons ===== */
.nav-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.nav-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.5;
}
.nav-btn:hover {
  border-color: #43a047;
  color: #43a047;
}
.nav-btn.active {
  border-color: #43a047;
  color: #43a047;
  font-weight: 700;
}

/* ===== Nav Note ===== */
.nav-note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 0 0 8px;
}

/* ===== Arrow Indicator ===== */
.arrow-indicator {
  text-align: center;
  margin: 16px 0 24px;
  color: #43a047;
  font-size: 14px;
  line-height: 1;
}

/* ===== Form Area (animation) ===== */
.form-area {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.form-area.visible {
  max-height: none;
  opacity: 1;
  overflow: visible;
}

/* ===== Page Visibility ===== */
.form-page { display: none; }
.form-page.active { display: block; }

/* ===== Info Sections ===== */
.info-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.info-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}
.info-list {
  font-size: 14px;
  color: #555;
  margin: 4px 0 6px;
  padding-left: 0;
  list-style: none;
}
.info-list li {
  margin-bottom: 2px;
}
.info-sub-list {
  font-size: 13px;
  color: #666;
  margin: 4px 0 6px 8px;
  list-style: none;
  padding-left: 0;
}
.info-sub-list li::before {
  content: "・";
}
.deadline-date {
  color: #43a047;
  font-weight: 700;
  font-size: 16px;
  margin: 4px 0 8px;
}

/* ===== Divider ===== */
.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 24px 0;
}

/* ===== Form Sections ===== */
.form-section {
  margin: 0 -20px 0;
  padding: 25px 20px 4px;
  background: #f5f5f5;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  border: none;
  background: none;
  margin: 0 0 8px;
  color: #43a047;
}

/* ===== Form Fields ===== */
.field-group {
  margin-top: 15px;
  margin-bottom: 10px;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.field-label-text {
  font-size: 15px;
  font-weight: 700;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  line-height: 1.4;
  flex-shrink: 0;
}
.badge-required {
  background: #e53935;
}
.badge-optional {
  background: #78909c;
}
.field-description {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}
.field-note {
  font-size: 12px;
  color: #999;
  margin-top: 0;
  margin-bottom: 8px;
}

/* ===== Input / Textarea ===== */
.form-input,
.form-section .wpcf7-form-control:not(.wpcf7-radio):not(.wpcf7-acceptance):not(.wpcf7-submit) {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  color: #333;
  background: #fff;
}
.form-input:focus,
.form-section .wpcf7-form-control:not(.wpcf7-radio):not(.wpcf7-acceptance):not(.wpcf7-submit):focus {
  border-color: #43a047;
}
.form-input::placeholder,
.form-section .wpcf7-form-control::placeholder {
  color: #bbb;
}
textarea.form-input,
.form-section textarea.wpcf7-form-control {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== Radio Buttons (CF7生成要素対応) ===== */
.radio-group .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-group .wpcf7-list-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  margin: 0;
}
.radio-group .wpcf7-list-item:hover {
  background: #fafffe;
}
.radio-group .wpcf7-list-item.selected {
  border: 2px solid #43a047;
  padding: 12px 13px;
  background: #f6fdf6;
}
/* ネイティブのラジオボタンを非表示 */
.radio-group .wpcf7-list-item input[type="radio"] {
  display: none;
}
/* カスタムラジオサークル */
.radio-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}
.radio-group .wpcf7-list-item label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  transition: border-color 0.15s;
  background: #fff;
}
.radio-group .wpcf7-list-item label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #43a047;
  opacity: 0;
  transition: opacity 0.15s;
  position: absolute;
  left: 19px;
}
.radio-group .wpcf7-list-item {
  position: relative;
}
.radio-group .wpcf7-list-item.selected label::before {
  border-color: #43a047;
}
.radio-group .wpcf7-list-item.selected label::after {
  opacity: 1;
}
.radio-group .wpcf7-list-item-label {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Privacy / Acceptance (CF7生成要素対応) ===== */
.privacy-area {
  margin: 28px 0 20px;
}
.privacy-area .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.privacy-area .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}
/* ネイティブチェックボックスを非表示 */
.privacy-area .wpcf7-acceptance input[type="checkbox"] {
  display: none;
}
/* カスタムチェックボックス */
.privacy-area .wpcf7-acceptance .wpcf7-list-item label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  transition: all 0.15s;
  background: #fff;
}
.privacy-area .wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label {
  /* 親label の ::before を変更するため JS で .checked クラスを付与 */
}
.privacy-area .wpcf7-acceptance .wpcf7-list-item.checked label::before {
  background: #43a047;
  border-color: #43a047;
}
.privacy-area .wpcf7-acceptance .wpcf7-list-item.checked label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-60%) rotate(-45deg);
}
.privacy-area .wpcf7-acceptance .wpcf7-list-item {
  position: relative;
}
.privacy-area a {
  color: #43a047;
  text-decoration: underline;
}

/* ===== Submit Button (CF7生成要素対応) ===== */
.form-page .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #43a047;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  letter-spacing: 0.1em;
}
.form-page .wpcf7-submit:hover {
  background: #388e3c;
}
.form-page .wpcf7-submit.btn-disabled {
  background: #ccc;
  cursor: default;
}
.form-page .wpcf7-submit.btn-disabled:hover {
  background: #ccc;
}

/* ===== 受付停止メッセージ ===== */
.tf-closed-message {
  text-align: center;
  padding: 60px 20px;
}
.tf-closed-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.tf-closed-message h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}
.tf-closed-message p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}
.tf-closed-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.tf-closed-contact a {
  color: #43a047;
  text-decoration: underline;
}

/* ===== Footer ===== */
.tf-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #eee;
}

/* ===== Complete Page ===== */
.complete-page {
  text-align: center;
  padding: 40px 0 20px;
}
.complete-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #43a047;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}
.complete-heading {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}
.complete-body {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}
.complete-notice {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}
.complete-email {
  margin-top: 8px;
}
.complete-email a {
  color: #43a047;
  font-weight: 600;
  text-decoration: none;
}
.complete-email a:hover {
  text-decoration: underline;
}
.complete-back-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #43a047;
  border: 2px solid #43a047;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s;
}
.complete-back-btn:hover {
  background: #43a047;
  color: #fff;
}

/* ===== PC Responsive ===== */
@media (min-width: 600px) {
  body { padding: 24px 0; }
  .tf-wrapper { border-radius: 12px; min-height: auto; }
}
