@charset "utf-8";

/* ==========================================================================
   style2.css (Contact EFO - 1画面完結型 / コンコルド効果最大化)
   ========================================================================== */

:root {
  --c-primary: #4fbf8c;
  --c-primary-hover: #3da175;
  --c-primary-light: #e8f7f1;
  --c-bg: #f5f8f8;
  --c-surface: #ffffff;
  --c-text-main: #1e293b;
  --c-text-sub: #64748b;
  --c-border: #e2e8f0;
  --c-disabled: #cbd5e1;
  --font-base: 'Noto Sans JP', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-bottom: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--c-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; 
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

h1, p { margin: 0; padding: 0; }

.efo-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── 1. Header & Progress ── */
.efo-header {
  background: var(--c-bg);
  padding: 16px 0;
}
.efo-header-top {
  margin-bottom: 24px;
}
.efo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-sub);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.efo-back-btn:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.efo-eyebrow {
  color: var(--c-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.efo-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: 8px;
}
.efo-lead {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 24px;
}
.efo-progress-wrap {
  position: relative;
}
.efo-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.efo-progress-fill {
  height: 100%;
  background: var(--c-primary);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.efo-progress-text {
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 700;
  text-align: right;
  transition: color 0.3s;
}

/* ── 2. Form Card ── */
.efo-card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--c-border);
}

/* お知らせ帯 */
.efo-notice-bar {
  background: #fff9f0;
  color: #c27803;
  font-size: 13px;
  padding: 12px 24px;
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 3. お問い合わせ種別（ボタンスタイルラジオ） ── */
.efo-topic-radio-wrap {
  padding: 24px;
  border-bottom: 1px solid var(--c-border);
}
.efo-topic-radio-wrap > label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.efo-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.efo-topic-grid.is-single-topic {
  grid-template-columns: 1fr;
}
.efo-topic-grid.is-single-topic .efo-radio-label {
  width: 100%;
}
.efo-topic-grid.is-single-topic .efo-radio-btn {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
}
@media (max-width: 600px) {
  .efo-topic-grid {
    grid-template-columns: 1fr;
  }
}
.efo-radio-label {
  position: relative;
  cursor: pointer;
  display: block;
}
.efo-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.efo-radio-btn {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-sub);
  background: #fff;
  transition: all 0.2s;
}
.efo-radio-label input[type="radio"]:checked + .efo-radio-btn {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary);
}
.efo-radio-label:hover .efo-radio-btn {
  border-color: #cbd5e1;
}

.efo-topic-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #bfe9d6;
  background: #eefaf4;
  color: #2f6d53;
  font-size: 13px;
  line-height: 1.65;
}

.efo-topic-note.is-monitor {
  border: 1px solid #bfe9d6;
  background: #eefaf4;
  color: #2f6d53;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.efo-topic-note.is-monitor strong {
  display: inline-block;
  margin-right: 4px;
  color: #2f6d53;
}

.efo-topic-note .efo-topic-em {
  color: #d93838;
  font-size: 1.12em;
  font-weight: 800;
}

.efo-monitor-price {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cdeadd;
}

.efo-monitor-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.efo-monitor-fee-label {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

.efo-monitor-old {
  color: #6b7280;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #d93838;
}

.efo-monitor-new {
  font-size: 1.38em;
  font-weight: 800;
  color: #c42134;
  line-height: 1;
}

.efo-monitor-off {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #d93838;
  border-radius: 999px;
  padding: 2px 8px;
}

.efo-monitor-initial {
  margin-top: 6px;
  font-size: 13px;
}

.efo-monitor-x {
  color: #d93838;
  font-weight: 800;
  font-size: 1.1em;
}

.efo-monitor-desc {
  margin-top: 6px;
}

/* ── 4. Main Inputs ── */
.efo-main-inputs {
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .efo-main-inputs {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
}

.efo-field {
  display: flex;
  flex-direction: column;
}
.efo-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-text-main);
  margin-bottom: 8px;
}
.efo-badge-req {
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.efo-badge-opt {
  color: var(--c-text-sub);
  font-size: 12px;
  font-weight: 400;
}

/* Input Styles */
.efo-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--c-text-main);
  background: #fff;
  transition: all 0.2s;
  font-family: inherit;
}
.efo-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79, 191, 140, 0.1);
}
.efo-input::placeholder {
  color: #94a3b8;
}
.efo-hint {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-top: 6px;
}

/* ── 5. Accordion (詳細・任意) ── */
.efo-accordion-wrap {
  border-top: 1px solid var(--c-border);
  background: #f8fafc;
}
.efo-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text-main);
  cursor: pointer;
  transition: background 0.2s;
}
.efo-accordion-btn:hover {
  background: #f1f5f9;
}
.efo-accordion-arrow {
  width: 24px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.efo-accordion-btn[aria-expanded="true"] .efo-accordion-arrow {
  transform: rotate(180deg);
}
.efo-accordion-content {
  display: none;
  padding: 0 24px 32px;
}
.efo-accordion-content.is-open {
  display: block;
}

/* アコーディオン内のグリッド */
.efo-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 16px;
}
@media (max-width: 600px) {
  .efo-sub-grid { grid-template-columns: 1fr; }
}

.efo-col-span-2 {
  grid-column: span 2;
}
@media (max-width: 600px) {
  .efo-col-span-2 { grid-column: span 1; }
}

.efo-textarea {
  min-height: 120px;
  resize: vertical;
}

.efo-select-wrap {
  position: relative;
}
.efo-select-wrap select {
  cursor: pointer;
  appearance: none;
  padding-right: 40px;
}
.efo-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ── 6. Fixed Bottom Submit Area ── */
.efo-fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  box-shadow: var(--shadow-bottom);
  padding: 20px 0;
  z-index: 1000;
}

.efo-submit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 600px) {
  .efo-submit-inner {
    flex-direction: column;
    gap: 16px;
  }
}

.efo-agree-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.efo-agree-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--c-primary);
  cursor: pointer;
}
.efo-agree-text {
  font-size: 13px;
  color: var(--c-text-sub);
  font-weight: 500;
}
.efo-agree-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.efo-btn-submit {
  background: var(--c-disabled);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: not-allowed;
  transition: all 0.3s ease;
  min-width: 240px;
  justify-content: center;
}

.efo-btn-submit.is-active {
  background: var(--c-primary);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 191, 140, 0.3);
}
.efo-btn-submit.is-active:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 191, 140, 0.4);
}

/* ── 8. Animation Effects (コンコルド効果アピール) ── */
@keyframes pulse-agree {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: #f0fdf4; border-color: #4fbf8c; }
  100% { transform: scale(1); }
}
.efo-agree-box.is-pulsing {
  animation: pulse-agree 1.2s infinite ease-in-out;
  border-color: #4fbf8c;
}

@keyframes pulse-btn {
  0% { transform: scale(1); box-shadow: 0 4px 16px rgba(79, 191, 140, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 16px 32px rgba(79, 191, 140, 0.5); }
  100% { transform: scale(1); box-shadow: 0 4px 16px rgba(79, 191, 140, 0.3); }
}
.efo-btn-submit.btn-is-pulsing {
  animation: pulse-btn 1.2s infinite ease-in-out;
}

/* ── 7. Alerts ── */
.efo-alert {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
}
.alert-ok { background: #ecfdf5; color: #10b981; }
.alert-err { background: #fef2f2; color: #ef4444; }
