/* Root water LP: bee-LP-inspired controls, with separate transparent title art. */
/* Self-hosted Noto Sans JP Black; subset includes the header title only. */
@font-face {
  font-family: "Water Header Gothic";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("./fonts/noto-sans-jp-black-header-20260913.ttf") format("truetype");
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--water-header-height, 65px) + 12px); }
.water-header { position: sticky; top: 0; z-index: 90000; background: #fff; border-bottom: 1px solid #dbe8ee; }
.water-header__inner { max-width: 750px; margin: auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.water-header a { text-decoration: none; }
.water-header__label { display: flex; align-items: center; gap: 8px; min-width: 0; color: #123653; font-size: 17px; line-height: 1.3; font-weight: 900; }
.water-header__logo { display: block; flex: none; width: 44px; height: 44px; object-fit: contain; }
.water-header__copy { min-width: 0; }
.water-header__title { display: block; white-space: nowrap; font-family: "Water Header Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 18px; font-weight: 900; line-height: 1.3; letter-spacing: -.025em; }
.water-header__label small { display: block; font-size: 10px; margin-top: 4px; font-weight: 600; color: #607c8c; }
.water-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.water-header__tel { text-align: right; line-height: 1.3; color: #0769cb; }
.water-header__tel strong { display: flex; gap: 4px; align-items: center; font-size: 22px; font-weight: 900; white-space: nowrap; }
.water-header__tel small { display: block; font-size: 10px; color: #617080; }
.water-header__tel svg { width: 19px; height: 19px; fill: currentColor; }
.water-header__diagnosis { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 8px; background: linear-gradient(#168cf0,#0063c4); box-shadow: 0 3px 0 #00428a; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.hero { position: relative; isolation: isolate; }
.hero-heading { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.hero-word { display: block; position: absolute; height: auto; background: transparent; transform-origin: 48% 55%; }
.hero-word--trouble { width: 73%; left: 1.3%; top: 3%; }
.hero-word--emergency { width: 72%; left: 1.5%; top: 12.3%; }
.hero-services { position: absolute; top: 33.3%; left: 3.3%; width: 61.7%; height: 9.75%; display: grid; grid-template-columns: repeat(4,1fr); gap: 2%; }
.hero-hotspot { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 20%; background: transparent; cursor: pointer; touch-action: manipulation; }
.hero-hotspot:focus-visible { outline: 4px solid #ffcf00; outline-offset: 3px; }
.hero-hotspot:hover { box-shadow: inset 0 0 0 3px rgba(255,255,255,.8); }
@media (prefers-reduced-motion: no-preference) {
  .hero.is-title-entering .hero-word--trouble { animation: troubleFly .78s cubic-bezier(.2,.8,.24,1) both; }
  .hero.is-title-entering .hero-word--emergency { animation: emergencyPop .85s .18s cubic-bezier(.2,.8,.24,1) both; }
}
@keyframes troubleFly {
  0% { opacity: 0; transform: translate(-20%, -12%) scale(.4) rotate(-8deg); }
  55% { opacity: 1; transform: translate(1%,0) scale(1.09,.94) rotate(1deg); }
  75% { transform: scale(.96,1.04) rotate(-.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes emergencyPop {
  0% { opacity: 0; transform: translateY(12%) scale(.25) rotate(-9deg); }
  52% { opacity: 1; transform: translateY(-1%) scale(1.11,.94) rotate(1.5deg); }
  72% { transform: scale(.94,1.06) rotate(-1deg); }
  88% { transform: scale(1.025,.99); }
  100% { opacity: 1; transform: none; }
}
.consultation-actions { --frame-left: 4.82%; --frame-right: 3.99%; padding: 0 var(--frame-right) 20px var(--frame-left); background: #0642b1; }
.consultation-actions--hero { --frame-left: 1.97%; --frame-right: 3.42%; background: #0549bf; }
.consultation-actions__frame { display: grid; gap: 10px; padding: 12px 2% 18px; border-radius: 0 0 22px 22px; background: #fff; }
.consultation-image { position: relative; display: block; width: 100%; aspect-ratio: 2115 / 460; overflow: hidden; background: transparent; border: 0; border-radius: 999px; }
.consultation-image img { position: absolute; width: 100%; height: auto; left: 0; top: -34.782609%; }
.consultation-image:hover { filter: brightness(1.05); }
.consultation-image:focus-visible { outline: 3px solid #0046ac; outline-offset: 3px; }

/* Do not animate off-screen artwork or a page left in the background. */
.consultation-image.water-motion-paused::after,
.crew-banner.water-motion-paused .crew-ticker-track,
.crew-banner.water-motion-paused .crew-status i,
.water-page-hidden .consultation-image[href^="tel:"]::after,
.water-page-hidden .water-fixbar__phone::after,
.water-page-hidden .crew-ticker-track,
.water-page-hidden .crew-status i,
.water-page-hidden .water-fixbar__coupon,
.water-page-hidden .water-request__dot { animation-play-state: paused !important; }

/* Shared service-flow video, immediately above the three reasons. */
.water-flow-video { padding: 28px 4.8% 22px; background: linear-gradient(#0642b1, #edf8ff); text-align: center; }
.water-flow-video h2 { margin: 0 0 16px; color: #fff; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: clamp(18px, 4.6vw, 26px); line-height: 1.45; font-weight: 900; }
.water-flow-video__player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 2px solid #fff; border-radius: 12px; background: #06294e; box-shadow: 0 8px 20px rgba(0, 37, 94, .2); }
.water-flow-video__player:focus-visible { outline: 3px solid #ffdb00; outline-offset: 4px; }
.water-flow-video__caption { margin: 16px 0 7px; color: #073b70; font-size: clamp(12px, 3.1vw, 17px); line-height: 1.6; font-weight: 800; }
.water-flow-video__note { margin: 0; color: #456176; font-size: 11px; line-height: 1.7; }

/* A flowing highlight for the footer phone and five orange phone buttons only. */
.water-fixbar__phone, .consultation-image[href^="tel:"] { position: relative; isolation: isolate; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .water-fixbar__phone::after, .consultation-image[href^="tel:"]::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -80%;
    left: 0;
    width: 40%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 20%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.15) 80%, transparent);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-200%,0,0) skewX(-24deg);
    animation: waterPhoneShine 3.2s cubic-bezier(.25,.65,.45,1) infinite;
  }
  /* A white highlight keeps the flowing shine visible on the red phone button. */
  .water-fixbar__phone::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 25%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.15) 75%, transparent);
  }
}
@keyframes waterPhoneShine {
  0%,12% { opacity: 0; transform: translate3d(-200%,0,0) skewX(-24deg); }
  16% { opacity: 1; }
  42% { opacity: 1; transform: translate3d(360%,0,0) skewX(-24deg); }
  44%,100% { opacity: 0; transform: translate3d(360%,0,0) skewX(-24deg); }
}

.crew-banner { margin: 0; }
.crew-ticker { position: relative; width: 100%; overflow: hidden; background: #123653; border-top: 3px solid #1687e4; border-bottom: 3px solid #1687e4; color: #fff; }
.crew-ticker-track { display: flex; width: max-content; animation: crewTickerScroll 24s linear infinite; }
.crew-ticker:hover .crew-ticker-track { animation-play-state: paused; }
.crew-ticker-item { flex: none; display: flex; align-items: center; gap: 18px; min-width: max-content; padding: 12px 30px 12px 0; font-size: 20px; font-weight: 900; line-height: 1.2; }
.crew-status { display: flex; align-items: center; gap: 9px; background: #0876d7; color: #fff; border-radius: 0 12px 12px 0; padding: 12px 20px; font-size: 17px; }
.crew-status i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #6affbb; box-shadow: 0 0 0 4px #6affbb22; animation: waterLivePulse 1.7s ease-in-out infinite; }
.crew-ticker strong { white-space: nowrap; letter-spacing: .01em; }
.crew-ticker strong em { color: #77c9ff; font-style: normal; font-size: 1.16em; }
.crew-ticker small { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid #ffffff70; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.crew-banner__note { margin: 0; padding: 7px 10px; background: #eef7ff; color: #51697f; font-size: 10px; line-height: 1.5; text-align: center; }
@keyframes crewTickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.water-fixbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95000; background: rgba(255,255,255,.98); border-top: 1px solid #dce5ed; box-shadow: 0 -4px 16px #12365318; }
.water-fixbar__inner { position: relative; max-width: 750px; margin: auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 10px; }
.water-fixbar a { text-decoration: none; }
.water-fixbar__lead { position: relative; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px 4px; min-width: 0; margin: 0 0 3px; padding: 6px 7px; border: 2px solid #0861c9; border-radius: 4px; background: #fff; color: #0756b5; text-align: center; font-size: clamp(10px, 2.75vw, 13px); font-weight: 800; line-height: 1.45; }
.water-fixbar__lead[hidden] { display: none; }
.water-fixbar__lead::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; border-right: 2px solid #0861c9; border-bottom: 2px solid #0861c9; background: #fff; transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.water-availability__time { color: #dc1828; white-space: nowrap; }
.water-availability__message, .water-availability__staff { white-space: nowrap; }
.water-fixbar__line { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 54px; padding: 8px 6px; border: 2px solid #087f35; border-radius: 10px; background: #087f35; color: #fff; font-size: clamp(14px, 4vw, 18px); font-weight: 900; line-height: 1.4; white-space: nowrap; }
.water-fixbar__line:hover { background: #06672b; border-color: #06672b; }
.water-fixbar__phone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; min-width: 0; border: 2px solid #d91f2f; border-radius: 10px; color: #fff; background: #d91f2f; padding: 6px; }
.water-fixbar__phone:hover { background: #b71725; border-color: #b71725; }
.water-fixbar__microcopy { display: block; margin: 0 0 2px; color: #fff; font-size: clamp(10px, 2.65vw, 13px); font-weight: 800; line-height: 1.4; white-space: nowrap; }
.water-fixbar__phone strong { display: flex; align-items: center; gap: 4px; font-size: clamp(20px, 5.8vw, 26px); font-weight: 900; line-height: 1.25; white-space: nowrap; }
.water-fixbar__phone svg { width: 1em; height: 1em; flex: none; fill: currentColor; }
.water-fixbar__extras { position: absolute; bottom: calc(100% + 8px); left: 16px; right: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; pointer-events: none; }
.water-fixbar__coupon { justify-self: end; display: grid; align-content: center; text-align: center; position: relative; width: 132px; min-height: 44px; border: 2px solid #c5eaff; border-radius: 8px; background: linear-gradient(135deg,#168de9,#004fbd); color: #fff; box-shadow: 0 5px 14px #003c772e; transform-origin: 80% 100%; animation: waterCouponWiggle 4.2s ease-in-out infinite; pointer-events: auto; }
.water-fixbar__coupon::before, .water-fixbar__coupon::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.water-fixbar__coupon::before { left: -6px; } .water-fixbar__coupon::after { right: -6px; }
.water-fixbar__coupon small { display: block; font-size: 10px; font-weight: 700; line-height: 1; }
.water-fixbar__coupon strong { display: block; font-size: 19px; font-weight: 900; line-height: 1.4; }
.water-request { position: relative; box-sizing: border-box; width: fit-content; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #d8e5ee; border-radius: 9px; background: rgba(255,255,255,.98); color: #29485e; box-shadow: 0 5px 16px #12365326; font-size: 11px; font-weight: 800; line-height: 1.4; transition: opacity .24s,transform .24s; pointer-events: auto; }
.water-request[hidden] { display: none; }
.water-request.is-updating { opacity: 0; transform: translateY(6px); }
.water-request__dot { width: 8px; height: 8px; border-radius: 50%; background: #21b36c; box-shadow: 0 0 0 4px #21b36c24; animation: waterLivePulse 1.8s ease-in-out infinite; flex: none; }
.water-request__copy { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.water-request__copy > small { display: block; flex: none; white-space: nowrap; color: #607e94; font-size: 10px; }
.water-request time { color: #0674cf; }
.water-request__copy strong { display: block; max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.water-fixbar-spacer { height: calc(var(--water-fixed-height, 90px) + var(--water-extras-height, 80px) + 12px); background: #003f9e; max-width: 750px; margin: auto; }
.water-header a:focus-visible, .water-fixbar a:focus-visible { outline: 3px solid #ffb600; outline-offset: 3px; }
#mizuDiagnosis { scroll-margin-top: 0; }
@keyframes waterCouponWiggle { 0%,82%,100% { transform: rotate(0) scale(1); } 86% { transform: rotate(-3deg) scale(1.04); } 90% { transform: rotate(3deg) scale(1.04); } 94% { transform: rotate(-2deg) scale(1.02); } }
@keyframes waterLivePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }
@media (max-width: 640px) {
  .water-header__inner { padding: 6px 8px; gap: 6px; flex-wrap: nowrap; }
  .water-header__label { width: auto; flex: 1 1 auto; gap: 4px; }
  .water-header__logo { width: clamp(24px, 7.2vw, 36px); height: clamp(24px, 7.2vw, 36px); }
  .water-header__title { font-size: clamp(10.5px, 3.15vw, 16px); }
  .water-header__label small { display: none; }
  .water-header__actions { width: auto; min-width: 0; gap: 0; }
  .water-header__tel { display: block; }
  .water-header__tel strong { justify-content: flex-end; gap: 3px; font-size: clamp(13px, 4.1vw, 20px); }
  .water-header__tel svg { width: clamp(10px, 3vw, 16px); height: clamp(10px, 3vw, 16px); }
  .water-header__tel small { display: block; font-size: clamp(7px, 1.95vw, 10px); white-space: nowrap; }
  .water-header__diagnosis { display: none; }
  .crew-ticker-item { gap: 12px; padding-right: 22px; font-size: 16px; }
  .crew-status { gap: 7px; padding: 10px 14px; font-size: 14px; border-radius: 0 10px 10px 0; }
  .crew-status i { width: 9px; height: 9px; }
  .crew-ticker small { font-size: 10px; padding: 5px 9px; }
  .water-fixbar__inner { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 7px; }
  .water-fixbar__extras { left: 9px; right: 9px; gap: 8px; }
  .water-fixbar__coupon { width: 110px; min-height: 42px; }
  .water-fixbar__coupon strong { font-size: 17px; }
  .water-request { padding: 7px 9px; gap: 7px; }
  .water-request__copy strong { font-size: 11px; }
}
@media (max-width: 400px) {
  .water-fixbar__coupon { width: 96px; }
}
@media (max-width: 360px) {
  .water-fixbar__coupon { width: 84px; }
  .water-request { padding: 7px; gap: 5px; }
  .water-request__dot { width: 6px; height: 6px; }
  .water-request__copy { column-gap: 4px; }
  .water-request__copy > small { font-size: 9px; }
  .water-request__copy strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .water-fixbar__phone::after, .consultation-image[href^="tel:"]::after { content: none; animation: none; }
  html { scroll-behavior: auto; }
  .hero-word, .water-fixbar__coupon, .water-request__dot, .crew-status i { animation: none !important; }
  .water-request { transition: none; }
  .crew-ticker-track { animation: none; width: 100%; display: block; }
  .crew-ticker-item { min-width: 0; flex-wrap: wrap; padding: 10px 12px 10px 0; gap: 8px; }
  .crew-ticker-item[aria-hidden] { display: none; }
}
