
/*
 * White-base visual unification
 * Added 2026-08-24 for juku-ma-center.jp
 */

:root {
  --jma-white-base: #ffffff;
  --jma-white-soft: #f7f9fb;
  --jma-white-line: #dfe6ec;
  --jma-white-ink: #061827;
  --jma-white-muted: #40556a;
}

/* Make the logo artwork blend naturally into the site canvas. */
html body,
html #body_wrap,
#body_wrap .l-content,
#body_wrap .l-mainContent,
#body_wrap .l-mainContent__inner,
#body_wrap .post_content,
#body_wrap .jma-page,
#body_wrap .jma-lp,
#body_wrap .jma-pro-home {
  background-color: var(--jma-white-base) !important;
}

#body_wrap #header,
#body_wrap .l-header,
#body_wrap .jma-header,
#body_wrap .jma-pro-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: var(--jma-white-line) !important;
  box-shadow: 0 1px 0 rgba(6, 24, 39, 0.06),
    0 10px 28px rgba(6, 24, 39, 0.045) !important;
}

#body_wrap .c-headLogo__link,
#body_wrap .jma-pro-logo,
#body_wrap .jma-header__logo,
#body_wrap .jma-logo {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#body_wrap .jma-pro-logo {
  padding: 0 !important;
}

#body_wrap .jma-pro-logo img {
  width: min(100%, 286px) !important;
  max-height: 54px !important;
  object-fit: contain !important;
}

/* White and neutral-white sections replace the previous green/cream canvas. */
#body_wrap .jma-pro-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%) !important;
  border-bottom: 1px solid var(--jma-white-line) !important;
}

#body_wrap .jma-pro-section:not(.jma-pro-section--dark),
#body_wrap .jma-section:not(.dark),
#body_wrap .jma-page-main {
  background: var(--jma-white-base) !important;
}

#body_wrap .jma-pro-section.jma-pro-section--soft,
#body_wrap .jma-section.jma-section.alt,
#body_wrap .jma-section.jma-section--alt,
#body_wrap .jma-section.jma-section--soft {
  background: var(--jma-white-soft) !important;
}

#body_wrap .jma-pro-card,
#body_wrap .jma-pro-photo,
#body_wrap .jma-pro-check,
#body_wrap .jma-pro-proof__item,
#body_wrap .jma-card,
#body_wrap .jma-form-card,
#body_wrap .jma-company-official table {
  background-color: var(--jma-white-base) !important;
  border-color: var(--jma-white-line) !important;
}

/* Inner-page heroes stay authoritative, but are now light and logo-compatible. */
html #body_wrap .jma-page .jma-page-hero,
html #body_wrap .jma-lp .jma-page-hero {
  background: linear-gradient(155deg, #ffffff 0%, #f5f8fa 100%) !important;
  color: var(--jma-white-ink) !important;
  border-bottom: 1px solid var(--jma-white-line) !important;
}

html #body_wrap .jma-page .jma-page-hero::before,
html #body_wrap .jma-page .jma-page-hero::after,
html #body_wrap .jma-lp .jma-page-hero::before,
html #body_wrap .jma-lp .jma-page-hero::after {
  opacity: 0.08 !important;
}

html #body_wrap .jma-page .jma-page-hero h1,
html #body_wrap .jma-page .jma-page-hero h2,
html #body_wrap .jma-page .jma-page-hero .jma-title,
html #body_wrap .jma-page .jma-page-hero strong,
html #body_wrap .jma-lp .jma-page-hero h1,
html #body_wrap .jma-lp .jma-page-hero h2,
html #body_wrap .jma-lp .jma-page-hero .jma-title,
html #body_wrap .jma-lp .jma-page-hero strong {
  color: var(--jma-white-ink) !important;
  -webkit-text-fill-color: var(--jma-white-ink) !important;
  text-shadow: none !important;
}

html #body_wrap .jma-page .jma-page-hero p,
html #body_wrap .jma-page .jma-page-hero li,
html #body_wrap .jma-page .jma-page-hero small,
html #body_wrap .jma-lp .jma-page-hero p,
html #body_wrap .jma-lp .jma-page-hero li,
html #body_wrap .jma-lp .jma-page-hero small {
  color: var(--jma-white-muted) !important;
  -webkit-text-fill-color: var(--jma-white-muted) !important;
  opacity: 1 !important;
}

html #body_wrap .jma-page .jma-page-hero .jma-eyebrow,
html #body_wrap .jma-page .jma-page-hero .jma-kicker,
html #body_wrap .jma-page .jma-page-hero [class*="badge"],
html #body_wrap .jma-lp .jma-page-hero .jma-eyebrow,
html #body_wrap .jma-lp .jma-page-hero .jma-kicker,
html #body_wrap .jma-lp .jma-page-hero [class*="badge"] {
  background: #ffffff !important;
  color: #0f5f55 !important;
  -webkit-text-fill-color: #0f5f55 !important;
  border-color: #d6e0e7 !important;
  box-shadow: none !important;
}

/* Keep desktop navigation on clean single lines. */
@media (min-width: 821px) {
  #body_wrap .jma-pro-header__inner {
    grid-template-columns: minmax(238px, 292px) minmax(300px, 1fr) auto !important;
    gap: clamp(14px, 1.4vw, 22px) !important;
  }

  #body_wrap .jma-pro-nav {
    gap: clamp(14px, 1.35vw, 22px) !important;
  }

  #body_wrap .jma-pro-nav a,
  #body_wrap .c-gnav > li > a {
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1.45 !important;
  }

  #body_wrap .jma-pro-nav a {
    padding: 12px 0 !important;
  }
}

@media (min-width: 821px) and (max-width: 1040px) {
  #body_wrap .jma-pro-header__inner {
    grid-template-columns: minmax(238px, 292px) 1fr !important;
  }
}

@media (max-width: 820px) {
  #body_wrap .jma-pro-logo {
    width: min(292px, 100%) !important;
    height: auto !important;
  }

  #body_wrap .jma-pro-header__inner {
    padding-top: 12px !important;
  }
}



/*
 * Layout and readability fixes
 * Added 2026-08-24
 */

/* Keep mixed inline text together inside the target-area check cards. */
#body_wrap .jma-pro-check {
  display: block !important;
  position: relative !important;
  padding-left: 50px !important;
  min-width: 0 !important;
  line-height: 1.75 !important;
}

#body_wrap .jma-pro-check::before {
  position: absolute !important;
  left: 16px !important;
  top: 20px !important;
  margin: 0 !important;
}

/* Restore readable contrast in the seller fee summary card. */
#body_wrap .jma-side-fee p,
#body_wrap .jma-side-fee li,
#body_wrap .jma-side-fee small {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

/* Keep the 1024px header on one clean row. */
@media (min-width: 980px) and (max-width: 1040px) {
  #body_wrap .jma-pro-header__inner {
    grid-template-columns: 240px minmax(260px, 1fr) auto !important;
  }

  #body_wrap .jma-pro-header__actions {
    grid-column: auto !important;
    padding-bottom: 0 !important;
  }

  #body_wrap .jma-pro-phone {
    padding-inline: 10px !important;
  }

  #body_wrap .jma-pro-phone small {
    display: none !important;
  }
}

/* Compact and balance the custom home header on phones. */
@media (max-width: 480px) {
  #body_wrap .jma-pro-topbar__inner {
    padding-block: 8px !important;
  }

  #body_wrap .jma-pro-topbar__items {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  #body_wrap .jma-pro-topbar__items > span {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  #body_wrap .jma-pro-topbar__items > span:nth-child(3) {
    display: none !important;
  }

  #body_wrap .jma-pro-header__inner {
    padding: 10px 14px 12px !important;
    gap: 8px !important;
  }

  #body_wrap .jma-pro-logo {
    width: min(255px, 100%) !important;
  }

  #body_wrap .jma-pro-logo img {
    max-height: 48px !important;
  }

  #body_wrap .jma-pro-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 4px 8px !important;
  }

  #body_wrap .jma-pro-nav a {
    padding: 6px 4px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  #body_wrap .jma-pro-header__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(98px, 0.58fr) !important;
    width: 100% !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  #body_wrap .jma-pro-phone {
    min-width: 0 !important;
    padding: 6px 8px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    white-space: nowrap !important;
  }

  #body_wrap .jma-pro-phone small {
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  #body_wrap .jma-pro-phone strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  #body_wrap .jma-pro-header__actions .jma-pro-btn {
    min-height: 54px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 340px) {
  #body_wrap .jma-pro-phone strong {
    font-size: 18px !important;
  }

  #body_wrap .jma-pro-header__actions .jma-pro-btn {
    font-size: 12px !important;
  }
}


/* Final specificity adjustments for cached page-level styles. */
html body #body_wrap[class] {
  background-color: #ffffff !important;
}

html body #body_wrap .jma-page .jma-side-fee p,
html body #body_wrap .jma-lp .jma-side-fee p {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

@media (max-width: 340px) {
  html body #body_wrap .jma-pro-topbar__items > span {
    flex: none !important;
    white-space: nowrap !important;
  }

  html body #body_wrap .jma-pro-topbar__items > span:nth-child(n + 2) {
    display: none !important;
  }
}


/* Make long article breadcrumbs end cleanly instead of being cut off. */
@media (max-width: 600px) {
  html body #body_wrap .p-breadcrumb__item:last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body #body_wrap .p-breadcrumb__item:last-child .p-breadcrumb__text {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 340px) {
  html body #body_wrap .l-header__logo {
    max-width: 185px !important;
  }
}


/* Keep the narrow trust bar to one readable message. */
@media (max-width: 480px) {
  html body #body_wrap .jma-pro-topbar__items > span {
    flex: none !important;
    white-space: nowrap !important;
  }

  html body #body_wrap .jma-pro-topbar__items > span:nth-child(n + 2) {
    display: none !important;
  }
}


/* Keep numbered process text in one normal text flow. */
html body #body_wrap .jma-process-mini > div {
  display: block !important;
  position: relative !important;
  min-height: 49px !important;
  padding: 10px 12px 10px 54px !important;
  line-height: 1.75 !important;
}

html body #body_wrap .jma-process-mini > div::before {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

html body #body_wrap .jma-process-mini > div span {
  display: inline !important;
}


/* Keep emphasized phrases inside compact lists on the same text flow. */
html body #body_wrap .jma-tight-list li {
  display: block !important;
  position: relative !important;
  min-height: 28px !important;
  padding-left: 26px !important;
  line-height: 1.75 !important;
}

html body #body_wrap .jma-tight-list li::before {
  position: absolute !important;
  left: 0 !important;
  top: 14px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

html body #body_wrap .jma-tight-list li span {
  display: inline !important;
}


/* お問い合わせ list wrapping repair — 2026-08-24 */
html body #body_wrap .jma-list li {
  display: block !important;
  position: relative !important;
  min-height: 28px !important;
  padding-left: 38px !important;
  line-height: 1.75 !important;
}
html body #body_wrap .jma-list li::before {
  position: absolute !important;
  left: 0 !important;
  top: 14px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}
html body #body_wrap .jma-list li span {
  display: inline !important;
  width: auto !important;
}


/* Standard SWELL mobile header fit — 2026-08-24 */
@media (max-width: 360px) {
  html body #body_wrap .l-header__logo {
    min-width: 0 !important;
    max-width: calc(100% - 120px) !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }
  html body #body_wrap .l-header__logo .c-headLogo__link {
    width: 100% !important;
    max-width: 100% !important;
  }
  html body #body_wrap .l-header__logo img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* Standard SWELL header sits outside #body_wrap */
@media (max-width: 360px) {
  html body .l-header__logo {
    min-width: 0 !important;
    max-width: calc(100% - 120px) !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }
  html body .l-header__logo .c-headLogo__link {
    width: 100% !important;
    max-width: 100% !important;
  }
  html body .l-header__logo img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* Narrow-screen header specificity override */
@media (max-width: 360px) {
  html body #body_wrap #header .l-header__logo {
    min-width: 0 !important;
    max-width: calc(100% - 120px) !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }
}


/* Scale the background-image logo with its mobile flex item */
@media (max-width: 360px) {
  html body #body_wrap #header .l-header__logo .c-headLogo {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body #body_wrap #header .l-header__logo .c-headLogo__link {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Reserve the exact remaining row width for the mobile logo */
@media (max-width: 360px) {
  html body #body_wrap #header .l-header__logo {
    width: calc(100% - 120px) !important;
    max-width: calc(100% - 120px) !important;
    flex: 0 0 calc(100% - 120px) !important;
  }
}

/* JUKU contact form UX: one control per row, clean palette — 2026-08-26 */
html body #body_wrap .jma-page .jma-cf7-wrap {
  --juku-form-ink: #102b46;
  --juku-form-muted: #526476;
  --juku-form-line: #718096;
  --juku-form-soft: #f6f8fa;
  --juku-form-soft-line: #d7e0e8;
  --juku-form-accent: #0b4f7a;
  --juku-form-accent-hover: #083b5d;
  --juku-form-error: #b42318;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  color: var(--juku-form-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif !important;
}

html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 960px !important;
  margin-inline: auto !important;
}

html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) > .jma-card:has(.jma-cf7-wrap),
html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) > .jma-side-stack {
  width: 100% !important;
  max-width: 900px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}

html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) > .jma-card:has(.jma-cf7-wrap) {
  border: 1px solid var(--juku-form-soft-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 43, 70, 0.06) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form,
html body #body_wrap .jma-page .jma-cf7-wrap form,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-quick-grid,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-body,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-field,
html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-form-control-wrap {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-quick-grid,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-quick-grid > .full,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-field.full {
  grid-column: auto !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-field {
  display: grid !important;
  gap: 8px !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-field p,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-label-row p {
  margin: 0 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-field > div:not(.jma-label-row) {
  margin-top: 0 !important;
  color: var(--juku-form-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-label-row,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-label-row p {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-label-row label {
  color: var(--juku-form-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-required,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional {
  flex: 0 0 auto !important;
  padding: 3px 9px !important;
  border: 1px solid var(--juku-form-soft-line) !important;
  border-radius: 999px !important;
  background: #edf2f6 !important;
  color: var(--juku-form-ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional {
  background: var(--juku-form-soft) !important;
  color: var(--juku-form-muted) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
html body #body_wrap .jma-page .jma-cf7-wrap select,
html body #body_wrap .jma-page .jma-cf7-wrap textarea {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--juku-form-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--juku-form-ink) !important;
  box-shadow: none !important;
  font: 500 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif !important;
  letter-spacing: normal !important;
  box-sizing: border-box !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap textarea {
  height: 180px !important;
  min-height: 160px !important;
  resize: vertical !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap input::placeholder,
html body #body_wrap .jma-page .jma-cf7-wrap textarea::placeholder {
  color: #687887 !important;
  opacity: 1 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap input:not([type="checkbox"]):not([type="radio"]):focus,
html body #body_wrap .jma-page .jma-cf7-wrap select:focus,
html body #body_wrap .jma-page .jma-cf7-wrap textarea:focus {
  border-color: var(--juku-form-accent) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap input:not([type="checkbox"]):not([type="radio"]):focus-visible,
html body #body_wrap .jma-page .jma-cf7-wrap select:focus-visible,
html body #body_wrap .jma-page .jma-cf7-wrap textarea:focus-visible {
  outline: 3px solid rgba(11, 79, 122, 0.28) !important;
  outline-offset: 2px !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-section,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-tip,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-note,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-details,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-details summary,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-body,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-easy-note,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-confirm-box {
  border-color: var(--juku-form-soft-line) !important;
  background: var(--juku-form-soft) !important;
  background-image: none !important;
  color: var(--juku-form-ink) !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-section {
  border-left: 4px solid var(--juku-form-accent) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-tip strong,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-section strong,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-note strong {
  color: var(--juku-form-ink) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-checkbox,
html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-radio {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-list-item > label,
html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--juku-form-soft-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--juku-form-ink) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap input[type="checkbox"],
html body #body_wrap .jma-page .jma-cf7-wrap input[type="radio"] {
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--juku-form-accent) !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-list-item > label:has(input:focus-visible),
html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-acceptance label:has(input:focus-visible) {
  border-color: var(--juku-form-accent) !important;
  outline: 3px solid rgba(11, 79, 122, 0.24) !important;
  outline-offset: 2px !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 15px 20px !important;
  border: 1px solid var(--juku-form-accent) !important;
  border-radius: 8px !important;
  background: var(--juku-form-accent) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  cursor: pointer !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit:hover,
html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit:focus-visible {
  border-color: var(--juku-form-accent-hover) !important;
  background: var(--juku-form-accent-hover) !important;
  color: #ffffff !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit:focus-visible {
  outline: 3px solid rgba(11, 79, 122, 0.28) !important;
  outline-offset: 3px !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit:disabled {
  border-color: #c4ced7 !important;
  background: #dfe6ec !important;
  background-image: none !important;
  color: #526476 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="invalid"] .wpcf7-not-valid,
html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="failed"] .wpcf7-not-valid,
html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="invalid"] [aria-invalid="true"],
html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="failed"] [aria-invalid="true"] {
  border-color: var(--juku-form-error) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap form:not([data-status="invalid"]):not([data-status="failed"]) [aria-invalid="true"] {
  border-color: var(--juku-form-line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap form:not([data-status="invalid"]):not([data-status="failed"]) .wpcf7-not-valid-tip {
  display: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-not-valid-tip {
  margin-top: 6px !important;
  color: var(--juku-form-error) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="invalid"] .wpcf7-response-output,
html body #body_wrap .jma-page .jma-cf7-wrap form[data-status="failed"] .wpcf7-response-output {
  border-color: var(--juku-form-error) !important;
  background: #ffffff !important;
  color: var(--juku-form-ink) !important;
}

@media (max-width: 600px) {
  html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) {
    gap: 18px !important;
  }

  html body #body_wrap .jma-page .jma-form-layout:has(.jma-cf7-wrap) > .jma-card:has(.jma-cf7-wrap) {
    padding: 18px !important;
    border-radius: 10px !important;
  }

  html body #body_wrap .jma-page .jma-cf7-wrap .jma-quick-grid,
  html body #body_wrap .jma-page .jma-cf7-wrap .jma-optional-body {
    gap: 16px !important;
  }

  html body #body_wrap .jma-page .jma-cf7-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
  html body #body_wrap .jma-page .jma-cf7-wrap select,
  html body #body_wrap .jma-page .jma-cf7-wrap textarea {
    min-height: 52px !important;
    padding: 13px 14px !important;
  }

  html body #body_wrap .jma-page .jma-cf7-wrap textarea {
    height: 160px !important;
    min-height: 150px !important;
  }

  html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-submit {
    min-height: 56px !important;
    font-size: 16px !important;
  }
}
/* Fallback styling for helper blocks whose class names are altered by legacy output filtering */
html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-head > div:not([class]) {
  display: grid !important;
  gap: 8px !important;
  margin-top: 16px !important;
  padding: 16px !important;
  border: 1px solid var(--juku-form-soft-line) !important;
  border-radius: 8px !important;
  background: var(--juku-form-soft) !important;
  color: var(--juku-form-ink) !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-head > div:not([class]) strong {
  color: var(--juku-form-ink) !important;
  font-weight: 800 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-head > div:not([class]) span,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-head > div:not([class]) li {
  color: var(--juku-form-muted) !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form-head > div:not([class]) ul {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  margin: 2px 0 0 1.25em !important;
  padding: 0 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form > div:not([class]):has(> .jma-field) {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid var(--juku-form-soft-line) !important;
  border-radius: 8px !important;
  background: var(--juku-form-soft) !important;
  color: var(--juku-form-ink) !important;
  box-shadow: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form > div:not([class]):has(> .jma-field) > p {
  margin: 0 !important;
  color: var(--juku-form-muted) !important;
  line-height: 1.75 !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .jma-form > p:empty,
html body #body_wrap .jma-page .jma-cf7-wrap .jma-form > p:has(> br:only-child) {
  display: none !important;
}
/* Checkbox and radio detail */
html body #body_wrap .jma-page .jma-cf7-wrap input[type="checkbox"],
html body #body_wrap .jma-page .jma-cf7-wrap input[type="radio"] {
  border: 1px solid var(--juku-form-line) !important;
  background: #ffffff !important;
  background-image: none !important;
}

html body #body_wrap .jma-page .jma-cf7-wrap .wpcf7-list-item-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: var(--juku-form-ink) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* ページの地色 */
html:root {
  background-color: #fff !important;
}

/* トップの見出し、写真枠、料金、本文 */
#body_wrap #content #main_content section.jma-pro-hero.csh-hero,
#body_wrap #content #main_content #juku-approved-home,
#body_wrap #content #main_content #juku-approved-home .juku-approved-portrait,
#body_wrap #content #main_content #juku-approved-home .juku-approved-label,
#body_wrap #content #main_content #juku-intro-video,
#body_wrap #content #main_content #juku-fees,
#body_wrap #main_content #seller-fee-reasons,
#main_content #jma-home .jma-pro-section--soft,
#main_content #jma-home .maog-home-callout {
  background: #fff !important;
}

/* 下層ページと無料資料の本文 */
#body_wrap #main_content .jma-page,
#body_wrap #main_content .jma-lp,
#body_wrap #main_content .jma-page .jma-page-hero,
#body_wrap #main_content .jma-lp .jma-page-hero,
#body_wrap #main_content .jma-section.alt,
#body_wrap #main_content #ma-do-representative-profile,
#body_wrap #main_content footer.jma-footer,
#main_content .maog-hero,
#main_content .maog-workbook,
#main_content #maog-download {
  background: #fff !important;
}

