/*
 * 矢口専用 料金シミュレーター
 * WordPressテーマへの影響を避けるため、すべて .yps 配下に限定しています。
 */
.yps,
.yps * {
  box-sizing: border-box;
}

.yps {
  --yps-base: #31363f;
  --yps-accent: #76abae;
  --yps-accent-dark: #578e92;
  --yps-accent-soft: #edf7f7;
  --yps-bg: #f4f6f7;
  --yps-card: #ffffff;
  --yps-border: #dce5e6;
  --yps-muted: #68727c;
  --yps-warning: #8a6330;
  --yps-warning-bg: #fff8ec;
  --yps-warning-border: #ead9bc;
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--yps-base);
  background:
    radial-gradient(circle at 100% 0, rgba(118, 171, 174, 0.16), transparent 15rem),
    var(--yps-bg);
  border: 1px solid var(--yps-border);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(49, 54, 63, 0.08);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  isolation: isolate;
}

.yps button,
.yps input,
.yps textarea {
  font: inherit;
}

.yps button,
.yps label {
  -webkit-tap-highlight-color: transparent;
}

.yps svg {
  display: block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.yps__header {
  margin: 0 0 1.5rem;
  text-align: center;
}

.yps__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  color: var(--yps-accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.yps__eyebrow span {
  width: 1.75rem;
  height: 2px;
  background: var(--yps-accent);
  border-radius: 999px;
}

.yps h2,
.yps h3,
.yps h4,
.yps p,
.yps dl,
.yps dd {
  margin-top: 0;
}

.yps__header h2 {
  margin-bottom: 0.55rem;
  color: var(--yps-base);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.yps__lead {
  max-width: 35rem;
  margin-right: auto;
  margin-bottom: 0.85rem;
  margin-left: auto;
  color: var(--yps-muted);
  font-size: 0.95rem;
}

.yps__privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0;
  padding: 0.4rem 0.75rem;
  color: var(--yps-base);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--yps-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.yps-js-warning {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  color: var(--yps-warning);
  background: var(--yps-warning-bg);
  border: 1px solid var(--yps-warning-border);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
}

.yps[data-yps-initialized="true"] .yps-js-warning {
  display: none;
}

.yps__layout,
.yps__questions {
  display: grid;
  gap: 1rem;
}

.yps__questions {
  margin: 0;
}

.yps-card {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--yps-card);
  border: 1px solid var(--yps-border);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(49, 54, 63, 0.045);
}

.yps fieldset.yps-card {
  border: 1px solid var(--yps-border);
}

.yps-card__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--yps-base);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.yps legend.yps-card__title {
  float: left;
}

.yps legend.yps-card__title + * {
  clear: both;
}

.yps-step {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: var(--yps-base);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.yps-card__helper,
.yps-card__note {
  color: var(--yps-muted);
  font-size: 0.84rem;
}

.yps-card__helper {
  margin: -0.45rem 0 0.9rem;
}

.yps-card__note {
  margin: 0.7rem 0 0;
}

.yps-campaign-rule {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.75rem;
  color: var(--yps-muted);
  background: var(--yps-accent-soft);
  border-left: 3px solid var(--yps-accent);
  border-radius: 0 9px 9px 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.yps-campaign-rule strong {
  color: var(--yps-base);
}

.yps-choice-grid {
  display: grid;
  gap: 0.65rem;
}

.yps-choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yps-choice-grid--course {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yps-choice-grid--area {
  grid-template-columns: 1fr 1fr;
}

.yps-choice {
  position: relative;
  min-width: 0;
}

.yps-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.yps-choice label {
  display: flex;
  min-height: 4.35rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0.65rem;
  color: var(--yps-base);
  background: #fff;
  border: 1.5px solid var(--yps-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.yps-choice label:hover {
  border-color: var(--yps-accent);
  transform: translateY(-1px);
}

.yps-choice input:checked + label,
.yps-choice.is-checked label {
  background: var(--yps-accent-soft);
  border-color: var(--yps-accent);
  box-shadow: 0 0 0 2px rgba(118, 171, 174, 0.14);
}

.yps-choice input:checked + label::after,
.yps-choice.is-checked label::after {
  content: "✓";
  position: absolute;
  top: 0.42rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
  background: var(--yps-accent-dark);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.yps-choice input:focus-visible + label {
  outline: 3px solid rgba(118, 171, 174, 0.34);
  outline-offset: 3px;
}

.yps-choice label span {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.yps-choice label small {
  color: var(--yps-muted);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.4;
}

.yps-choice--wide label {
  min-height: 4.9rem;
  align-items: flex-start;
  padding-right: 2rem;
  padding-left: 0.9rem;
  text-align: left;
}

.yps-choice--wide label span {
  font-size: 0.86rem;
}

.yps-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.yps-field {
  display: grid;
  gap: 0.38rem;
  color: var(--yps-base);
  font-size: 0.84rem;
  font-weight: 750;
}

.yps-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  color: var(--yps-base);
  background: #fff;
  border: 1.5px solid var(--yps-border);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
}

.yps-field input:hover {
  border-color: var(--yps-accent);
}

.yps-field input:focus-visible {
  border-color: var(--yps-accent-dark);
  outline: 3px solid rgba(118, 171, 174, 0.22);
  outline-offset: 2px;
}

.yps-inline-status {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.62rem 0.72rem;
  color: var(--yps-muted);
  background: #f7f9f9;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.yps-inline-status::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.02rem;
  color: #fff;
  background: var(--yps-muted);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.yps-inline-status--success {
  color: #315f62;
  background: var(--yps-accent-soft);
}

.yps-inline-status--success::before {
  content: "✓";
  background: var(--yps-accent-dark);
  font-family: inherit;
}

.yps-inline-status--warning {
  color: var(--yps-warning);
  background: var(--yps-warning-bg);
}

.yps-inline-status--warning::before {
  content: "!";
  background: var(--yps-warning);
  font-family: inherit;
}

.yps-result {
  position: relative;
  margin-top: 0.25rem;
  padding: clamp(1.15rem, 4vw, 1.65rem);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--yps-accent);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(49, 54, 63, 0.09);
}

.yps-result__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--yps-base), var(--yps-accent));
}

.yps-result__kicker {
  margin-bottom: 0.1rem;
  color: var(--yps-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
}

.yps-result__amount {
  margin-bottom: 0.1rem;
  color: var(--yps-base);
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-align: center;
}

.yps-result__caption {
  margin-bottom: 0.7rem;
  color: var(--yps-muted);
  font-size: 0.78rem;
  text-align: center;
}

.yps-badges {
  display: flex;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.yps-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  color: #315f62;
  background: var(--yps-accent-soft);
  border: 1px solid rgba(118, 171, 174, 0.55);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.yps-breakdown {
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  background: #f8fafa;
  border-radius: 12px;
}

.yps-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--yps-border);
}

.yps-breakdown > div:last-child {
  border-bottom: 0;
}

.yps-breakdown dt,
.yps-breakdown dd {
  font-size: 0.86rem;
}

.yps-breakdown dt {
  color: var(--yps-muted);
}

.yps-breakdown dd {
  margin-bottom: 0;
  color: var(--yps-base);
  font-weight: 800;
  text-align: right;
}

.yps-breakdown dd.is-discount {
  color: var(--yps-accent-dark);
}

.yps-notices {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.yps-notice {
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: var(--yps-warning);
  background: var(--yps-warning-bg);
  border: 1px solid var(--yps-warning-border);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.yps-fixed-notices {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  color: var(--yps-muted);
  background: #f7f9f9;
  border-radius: 10px;
}

.yps-fixed-notices p {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.55;
}

.yps-fixed-notices p:last-child {
  margin-bottom: 0;
}

.yps-primary-button,
.yps-copy-button {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.yps-primary-button {
  color: #fff;
  background: var(--yps-base);
  border: 2px solid var(--yps-base);
  box-shadow: 0 7px 18px rgba(49, 54, 63, 0.18);
}

.yps-primary-button:hover {
  background: #242931;
  border-color: #242931;
  transform: translateY(-1px);
}

.yps-primary-button:active,
.yps-copy-button:active {
  transform: translateY(1px);
}

.yps-primary-button:focus-visible,
.yps-copy-button:focus-visible {
  outline: 3px solid rgba(118, 171, 174, 0.35);
  outline-offset: 3px;
}

.yps-result__privacy {
  margin: 0.5rem 0 0;
  color: var(--yps-muted);
  font-size: 0.75rem;
  text-align: center;
}

.yps-consultation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yps-border);
}

.yps-consultation[hidden] {
  display: none;
}

.yps-consultation__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.yps-consultation__heading h4 {
  margin-bottom: 0;
  color: var(--yps-base);
  font-size: 0.95rem;
}

.yps-consultation__heading span {
  color: var(--yps-muted);
  font-size: 0.75rem;
  text-align: right;
}

.yps-consultation textarea {
  display: block;
  width: 100%;
  min-height: 15rem;
  padding: 0.8rem;
  resize: vertical;
  color: var(--yps-base);
  background: #fbfcfc;
  border: 1px dashed var(--yps-accent);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.65;
}

.yps-consultation textarea:focus-visible {
  border-style: solid;
  outline: 3px solid rgba(118, 171, 174, 0.2);
  outline-offset: 2px;
}

.yps-copy-button {
  margin-top: 0.65rem;
  color: var(--yps-base);
  background: var(--yps-accent-soft);
  border: 1.5px solid var(--yps-accent);
}

.yps-copy-button:hover {
  background: #dff0f0;
  border-color: var(--yps-accent-dark);
}

.yps-copy-status {
  min-height: 1.35rem;
  margin: 0.25rem 0 0;
  color: var(--yps-accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
  text-align: center;
}

.yps-out-of-scope {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: var(--yps-muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--yps-border);
  border-radius: 12px;
  font-size: 0.78rem;
}

.yps-out-of-scope strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--yps-base);
  font-size: 0.8rem;
}

.yps-out-of-scope p {
  margin-bottom: 0;
}

.yps-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 560px) {
  .yps {
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 16px;
  }

  .yps__header {
    margin-bottom: 1.1rem;
  }

  .yps__privacy {
    border-radius: 12px;
  }

  .yps-card,
  .yps-result {
    border-radius: 14px;
  }

  .yps-choice-grid--three,
  .yps-choice-grid--course {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yps-choice-grid--area,
  .yps-field-grid {
    grid-template-columns: 1fr;
  }

  .yps-choice--wide label {
    min-height: 4.25rem;
  }

  .yps-consultation__heading {
    display: block;
  }

  .yps-consultation__heading span {
    display: block;
    margin-top: 0.1rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yps *,
  .yps *::before,
  .yps *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
