/*
 * Authoritative responsive bridge for the XD endpoint designs.
 *
 * The 390px and 1920px endpoint rules live in top-page.css. This file is
 * intentionally limited to the widths between them so the cascade has one
 * owner for interpolation, artwork anchors and responsive reflow.
 */

.message__mark--sp { display:none; }

/* The PC lower tile is content-relative, but the SP artwork remains anchored
 * to the viewport-sized Hero as in the mobile composition. */
@media (max-width:768px) {
  section.hero .hero__content { position:static; }
}

@media (min-width:769px) {
  :root {
    /* PC sections use a shared 1700px rail. Decorations that visually belong
       to that composition must resolve their global edge from this same rail,
       rather than inventing an independent left offset. */
    --hero-frame-origin:max(0px, calc((100vw - 1920px) / 2));
    --service-pc-rail:max(5.7291667vw, calc((100vw - 1700px) / 2));
    --hero-pc-art-scale:clamp(.4, calc(100vw / 1920px), 1);
  }

  section.hero .hero__tile {
    rx:30px;
    ry:30px;
  }
}

@media (max-width:360px) {
  .hero__tiles--top { right:8px !important; }
}

@media (max-width:340px) {
  .hero__tiles--top {
    top:-24px !important;
    width:125px !important;
    height:auto !important;
  }
  .hero__tiles--bottom {
    width:125px !important;
    height:auto !important;
  }
}

@media (max-width:390px) {
  section.mission .mission__visual { isolation:isolate; }
  .works .section-caption { transform:none !important; }

  .message__photo::after { content:none; }
  .message__photo > img.message__mark--sp {
    position:absolute;
    z-index:3;
    top:7px;
    right:-5px;
    display:block !important;
    width:58.381px;
    max-width:none;
    height:auto;
    transform:rotate(17deg);
  }

  /* The XD endpoint keeps the parade owned by the intro and lets it overlap
     the 80px Hero→Service bridge. It also renders the SVG tile colors at full
     opacity; main.css's legacy mobile visual opacity must not leak in. */
  section.hero .hero__visual { opacity:1; }
  section.intro { overflow:visible; }

  section.hero .hero__accent {
    height:33px;
    line-height:33px;
  }

  section.hero .hero__accent > span {
    line-height:33px !important;
    transform-origin:0 0;
  }
  section.hero .hero__accent > span:nth-child(1) {
    margin-left:-.642080625em;
    font-size:1em;
    line-height:1.4583333333;
    transform:translate(-.083333em, -.083333em) rotate(-5deg);
  }
  section.hero .hero__accent > span:nth-child(2) {
    margin-left:.0003858846em;
    font-size:1.0833333333em;
    line-height:1.4615384615;
    transform:translate(.038462em, .170802em);
  }
  section.hero .hero__accent > span:nth-child(3) {
    margin-left:.1860809583em;
    font-size:1em;
    line-height:1.4583333333;
    transform:translate(-.041667em, -.083333em) rotate(-3deg);
  }
  section.hero .hero__accent > span:nth-child(4) {
    margin-left:.078233em;
    font-size:1.0833333333em;
    line-height:1.4615384615;
    transform:translate(.038462em, .132341em);
  }

  /* XD ink bounds: the Poppins heading and Japanese caption have different
     raster offsets, so align them independently without moving the photo. */
  .message .message__title { transform:translateY(-2px); }
  .message__title-block .section-caption { transform:translateY(-5px); }
}

@media (max-width:390px) {
  .members__grid > .splide__slide,
  .members__grid article {
    flex:0 0 100% !important;
    width:100% !important;
    max-width:none !important;
  }
  .members__grid img {
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    aspect-ratio:431 / 495;
  }
}

/* Wide mobile/tablet: fluid SP composition, not a centred 390px canvas. */
@media (min-width:391px) and (max-width:768px) {
  :root {
    --bridge-gutter:clamp(20px, 4.7vw, 36px);
    --hero-character-width:clamp(245px, 48vw, 368px);
    --hero-character-height:calc(var(--hero-character-width) * 57 / 245);
  }

  .hero { min-height:clamp(700px, 102vw, 790px); height:auto; overflow:hidden; }
  .hero__content {
    box-sizing:border-box;
    width:100%;
    padding:clamp(260px, 42vw, 325px) var(--bridge-gutter) 120px;
  }
  .hero h1 {
    width:100%;
    max-width:none;
    font-size:clamp(25px, 5.2vw, 40px);
    line-height:1.62;
  }
  .hero__lead { width:100%; max-width:none; font-size:clamp(12px, 2.25vw, 17px); }
  .hero__tiles { display:block; width:clamp(157px, 28vw, 215px); height:auto; }
  .hero__tiles--top { top:clamp(70px, 12vw, 92px); right:var(--bridge-gutter); left:auto; }
  .hero__tiles--bottom {
    right:auto;
    bottom:calc(var(--hero-character-height) + 10px);
    left:var(--bridge-gutter);
  }

  .business .hero__characters {
    right:var(--bridge-gutter);
    left:auto;
    width:var(--hero-character-width);
    height:auto;
  }

  .business-card--media > img.business-card__deco { display:block !important; opacity:1; }
  .business-card--media > img.business-card__deco--green {
    top:clamp(155px, 28vw, 215px) !important;
    right:calc(var(--bridge-gutter) * -0.45) !important;
    width:clamp(70px, 14vw, 108px) !important;
    height:auto !important;
  }
  .business-card--media > img.business-card__deco--pink {
    top:clamp(250px, 44vw, 338px) !important;
    right:var(--bridge-gutter) !important;
    width:clamp(44px, 8.8vw, 68px) !important;
    height:auto !important;
  }

  /* Mission's accent extends below the section edge in the XD artwork.
     Keep the photo mask local to .mission__image, but let the accent escape
     the section so its lower artwork is not clipped at 391–768px. */
  .mission { overflow:visible; }
  .vision { overflow:hidden; }
  .mission__copy,
  .vision__copy { position:relative; z-index:3; }
  .mission__visual,
  .vision__image { position:relative; overflow:visible; isolation:isolate; }
  .mission__image { position:relative; overflow:hidden; isolation:isolate; }
  .mission__image,
  .vision__image > img:first-child { position:relative; z-index:2; }
  section.mission .mission__accent {
    position:absolute !important;
    z-index:auto !important;
    top:auto !important;
    right:3% !important;
    bottom:clamp(-153.236px, -21.723vw, -84.722px) !important;
    left:auto !important;
    display:block !important;
    width:clamp(105.118px, 26.953vw, 190px) !important;
    max-width:none !important;
    height:clamp(146.072px, 37.454vw, 264.2px) !important;
    transform:none !important;
  }
  section.mission .mission__accent img.mission__accent-circle--sp {
    position:absolute !important;
    z-index:1 !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
  }
  section.mission .mission__accent img.mission__accent-character--sp {
    position:absolute !important;
    z-index:3 !important;
    top:3.576% !important;
    left:52.974% !important;
    display:block !important;
    width:45.662% !important;
    max-width:none !important;
    height:auto !important;
  }
  section.vision .vision__image > img.vision__accent-circle {
    position:absolute !important;
    z-index:1 !important;
    top:auto !important;
    right:auto !important;
    bottom:0 !important;
    left:-3% !important;
    display:block !important;
    width:clamp(145px, 31vw, 238px) !important;
    max-width:none !important;
    height:auto !important;
    transform:translateY(15%) !important;
  }
  section.vision .vision__image > img.vision__accent-line {
    position:absolute !important;
    z-index:1 !important;
    top:auto !important;
    right:-4% !important;
    bottom:0 !important;
    left:auto !important;
    display:none !important;
    width:clamp(100px, 21vw, 160px) !important;
    height:auto !important;
    opacity:1 !important;
    transform:translateY(42%) !important;
  }

  .values { overflow:visible; }
  .values > .section-inner { position:relative; z-index:2; }
  .values__decoration { display:none; }
  .values__decoration img.values__artwork--sp { display:none; }
  .values__decoration img.values__boundary--pc { display:none; }
  .values > .values__squares--pc {
    position:absolute;
    z-index:3;
    bottom:-44px;
    left:var(--bridge-gutter);
    display:block;
    width:clamp(80px, 16vw, 123px);
    height:auto;
  }
  .values + .message { position:relative; z-index:2; margin-top:clamp(85px, 14vw, 108px); }

  .message__photo::after { display:none !important; content:none !important; }
  .message__mark--pc { display:none !important; }
  .message__photo > img.message__mark--sp {
    position:absolute;
    z-index:3;
    top:-8px;
    right:-13px;
    display:block !important;
    width:clamp(58px, 10vw, 76px);
    max-width:none;
    height:auto;
    transform:none;
  }

  .works h2 { height:auto !important; min-height:0; line-height:1.08; }
  .works .section-caption { height:auto !important; min-height:0; margin-top:16px !important; }
  .works__grid article:nth-child(3) h3::after,
  .works__grid article:nth-child(4) h3::after {
    flex:0 0 158px;
    width:158px;
    max-width:158px;
  }

  .members__decoration img {
    top:clamp(30px, 7vw, 54px) !important;
    right:var(--bridge-gutter) !important;
    left:auto !important;
    width:clamp(90px, 15vw, 115px) !important;
    height:auto !important;
  }
  .members__slider { left:0; box-sizing:border-box; width:100%; padding-left:var(--bridge-gutter); }
  /* SP cards must fit the visible track. The desktop-sized 431px slide
     previously left every card's right edge clipped on narrow viewports. */
  .members__grid > .splide__slide,
  .members__grid article {
    flex:0 0 100% !important;
    width:100% !important;
    max-width:none !important;
  }
  .members__grid img {
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    aspect-ratio:431 / 495;
  }
  /* No shrink-to-fit-2-per-row override here (same fix as the 769-1919px
     PC bridge in top-page.css): the photo (.members__grid img) has no
     matching shrink formula of its own, so forcing the slide narrower than
     431px left the fixed-size photo overflowing its slide and visually
     overlapping the next one. Falls back to the <=768px base rule
     (flex:0 0 431px / width:431px), keeping photos at PC size and letting
     the carousel swipe handle the rest. */

  .news-listing__filters {
    position:static;
    display:flex;
    flex-wrap:wrap;
    width:100%;
    margin-bottom:34px;
    gap:10px 18px;
  }
  .company dl div { display:grid; grid-template-columns:minmax(110px, 25%) minmax(0, 1fr); gap:20px; }
  .company dt { margin:0; }
  .company dd { min-width:0; padding-left:0; }
  .contact > .section-inner,
  .contact__title,
  .contact__form,
  .contact-form__grid,
  .contact__form .contact-form__grid { width:100% !important; }
}

@media (max-width:320px) {
  .members__grid p {
    flex-wrap:wrap;
    column-gap:4px;
    row-gap:0;
    white-space:normal;
  }
}

/* Desktop bridge: retain the 1920px composition and scale its anchors. */
@media (min-width:769px) and (max-width:1919px) {
  :root {
    --bridge-pc:calc(100vw / 1920px);
    --bridge-edge:clamp(0, calc((100vw - 768px) / 1152), 1);
    --hero-content-gutter:clamp(24px, calc((100vw - 1700px) / 2), 110px);
  }

  .hero,
  .intro,
  .business,
  .mission,
  .vision,
  .values,
  .members,
  .news,
  .company,
  .contact { overflow:visible; }

  section.hero .hero__content {
    position:relative;
    z-index:2;
    box-sizing:border-box;
    width:calc(100% - var(--hero-content-gutter) * 2);
    max-width:1700px;
    margin-right:auto;
    margin-left:auto;
  }
  section.hero .hero__visual > .hero__tiles {
    position:absolute !important;
    z-index:1 !important;
    display:block !important;
    width:clamp(157px, 16.9792vw, 326px) !important;
    max-width:none !important;
    height:auto !important;
    opacity:1 !important;
  }
  section.hero .hero__visual > .hero__tiles--top {
    top:clamp(84px, 5.2083vw, 100px) !important;
    right:5.7292vw !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
  }
  section.hero .hero__visual > .hero__tiles--bottom {
    top:auto !important;
    right:auto !important;
    bottom:clamp(22px, calc(2.4479vw - 2px), 45px) !important;
    left:5.7292vw !important;
    transform:rotate(180deg) !important;
  }
  section.hero h1 { max-width:68vw !important; }
  section.hero .hero__accent span:nth-child(1) {
    margin-left:-.714286em;
    transform:translate(-.1em, -.114286em) rotate(-5deg);
  }
  section.hero .hero__accent span:nth-child(2) {
    margin-left:-.228571em;
    transform:translateY(.1em);
  }
  section.hero .hero__accent span:nth-child(3) {
    margin-left:0;
    transform:translate(-.042857em, -.128571em) rotate(-3deg);
  }
  section.hero .hero__accent span:nth-child(4) {
    margin-left:-.185714em;
    transform:translateY(.057143em);
  }

  section.business > .hero__characters {
    position:absolute !important;
    top:-5.9896vw !important;
    right:calc(2.3958vw - 1px) !important;
    bottom:auto !important;
    left:auto !important;
    display:block !important;
    width:29.375vw !important;
    max-width:none !important;
    height:calc(29.375vw * 134 / 570) !important;
  }

  section.business .hero__character--pc-01 { left:0 !important; width:15.964912% !important; }
  section.business .hero__character--pc-02 { left:14.210526% !important; width:15.789474% !important; }
  section.business .hero__character--pc-03 { left:27.719298% !important; width:29.824561% !important; }
  section.business .hero__character--pc-04 { left:55.614035% !important; width:17.719298% !important; }
  section.business .hero__character--pc-05 { left:70.175439% !important; width:29.824561% !important; }

  .business-card--media > img.business-card__deco { display:block !important; opacity:1 !important; }
  .business-card--media > img.business-card__deco--green {
    top:-2.2479vw !important;
    right:-6.1875vw !important;
    left:auto !important;
    width:8.9583vw !important;
    height:auto !important;
  }
  .business-card--media > img.business-card__deco--pink {
    top:6.6583vw !important;
    right:-8.1771vw !important;
    left:auto !important;
    width:5.5729vw !important;
    height:auto !important;
  }

  section.business > .service__characters {
    top:100% !important;
    left:0 !important;
    display:block !important;
    width:100% !important;
    height:18.4896vw !important;
    overflow:visible !important;
  }
  /* Full-bleed dashed arc: anchor to the viewport's own center/width instead of
     an XD-derived vw offset relative to .business's own (non-linear) gutter,
     so the right edge always reaches the viewport edge instead of falling
     short at some widths within this range (observed cut off at 1440px). */
  section.business .service__boundary-line { top:3.8066vw !important; left:50% !important; width:100vw !important; height:auto !important; opacity:1 !important; transform:translateX(-50%) !important; }
  section.business .service__character--first { top:-6.3542vw !important; left:-3.125vw !important; width:9.1667vw !important; height:auto !important; }
  section.business .service__circle--red { top:3.6557vw !important; left:6.8372vw !important; width:8.7886vw !important; height:auto !important; }
  section.business .service__circle--yellow { top:9.771vw !important; left:16.7394vw !important; width:5.3797vw !important; height:auto !important; }
  section.business .service__circle--blue { top:6.3273vw !important; left:25.3717vw !important; width:5.3797vw !important; height:auto !important; }
  section.business .service__character--second { top:2.7083vw !important; left:34.0625vw !important; width:10.2083vw !important; height:auto !important; }

  .mission__visual,
  .mission__image,
  .vision__image { position:relative; overflow:visible; isolation:isolate; }
  .mission__copy,
  .vision__copy { position:relative; z-index:3; }
  .mission__image,
  .vision__image > img:first-child { position:relative; z-index:2; }
  section.mission .mission__accent {
    position:absolute !important;
    z-index:1 !important;
    top:auto !important;
    right:auto !important;
    bottom:0 !important;
    left:-30.954% !important;
    display:block !important;
    width:40.963% !important;
    max-width:none !important;
    transform:translateY(74.148%) !important;
  }
  section.vision .vision__image > img.vision__accent-circle {
    position:absolute !important;
    z-index:1 !important;
    top:auto !important;
    right:auto !important;
    bottom:0 !important;
    left:-5.954% !important;
    display:block !important;
    width:53.763% !important;
    max-width:none !important;
    height:auto !important;
    transform:translateY(78.603%) !important;
  }
  section.vision .vision__image > img.vision__accent-line {
    position:absolute !important;
    z-index:1 !important;
    top:auto !important;
    right:auto !important;
    bottom:0 !important;
    left:94.94% !important;
    display:block !important;
    width:39.691% !important;
    height:auto !important;
    opacity:1 !important;
  }

  /* Core Values owns its endpoint-informed layout and boundary geometry in
     top-page.css. Keep this later decoration layer from reintroducing the
     former fixed four-column bridge. */

  .message__photo::after { display:none !important; content:none !important; }
  .message__mark--sp { display:none !important; }
  .message__mark--pc { display:block !important; }

  section.works .works__grid article h3::after {
    content:"" !important;
    display:block !important;
    position:static !important;
    flex:0 0 90px !important;
    width:90px !important;
    min-width:90px !important;
    max-width:90px !important;
    height:1px !important;
    background:currentColor !important;
  }
  section.works .works__grid article:nth-child(3) h3::after,
  section.works .works__grid article:nth-child(4) h3::after {
    flex-basis:clamp(90px, calc(175.333px - 4.444vw), 141px) !important;
    width:clamp(90px, calc(175.333px - 4.444vw), 141px) !important;
    min-width:clamp(90px, calc(175.333px - 4.444vw), 141px) !important;
    max-width:clamp(90px, calc(175.333px - 4.444vw), 141px) !important;
  }

  section.members > .section-inner,
  section.contact > .section-inner { position:relative; z-index:3; }
  section.members > .members__decoration { z-index:1; }
  section.members > .members__decoration > img {
    position:absolute !important;
    top:-10.625vw !important;
    right:2.9688vw !important;
    bottom:auto !important;
    left:auto !important;
    display:block !important;
    width:7.9688vw !important;
    max-width:none !important;
    height:auto !important;
  }

  .news {
    /* This value drives both .news's own margin-top (pushes the panel down)
       and .news__heading's negative top (pulls the heading back up) -- it
       was undersized across the whole range (measured via bin/sweep.mjs:
       node .../sweep.mjs --config ./webaudit.config.json --only top
       --widths 769,900,1100,1199,1300,1440,1600,1800,1919
       --gaps "newsCaption:bottom-newsPanel:top"), so the heading/caption
       text overlapped down into the green panel by 63-85px at every width
       from 769 to 1919. Refit from that sweep's measured deficits so the
       gap stays positive (~46-70px, matching the untouched 1920 endpoint's
    own 46px) across the whole range instead of just at the endpoints. */
    --news-heading-space:calc(227px + 6.9vw);
    margin-top:var(--news-heading-space);
    /* The 1920px composition has two nested horizontal spaces before the
       white card: 100px from the green panel to the content rail, then 50px
       from that rail to the card. Both spaces belong to the PC composition
       and must contract continuously in the middle range; keeping only the
       inner 50px fixed makes the card-side air consume too much of a narrow
       panel. */
    --news-content-gutter:clamp(40px, 5.208333vw, 100px);
    --news-listing-rail:clamp(20px, 2.604167vw, 50px);
    padding-right:var(--news-content-gutter) !important;
    padding-left:var(--news-content-gutter) !important;
    overflow:visible;
  }

  .news__heading {
    position:absolute !important;
    top:calc(var(--news-heading-space) * -1) !important;
    left:0 !important;
    width:100% !important;
    text-align:center !important;
  }
  .news__heading > div { width:100% !important; text-align:center !important; }
  .news .section-caption { margin-top:12px !important; text-align:center !important; }
  .news-listing { margin-top:40px; }
  .news__decoration { display:block; overflow:visible; pointer-events:none; }
  .news__decoration--back img:nth-child(1) { top:-5.9958vw; right:-5.3891vw; left:auto; width:13.2568vw; }
  .news__decoration--front img:nth-child(1) { top:-8.0036vw; right:9.4729vw; left:auto; width:4.4161vw; }
  .news__decoration--back img:nth-child(2) { top:auto; bottom:-15.7844vw; left:-17.1521vw; display:block; width:23.3104vw; opacity:1; }
  .news__decoration--front img:nth-child(2) { top:auto; bottom:-5.488vw; left:7.7396vw; display:block; width:8.8224vw; opacity:1; }

  .contact__boundary-decoration { display:block; overflow:visible; }
  .contact__boundary-decoration img:nth-child(1) { top:-9.2188vw; left:2.1875vw; width:4.6354vw; height:auto; }
  .contact__boundary-decoration img:nth-child(2) { top:-1.0938vw; left:5.4688vw; width:7.9688vw; height:auto; }
  .contact__boundary-decoration img:nth-child(3) { top:-32.1354vw; right:6.6667vw; left:auto; width:9.0625vw; height:auto; }
  .contact__boundary-decoration img:nth-child(4) { top:-18.9063vw; right:-13.2292vw; left:auto; width:26.0417vw; height:auto; }
  section.contact > .contact__characters {
    position:absolute !important;
    z-index:2 !important;
    top:2.7604vw !important;
    right:auto !important;
    bottom:auto !important;
    left:13.2813vw !important;
    display:block !important;
    width:13.8542vw !important;
    height:auto !important;
    opacity:clamp(.15, var(--bridge-edge), 1) !important;
  }
  section.contact > .contact__characters > img { display:block !important; width:100% !important; max-width:none !important; height:auto !important; }

  .site-footer__brand {
    box-sizing:border-box;
    height:auto !important;
    min-height:clamp(254px, 16.875vw, 324px) !important;
    padding:clamp(39px, 4.401vw, 84.5px) 20px 28px !important;
    justify-content:flex-start;
  }
  .site-footer__characters { display:block; flex:0 0 98.65px; width:285.56px; height:98.65px; background:none !important; overflow:hidden; }
  .site-footer__characters > img,
  .site-footer__text { display:none !important; }
  .site-footer__brand-artwork { position:relative; z-index:2; display:block !important; width:285.56px; height:98.65px; }
  .site-footer__brand-artwork svg { display:block; width:100%; height:100%; }
  .footer-social { display:grid; grid-template-columns:38px 36px 31px; align-items:start; width:153px; height:40px; margin-top:clamp(30px, 1.9349vw, 37px); gap:0 22px; }
  .footer-social a { display:block; padding:0; font-size:0; line-height:0; background-repeat:no-repeat; background-position:center; background-size:contain; }
  .footer-social a::before { content:none; }
  .footer-social a.footer-social__instagram { width:38px; height:40px; background-image:url("../images/sns/Instagram_logo.svg"); }
  .footer-social a.footer-social__facebook { width:36px; height:36px; margin-top:3px; background-image:url("../images/sns/fb_logo.svg"); }
  .footer-social a.footer-social__x { width:31px; height:32px; margin-top:5px; margin-left:4px; background-image:url("../images/sns/x_logo.svg"); background-size:contain; }
}

/* Scale the 390px XD Mission artwork through the whole narrow-SP range.
   An exact-width query left 320–389px on the legacy top-right placement. */
@media (max-width:390px) {
  section.mission .mission__visual {
    isolation:isolate;
  }
  section.mission .mission__image {
    position:relative;
    z-index:2;
  }
  section.mission .mission__accent {
    position:absolute !important;
    z-index:auto !important;
    top:calc((100vw - 15px) * 248.776 / 375) !important;
    right:auto !important;
    bottom:auto !important;
    left:69.568% !important;
    display:block !important;
    width:26.953% !important;
    max-width:none !important;
    height:37.454vw !important;
    transform:none !important;
  }
  section.mission .mission__accent img.mission__accent-circle--sp {
    position:absolute !important;
    z-index:1 !important;
    inset:0 !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
  }
  section.mission .mission__accent img.mission__accent-character--sp {
    position:absolute !important;
    z-index:3 !important;
    top:3.576% !important;
    left:52.974% !important;
    width:45.662% !important;
    max-width:none !important;
    height:auto !important;
  }
}

@media (min-width:769px) and (max-width:1199px) {
  section.vision .vision__image {
    position:static;
  }
}

/* Works/Member boundary ownership. This file loads after top-page.css, so
   keep the illustration and slider declarations here to prevent the older
   bridge layer from overriding the normal-flow layout. */
@media (min-width:769px) {
  .members__slider {
    width:calc(100vw - var(--members-rail-gutter) - var(--members-slider-offset)) !important;
    margin-top:var(--members-slider-gap) !important;
    margin-right:0 !important;
    margin-bottom:0 !important;
    margin-left:var(--members-slider-offset) !important;
    padding:0 !important;
  }
  section.members > .members__decoration > img {
    top:clamp(-29.625px, calc(138.22904px - 8.742398vw), 71px) !important;
    right:clamp(36px, calc(22px + 1.8229167vw), 57px) !important;
    bottom:auto !important;
    left:auto !important;
    width:clamp(115px, 7.96875vw, 153px) !important;
    max-width:none !important;
    height:auto !important;
  }
}

@media (min-width:391px) and (max-width:768px) {
  section.members > .members__decoration > img { top:71px !important; }
}

@media (min-width:769px) and (max-width:1199px) {
  section.vision .vision__image {
    position:static;
  }

  section.vision .vision__image > img.vision__accent-circle {
    top:100% !important;
    right:auto !important;
    bottom:auto !important;
    left:-2.884% !important;
    width:26.041667vw !important;
    max-width:none !important;
    height:auto !important;
    transform:none !important;
  }

  section.vision .vision__image > img.vision__accent-line {
    top:100% !important;
    right:auto !important;
    bottom:auto !important;
    left:50% !important;
    width:18.453125vw !important;
    max-width:none !important;
    height:10.546875vw !important;
    object-fit:fill;
    transform:none !important;
  }
}

@media (min-width:1200px) and (max-width:1919px) {
  section.vision .vision__image > img.vision__accent-line {
    top:100% !important;
    right:auto !important;
    bottom:auto !important;
    left:100% !important;
    width:18.453125vw !important;
    max-width:none !important;
    height:10.546875vw !important;
    object-fit:fill;
    transform:none !important;
  }
}

/* The 1920px endpoint uses the same XD glyph offsets as the fluid bridge.
   Keep this explicit because the bridge intentionally stops at 1919px. */
@media (min-width:1920px) {
  section.hero .hero__accent span:nth-child(1) {
    transform:translate(-.1em, -.114286em) rotate(-5deg);
  }
  section.hero .hero__accent span:nth-child(2) {
    transform:translateY(.1em);
  }
  section.hero .hero__accent span:nth-child(3) {
    transform:translate(-.042857em, -.128571em) rotate(-3deg);
  }
  section.hero .hero__accent span:nth-child(4) {
    transform:translateY(.057143em);
  }
  section.business > .hero__characters {
    top:-110px;
    right:35px;
  }
}

/* Narrow desktop/tablet: one-column content with PC artwork kept in safe zones. */
@media (min-width:769px) and (max-width:1199px) {
  .hero h1 { max-width:calc(100% - clamp(150px, 20vw, 220px)) !important; }
  .hero__lead { width:calc(100% - clamp(175px, 23vw, 245px)); max-width:none; margin-left:clamp(140px, 18vw, 210px); }

  .business-card--media > img.business-card__deco--green { top:150px !important; right:-10px !important; }
  .business-card--media > img.business-card__deco--pink { top:240px !important; right:20px !important; }

  section.mission .mission__accent { left:3% !important; width:30% !important; transform:translateY(48%) !important; }
  section.vision .vision__image > img.vision__accent-circle,
  section.vision .vision__image > img.vision__accent-line { display:none !important; }

  .news__decoration { display:block !important; }
  .company dl div { display:grid; grid-template-columns:minmax(130px, 24%) minmax(0, 1fr); gap:24px; }
  .company dt { margin:0; padding-left:0; }
  .company dd { min-width:0; padding-left:0; }
}

@media (min-width:1200px) and (max-width:1919px) {
  :root {
    /* Use the same PC rail as 769–1199px. The former 48px minimum moved
       Hero by 24px at exactly 1200px and broke the PC interpolation. */
    --hero-content-gutter:clamp(24px, calc((100vw - 1700px) / 2), 110px);
  }
  section.hero h1 {
    max-width:min(1250px, calc(100% - clamp(220px, calc(220px + (100vw - 1200px) * .0278), 240px))) !important;
    font-size:clamp(56px, calc(18.3077px + 2.6923vw), 70px);
  }

  /* The 1920px PC design composes the opening sentence as one visual line.
   * Keep that semantic group intact while the PC canvas narrows; otherwise a
   * one-pixel resize at the wrap threshold moves the lead and collides with
   * the lower tile decoration. */
  section.hero h1 .hero__line--first {
    display:inline-block;
    white-space:nowrap;
  }


  .members__slider {
    width:auto !important;
    margin-left:clamp(0px, calc((100vw - 1200px) * .9764), 702px) !important;
  }
}

/* Keep the Vision boundary artwork present throughout the desktop/tablet
   composition. Geometry is handled by the endpoint-informed rule above. */
@media (min-width:769px) and (max-width:1919px) {
  section.values {
    z-index:auto !important;
    isolation:auto;
  }

  section.vision .vision__inner {
    position:relative;
  }

  section.vision .vision__image {
    position:relative;
    z-index:auto;
    isolation:auto;
    overflow:visible;
  }

  section.vision .vision__image > img.vision__accent-circle,
  section.vision .vision__image > img.vision__accent-line {
    display:block !important;
    opacity:1 !important;
  }
}

@media (min-width:769px) and (max-width:1199px) {
  section.vision .vision__image {
    position:static;
  }
}

/* Final slider ownership must follow the older 1200-1919 bridge above. */
@media (min-width:769px) {
  .members__slider {
    width:calc(100vw - var(--members-rail-gutter) - var(--members-slider-offset)) !important;
    margin-left:var(--members-slider-offset) !important;
  }
}

/* HERO / Service endpoint corrections.
 * The published SP artboard keeps an 80px bridge after Hero, then renders
 * the primary Service statement, support photo, and support copy in normal
 * flow. The PC artboard keeps only the support layout. */
.service-primary__title,
.service-support__body {
  display:none;
}

@media (max-width:390px) {
  .business {
    margin-top:80px !important;
  }

  .business .service-primary__title {
    display:block;
    margin:0;
    font-size:20px;
    font-weight:700;
    line-height:29px;
  }

  .service-support__body {
    display:block;
    order:3;
    width:100%;
    margin:54px 0 0;
    font-size:16px;
    font-weight:700;
    line-height:30px;
    letter-spacing:.03em;
  }

  .service-support__list {
    display:none !important;
  }
}

@media (min-width:1920px) {
  section.hero h1 .hero__line--first {
    display:inline-block;
    white-space:nowrap;
  }

  /* XD PC text styles: 70px Black with 100px leading, and 20px Poppins
     Medium with 30px leading. */
  section.hero h1 {
    letter-spacing:0 !important;
    line-height:100px !important;
  }
  section.hero .hero__lead {
    font-weight:500 !important;
    line-height:30px !important;
  }

  /* The published PC reference has no green/pink Service corner badges. */
  .intro__service-decor {
    display:none !important;
  }

  /* Match the exported tile and the five independent XD character nodes. */
  section.hero .hero__tiles--bottom {
    /* The lower tile group shares the same left rail as Service/Core Values. */
    left:calc(var(--service-pc-rail) - var(--hero-frame-origin)) !important;
  }
  .business > .hero__characters {
    top:-111px !important;
    right:36px !important;
  }

  /* The XD panel ends 205px after the support photo, at y=2068. */
  .business {
    padding-bottom:205px !important;
    margin-bottom:61.125px !important;
    border-radius:30px !important;
  }

  /* Keep the boundary artwork section-owned while compensating for the
     removed panel padding; red/blue circles then land at their XD nodes. */
  .business .service__characters {
    transform:translateY(69px) !important;
  }
  .business .service__circle--yellow {
    top:187.6025px !important;
  }
}

/* PC structural bridge: 1200px through the 1920px artboard
 *
 * The 1920px rules above are endpoint artwork values. They must not be the
 * first point at which the page changes its flow model. At 1919px the older
 * bridge still owns the large Business/Mission/Vision/Values/Message gaps,
 * while 1920px switches to the compact XD composition; News also changes
 * from a padded legacy listing to the endpoint's panel-relative listing.
 * Interpolate the structural values below and let the endpoint rules remain
 * the exact ceiling. Decorations that genuinely belong to the endpoint stay
 * in the block above; these declarations own content flow only.
 */
@media (min-width:1200px) and (max-width:1919px) {
  /* Business → Mission: interpolate the endpoint's service block and the
     outer section gap instead of adding 95px of padding and removing 149px
     of margin at one pixel. */
  .business {
    padding-bottom:clamp(110px, calc(13.1944vw - 48.333px), 205px) !important;
    margin-bottom:clamp(61.125px, calc(351.458px - 15.1215vw), 170px) !important;
    min-height:clamp(806.5px, calc(503.5px + 25.2083vw), 988px) !important;
  }
  .service-support {
    margin-top:clamp(-84px, calc(140px - 11.6667vw), 0px) !important;
    padding-top:clamp(46px, calc(115.333px - 3.6111vw), 72px) !important;
  }
  .service-support > img {
    margin-top:clamp(0px, calc(1.4583vw - 17.5px), 21px) !important;
  }
  .service-support > div {
    margin-top:clamp(0px, calc(22.5vw - 270px), 162px) !important;
  }

  /* Mission/Vision: their endpoint padding is part of the composition, not
     a different content mode. Keep the existing 1200px values as the lower
     trusted anchor and reach the 1920px XD values continuously. */
  .mission {
    margin-top:clamp(0px, calc(3.8021vw - 45.625px), 27.375px) !important;
    padding-top:clamp(150px, calc(336.667px - 9.7222vw), 220px) !important;
    padding-bottom:clamp(10px, calc(239.333px - 11.9444vw), 96px) !important;
  }
  .vision {
    margin-bottom:clamp(-27.375px, calc(45.625px - 3.8021vw), 0px) !important;
    padding-top:clamp(96px, calc(9.7222vw - 20.667px), 166px) !important;
    padding-bottom:clamp(0px, calc(13.6111vw - 163.333px), 98px) !important;
  }

  /* Values: the outer panel top and inner tail were still using the
     1919px bridge's large whitespace. Both now approach the endpoint
     independently, preserving the list's own normal flow. */
  .values {
    padding-top:clamp(121.875px, calc(134.375px - .651vw), 126.563px) !important;
  }
  .values > .section-inner {
    padding-bottom:clamp(85.416px, calc(73.43px + .999vw), 92.609px) !important;
  }
  .values + .message {
    margin-top:clamp(50px, calc(31.667px + 1.5278vw), 61px) !important;
  }

  /* Message: remove the 1919px-only outer padding and grow its content rail
     toward the 1600px endpoint width. The 1920px ink corrections remain
     endpoint-only; this block changes only the section's flow geometry. */
  .message {
    padding-top:clamp(0px, calc(256px - 13.3333vw), 96px) !important;
    padding-bottom:clamp(0px, calc(298.667px - 15.5556vw), 112px) !important;
  }
  .message__inner {
    width:clamp(1080px, calc(72.2222vw + 213.333px), 1600px) !important;
    padding-top:0 !important;
  }

}

/* Carry the same PC News flow through the 769px–1199px band. The older
   narrow-PC rules changed the listing from panel-relative flow to a compact
   static layout at 1199px, which caused a one-pixel 1199→1200px jump in the
   Member→News gap, News height, and News→Company gap. */
@media (min-width:769px) and (max-width:1199px) {
  .values + .message {
    margin-top:50px !important;
  }
}

/* Member's P is a boundary decoration. The supplied PC artwork intentionally
   lets it sit over the upper edge of a member photo, so preserve that layer
   relationship while keeping its position tied to the Member section. */
@media (min-width:769px) {
  section.members { isolation:isolate; }
  section.members > .members__decoration { z-index:5 !important; }
  section.members > .members__decoration > img { z-index:0 !important; }
  section.members > .section-inner { z-index:3 !important; }
  section.members .members__slider { position:relative; z-index:2 !important; }

  /* The P is tied to the member-photo boundary in the XD composition. The
     earlier section-top interpolation left a growing gap at tablet/medium
     PC widths, so anchor its bottom to 46px below the photo's top instead. */
  section.members > .members__decoration > img {
    top:calc(var(--members-slider-gap) - clamp(169.118px, 11.71875vw, 225px) + 46px) !important;
  }

  /* Mission's character crosses the lower photo edge in the source artwork.
     Keep the accent group above the photo so the character is not hidden
     behind the image at intermediate PC widths. */
  section.mission .mission__accent { z-index:3 !important; }

  /* Service and Core Values share the same PC panel rail. */
  section.business {
    width:min(calc(100vw - 11.458333vw), 1700px) !important;
    max-width:1700px !important;
    margin-right:auto !important;
    margin-left:auto !important;
  }

  /* Company keeps the 1920px heading close to its section edge. The old
     769-1919 bridge kept the narrow-PC 80-110px top inset all the way to
     1919px, producing a visible 1919 -> 1920 jump. Interpolate the heading
     anchor toward the measured endpoint instead. */
  section.company {
    padding-top:clamp(31px, calc(133.26px - 5.326vw), 80px) !important;
  }

  /* The confirmation script keeps the same submit input but changes its
     label. Center the control from the actual form row, not from the old
     360px endpoint's absolute left offset. */
  section.contact .contact-form__submit {
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  section.contact .contact-form__submit input {
    position:static !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    display:block !important;
    margin:0 auto !important;
    transform:none !important;
  }
}

/* Restore the exact PC endpoint inset. The interpolation above belongs only
   to the 769-1919px bridge; at 1920px the existing XD endpoint title offset
   must remain 31px from the section edge. */
@media (min-width:1920px) {
  section.company { padding-top:70px !important; }
}

/* News keeps one PC rail from 769px through the endpoint. The former
   1200px ownership handoff made the boundary circle appear/disappear, while
   the old outer padding made the panel feel empty at intermediate widths.
   Keep one News-owned decoration set and one normal-flow listing structure;
   mobile remains owned by the max-width:768px rules. */
@media (min-width:769px) {
  /* The endpoint must keep the same scalar used by the 769-1919px artwork
     bridge. Without a value at 1920px, the old endpoint top anchors win and
     move the News boundary artwork by hundreds of pixels. */
  :root { --xd-decor-scale:clamp(.40052, calc(100vw / 1920px), 1); }

  section.news {
    --news-panel-gutter:clamp(24px, 3.125vw, 48px);
    width:min(calc(100% - var(--news-panel-gutter) - var(--news-panel-gutter)), 1700px) !important;
    max-width:1700px !important;
    margin-top:0 !important;
    margin-bottom:clamp(0px, calc(15.3779vw - 118.285px), 177px) !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    min-height:0 !important;
  }
  section.news > .section-inner {
    padding-bottom:89px !important;
  }
  section.news .news__heading {
    top:clamp(-222px, calc(-162.8px - 3.0833vw), -186px) !important;
  }
  section.news .news-listing {
    box-sizing:border-box;
    margin-top:0 !important;
    padding-top:119px !important;
  }
  section.news .news-listing__filters {
    position:static !important;
    box-sizing:border-box;
    display:flex !important;
    flex-wrap:wrap;
    width:calc(100% - 100px) !important;
    margin:0 50px 60px !important;
  }
  section.news .news-listing__list {
    position:static !important;
    top:auto !important;
    left:auto !important;
    box-sizing:border-box;
    width:calc(100% - 100px) !important;
    margin:0 50px !important;
  }
  section.news .news-listing__item {
    width:100% !important;
    height:126px !important;
    min-height:0 !important;
  }
  section.news .news-listing__more-wrap {
    width:100% !important;
    margin-top:clamp(60px, calc(2.7778vw + 26.667px), 80px) !important;
  }
  section.news .news__decoration--back img:nth-child(2),
  section.news .news__decoration--front img:nth-child(2) {
    top:auto !important;
    display:block !important;
  }
  section.news .news__decoration--back img:nth-child(2) {
    /* Firefox drops typed multiplication in calc(). This is the same
       1920px endpoint scale expressed directly in viewport units. */
    bottom:-15.7844vw !important;
  }
  section.news .news__decoration--front img:nth-child(2) {
    bottom:-5.488vw !important;
  }
  /* News owns the boundary artwork on desktop. Company has a second,
     transitional copy of the same edge artwork; leaving it visible makes a
     blue circle appear/disappear around the old 1200px handoff. Keep the
     Company-internal pseudo artwork suppressed as well, so the ownership is
     unambiguous throughout the PC range. */
  section.company::before,
  section.company::after,
  section.company > .company__decoration {
    display:none !important;
  }
}

/* The later section.news rules above own the actual PC listing geometry.
   Reapply the fluid rail after them so the legacy 50px margin cannot remain
   as a hidden fixed-width handoff in the 769-1919px bridge. */
@media (min-width:769px) and (max-width:1919px) {
  section.news .news-listing__filters {
    width:calc(100% - var(--news-listing-rail) * 2) !important;
    margin:0 var(--news-listing-rail) 60px !important;
  }
  section.news .news-listing__list {
    width:calc(100% - var(--news-listing-rail) * 2) !important;
    margin:0 var(--news-listing-rail) !important;
  }
}

/* Final PC Hero composition.
 *
 * The PC artboard has one composition: the copy stays on the left rail, the
 * upper tile group stays in the upper-right safe zone, and the lower tile
 * group stays in the lower-left whitespace below the lead. Older rules made
 * 769-1199px a different layout (indented lead and a shorter Hero), so a
 * single resize at 1200px moved the copy and artwork together. Keep the PC
 * relationship continuous until the mobile endpoint at 768px. */
@media (min-width:769px) and (max-width:1919px) {
  :root {
    /*
     * Firefox does not resolve typed arithmetic such as
     * `calc(169px * var(--hero-pc-t))` reliably.  Keep the same 769px and
     * 1920px endpoint values, but express the interpolation as a plain
     * viewport-length line that all supported engines can compute.
     */
    --hero-pc-rail:clamp(24px, calc(7.471764vw - 33.457863px), 110px);
    --hero-pc-tile-size:clamp(157px, calc(14.682884vw + 44.088619px), 326px);
    --hero-pc-tile-top:clamp(84px, calc(1.390096vw + 73.310165px), 100px);
    --hero-pc-tile-right:clamp(25px, calc(7.384883vw - 31.789748px), 110px);
    --hero-pc-tile-bottom-gap:clamp(24px, calc(1.998262vw + 8.633362px), 47px);
    --hero-pc-character-top:clamp(-111px, calc(-5.821025vw + 0.763684px), -44px);
    --hero-pc-character-right:clamp(0px, calc(3.127715vw - 24.052129px), 36px);
    --hero-pc-character-width:clamp(245px, calc(28.236316vw + 27.862728px), 570px);
    --hero-pc-character-height:clamp(57.5789px, calc(6.639540vw + 6.520841px), 134px);
  }

  section.hero {
    height:clamp(900px, 56.25vw, 1080px);
  }

  /* The copy and both tile groups share the same continuously expanding PC
     frame. The old 24px/66px handoff made the copy and lower tiles detach
     from the 1920px composition long before the endpoint. */
  section.hero .hero__content {
    width:calc(100% - var(--hero-pc-rail) - var(--hero-pc-rail)) !important;
    margin-right:auto !important;
    margin-left:auto !important;
    padding-left:0 !important;
  }

  section.hero .hero__visual > .hero__tiles--top {
    width:var(--hero-pc-tile-size) !important;
    height:auto !important;
  }
  section.hero .hero__visual > .hero__tiles--top {
    top:var(--hero-pc-tile-top) !important;
    right:var(--hero-pc-tile-right) !important;
  }
  section.hero .hero__content > .hero__tiles--bottom {
    width:var(--hero-pc-tile-size) !important;
    height:auto !important;
    top:max(
      calc(100% + 18px),
      calc(clamp(900px, 56.25vw, 1080px) - var(--hero-pc-tile-bottom-gap) - var(--hero-pc-tile-size)),
      calc(7vw + 492px)
    ) !important;
    bottom:auto !important;
    /* .hero__content itself starts at --hero-pc-rail. Convert the shared
       Service/Core Values rail into local coordinates. */
    left:calc(var(--service-pc-rail) - var(--hero-pc-rail)) !important;
  }

  section.hero h1 {
    max-width:min(1250px, 68vw) !important;
    letter-spacing:0 !important;
    line-height:1.4285714286 !important;
  }

  section.hero h1 .hero__line--first {
    display:inline-block;
    white-space:nowrap;
  }

  section.hero .hero__lead {
    width:min(920px, 100%);
    max-width:min(920px, 100%);
    margin-left:0;
    font-weight:500 !important;
    line-height:1.5 !important;
  }

  /* The parade is a boundary decoration owned by Service. Keep its right
     edge, overlap above the Service panel, and intrinsic five-image spacing
     continuous from the first PC width to the 1920px XD endpoint. */
  .business > .hero__characters {
    top:var(--hero-pc-character-top) !important;
    right:var(--hero-pc-character-right) !important;
    width:var(--hero-pc-character-width) !important;
    height:var(--hero-pc-character-height) !important;
    transform:none !important;
    transform-origin:initial;
  }
  .business .hero__character--pc-01 { left:0 !important; width:15.964912% !important; }
  .business .hero__character--pc-02 { left:14.210526% !important; width:15.789474% !important; }
  .business .hero__character--pc-03 { left:27.719298% !important; width:29.824561% !important; }
  .business .hero__character--pc-04 { left:55.614035% !important; width:17.719298% !important; }
  .business .hero__character--pc-05 { left:70.175439% !important; width:29.824561% !important; }
}

/* Below this width the unbroken opening sentence reaches into the upper
 * tile safe zone. Let the semantic group wrap naturally while keeping the
 * final Japanese phrase intact; this preserves the PC hierarchy instead of
 * allowing artwork and copy to collide. */
@media (min-width:769px) and (max-width:1464px) {
  section.hero h1 .hero__line--first {
    display:inline;
    white-space:normal;
  }
  section.hero h1 .phrase-nowrap { white-space:nowrap; }
}
/* Values boundary final cascade: this stylesheet is enqueued after the main
   top-page stylesheet, so the cross-section artwork position is owned here
   without depending on an earlier cascade block. */
/* Final PC boundary contract: keep the three squares inside the Core Values
   panel at every PC width. They are not part of the white band, and Message
   spacing must not be increased to avoid them. */
@media (min-width: 769px) and (max-width: 1919px) {
  section.values > img.values__squares--pc {
    top: auto !important;
    right: auto !important;
    bottom: calc(var(--values-pad-b) + 5.2083333vw) !important;
    left: 7.34375vw !important;
    width: clamp(87.31336px, 11.3541667vw, 217.88664px) !important;
    max-width: none !important;
    height: auto !important;
  }

  section.message#message {
    margin-top: 34px !important;
  }
}

/* Approved SNS set: note, Instagram, and YouTube. */
.footer-social a.footer-social__note,
.footer-social a.footer-social__instagram,
.footer-social a.footer-social__youtube {
  display: block;
  padding: 0;
  font-size: 0;
  line-height: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.footer-social {
  grid-template-columns: 38px 46px 110px;
  width: 238px;
  height: 42px;
}

.footer-social a.footer-social__note {
  width: 110px;
  height: 42px;
  background-image: url("../images/sns/note_logo.svg");
}

.footer-social a.footer-social__instagram {
  width: 36px;
  height: 36px;
  margin-top: 3px;
  background-image: url("../images/sns/Instagram_logo.svg");
}

.footer-social a.footer-social__youtube {
  width: 46px;
  height: 33px;
  margin-top: 3px;
  background-image: url("../images/sns/yt_icon_red_digital.svg");
}
