/* ============================================
   Listing (掲載のご案内) Page Styles
   ============================================ */

/* --- Layout Override --- */
.page-template-page-listing .site-content {
  display: block;
  max-width: 100%;
  padding: 0;
}
.page-template-page-listing .widget-area {
  display: none;
}

.listing-page {
  overflow: hidden;
  color: var(--color-text);
}

/* --- Buttons --- */
.lst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: var(--font-size-base);
  line-height: 1.4;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.lst-btn:hover { transform: translateY(-2px); }
.lst-btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.lst-btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-lg); }
.lst-btn--ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}
.lst-btn--ghost:hover { background: #fff; }
.lst-btn--outline {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.lst-btn--outline:hover { background: var(--color-primary-light); }
.lst-btn--block { width: 100%; }

/* --- Hero --- */
.lst-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff8f0 45%, #fff 100%);
  padding: 90px 20px 70px;
  text-align: center;
  overflow: hidden;
}
.lst-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.lst-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
}
.lst-hero-shape--1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(230,126,34,.18), transparent 70%);
  top: -80px; right: -60px;
}
.lst-hero-shape--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(39,174,96,.14), transparent 70%);
  bottom: -80px; left: -40px;
}
.lst-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.lst-hero-label {
  display: inline-block;
  letter-spacing: .16em;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.lst-hero-title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-secondary);
  margin: 0 0 20px;
}
.lst-hero-lead {
  font-size: var(--font-size-lg);
  line-height: 1.9;
  color: var(--color-text-light);
  margin: 0 auto 30px;
}
.lst-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lst-hero-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* --- Section base --- */
.lst-section { padding: 70px 20px; }
.lst-section--alt { background: var(--color-bg); }
.lst-section-inner { max-width: var(--site-width); margin: 0 auto; }
.lst-section-inner--narrow { max-width: 760px; }
.lst-section-header { text-align: center; margin-bottom: 44px; }
.lst-section-number {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.lst-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0 0 14px;
}
.lst-section-sub {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

/* --- Cards --- */
.lst-cards { display: grid; gap: 24px; }
.lst-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lst-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lst-card-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 16px;
}
.lst-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 12px;
}
.lst-card-text {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Merits --- */
.lst-merits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.lst-merit {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.lst-merit-icon {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.lst-merit-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-secondary);
  margin: 4px 0 8px;
}
.lst-merit-body p {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Notice --- */
.lst-notice {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: 30px;
}
.lst-notice--wip {
  background: #fff8e6;
  border: 1px dashed var(--color-warning);
  color: #8a6d1a;
}

/* --- Plans --- */
.lst-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.lst-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.lst-plan--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.lst-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-xl);
}
.lst-plan-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--color-border-light); margin-bottom: 20px; }
.lst-plan-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 12px;
}
.lst-plan-price { margin: 0 0 8px; }
.lst-plan-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.lst-plan-unit {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-left: 4px;
}
.lst-plan-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin: 0;
}
.lst-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.lst-plan-features li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 12px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text);
}
.lst-plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.lst-plans-foot {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 26px;
}

/* --- Steps --- */
.lst-steps {
  list-style: none;
  counter-reset: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lst-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.lst-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: 14px;
}
.lst-step-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 10px;
}
.lst-step p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* --- FAQ --- */
.lst-faq { display: flex; flex-direction: column; gap: 12px; }
.lst-faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.lst-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  position: relative;
  font-weight: 700;
  color: var(--color-secondary);
}
.lst-faq-item summary::-webkit-details-marker { display: none; }
.lst-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform .2s ease;
}
.lst-faq-item[open] summary::after { content: "\2212"; }
.lst-faq-item p {
  margin: 0 0 16px;
  font-size: var(--font-size-sm);
  line-height: 1.9;
  color: var(--color-text-light);
}

/* --- Form section --- */
.lst-form-section { background: linear-gradient(180deg, var(--color-primary-light) 0%, #fff 260px); }
.lst-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
}
.lst-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
}
.lst-form-row { margin: 0; display: flex; flex-direction: column; }
.lst-form-row--full { grid-column: 1 / -1; }
.lst-form-label {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.lst-req {
  display: inline-block;
  background: var(--color-danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  vertical-align: middle;
}

/* CF7 fields */
.lst-form-wrap input[type="text"],
.lst-form-wrap input[type="email"],
.lst-form-wrap input[type="tel"],
.lst-form-wrap input[type="url"],
.lst-form-wrap textarea,
.lst-form-wrap select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lst-form-wrap input:focus,
.lst-form-wrap textarea:focus,
.lst-form-wrap select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, .15);
}
.lst-form-wrap textarea { resize: vertical; min-height: 120px; }

/* checkbox group */
.lst-form-wrap .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.lst-form-wrap .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.lst-form-wrap .wpcf7-checkbox .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: background-color .2s ease, border-color .2s ease;
}
.lst-form-wrap .wpcf7-checkbox .wpcf7-list-item label:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.lst-form-wrap .wpcf7-list-item-label { line-height: 1.4; }

/* consent */
.lst-form-consent { font-size: var(--font-size-sm); color: var(--color-text-light); }
.lst-form-consent .wpcf7-list-item { margin: 0; }
.lst-form-consent label { display: inline-flex; align-items: flex-start; gap: 8px; }
.lst-form-consent a { color: var(--color-primary-dark); text-decoration: underline; }

/* submit */
.lst-form-submit { grid-column: 1 / -1; text-align: center; margin: 10px 0 0; }
.lst-form-wrap .wpcf7-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: 16px 44px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color .2s ease, transform .2s ease;
}
.lst-form-wrap .wpcf7-submit:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.lst-form-wrap .wpcf7-spinner { margin: 0 auto; display: block; }

/* CF7 validation/response */
.lst-form-wrap .wpcf7-not-valid-tip {
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  margin-top: 4px;
}
.lst-form-wrap .wpcf7-response-output {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  margin: 20px 0 0;
  padding: 14px 18px;
  font-size: var(--font-size-sm);
}
.lst-form-missing { text-align: center; color: var(--color-text-muted); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .lst-cards--3,
  .lst-plans { grid-template-columns: 1fr; }
  .lst-merits { grid-template-columns: 1fr; }
  .lst-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lst-section { padding: 54px 16px; }
  .lst-hero { padding: 64px 16px 50px; }
  .lst-hero-actions .lst-btn { width: 100%; }
  .lst-form-grid { grid-template-columns: 1fr; }
  .lst-form-wrap { padding: 26px 18px; }
  .lst-steps { grid-template-columns: 1fr; }
  .sp-hide { display: none; }
}
