/* Reviewed banners, scoped classes; existing site typography and layout stay separate. */
.ph-notice-shell, .ph-guarantee-shell { font-size:16px; line-height:normal; letter-spacing:normal; }
.ph-notice-shell *, .ph-guarantee-shell * { box-sizing:border-box; }
.ph-banner-link { text-decoration:none; }
.ph-banner-link:focus-visible { outline:3px solid #6f5f9d; outline-offset:5px; }
.ph-notice-shell { position:relative; z-index:1; margin-block:24px; }
.ph-guarantee-slot { padding:24px 12px; }
.ph-notice-shell { width: min(660px, calc(100% - 24px)); margin-inline: auto; }
.ph-notice-banner { display: block; }
.ph-notice-vector { display: block; width: 100%; height: auto; }

.ph-guarantee-shell { container-type: inline-size; width: min(840px, 100%); margin-inline: auto; }
.ph-guarantee-banner { display: grid; grid-template-columns: 39.3% minmax(0, 1fr); width: 100%; min-height: 150px; border: 1px solid #c8b8d6; border-radius: 8px; overflow: hidden; background: #fcf8ef; color: #483e39; }
.ph-guarantee-photo { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; object-position: center; }
.ph-guarantee-copy { display: grid; grid-template-columns: minmax(0, max-content); align-content: center; justify-content: center; min-width: 0; padding: 22px; font-family: "Shin Retro Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; font-weight: 500; font-synthesis: none; }
.ph-guarantee-label { grid-column: 1 / -1; display: block; font-size: 24px; line-height: 1.4; margin-bottom: 10px; color: #45354d; }
.ph-guarantee-headline { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 500; line-height: 1.3; }
.ph-guarantee-condition { font-size: 26px; white-space: nowrap; }
.ph-guarantee-last { display: inline-flex; align-items: center; gap: 18px; }
.ph-guarantee-duration { font-size: 40px; color: #76569e; white-space: nowrap; }
.ph-guarantee-arrow { grid-column: 2; grid-row: 2; display: block; flex: 0 0 auto; width: 44px; height: 44px; position: relative; justify-self: center; align-self: center; margin-bottom: 0; color: #76569e; }
.ph-guarantee-arrow::before { content: ""; position: absolute; top: 20px; left: 0; width: 39px; height: 4px; background: currentColor; border-radius: 2px; }
.ph-guarantee-arrow::after { content: ""; position: absolute; width: 23px; height: 23px; top: 10px; right: 3px; border-top: 4px solid; border-right: 4px solid; border-radius: 1px; transform: rotate(45deg); }
@container (max-width: 760px) {
  .ph-guarantee-banner { grid-template-columns: 34% minmax(0, 1fr); }
  .ph-guarantee-copy { padding: 20px; column-gap: 14px; }
  .ph-guarantee-label { font-size: 23px; }
  .ph-guarantee-condition { font-size: 24px; }
  .ph-guarantee-duration { font-size: 36px; }
}
@container (max-width: 620px) {
  .ph-guarantee-banner { grid-template-columns: 40% minmax(0, 1fr); }
  .ph-guarantee-headline { flex-direction: column; gap: 2px; }
  .ph-guarantee-label { font-size: 21px; }
  .ph-guarantee-copy { padding: 18px; }
}
@container (max-width: 520px) {
  .ph-guarantee-banner { grid-template-columns: minmax(0, 1fr); }
  .ph-guarantee-photo { height: auto; min-height: 0; aspect-ratio: 700 / 318; object-fit: contain; }
  .ph-guarantee-last { gap: 12px; }
  .ph-guarantee-copy { padding: 18px; column-gap: 12px; justify-content: start; }
  .ph-guarantee-label { font-size: 23px; margin-bottom: 8px; }
  .ph-guarantee-headline { flex-direction: row; gap: 2px 8px; }
  .ph-guarantee-condition { font-size: 21px; }
  .ph-guarantee-duration { font-size: 34px; }
  .ph-guarantee-arrow { width: 36px; height: 36px; }
  .ph-guarantee-arrow::before { top: 16px; width: 32px; }
  .ph-guarantee-arrow::after { width: 19px; height: 19px; top: 8px; right: 3px; }
}
@container (max-width: 350px) {
  .ph-guarantee-copy { padding: 16px; }
  .ph-guarantee-label { font-size: 22px; }
  .ph-guarantee-headline { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .ph-banner-link { transition: box-shadow .15s ease; }
  .ph-banner-link:hover { box-shadow: 0 2px 8px #34223b22; }
}

/* Keep the reviewed card and photo dimensions; use internal space for larger type. */
.ph-guarantee-banner { height: 152px; }
.ph-guarantee-copy { padding: 14px; }
.ph-guarantee-label { font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.ph-guarantee-headline { line-height: 1.2; gap: 0 6px; }
.ph-guarantee-condition { font-size: 30px; }
.ph-guarantee-duration { font-size: 46px; }
.ph-guarantee-last { gap: 12px; }
@container (max-width: 760px) {
  .ph-guarantee-copy { padding: 16px; }
  .ph-guarantee-label { font-size: 26px; }
  .ph-guarantee-condition { font-size: clamp(24px, 3.8cqi, 28px); }
  .ph-guarantee-duration { font-size: clamp(38px, 5.7cqi, 42px); }
}
@container (max-width: 620px) {
  .ph-guarantee-banner { height: 157.375px; }
  .ph-guarantee-copy { padding: 14px; }
  .ph-guarantee-label { font-size: 24px; }
  .ph-guarantee-condition { font-size: 26px; }
  .ph-guarantee-duration { font-size: 40px; }
}
@container (max-width: 520px) {
  .ph-guarantee-banner { height: auto; }
  .ph-guarantee-copy { height: 120.375px; padding: 12px; align-content: center; }
  .ph-guarantee-label { font-size: 26px; }
  .ph-guarantee-condition { font-size: 23px; }
  .ph-guarantee-duration { font-size: 38px; }
  .ph-guarantee-headline { gap: 0 4px; }
  .ph-guarantee-last { gap: 8px; }
}
@container (max-width: 365px) {
  .ph-guarantee-label { font-size: 25px; }
  .ph-guarantee-condition { font-size: 22px; }
  .ph-guarantee-duration { font-size: 36px; }
}
@container (350px < width < 357px) {
  .ph-guarantee-copy { height: 149.671875px; }
}
@container (max-width: 350px) {
  .ph-guarantee-copy { height: 144.28125px; }
}

/* Center the copy and enlarge only the scheme name. */
.ph-guarantee-copy { grid-template-columns: minmax(0, 1fr); justify-content: center; text-align: center; }
.ph-guarantee-label { font-size: 32px; }
.ph-guarantee-headline { justify-content: center; }
@container (max-width: 760px) {
  .ph-guarantee-label { font-size: 30px; }
}
@container (max-width: 620px) {
  .ph-guarantee-label { font-size: 28px; }
  .ph-guarantee-headline { align-items: center; }
}
@container (max-width: 520px) {
  .ph-guarantee-label { font-size: clamp(27px, 8.2cqi, 30px); }
  .ph-guarantee-headline { align-items: baseline; }
}
@container (max-width: 350px) {
  .ph-guarantee-headline { align-items: center; }
}

/* Keep the reordered anchor destinations below the measured desktop navigation. */
@media (min-width: 1025px) {
  .page-plan :is(#hall-small, #hall-medium, #hall-living, #hall-large, #plan_x-0, #summary, #price-scope) { scroll-margin-top: 268px; }
}

/* The notice occupies the white band between the hero buttons and about section. */
.page-index .ph-notice-section { background: #fff; padding-block: 28px; }
.page-index .ph-notice-section .ph-notice-shell { margin-block: 0; }
.page-index .ph-notice-section + .ph-about { margin-top: 0; }
@media (max-width: 640px) {
  .page-index .ph-notice-section { padding-block: 20px; }
}
