/*
 * Heart Pia Group - website renewal notice page
 * v2.1 viewport-height responsive preview (2026-11-09)
 * No external network, fonts, frameworks or JavaScript.
 * Collage photos are AI-generated placeholder materials: NOT verified facility imagery.
 */
:root {
  color-scheme: light;
  --paper: #fffaf7;
  --ink: #34312f;
  --copy: #45403e;
  --red: #db4c49;
  --peach: #e6aa98;
  --content-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-width: 280px;
  margin: 0;
  color: var(--copy);
  background:
    radial-gradient(ellipse 40% 34% at 50% 26%, #fffefd 0, transparent 100%),
    radial-gradient(ellipse 44% 42% at -4% 73%, #fff0e8 0, transparent 100%),
    radial-gradient(ellipse 42% 34% at 104% 48%, #f9f1eb 0, transparent 100%),
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.95;
  overflow-x: clip;
  overflow-wrap: break-word;
}
body::before, body::after {
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 240px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 16px 28px at 25% 32%, rgba(137,176,69,.36), transparent 85%),
    radial-gradient(ellipse 26px 20px at 51% 23%, rgba(141,188,70,.33), transparent 85%),
    radial-gradient(ellipse 23px 30px at 43% 63%, rgba(128,172,64,.28), transparent 85%),
    radial-gradient(ellipse 19px 22px at 75% 50%, rgba(179,198,84,.29), transparent 85%);
  filter: blur(10px);
  content: "";
}
body::before { top: -80px; left: -65px; transform: rotate(20deg); }
body::after { right: -55px; bottom: -60px; transform: rotate(-36deg); }
.l-page { min-height: 100vh; min-height: 100svh; }
.l-main { width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; padding: 0 0 70px; }

/* REGION: HERO｜ロゴ・写真の舞台 */
.p-hero { position: relative; height: 574px; isolation: isolate; }
.p-hero__tagline {
  position: absolute; z-index: 3;
  top: 32px; left: 50%;
  width: max-content; max-width: 58%;
  margin: 0;
  transform: translateX(-50%);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  font-size: clamp(24px, 2.45vw, 32px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .1em;
  text-align: center;
  color: var(--ink);
}
.p-hero__tagline span { color: var(--red); }
.p-hero__brand {
  position: absolute; z-index: 3;
  top: 166px; left: 50%;
  width: 310px;
  transform: translateX(-50%);
  text-align: center;
}
.p-hero__logo { display: block; width: 100%; height: auto; }
.p-hero__wave {
  display: block;
  width: 82%; height: 22px;
  margin: 13px auto 0;
  border-bottom: 3px solid rgba(236,164,144,.4);
  border-radius: 0 0 50% 50%;
  transform: rotate(-1.5deg);
}
.p-hero__collage { position: absolute; inset: 0; pointer-events: none; }
.p-photo {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  object-fit: cover;
  max-width: none;
  border-radius: 8px;
  box-shadow: 0 9px 22px rgba(110,86,70,.10);
  animation: photo-float var(--motion, 12s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.p-photo--entry { top: 96px; left: 2.5%; width: 160px; height: 185px; --motion: 12s; --delay: -3s; }
.p-photo--green { top: 102px; left: 26%; width: 85px; height: 68px; --motion: 14s; --delay: -8s; filter: saturate(.9); }
.p-photo--tower { top: 49px; right: 13.5%; width: 189px; height: 137px; --motion: 15s; --delay: -4s; }
.p-photo--hands { top: 147px; right: .2%; width: 129px; height: 94px; --motion: 11s; --delay: -5s; }
.p-photo--cosmos { top: 290px; left: 21%; width: 137px; height: 104px; --motion: 13s; --delay: -3s; }
.p-photo--hydrangea { top: 280px; right: 19.5%; width: 114px; height: 89px; --motion: 13s; --delay: -9s; }
.p-photo--courtyard { top: 301px; right: 1%; width: 158px; height: 179px; --motion: 15s; --delay: -7s; }
.p-photo--sky { top: 407px; left: .5%; width: 125px; height: 98px; --motion: 13s; --delay: -9s; }
.p-photo--care { top: 422px; left: 17%; width: 138px; height: 112px; --motion: 14s; --delay: -5s; }
.p-photo--lowrise { top: 415px; right: 18.5%; width: 145px; height: 103px; --motion: 16s; --delay: -11s; }
.p-photo--yellow { top: 504px; right: 2.5%; width: 99px; height: 70px; --motion: 12s; --delay: -7s; }
@keyframes photo-float {
  from { transform: translate3d(0, 2px, 0); }
  to { transform: translate3d(0, -6px, 0); }
}
/* /REGION: HERO｜ロゴ・写真の舞台 */

/* REGION: NOTICE｜リニューアル本文 */
.p-notice { max-width: 1090px; margin: 3px auto 0; text-align: center; }
.p-notice__title {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  color: var(--ink);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .035em;
}
.p-notice__mobile-break { display: none; }
.p-notice__en {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 7px 0 28px;
  color: #c98b76;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px; font-style: italic;
  line-height: 1.55;
}
.p-notice__en::before, .p-notice__en::after { display:block; width: clamp(60px, 10vw, 170px); height: 1px; background: rgba(217,151,129,.55); content: ""; }
.p-notice__body { max-width: 1030px; margin-inline: auto; }
.p-notice__body p { margin: 0 0 12px; }
.p-notice__body p:last-child { margin-bottom: 0; }
.p-notice__link-wrap { margin: 28px 0 0; }
.p-notice__link {
  display: inline-flex;
  min-width: min(100%, 340px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 46px 12px 30px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 8px 20px rgba(173, 72, 67, .18);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  position: relative;
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.p-notice__link::after {
  position: absolute;
  right: 24px;
  content: "\2192";
  font-size: 20px;
  line-height: 1;
}
.p-notice__link:hover {
  color: var(--red);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(173, 72, 67, .14);
}
.p-notice__link:focus-visible { outline: 3px solid rgba(219, 76, 73, .3); outline-offset: 4px; }
.p-notice__signature {
  display:flex; align-items:center; justify-content:center; gap: 26px;
  margin: 36px auto 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  font-size: 23px; font-weight: 600; letter-spacing: .045em; color: var(--ink);
}
.p-notice__signature::before { display:block; width: min(100%, 466px); height: 1px; background: rgba(217,151,129,.55); content: ""; }
/* /REGION: NOTICE｜リニューアル本文 */

/* Tablet */
@media (max-width: 1100px) and (min-width: 701px) {
  .p-photo--green, .p-photo--hands, .p-photo--yellow { display:none; }
  .p-photo--entry { left: 0; width: 14%; height: 160px; }
  .p-photo--tower { right: 2%; width: 16%; height: 125px; }
  .p-photo--cosmos { left: 10%; width: 13%; height: 98px; }
  .p-photo--hydrangea { right: 10%; width: 12%; height: 89px; }
  .p-photo--sky { left: 1%; width: 12%; }
  .p-photo--care { left: 15%; width: 14%; }
  .p-photo--lowrise { right: 17%; width: 14%; }
  .p-photo--courtyard { right: 0; width: 13%; height: 150px; }
  .p-hero__brand { top: 190px; width: clamp(230px, 30vw, 300px); }
  .p-hero { height: 540px; }
}

/* Smartphone */
@media (max-width: 700px) {
  body { font-size: 17px; line-height: 1.95; }
  .l-main { width: min(calc(100% - 28px), 430px); padding-bottom: 48px; }
  body::before { top: -110px; left: -112px; }
  body::after { right: -110px; bottom: -120px; }
  .p-hero { height: 505px; }
  .p-hero__tagline { top: 32px; max-width: 100%; font-size: clamp(24px, 6vw, 30px); letter-spacing: .04em; line-height: 1.55; }
  .p-hero__brand { top: 169px; width: clamp(155px, 49vw, 196px); }
  .p-hero__wave { width: 95%; height: 12px; margin-top: 8px; border-bottom-width: 2px; }
  .p-photo { border-radius: 7px; box-shadow: 0 6px 15px rgba(110,86,70,.11); }
  .p-photo--entry { top: 158px; left: 0; width: 22%; height: 94px; }
  .p-photo--hands { top: 164px; right: 0; width: 22%; height: 75px; }
  .p-photo--cosmos { top: 289px; left: 1%; width: 21%; height: 70px; }
  .p-photo--hydrangea { top: 289px; right: 1%; width: 21%; height: 70px; }
  .p-photo--sky { top: 396px; left: 3%; width: 25%; height: 77px; }
  .p-photo--care { top: 396px; left: 50%; width: 27%; height: 77px; margin-left: -13.5%; }
  .p-photo--courtyard { top: 396px; right: 3%; width: 25%; height: 77px; }
  .p-photo--green, .p-photo--tower, .p-photo--lowrise, .p-photo--yellow { display: none; }
  .p-notice { margin-top: 0; }
  .p-notice__title { font-size: clamp(25px, 6.4vw, 30px); line-height: 1.55; letter-spacing: .005em; }
  .p-notice__mobile-break { display: inline; }
  .p-notice__en { margin: 8px 0 23px; gap: 10px; font-size: 20px; }
  .p-notice__en::before, .p-notice__en::after { width: clamp(38px, 14vw, 78px); }
  .p-notice__body { max-width: 360px; padding-inline: 2px; text-align: left; }
  .p-notice__body p { margin: 0 0 17px; }
  .p-notice__link-wrap { margin-top: 25px; }
  .p-notice__link { min-width: 100%; min-height: 56px; padding-inline: 24px 42px; }
  .p-notice__signature { margin-top: 29px; gap: 10px; font-size: 18px; letter-spacing: .015em; white-space: nowrap; }
  .p-notice__signature::before { width: 78px; }
}

@media (max-width: 340px) {
  .l-main { width: min(calc(100% - 22px), 430px); }
  .p-hero { height: 482px; }
  .p-hero__brand { top: 170px; }
  .p-photo--sky, .p-photo--care, .p-photo--courtyard { top: 382px; height: 70px; }
  .p-notice__title { font-size: 24px; }
  .p-notice__signature { font-size: 16px; }
}

/* Accessibility: disable floating images if the OS requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .p-photo { animation: none; will-change: auto; }
}


/*
 * Short desktop/tablet viewports: fit the entire announcement where possible.
 * Never hide overflow-y: if text is enlarged or the window is too short,
 * allow vertical scrolling rather than clipping important content.
 */
@media (min-width: 701px) and (max-height: 900px) {
  .l-page { min-height: 100vh; min-height: 100svh; }
  .l-main {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .p-hero {
    flex: none;
    height: clamp(348px, calc(100svh - 325px), 540px);
  }
  .p-hero__tagline {
    top: 8px;
    font-size: clamp(20px, 3.5vh, 28px);
    line-height: 1.52;
  }
  .p-hero__brand {
    top: 27%;
    width: clamp(194px, 29vh, 262px);
  }
  .p-hero__wave {
    height: 14px;
    margin-top: 5px;
    border-bottom-width: 2px;
  }
  .p-photo--entry { top: 16%; width: min(140px, 17.4vh); height: min(159px, 20vh); }
  .p-photo--green { top: 17%; width: min(72px, 9vh); height: min(60px, 7.5vh); }
  .p-photo--tower { top: 7%; width: min(163px, 20.5vh); height: min(119px, 15vh); }
  .p-photo--hands { top: 25%; width: min(108px, 13.7vh); height: min(82px, 10.5vh); }
  .p-photo--cosmos { top: 49%; width: min(118px, 15vh); height: min(91px, 11.6vh); }
  .p-photo--hydrangea { top: 49%; width: min(99px, 12.6vh); height: min(77px, 10vh); }
  .p-photo--courtyard { top: 49%; width: min(126px, 16.5vh); height: min(143px, 18.5vh); }
  .p-photo--sky { top: 74%; width: min(104px, 13.5vh); height: min(83px, 10.8vh); }
  .p-photo--care { top: 76%; width: min(113px, 14.6vh); height: min(91px, 11.8vh); }
  .p-photo--lowrise { top: 75%; width: min(119px, 15.3vh); height: min(85px, 11vh); }
  .p-photo--yellow { top: 79%; width: min(82px, 10.5vh); height: min(60px, 7.8vh); }
  .p-notice { margin-top: 0; }
  .p-notice__title {
    font-size: clamp(27px, 3.6vh, 34px);
    line-height: 1.4;
  }
  .p-notice__en {
    font-size: 20px;
    line-height: 1.4;
    margin: 3px 0 12px;
  }
  .p-notice__body {
    font-size: 16px;
    line-height: 1.68;
  }
  .p-notice__body p { margin-bottom: 7px; }
  .p-notice__link-wrap { margin-top: 14px; }
  .p-notice__link { min-height: 48px; padding-block: 8px; }
  .p-notice__signature {
    margin-top: 16px;
    font-size: 21px;
    line-height: 1.55;
  }
}

/* Keep a readable paragraph width and prevent narrow-tablet collage overlap. */
@media (min-width: 701px) and (max-width: 1100px) and (max-height: 900px) {
  .p-hero__brand { top: 29%; width: clamp(190px, 25vh, 235px); }
  .p-photo--entry { left: 0; }
  .p-photo--tower { right: 2%; }
  .p-photo--cosmos { left: 10%; }
  .p-photo--hydrangea { right: 10%; }
  .p-photo--courtyard { right: 0; }
  .p-photo--sky { left: 1%; }
  .p-photo--care { left: 15%; }
  .p-photo--lowrise { right: 17%; }
  .p-notice__body { font-size: 15px; line-height: 1.62; }
  .p-notice__body p { margin-bottom: 5px; }
  .p-notice__signature { margin-top: 12px; }
}

/* On exceptionally short landscapes, preserve readability and allow scrolling. */
@media (min-width: 701px) and (max-height: 670px) {
  .l-main { justify-content: flex-start; }
}
