:root {
  --pb-msf-height: 86px;
}

.pb-msf,
.pb-msf * {
  box-sizing: border-box;
}

.pb-msf {
  --pb-msf-ink: #1b1b19;
  --pb-msf-muted: #696761;
  --pb-msf-line: #d9d5cc;
  --pb-msf-surface: rgba(249, 247, 242, 0.98);
  --pb-msf-accent: #d94a00;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9990;
  min-height: var(--pb-msf-height);
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--pb-msf-ink);
  background: var(--pb-msf-surface);
  border-top: 1px solid var(--pb-msf-line);
  box-shadow: 0 -18px 45px rgba(28, 25, 20, 0.13);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 110%, 0);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms cubic-bezier(0.22, 0.78, 0.24, 1);
  pointer-events: none;
}

.pb-msf::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--pb-msf-accent);
  content: "";
}

.pb-msf.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.pb-msf__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(250px, 310px);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: var(--pb-msf-height);
  margin: 0 auto;
}

.pb-msf__product {
  display: flex;
  gap: 15px;
  align-items: center;
  min-width: 0;
}

.pb-msf__visual {
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 64px;
  margin: 0;
}

.pb-msf__image {
  display: block;
  width: 100%;
  max-width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(28, 25, 20, 0.17));
}

.pb-msf__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pb-msf__brand {
  margin-bottom: 3px;
  color: var(--pb-msf-muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2em;
}

.pb-msf__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-msf__title span {
  color: var(--pb-msf-muted);
  font-size: 0.86em;
  font-weight: 750;
}

.pb-msf__market {
  display: flex;
  flex-direction: column;
  min-width: 172px;
  padding-left: 22px;
  border-left: 1px solid var(--pb-msf-line);
}

.pb-msf__market-label {
  color: var(--pb-msf-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.pb-msf__market-heading {
  display: flex;
  gap: 3px;
  align-items: center;
  min-height: 24px;
}

.pb-msf__note-trigger {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -2px -5px -2px 0;
  padding: 0;
  color: var(--pb-msf-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.pb-msf__note-trigger span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.pb-msf__note-trigger:hover,
.pb-msf__note-trigger[aria-expanded="true"] {
  color: var(--pb-msf-accent);
  transform: translateY(-1px);
}

.pb-msf__note-trigger:focus-visible {
  color: var(--pb-msf-accent);
  outline: 3px solid rgba(217, 74, 0, 0.28);
  outline-offset: 1px;
}

.pb-msf__market strong {
  display: block;
  margin-top: 2px;
  color: var(--pb-msf-accent);
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.pb-msf__market small {
  margin-left: 0.12em;
  font-size: 0.47em;
  letter-spacing: 0;
}

.pb-msf__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 12px 17px 12px 20px;
  color: #fff !important;
  background: var(--pb-msf-accent);
  border: 1px solid var(--pb-msf-accent);
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(217, 74, 0, 0.19);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.pb-msf__cta svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.pb-msf__cta:hover,
.pb-msf__cta:focus-visible {
  color: var(--pb-msf-accent) !important;
  background: #fff;
  box-shadow: 0 7px 16px rgba(28, 25, 20, 0.12);
  transform: translateY(-2px);
}

.pb-msf__cta:hover svg,
.pb-msf__cta:focus-visible svg {
  transform: translateX(3px);
}

.pb-msf__cta:focus-visible {
  outline: 3px solid rgba(217, 74, 0, 0.3);
  outline-offset: 3px;
}

.pb-msf__cta-label--compact {
  display: none;
}

.pb-msf__spacer {
  height: calc(var(--pb-msf-height) + env(safe-area-inset-bottom));
}

body.pb-msf-is-visible .p-fixBtnWrap {
  bottom: calc(var(--pb-msf-height) + env(safe-area-inset-bottom) + 14px) !important;
  transition: bottom 220ms cubic-bezier(0.22, 0.78, 0.24, 1);
}

.pb-msf-note-backdrop[hidden],
.pb-msf-note-panel[hidden] {
  display: none !important;
}

.pb-msf-note-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(20, 19, 17, 0.38);
  opacity: 0;
  transition: opacity 180ms ease;
  touch-action: none;
}

.pb-msf-note-backdrop.is-open {
  opacity: 1;
}

.pb-msf-note-panel,
.pb-msf-note-panel * {
  box-sizing: border-box;
}

.pb-msf-note-panel {
  --pb-msf-note-ink: #1b1b19;
  --pb-msf-note-muted: #696761;
  --pb-msf-note-line: #d9d5cc;
  --pb-msf-note-surface: #f9f7f2;
  --pb-msf-note-accent: #d94a00;
  position: fixed;
  bottom: calc(var(--pb-msf-height) + env(safe-area-inset-bottom) + 14px);
  left: 50%;
  z-index: 9992;
  width: min(460px, calc(100% - 32px));
  color: var(--pb-msf-note-ink);
  background: var(--pb-msf-note-surface);
  border: 1px solid var(--pb-msf-note-line);
  border-radius: 4px;
  box-shadow: 0 22px 55px rgba(28, 25, 20, 0.2);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 10px, 0);
  transform-origin: 50% 100%;
  transition:
    opacity 170ms ease,
    transform 190ms cubic-bezier(0.22, 0.78, 0.24, 1),
    visibility 0s linear 190ms;
}

.pb-msf-note-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
  transition-delay: 0s;
}

.pb-msf-note-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 11px 9px 18px;
  border-bottom: 1px solid var(--pb-msf-note-line);
}

.post_content .pb-msf-note-panel__header h2,
.pb-msf-note-panel__header h2 {
  position: static;
  margin: 0;
  padding: 0;
  color: var(--pb-msf-note-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.post_content .pb-msf-note-panel__header h2::before,
.post_content .pb-msf-note-panel__header h2::after,
.pb-msf-note-panel__header h2::before,
.pb-msf-note-panel__header h2::after {
  display: none;
  content: none;
}

.pb-msf-note-panel__close {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--pb-msf-note-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.pb-msf-note-panel__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.pb-msf-note-panel__close:hover,
.pb-msf-note-panel__close:focus-visible {
  color: var(--pb-msf-note-accent);
  background: rgba(217, 74, 0, 0.08);
}

.pb-msf-note-panel__close:focus-visible,
.pb-msf-note-panel__body:focus-visible {
  outline: 3px solid rgba(217, 74, 0, 0.28);
  outline-offset: 2px;
}

.pb-msf-note-panel__body {
  max-height: min(260px, 38vh);
  padding: 15px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 103, 97, 0.45) transparent;
}

.pb-msf-note-panel__body p {
  margin: 0;
  color: #4f4d48;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

@media (max-width: 767px) {
  :root {
    --pb-msf-height: 76px;
  }

  .pb-msf {
    box-shadow: 0 -12px 30px rgba(28, 25, 20, 0.14);
  }

  .pb-msf__inner {
    position: relative;
    grid-template-areas:
      "product cta"
      "market cta";
    grid-template-columns: minmax(0, 1fr) minmax(132px, 43vw);
    grid-template-rows: auto auto;
    gap: 12px;
    row-gap: 0;
    width: calc(100% - 24px);
  }

  .pb-msf__brand {
    display: none;
  }

  .pb-msf__product {
    display: block;
    grid-area: product;
    align-self: end;
    min-width: 0;
    padding-left: 48px;
  }

  .pb-msf__visual {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: 40px;
    height: 50px;
    transform: translateY(-50%);
  }

  .pb-msf__image {
    width: 40px;
    max-width: 40px;
    height: 46px;
  }

  .pb-msf__identity {
    margin-bottom: 3px;
  }

  .pb-msf__title {
    font-size: 11px;
    line-height: 1.25;
  }

  .pb-msf__title span {
    display: none;
  }

  .pb-msf__market {
    grid-area: market;
    align-self: start;
    min-width: 0;
    padding-left: 48px;
    border-left: 0;
  }

  .pb-msf__market-heading {
    gap: 0;
    min-height: 22px;
  }

  .pb-msf__market-label {
    font-size: 9px;
  }

  .pb-msf__note-trigger {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    margin-right: -4px;
  }

  .pb-msf__market strong {
    margin-top: 1px;
    font-size: clamp(23px, 7.2vw, 29px);
  }

  .pb-msf__cta {
    grid-area: cta;
    gap: 8px;
    min-height: 50px;
    padding: 10px 12px 10px 14px;
    font-size: 12px;
  }

  .pb-msf__cta svg {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }

  body.pb-msf-is-visible .p-fixBtnWrap {
    bottom: calc(var(--pb-msf-height) + env(safe-area-inset-bottom) + 10px) !important;
  }

  .pb-msf-note-backdrop {
    display: block;
  }

  .pb-msf-note-panel {
    right: 12px;
    bottom: calc(var(--pb-msf-height) + env(safe-area-inset-bottom) + 10px);
    left: 12px;
    width: auto;
    max-height: min(45svh, 330px);
    transform: translate3d(0, 12px, 0);
  }

  .pb-msf-note-panel.is-open {
    transform: translate3d(0, 0, 0);
  }

  .pb-msf-note-panel__header {
    min-height: 48px;
    padding: 8px 8px 7px 15px;
  }

  .pb-msf-note-panel__body {
    max-height: min(34svh, 250px);
    padding: 13px 15px 16px;
  }

  .pb-msf-note-panel__body p {
    font-size: 11px;
    line-height: 1.7;
  }
}

@media (max-width: 350px) {
  .pb-msf__inner {
    grid-template-areas:
      "product cta"
      "market cta";
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 9px;
    width: calc(100% - 18px);
  }

  .pb-msf__title {
    max-width: 100%;
  }

  .pb-msf__product,
  .pb-msf__market {
    padding-left: 42px;
  }

  .pb-msf__visual {
    width: 35px;
    height: 46px;
  }

  .pb-msf__image {
    width: 35px;
    max-width: 35px;
    height: 42px;
  }

  .pb-msf__market strong {
    font-size: 23px;
  }

  .pb-msf__cta {
    padding-right: 10px;
    padding-left: 12px;
  }

  .pb-msf__cta-label--full {
    display: none;
  }

  .pb-msf__cta-label--compact {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-msf,
  .pb-msf__note-trigger,
  .pb-msf__cta,
  .pb-msf__cta svg,
  .pb-msf-note-backdrop,
  .pb-msf-note-panel,
  .pb-msf-note-panel__close,
  body.pb-msf-is-visible .p-fixBtnWrap {
    transition: none;
  }
}
