/* BPO landing page — styles are scoped to this page. */
.bpo-page {
  --bpo-navy: #142653;
  --bpo-pink: #f20c70;
  --bpo-blush: #fce8f0;
  --bpo-yellow: #f7b900;
  max-width: 1366px;
  margin: 0 auto;
  padding: 180px 24px 50px;
  color: var(--bpo-navy);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

.bpo-page h1,
.bpo-page h2,
.bpo-page h3,
.bpo-page p {
  margin: 0;
}

.bpo-hero {
  display: grid;
  /* 前の列幅: grid-template-columns: 1fr 1.08fr; */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  /* 装飾画像ありの調整値: gap: 12px; */
  /* 前の左右間隔: gap: 32px; */
  gap: 24px;
}

.bpo-hero-copy {
  position: relative;
  isolation: isolate;
  /* 装飾画像ありの調整値: padding-left: 14%; */
  padding-left: 4%;
}

/* 半円・葉っぱは一時非表示。復活時はこの display: none のブロックを削除する。
   元のHTML、配置設定、画像ファイルは維持（SPでは従来どおり非表示）。 */
.bpo-hero-half-circle,
.bpo-hero-leaves {
  display: none;
}

/* Hero decorations: keep them separate from the editable text. */
.bpo-hero-half-circle,
.bpo-hero-leaves,
.bpo-hero-pink-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.bpo-hero-half-circle {
  top: 5%;
  left: -24px;
  width: 15%;
  height: auto;
}

.bpo-hero-leaves {
  bottom: 0;
  left: -24px;
  width: 15%;
  overflow: hidden;
}

.bpo-hero-leaves img {
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  transform: translateX(-28%);
  /* Only the right half is visible. */
}

.bpo-hero-pink-shape {
  top: 6%;
  right: 3%;
  width: 28%;
  height: auto;
  transform: scaleX(-1);
}

.bpo-hero-mobile-cat {
  display: none;
}

.bpo-handwritten {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 700;
  letter-spacing: .12em;
}

.bpo-hero-note {
  display: block;
  width: clamp(150px, 15vw, 200px);
  max-width: 100%;
  height: auto;
  /* 余白を詰めた調整値: margin-bottom: 8px; */
  margin-bottom: 16px;
}

.bpo-hero h1 {
  /* 前の文字サイズ: font-size: clamp(26px, 3.6vw, 48px); */
  font-size: clamp(26px, 3.45vw, 48px);
  /* 余白を詰めた調整値: line-height: 1.35; */
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: .025em;
}

.bpo-hero h1 em {
  color: var(--bpo-pink);
  font-style: normal;
  white-space: nowrap;
  position: relative;
}

.bpo-hero h1 em::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 29%;
  width: 68%;
  height: 7px;
  background: #f9d76e;
  border-radius: 50%;
  transform: rotate(1deg);
}

.bpo-hero-lead {
  /* 余白を詰めた調整値: margin-top: 20px !important; line-height: 1.4; */
  margin-top: 28px !important;
  font-size: clamp(17px, 2.1vw, 28px);
  line-height: 1.5;
  font-weight: 700;
}

.bpo-hero-pill {
  background: var(--bpo-yellow);
  border-radius: 40px;
  padding: 12px 18px;
  /* 余白を詰めた調整値: margin-top: 10px !important; */
  margin-top: 16px !important;
  font-size: clamp(11px, 1.25vw, 16px);
  font-weight: 700;
  text-align: center;
}

/* Individual transparent assets retain their proportions within the existing layout. */
.bpo-art {
  position: relative;
}

.bpo-art img,
.bpo-cta-note img,
.bpo-concerns h2 img {
  display: block;
  width: 100%;
  height: auto;
}

.bpo-concerns h2 .bpo-concerns-mobile-image {
  display: none;
}

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

.bpo-hero-art {
  /* 拡大時の調整値: width: 108%; */
  width: 100%;
  justify-self: end;
  /* 前の画像枠: aspect-ratio: 424 / 270; */
  aspect-ratio: 3 / 2;
}

.bpo-art .bpo-hero-illustration {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}

.bpo-art .bpo-hero-handwriting {
  position: absolute;
  top: 5%;
  left: 24%;
  width: 34%;
}

.bpo-concerns {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7%;
  padding: 150px 7% 110px;
}

.bpo-concern-shape {
  position: absolute;
  z-index: -1;
  height: auto;
  pointer-events: none;
}

.bpo-concern-pink-left {
  top: 20%;
  left: 2%;
  width: 15%;
}

.bpo-concern-yellow-left {
  bottom: 16%;
  left: 2%;
  width: 15%;
}

.bpo-concern-pink-right {
  top: 24%;
  right: 5%;
  width: 12%;
}

.bpo-concern-yellow-right {
  bottom: 18%;
  right: 2%;
  width: 18%;
}

.bpo-concerns h2 {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 25vw, 340px);
}

.bpo-concerns p {
  font-size: clamp(18px, 2.2vw, 29px);
  line-height: 1.9;
}

.bpo-panel {
  border-radius: 28px;
}

.bpo-services {
  display: grid;
  grid-template-columns: 1.28fr 1fr .7fr;
  gap: 24px;
  align-items: center;
  padding: 50px 34px;
  background: var(--bpo-blush);
}

.bpo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px !important;
  font-size: 24px;
  font-weight: 700;
}

.bpo-label>span:last-child {
  position: relative;
  isolation: isolate;
  border-radius: 40px;
  padding: 0 14px;
}

/* Expand the white background while preserving the text size and position. */
.bpo-label>span:last-child::before {
  content: "";
  position: absolute;
  inset: -5px -5px;
  z-index: -1;
  border-radius: inherit;
  background: white;
  pointer-events: none;
}

.bpo-service-copy h2 {
  font-size: clamp(22px, 2.55vw, 34px);
  line-height: 1.55;
  margin-bottom: 20px;
}

.bpo-service-copy>p:not(.bpo-label) {
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 700;
}

.bpo-service-copy .bpo-service-note {
  font-weight: 400 !important;
}

.bpo-service-menu {
  background: white;
  border-radius: 10px;
  padding: 24px;
}

.bpo-service-menu h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.bpo-service-menu ul {
  padding: 0;
  list-style: none;
  margin: 24px 0 0;
}

.bpo-service-menu li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin-top: 18px;
  font-size: clamp(12px, 1.2vw, 16px);
}

.bpo-service-item-text {
  grid-column: 2;
  min-width: 0;
  text-align: left;
  text-indent: 0;
}

.bpo-service-menu li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: url('../images/check-circle.svg') center / contain no-repeat;
}

.bpo-service-paw {
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 76px;
  object-fit: contain;
}

.bpo-steps-art {
  aspect-ratio: 176 / 241;
}

.bpo-art .bpo-service-handwriting {
  position: absolute;
  top: 0;
  right: 0;
  width: 95%;
}

.bpo-art .bpo-service-cat {
  position: absolute;
  bottom: 9%;
  left: -14%;
  width: 116%;
}

.bpo-stairs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  background: #f9cddd;
  clip-path: polygon(0 90%, 20% 90%, 20% 65%, 40% 65%, 40% 35%, 60% 35%, 60% 0, 100% 0, 100% 100%, 0 100%);
}

.bpo-reasons {
  background: #fff7eb;
  margin-top: 100px;
  padding: 50px 12px 54px;
}

.bpo-reasons>h2 {
  text-align: center;
  font-size: clamp(23px, 3.2vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.3;
  gap: 4px;
}

.bpo-reasons>h2>span {
  color: var(--bpo-pink);
  font-size: 2.4em;
  line-height: 1;
}

.bpo-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.bpo-reason-grid article {
  min-height: 248px;
  padding: 0 16px 48px;
}

.bpo-reason-grid article+article {
  border-left: 3px solid var(--bpo-yellow);
}

.bpo-reason-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 1101px) {
  .bpo-reason-grid article:last-child h3 {
    gap: 0;
    font-size: clamp(22px, 2vw, 28px);
  }
}


.bpo-paw-number {
  position: relative;
  display: inline-block;
  flex: 0 0 96px;
  width: 96px;
  height: 100px;
}

.bpo-paw-number img {
  position: absolute;
  top: -10px;
  left: -8px;
  display: block;
  width: 112px;
  max-width: none;
  height: 112px;
  object-fit: contain;
}

.bpo-paw-number b {
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.bpo-reason-grid p {
  font-size: clamp(16px, 1.85vw, 24px);
  line-height: 1.4;
  margin-top: 22px;
}

.bpo-reason-grid .bpo-reason-text {
  text-wrap: wrap;
  text-align: justify;
  text-justify: inter-character;
  text-align-last: left;
}

.bpo-contact {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  align-items: center;
  gap: 24px;
  background: var(--bpo-blush);
  margin: 100px 6px 0;
  padding: 30px 24px;
}

.bpo-contact .bpo-cta-note {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  transform: rotate(-10deg);
}

.bpo-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 20px;
  border-radius: 100px;
  background: #ed0062;
  color: white;
  font-size: clamp(19px, 2.65vw, 34px);
  line-height: 1.4;
  37% white-space: nowrap;
}

.bpo-contact-button:hover {
  background: #c70052;
}

.bpo-contact-button:focus-visible {
  outline: 3px solid var(--bpo-navy);
  outline-offset: 6px;
}

.bpo-contact-button>span:last-child {
  font-size: 1.5em;
  line-height: 1;
  transform: translateY(-5px);
}

.bpo-mail {
  display: block;
  width: 42px;
  height: auto;
  flex-shrink: 0;
}

/* 黄色い線の画像：以前の ::after と同じ配置枠。 */
.bpo-art .bpo-cta-rays {
  position: absolute;
  top: 15%;
  left: 8%;
  width: 18%;
  height: 22%;
  object-fit: contain;
}

.bpo-contact-art {
  aspect-ratio: 219 / 212;
}

.bpo-art .bpo-cta-bubble {
  position: absolute;
  top: -4%;
  right: -3%;
  width: 64%;
}

.bpo-filter-defs {
  position: absolute;
  overflow: hidden;
}

/* The source cat has 20% alpha; restore solid black while retaining transparent surroundings. */
.bpo-art .bpo-cta-cat {
  position: absolute;
  bottom: 5%;
  left: 23%;
  width: 53%;
  filter: url(#bpo-solid-black);
}

@media (max-width: 1100px) {
  .bpo-services {
    gap: 18px;
    padding: 32px 24px 40px;
  }

  .bpo-service-menu {
    padding: 20px 16px;
  }

  .bpo-label {
    font-size: 19px;
    gap: 4px;
  }

  .bpo-label>span:last-child {
    padding: 0 14px;
  }

  .bpo-reason-grid article {
    padding: 0 12px 30px;
  }

  .bpo-reason-grid h3 {
    gap: 5px;
    font-size: 19px;
    white-space: normal;
  }

  .bpo-contact {
    gap: 16px;
    padding: 24px 16px;
  }

  .bpo-contact-button {
    padding: 24px 14px;
    gap: 10px;
    font-size: 22px;
  }

  .bpo-mail {
    width: 36px;
  }
}

@media (max-width: 768px) {
  .bpo-page {
    padding: 135px 20px 36px;
  }

  .bpo-hero {
    --bpo-mobile-title-size: clamp(27px, 6.4vw, 46px);
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
  }

  .bpo-hero-copy {
    order: 2;
    padding: 0;
  }

  .bpo-hero-half-circle,
  .bpo-hero-leaves {
    display: none;
  }

  .bpo-hero-pink-shape,
  .bpo-hero-note {
    display: none;
  }

  /* Crop only the displayed margins; keep the original PNG unchanged. */
  .bpo-hero-mobile-cat {
    display: block;
    position: absolute;
    top: -10px;
    right: 0;
    width: min(50%, calc(100% - var(--bpo-mobile-title-size) * 6.4));
    aspect-ratio: 1204 / 598;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
  }

  .bpo-hero-mobile-cat img {
    display: block;
    position: absolute;
    top: -29.264%;
    left: -28.904%;
    width: 147.342%;
    max-width: none;
    height: auto;
  }

  .bpo-hero h1 {
    font-size: var(--bpo-mobile-title-size);
  }

  .bpo-hero-lead {
    font-size: 20px;
  }

  .bpo-hero-pill {
    font-size: clamp(8px, calc(3.3vw - 1.8px), 13px);
    padding: 12px 8px;
    white-space: nowrap;
  }

  .bpo-hero-art {
    display: none;
  }

  .bpo-concerns {
    flex-direction: column;
    gap: 32px;
    padding: 64px 0;
  }

  .bpo-concern-pink-left {
    top: 7%;
    left: 0;
    width: 20%;
  }

  .bpo-concern-yellow-left {
    top: 38%;
    bottom: auto;
    left: 0;
    width: 18%;
  }

  .bpo-concern-pink-right {
    top: 9%;
    right: 0;
    width: 18%;
  }

  .bpo-concern-yellow-right {
    top: 38%;
    bottom: auto;
    right: 0;
    width: 22%;
  }

  .bpo-concerns h2 {
    width: 190px;
    max-width: 100%;
    transform: translateY(-15px);
  }

  .bpo-concerns h2 .bpo-concerns-desktop-image {
    display: none;
  }

  .bpo-concerns h2 .bpo-concerns-mobile-image {
    display: block;
    transform: rotate(10deg);
  }

  .bpo-concerns p {
    font-size: clamp(15px, 3.8vw, 21px);
  }

  .bpo-panel {
    border-radius: 22px;
  }

  .bpo-services {
    grid-template-columns: 1fr;
    padding: 20px 22px 32px;
    gap: 28px;
  }

  .bpo-label {
    font-size: 20px;
  }

  .bpo-service-copy h2 {
    font-size: clamp(20px, 5vw, 30px);
  }

  .bpo-service-copy>p:not(.bpo-label) {
    font-size: 15px;
  }

  .bpo-desktop-break {
    display: none;
  }

  .bpo-service-menu {
    padding: 22px;
  }

  .bpo-service-menu li {
    font-size: 14px;
    min-height: 28px;
  }

  .bpo-steps-art {
    width: 180px;
    justify-self: center;
  }

  .bpo-reasons {
    margin-top: 48px;
    padding: 32px 22px;
  }

  .bpo-reasons>h2 {
    font-size: clamp(17px, 4vw, 27px);
    gap: 2px;
  }

  .bpo-reason-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .bpo-reason-grid article {
    min-height: 0;
    padding: 24px 0;
  }

  .bpo-reason-grid article:first-child {
    padding-top: 8px;
  }

  .bpo-reason-grid article+article {
    border-left: 0;
    border-top: 2px solid var(--bpo-yellow);
  }

  .bpo-reason-grid h3 {
    font-size: clamp(16px, calc(3.125vw + 7px), 22px);
    gap: 8px;
  }

  .bpo-reason-title {
    white-space: nowrap;
    line-height: 1.35;
    transform: translateY(7px);
  }

  .bpo-paw-number {
    flex: 0 0 56px;
    width: 56px;
    height: 60px;
  }

  .bpo-paw-number img {
    top: -5px;
    left: -5px;
    width: 66px;
    height: 66px;
  }

  .bpo-paw-number b {
    font-size: 20px;
  }

  .bpo-reason-grid p {
    margin-top: 22px;
    font-size: 17px;
  }

  .bpo-contact {
    grid-template-columns: 1fr;
    margin: 48px 0 0;
    padding: 38px 20px 20px;
    gap: 26px;
  }

  .bpo-contact .bpo-cta-note {
    width: 80%;
    max-width: 240px;
    transform: none;
  }

  .bpo-contact-button {
    font-size: clamp(16px, 4.2vw, 24px);
    gap: 10px;
    padding: 22px 14px;
  }

  .bpo-contact-button>span:last-child {
    transform: translateY(0);
  }

  .bpo-contact-art {
    width: 210px;
    justify-self: center;
  }
}

/* Phones stack the concerns; tablets from 600px place them side by side. */
@media (min-width: 600px) and (max-width: 1024px) {
  .bpo-concerns {
    flex-direction: row;
    gap: 4%;
    padding: 80px 3%;
  }

  .bpo-concerns h2 {
    width: clamp(170px, 25vw, 230px);
    transform: none;
  }

  .bpo-concerns p {
    min-width: 0;
    font-size: clamp(16px, 2.2vw, 22px);
  }
}

/* SP: keep the paragraph between the four corner decorations. */
@media (max-width: 768px) {
  .bpo-concerns {
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: clamp(90px, calc(20vw + 16px), 170px) 0;
  }

  .bpo-concerns h2 {
    display: none;
  }

  .bpo-concerns p {
    width: 88%;
    max-width: 34em;
    font-size: clamp(15px, 3.8vw, 21px);
    text-align: center;
  }

  .bpo-concern-pink-left {
    top: 35px;
    left: 0;
  }

  .bpo-concern-pink-right {
    top: 35px;
    right: 0;
  }

  .bpo-concern-yellow-left {
    top: auto;
    bottom: 35px;
    left: 0;
  }

  .bpo-concern-yellow-right {
    top: auto;
    bottom: 35px;
    right: 0;
  }
}
/* Preserve room for the illustration on narrow phones. */
@media (max-width: 360px) {
  .bpo-hero {
    --bpo-mobile-title-size: clamp(24px, 7vw, 27px);
  }
}
