/*
 * SALONOMICS sitewide conversion layer v1
 * Preserves the existing 3D, graphics, palette and homepage first view.
 */

:root {
  --brc-ink: #10110f;
  --brc-paper: #f4f4f0;
  --brc-pearl: #faf9f7;
  --brc-coral: #ff5a36;
  --brc-lime: #d8ff57;
  --brc-blue: #b9d9ff;
  --brc-muted: #64655f;
  --brc-line: rgba(16, 17, 15, .17);
  --brc-ease: cubic-bezier(.22, 1, .36, 1);
}

/* -------------------------------------------------------------------------- */
/* Header and mobile-menu choices                                              */
/* -------------------------------------------------------------------------- */

.br-header-ctas {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.br-header-cta,
.br-menu-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid currentColor;
  color: inherit;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1;
  text-decoration: none !important;
  transition:
    color .25s ease,
    background-color .25s ease,
    border-color .25s ease,
    transform .25s var(--brc-ease);
}

.br-header-cta {
  padding: 0 13px;
}

.br-header-cta--guide {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(16, 17, 15, .12);
  color: inherit;
}

.is-scrolled .br-header-cta--guide,
.sm-header .br-header-cta--guide,
.slnm-article-header .br-header-cta--guide {
  border-color: var(--brc-line);
  background: rgba(255, 255, 255, .7);
  color: var(--brc-ink);
}

.br-header-cta--consult,
.br-menu-cta--consult {
  border-color: var(--brc-lime);
  background: var(--brc-lime);
  color: var(--brc-ink) !important;
}

.br-header-cta:hover,
.br-header-cta:focus-visible,
.br-menu-cta:hover,
.br-menu-cta:focus-visible {
  border-color: var(--brc-coral);
  background: var(--brc-coral);
  color: var(--brc-ink) !important;
  transform: translateY(-2px);
}

.br-header-cta:focus-visible,
.br-menu-cta:focus-visible,
.br-mobile-dock a:focus-visible,
.br-next-step a:focus-visible,
.br-cookie-inline:focus-visible,
.br-cookie-legal-slot .br-consent-manage:focus-visible {
  outline: 3px solid var(--brc-blue) !important;
  outline-offset: 3px;
}

.br-menu-ctas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.br-menu-ctas::before {
  content: none;
}

.br-menu-ctas .br-menu-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  padding: 12px 8px;
  border-width: 1px;
  border-radius: 2px;
  text-align: center;
  isolation: isolate;
}

.br-menu-ctas .br-menu-cta::after {
  position: absolute;
  z-index: -1;
  right: -20px;
  bottom: -34px;
  width: 82px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .16;
  transition: transform .35s var(--brc-ease);
}

.br-menu-cta__meta {
  color: inherit;
  font-family: "DM Sans", sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  opacity: .62;
}

.br-menu-cta__title {
  color: inherit;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.02em;
  white-space: normal;
}

.br-menu-cta__arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 25px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .3s var(--brc-ease);
}

.br-menu-cta--guide {
  border-color: var(--brc-paper) !important;
  background: var(--brc-paper) !important;
  color: var(--brc-ink) !important;
}

/*
 * SWELL's post/archive link rules can otherwise turn the paper card white on
 * editorial pages. Keep the entire guide card explicitly ink-coloured.
 */
body.br-conversion-v1 .br-menu-cta--guide,
body.br-conversion-v1 .br-menu-cta--guide .br-menu-cta__meta,
body.br-conversion-v1 .br-menu-cta--guide .br-menu-cta__title,
body.br-conversion-v1 .br-menu-cta--guide .br-menu-cta__arrow {
  color: var(--brc-ink) !important;
}

.br-menu-cta--consult {
  border-color: var(--brc-coral) !important;
  background: var(--brc-coral) !important;
  color: var(--brc-ink) !important;
}

.br-menu-ctas .br-menu-cta:hover,
.br-menu-ctas .br-menu-cta:focus-visible {
  border-color: var(--brc-lime) !important;
  background: var(--brc-lime) !important;
  color: var(--brc-ink) !important;
  transform: translateY(-2px);
}

.br-menu-ctas .br-menu-cta:hover::after,
.br-menu-ctas .br-menu-cta:focus-visible::after {
  transform: translate(-6px, -5px) scale(1.08);
}

.br-menu-ctas .br-menu-cta:hover .br-menu-cta__arrow,
.br-menu-ctas .br-menu-cta:focus-visible .br-menu-cta__arrow {
  transform: translate(2px, -50%);
}

/* Legacy one-destination docks are replaced by the dual dock in JavaScript. */
.br-conversion-general .cg-mobile-dock,
.br-conversion-general .sm-dock,
.br-conversion-general .slnm-article-mobile-dock {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Homepage closing choice: retain the original orange cg-contact composition */
/* -------------------------------------------------------------------------- */

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__bottom {
  gap: clamp(34px, 5vw, 72px);
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__bottom > p {
  flex: 0 1 410px;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__actions {
  display: grid;
  flex: 1 1 620px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 650px);
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button {
  min-width: 0;
  min-height: 68px;
  padding-left: 18px;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  line-height: 1.35;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button small {
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .6;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button--guide {
  border-color: rgba(16, 17, 15, .34);
  background: rgba(255, 255, 255, .86);
  color: var(--ink) !important;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button--guide span.cg-contact__icon {
  border-color: rgba(16, 17, 15, .32);
  color: var(--ink);
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button--guide:hover,
#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button--guide:focus-visible {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink) !important;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button--consult {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white) !important;
}

#cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button:focus-visible {
  outline: 3px solid var(--blue) !important;
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* General-page end choice                                                     */
/* -------------------------------------------------------------------------- */

.br-next-step {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(82px, 9vw, 128px) 0;
  overflow: hidden;
  border-top: 1px solid var(--brc-ink);
  border-bottom: 1px solid var(--brc-ink);
  background: var(--brc-coral);
  color: var(--brc-ink);
  font-family: "Noto Sans JP", sans-serif;
}

.br-next-step *,
.br-next-step *::before,
.br-next-step *::after {
  box-sizing: border-box;
}

.br-next-step::before,
.br-next-step::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.br-next-step::before {
  top: -42%;
  right: -11%;
  width: min(58vw, 760px);
  height: 184%;
  transform: rotate(22deg);
}

.br-next-step::after {
  top: -56%;
  right: 4%;
  width: min(42vw, 560px);
  height: 204%;
  border-color: rgba(216, 255, 87, .52);
  transform: rotate(-16deg);
}

.br-next-step__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.br-next-step__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(290px, .6fr);
  gap: 18px clamp(48px, 8vw, 120px);
  align-items: end;
}

.br-next-step__eyebrow {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 !important;
  color: var(--brc-ink) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.br-next-step__eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.br-next-step__head h2 {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--brc-ink) !important;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 5.4vw, 72px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -.045em !important;
}

.br-next-step__head h2::before,
.br-next-step__head h2::after {
  display: none !important;
  content: none !important;
}

.br-next-step__head > p:last-child {
  max-width: 420px !important;
  margin: 0 0 5px !important;
  color: rgba(16, 17, 15, .72) !important;
  font-size: 13px;
  line-height: 1.9;
}

.br-next-step__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(50px, 6vw, 82px);
}

.br-next-step__card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: clamp(18px, 2.3vw, 32px);
  min-height: 224px;
  padding: clamp(24px, 2.8vw, 34px);
  overflow: hidden;
  border: 1px solid var(--brc-ink);
  color: var(--brc-ink) !important;
  text-decoration: none !important;
  transition:
    box-shadow .35s ease,
    color .3s ease,
    background-color .3s ease,
    transform .35s var(--brc-ease);
}

.br-next-step__card--guide {
  border-color: rgba(16, 17, 15, .34);
  background: rgba(255, 255, 255, .86);
}

.br-next-step__card--consult {
  background: var(--brc-ink);
  color: #fff !important;
}

.br-next-step__card::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .12;
  transition: transform .55s var(--brc-ease);
}

.br-next-step__card:hover,
.br-next-step__card:focus-visible {
  box-shadow: 0 24px 55px rgba(16, 17, 15, .16);
  transform: translateY(-6px);
}

.br-next-step__card--guide:hover,
.br-next-step__card--guide:focus-visible,
.br-next-step__card--consult:hover,
.br-next-step__card--consult:focus-visible {
  background: var(--brc-lime);
  color: var(--brc-ink) !important;
}

.br-next-step__card:hover::after,
.br-next-step__card:focus-visible::after {
  transform: translate(-18px, -12px) scale(1.12);
}

.br-next-step__number {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.br-next-step__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.br-next-step__copy small {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.br-next-step__copy strong {
  display: block;
  margin-top: 32px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.025em;
}

.br-next-step__copy em {
  display: block;
  max-width: 410px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
  opacity: .7;
}

.br-next-step__arrow {
  align-self: start;
  justify-self: end;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
}

/* -------------------------------------------------------------------------- */
/* Mobile dual dock                                                            */
/* -------------------------------------------------------------------------- */

.br-mobile-dock {
  display: none;
}

@media (max-width: 767px) {
  body.br-conversion-general {
    /* The dock is fixed and hides as the pre-footer enters. Reserving space on
       the body creates a blank strip after the visual footer, so page flow
       remains unpadded. */
    padding-bottom: 0 !important;
  }

  #body_wrap.br-conversion-general {
    padding-bottom: 0 !important;
  }

  .br-mobile-dock {
    box-sizing: border-box;
    position: fixed;
    z-index: 9994;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .22));
    transition:
      opacity .2s ease,
      transform .3s var(--brc-ease),
      visibility .2s ease;
  }

  .br-mobile-dock a {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    min-height: 64px;
    padding: 10px 36px 10px 12px;
    overflow: hidden;
    border: 1px solid currentColor;
    border-radius: 2px;
    text-align: left;
    text-decoration: none !important;
    transition: transform .25s var(--brc-ease), background-color .25s ease;
  }

  .br-mobile-dock__meta {
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.15;
    opacity: .62;
  }

  .br-mobile-dock__title {
    color: inherit;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    white-space: nowrap;
  }

  .br-mobile-dock__arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 23px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
    transform: translateY(-50%);
  }

  .br-mobile-dock__guide {
    border-color: rgba(16, 17, 15, .56) !important;
    background: var(--brc-paper) !important;
    color: var(--brc-ink) !important;
  }

  body.br-conversion-v1 .br-mobile-dock__guide,
  body.br-conversion-v1 .br-mobile-dock__guide .br-mobile-dock__meta,
  body.br-conversion-v1 .br-mobile-dock__guide .br-mobile-dock__title,
  body.br-conversion-v1 .br-mobile-dock__guide .br-mobile-dock__arrow {
    color: var(--brc-ink) !important;
  }

  .br-mobile-dock__consult {
    border-color: rgba(16, 17, 15, .62) !important;
    background: var(--brc-coral) !important;
    color: var(--brc-ink) !important;
  }

  .br-mobile-dock a:active {
    background: var(--brc-lime) !important;
    color: var(--brc-ink) !important;
    transform: scale(.985);
  }

  html.br-cookie-panel-open .br-mobile-dock,
  html.br-conversion-menu-open .br-mobile-dock,
  #cgpt-salonomics.is-menu-open ~ .br-mobile-dock,
  body.salonomics-article-menu-open .br-mobile-dock,
  .br-mobile-dock.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }
}

/* -------------------------------------------------------------------------- */
/* Column index: neutralise SWELL's 3-column item width inside our 2-col grid */
/* -------------------------------------------------------------------------- */

body.br-conversion-column #main_content .p-postList.-type-card {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2vw, 28px) !important;
}

body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.br-conversion-column #main_content .p-postList.-type-card .p-postList__link {
  width: 100% !important;
  height: 100%;
}

/* A missing thumbnail should still look editorial, not like a grey system
   placeholder. The article title remains text below; this is a lightweight,
   brand-native cover that adds no image request. */
body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item {
  --br-column-cover: var(--brc-paper);
  --br-column-cover-ink: var(--brc-ink);
}

body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item:nth-child(4n + 1) {
  --br-column-cover: var(--brc-coral);
}

body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item:nth-child(4n + 2) {
  --br-column-cover: var(--brc-blue);
}

body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item:nth-child(4n + 3) {
  --br-column-cover: var(--brc-lime);
}

body.br-conversion-column #main_content .p-postList.-type-card > .p-postList__item:nth-child(4n + 4) {
  --br-column-cover: var(--brc-ink);
  --br-column-cover-ink: var(--brc-paper);
}

body.br-conversion-column #main_content .p-postList .c-postThumb.noimg_ {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--br-column-cover) !important;
  color: var(--br-column-cover-ink);
}

body.br-conversion-column #main_content .p-postList .c-postThumb.noimg_::before {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  content: "SALONOMICS / JOURNAL";
}

body.br-conversion-column #main_content .p-postList .c-postThumb.noimg_::after {
  position: absolute;
  right: -7%;
  bottom: -34%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 0 0 22px color-mix(in srgb, currentColor 14%, transparent),
    0 0 0 52px color-mix(in srgb, currentColor 8%, transparent);
  content: "";
}

body.br-conversion-column #main_content .p-postList .c-postThumb.noimg_ .c-postThumb__figure {
  opacity: 0 !important;
}

@media (max-width: 767px) {
  body.br-conversion-column #main_content .p-postList.-type-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* The profile/link-hub page owns its header and conversion hierarchy. */
body.br-conversion-profile .br-header-ctas,
body.br-conversion-profile .br-menu-ctas,
body.br-conversion-profile .br-mobile-dock,
body.br-conversion-profile .br-next-step {
  display: none !important;
}

@media (max-width: 820px) and (max-height: 520px) and (orientation: landscape) {
  .br-mobile-dock {
    display: none;
  }

  .br-conversion-general {
    padding-bottom: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Cookie UI: preserve consent; remove visual noise                            */
/* -------------------------------------------------------------------------- */

/*
 * Analytics remains default-denied. The persistent "プライバシー設定" control is
 * removed from marketing/editorial pages and lives only on the privacy page.
 * The first-visit choice itself stays available as a compact utility card.
 */
body:not(.br-conversion-legal) .br-consent-manage {
  display: none !important;
}

html body #br-consent.br-consent--dock {
  box-sizing: border-box !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  width: min(420px, calc(100vw - 36px)) !important;
  max-width: 420px !important;
  padding: 16px 17px !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 0 !important;
  background: rgba(16, 17, 15, .97) !important;
  color: #fff !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(16px);
}

html body #br-consent.br-consent--dock p,
html body #br-consent.br-consent--dock small {
  margin: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
}

html body #br-consent.br-consent--dock strong,
html body #br-consent.br-consent--dock h2,
html body #br-consent.br-consent--dock h3 {
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

html body #br-consent.br-consent--dock a {
  color: var(--brc-lime) !important;
  text-underline-offset: 3px;
}

html body #br-consent.br-consent--dock button {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-family: "DM Sans", "Noto Sans JP", sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

html body #br-consent.br-consent--dock button:last-of-type {
  border-color: var(--brc-lime) !important;
  background: var(--brc-lime) !important;
  color: var(--brc-ink) !important;
}

html body #br-consent.br-consent--dock button:hover,
html body #br-consent.br-consent--dock button:focus-visible {
  border-color: var(--brc-coral) !important;
  background: var(--brc-coral) !important;
  color: var(--brc-ink) !important;
}

html body #br-consent.br-consent--dock button:focus-visible {
  outline: 3px solid var(--brc-blue) !important;
  outline-offset: 3px !important;
}

/*
 * The manage control is never fixed after JavaScript moves it to the legal
 * row. It deliberately reads like a legal text link, not a CTA.
 */
.br-cookie-legal-slot {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  font-size: inherit;
}

.br-cookie-legal-slot::before {
  content: "/";
  opacity: .34;
}

.br-cookie-legal-slot .br-consent-manage {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
  opacity: .72;
  cursor: pointer;
}

.br-cookie-legal-slot .br-consent-manage:hover,
.br-cookie-legal-slot .br-consent-manage:focus-visible {
  color: var(--brc-lime) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  opacity: 1;
}

.br-cookie-inline-wrap {
  margin: 24px 0 34px;
  padding: 20px;
  border: 1px solid var(--brc-line);
  background: var(--brc-pearl);
}

.br-cookie-inline-wrap p {
  margin: 0 0 12px !important;
  color: var(--brc-muted);
  font-size: 12px;
  line-height: 1.8;
}

.br-cookie-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brc-ink);
  background: var(--brc-ink);
  color: #fff;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.br-cookie-inline:hover {
  border-color: var(--brc-lime);
  background: var(--brc-lime);
  color: var(--brc-ink);
}

@media (max-width: 767px) {
  html body #br-consent.br-consent--dock {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    padding: 14px !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .br-header-cta {
    padding-inline: 10px;
  }

  .br-header-cta--consult {
    font-size: 0;
  }

  .br-header-cta--consult::before {
    content: "LINE相談";
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  .cg-header__action .br-header-ctas,
  .sm-header__action .br-header-ctas,
  .slnm-article-header__action .br-header-ctas {
    display: none;
  }

  .br-next-step__shell {
    width: min(100% - 36px, 760px);
  }

  .br-next-step__head {
    grid-template-columns: 1fr;
  }

  .br-next-step__head > p:last-child {
    margin-top: 6px !important;
  }
}

@media (max-width: 720px) {
  .br-next-step {
    padding: 72px 0 84px;
  }

  .br-next-step__shell {
    width: calc(100% - 28px);
  }

  .br-next-step__head h2 {
    font-size: clamp(36px, 11.6vw, 52px) !important;
    line-height: 1.14 !important;
  }

  .br-next-step__choices {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 42px;
  }

  .br-next-step__card {
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    gap: 14px;
    min-height: 210px;
    padding: 24px 20px;
  }

  .br-next-step__copy strong {
    margin-top: 28px;
    font-size: 24px;
  }

  .br-next-step__copy em {
    padding-top: 22px;
  }
}

/* Editorial routes end with the same compact orange decision module. It keeps
   the homepage's paper/ink/coral language without turning the footer into a
   second hero. */
@media (min-width: 721px) {
  body.br-conversion-column .br-next-step,
  body.br-conversion-article .br-next-step {
    padding: 50px 0 54px;
  }

  body.br-conversion-column .br-next-step__shell,
  body.br-conversion-article .br-next-step__shell {
    width: min(1080px, calc(100% - 64px));
  }

  body.br-conversion-column .br-next-step__head h2,
  body.br-conversion-article .br-next-step__head h2 {
    font-size: clamp(36px, 3.4vw, 46px) !important;
    line-height: 1.08 !important;
  }

  body.br-conversion-column .br-next-step__head > p:last-child,
  body.br-conversion-article .br-next-step__head > p:last-child {
    font-size: 12px;
    line-height: 1.7;
  }

  body.br-conversion-column .br-next-step__choices,
  body.br-conversion-article .br-next-step__choices {
    margin-top: 26px;
  }

  body.br-conversion-column .br-next-step__card,
  body.br-conversion-article .br-next-step__card {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 16px;
    min-height: 88px;
    padding: 13px 15px 13px 18px;
  }

  body.br-conversion-column .br-next-step__number,
  body.br-conversion-article .br-next-step__number {
    display: none;
  }

  body.br-conversion-column .br-next-step__copy,
  body.br-conversion-article .br-next-step__copy {
    justify-content: center;
  }

  body.br-conversion-column .br-next-step__copy strong,
  body.br-conversion-article .br-next-step__copy strong {
    margin-top: 7px;
    font-size: clamp(17px, 1.55vw, 21px);
  }

  body.br-conversion-column .br-next-step__copy em,
  body.br-conversion-article .br-next-step__copy em {
    display: none;
  }

  body.br-conversion-column .br-next-step__arrow,
  body.br-conversion-article .br-next-step__arrow {
    display: grid;
    width: 36px;
    height: 36px;
    align-self: center;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  body.br-conversion-column .br-next-step,
  body.br-conversion-article .br-next-step {
    padding: 38px 0 42px;
  }

  body.br-conversion-column .br-next-step__head,
  body.br-conversion-article .br-next-step__head {
    gap: 8px;
  }

  body.br-conversion-column .br-next-step__head h2,
  body.br-conversion-article .br-next-step__head h2 {
    font-size: clamp(30px, 8.8vw, 36px) !important;
    line-height: 1.1 !important;
  }

  body.br-conversion-column .br-next-step__head > p:last-child,
  body.br-conversion-article .br-next-step__head > p:last-child {
    font-size: 11px;
    line-height: 1.6;
  }

  body.br-conversion-column .br-next-step__choices,
  body.br-conversion-article .br-next-step__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  body.br-conversion-column .br-next-step__card,
  body.br-conversion-article .br-next-step__card {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 8px;
    min-height: 98px;
    padding: 12px;
  }

  body.br-conversion-column .br-next-step__number,
  body.br-conversion-article .br-next-step__number { display: none; }

  body.br-conversion-column .br-next-step__copy,
  body.br-conversion-article .br-next-step__copy {
    justify-content: center;
  }

  body.br-conversion-column .br-next-step__copy small,
  body.br-conversion-article .br-next-step__copy small {
    font-size: 7px;
    line-height: 1.45;
  }

  body.br-conversion-column .br-next-step__copy strong,
  body.br-conversion-article .br-next-step__copy strong {
    margin-top: 9px;
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.35;
  }

  body.br-conversion-column .br-next-step__copy em,
  body.br-conversion-article .br-next-step__copy em {
    display: none;
  }

  body.br-conversion-column .br-next-step__arrow,
  body.br-conversion-article .br-next-step__arrow {
    display: grid;
    width: 24px;
    height: 24px;
    align-self: center;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__bottom {
    gap: 32px;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__bottom > p {
    flex-basis: auto;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__actions {
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 98px;
    padding: 12px 38px 12px 12px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button small {
    font-size: 6.5px;
    letter-spacing: .1em;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button > span:first-child {
    width: 100%;
    white-space: nowrap;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button .cg-contact__icon {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
  }
}

@media (max-width: 340px) {
  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button {
    padding: 10px 31px 10px 9px;
    font-size: 10.5px;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button small {
    font-size: 6px;
  }

  #cgpt-salonomics .cg-contact.br-home-next-step .cg-contact__button .cg-contact__icon {
    right: 6px;
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-header-cta,
  .br-menu-cta,
  .br-next-step__card,
  .br-next-step__card::after,
  .br-mobile-dock {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
