/* 2026-11-11 pale blue gradient design (body.is-grad). Tried on the TOP first, then () on every page:
   head.html links this file and build.ps1 adds is-grad to every body.
   The whole page sits on a soft fixed blue gradient; each section becomes a frosted white panel floating on it. */
.is-grad { --g-panel: rgba(255, 255, 255, .7); --g-card: rgba(234, 245, 250, .78); --g-gap: clamp(20px, 3vw, 44px); background: #f2f8fc; }
.is-grad::before {
  content: ""; position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 8% 16%, rgba(132, 196, 242, .8), rgba(132, 196, 242, 0) 70%),
    radial-gradient(34vmax 28vmax at 92% 22%, rgba(160, 226, 238, .85), rgba(160, 226, 238, 0) 70%),
    radial-gradient(42vmax 34vmax at 76% 80%, rgba(150, 184, 246, .65), rgba(150, 184, 246, 0) 70%),
    radial-gradient(36vmax 30vmax at 14% 86%, rgba(178, 228, 250, .85), rgba(178, 228, 250, 0) 70%),
    radial-gradient(30vmax 24vmax at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e9f4fc 0%, #f5fbff 55%, #e7f1fb 100%);
  filter: blur(24px);
}
@supports not (filter: blur(1px)) { .is-grad::before { filter: none; } }

/* header: frosted */
.is-grad .hd__in { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }

/* MV: photos stay full width; the lower edge melts into the gradient */
.is-grad .mv { background: transparent; -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0) 100%); }

/* sections: no own colour planes, no hills; the .wrap becomes the panel */
.is-grad .sec, .is-grad .concept, .is-grad .sec--tint, .is-grad .sec--warm { background: transparent; }
.is-grad .hill { display: none; }
.is-grad .concept { padding-block: clamp(36px, 5vw, 72px) var(--g-gap); }
.is-grad .sec { padding-block: var(--g-gap); }
.is-grad .sec + .sec--flush { padding-top: var(--g-gap); }
.is-grad #main > .concept > .wrap, .is-grad #main > .sec > .wrap {
  background: var(--g-panel); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  border-radius: clamp(28px, 3.4vw, 52px); padding: clamp(44px, 6vw, 96px) clamp(20px, 5vw, 88px);
  width: min(calc(100% - var(--gutter) * 2), calc(var(--wrap) + clamp(40px, 10vw, 176px)));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .75), 0 40px 80px -60px rgba(2, 74, 124, .35);
}
.is-grad .belt { padding-block: var(--g-gap); }

/* sub pages: the page head becomes a panel too (photo with all corners round), articles are panels */
.is-grad .pgh { background: transparent; padding-bottom: 0; }
.is-grad #main > .pgh > .wrap, .is-grad #main > article.sec {
  background: var(--g-panel); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  border-radius: clamp(28px, 3.4vw, 52px);
  width: min(calc(100% - var(--gutter) * 2), calc(var(--wrap) + clamp(40px, 10vw, 176px)));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .75), 0 40px 80px -60px rgba(2, 74, 124, .35);
}
.is-grad #main > .pgh > .wrap { padding: clamp(24px, 3.4vw, 48px) clamp(20px, 4vw, 56px); align-items: center; }
.is-grad .pgh__txt { padding-bottom: 0; }
.is-grad .pgh__art { border-radius: var(--r-l); }
.is-grad #main > article.sec { padding: clamp(40px, 5vw, 80px) clamp(20px, 5vw, 88px); margin-block: var(--g-gap); }
.is-grad #main > .pgh + .sec { padding-top: var(--g-gap); }

/* cards inside the white panels: a pale blue plane so they do not disappear */
.is-grad .svc__r, .is-grad .gate__c, .is-grad .vo__c, .is-grad .stf__c, .is-grad .num, .is-grad .creed { background: var(--g-card); }
/* the pale cards get a soft blue shadow so they stand off the white panel */
.is-grad .svc__r, .is-grad .gate__c, .is-grad .vo__c, .is-grad .stf__c, .is-grad .num, .is-grad .creed { box-shadow: 0 18px 36px -20px rgba(2, 74, 124, .38), 0 3px 10px -4px rgba(2, 74, 124, .14); }
.is-grad .hon__art { background: transparent; }

/* headings: the big English line in a calm blue gradient */
.is-grad .sh__en { background: linear-gradient(100deg, #0268AC 0%, #2a8fd0 45%, #6cc3e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons: blue gradient pill, white arrow circle (the white button on blue bands, .btn--w, stays white) */
.is-grad .btn:not(.btn--w), .is-grad .hd__btn { background: linear-gradient(100deg, #0a6fb5 0%, #2794d6 100%); }
.is-grad .btn:not(.btn--w):hover, .is-grad .hd__btn:hover { background: linear-gradient(100deg, #025a96 0%, #1a83c4 100%); }

/* contact band: a deep blue gradient panel instead of a full-width bar */
.is-grad .cta { background: transparent; padding-block: var(--g-gap) calc(var(--g-gap) * 2); }
.is-grad .cta > .wrap { background: linear-gradient(120deg, #014A7C 0%, #0268AC 48%, #3aa6dc 100%); border-radius: clamp(28px, 3.4vw, 52px); padding: clamp(44px, 6vw, 88px) clamp(20px, 5vw, 88px); width: min(calc(100% - var(--gutter) * 2), calc(var(--wrap) + clamp(40px, 10vw, 176px))); }
.is-grad .ft { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

@media (max-width: 640px) {
  .is-grad #main > .concept > .wrap, .is-grad #main > .sec > .wrap, .is-grad .cta > .wrap, .is-grad #main > .pgh > .wrap, .is-grad #main > article.sec { width: calc(100% - 20px); padding-inline: 18px; border-radius: 28px; }
}

/* ---------- MV: the photos across the width, the lower edge one big soft arc (; the heart is kept in _mv-heart.css) ---------- */
.is-grad .mv { --fh: min(100%, 64vw); height: max(620px, calc(100svh + 40px)); min-height: 0; padding: 0; background: transparent; -webkit-mask-image: none; mask-image: none; overflow: hidden; }
.is-grad .mv::after { display: none; }
.is-grad .mv__frame { position: absolute; inset: 0 0 auto 0; height: var(--fh); } /* narrower screens keep the photo a little wider than tall, so the people stay right of the catch */
.is-grad .mv__slides { position: absolute; inset: 0; -webkit-mask: radial-gradient(ellipse 66% 100% at 50% 0, #000 99.4%, transparent 100%); mask: radial-gradient(ellipse 66% 100% at 50% 0, #000 99.4%, transparent 100%); }
.is-grad .mv__slide img { object-position: right 38%; }
/* the catch: lower left, across the arc's edge, one blue plate per line (DESIGN_RULES 3) */
.is-grad .mv__box { position: absolute; z-index: 2; left: clamp(20px, 5vw, 96px); right: auto; bottom: auto; top: min(calc(var(--fh) + 24px), calc(100svh - 32px)); transform: translateY(-100%); /* always inside the first screen */ display: block; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: none; }
.is-grad .mv__catch { font-size: clamp(34px, 4.2vw, 72px); line-height: 1.38; letter-spacing: .06em; color: #fff; font-feature-settings: "palt"; }
.is-grad .mv__catch .ln { display: block; width: fit-content; white-space: nowrap; padding: .1em .45em .14em; background: var(--head); }
.is-grad .mv__catch .ln + .ln { margin-top: .18em; }
@media (max-width: 760px) {
  .is-grad .mv { --fh: max(380px, calc(var(--vh, 1svh) * 100 - var(--bar) - 70px)); height: auto; min-height: calc(var(--vh, 1svh) * 100 - var(--bar) + 30px); overflow: visible; }
  .is-grad .mv__frame { position: relative; inset: auto; }
  /* a gentler arc on phones */
  .is-grad .mv__slides { -webkit-mask: radial-gradient(ellipse 125% 100% at 50% 0, #000 99.4%, transparent 100%); mask: radial-gradient(ellipse 125% 100% at 50% 0, #000 99.4%, transparent 100%); }
  .is-grad .mv__slide img, .is-grad .mv__slide:nth-child(n+2) img { object-position: center 10%; }
  /* the catch stays inside the first screen: just above the photo's lower edge */
  .is-grad .mv__box { left: 14px; top: calc(var(--fh) + 26px); }
  .is-grad .mv__catch { font-size: min(8.6vw, 38px); } /* the 2nd line fills the width */
}
/* the MV is a little taller than the screen (above) */
/* phones scrolled sideways a little (390px +8px, 360px +5px, 320px +39px)
   - the MV photo slowly zooms (scale ~1.03) and leaked past the screen edge where .mv is overflow:visible (<=760px). The arc mask already hid it, so clipping changes nothing you can see */
.is-grad .mv__slides { overflow: hidden; }
/* - 320px: logo 150 + お問い合わせ 113 + menu 44 did not fit in the header pill */
@media (max-width: 360px) {
  .hd__in { padding-inline: 16px 5px; gap: 6px; }
  .hd__logo img { width: 120px; }
  .hd__btn { padding: 0 12px; }
  .hd__menu { width: 42px; height: 42px; }
  .hd__menu span:nth-child(1) { top: 15px; }
  .hd__menu span:nth-child(2) { top: 25px; }
  .is-menu .hd__menu span:nth-child(1), .is-menu .hd__menu span:nth-child(2) { top: 20px; }
}
/* - 320px: the concept heading lines are nowrap (この街に、ハートネットが) and were wider than the column */
@media (max-width: 380px) { .concept__ttl { font-size: 6.6vw; } }
