/* Shared UI primitives. Context styles own layout and size variants. */
/* Inline navigation keeps its normal design; states share a quiet underline/fade. */
:where(.lower-breadcrumb, .company-profile__body, .bc-form__consent, .bc-form__errors, .bc-form__result) a:not(.bc-button):focus-visible {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine) {
  :where(.lower-breadcrumb, .company-profile__body, .bc-form__consent, .bc-form__errors, .bc-form__result) a:not(.bc-button):hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.bc-text-unit {
  display: inline-block;
  white-space: nowrap;
}

.bc-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7a6f68;
  background: #dcdcdc;
  font-family: var(--bc-font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.bc-media-placeholder--thumbnail {
  height: auto;
  font-size: 0.8rem;
}

.bc-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding-left: 12px;
  color: var(--bc-green);
  font-family: var(--bc-font-serif);
  font-size: 1.6rem;
  line-height: 1.5;
  vertical-align: top;
}

.bc-kicker::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 24.0871px;
  height: 29px;
  background: var(--bc-kicker-fill, var(--bc-green));
  mask: url("../../assets/images/icons/section-arch.svg") center / contain no-repeat;
  content: "";
  opacity: var(--bc-kicker-opacity, 0.1);
}

.bc-kicker--light { color: #fff; }
.bc-kicker--light::before { background: #fff; opacity: 0.3; }

.bc-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-style: normal;
}

.bc-arrow::after {
  display: block;
  width: var(--bc-arrow-width, 7px);
  height: var(--bc-arrow-height, 13px);
  background: currentColor;
  mask: var(--bc-arrow-image, url("../../assets/images/icons/arrow-small.svg")) center / contain no-repeat;
  content: "";
}

.bc-arrow--card {
  --bc-arrow-width: 9px;
  --bc-arrow-height: 17px;
  --bc-arrow-image: url("../../assets/images/icons/arrow-card.svg");
}

.bc-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(320px, 100%);
  min-height: 64px;
  padding: 0 16px 0 40px;
  color: #fff;
  background: var(--bc-green);
  border-radius: 8px;
  font-family: var(--bc-font-mincho);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 32px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.bc-button > .bc-arrow,
.bc-button > .bc-button__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--bc-green);
  background: #fff;
  border-radius: 4px;
  transition: background-color 180ms ease, color 180ms ease;
}

.bc-button--light,
.bc-button--outline { color: var(--bc-green); background: #fff; }
.bc-button--light,
.bc-button--outline {
  --bc-button-icon-hover-color: #fff;
  --bc-button-icon-hover-background: var(--bc-green);
}
.bc-button--light > .bc-arrow { background: var(--bc-green-pale); }
.bc-button--outline { box-shadow: inset 0 0 0 1px var(--bc-green); }
.bc-button--outline > .bc-arrow { color: #fff; background: var(--bc-green); }
.bc-button--back { padding: 0 40px 0 16px; }
.bc-button--back > .bc-arrow { order: -1; }
.bc-button--back > .bc-arrow::after { transform: rotate(180deg); }

.bc-button--file {
  display: inline-flex;
  gap: 12px;
  width: min(240px, 100%);
  min-height: 48px;
  padding: 8px 8px 8px 24px;
  border-radius: 4px;
  font-family: var(--bc-font-sans);
  line-height: 16px;
}

.bc-button:focus-visible { color: var(--bc-green); background: #fff; box-shadow: inset 0 0 0 1px var(--bc-green); }
.bc-button--light:focus-visible,
.bc-button--outline:focus-visible { background: var(--bc-green-pale); }
.bc-button:focus-visible > .bc-arrow,
.bc-button:focus-visible > .bc-button__icon { color: var(--bc-button-icon-hover-color, var(--bc-green)); background: var(--bc-button-icon-hover-background, #fff); }

@media (hover: hover) and (pointer: fine) {
  .bc-button:hover { color: var(--bc-green); background: #fff; box-shadow: inset 0 0 0 1px var(--bc-green); }
  .bc-button--light:hover,
  .bc-button--outline:hover { background: var(--bc-green-pale); }
  .bc-button:hover > .bc-arrow,
  .bc-button:hover > .bc-button__icon { color: var(--bc-button-icon-hover-color, var(--bc-green)); background: var(--bc-button-icon-hover-background, #fff); }
}
