/*
 * 施工事例一覧：支給デザイン完全再現レイヤー
 * 基準カンバス 1536 x 1024。PCでは支給画像を基準面にして、
 * 座標・曲線・写真・文字組みの差が出ないように表示する。
 */

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.works-reference-hotspots {
  display: none;
}

@media (min-width: 901px) {
  body.page-works {
    overflow-x: hidden;
    background: #fff;
  }

  body.page-works .sim-fab {
    display: none !important;
  }

  body.page-works main,
  body.page-works .works--visual-hero {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-works .works-hero {
    position: relative !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 3 / 2;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body.page-works .works-hero__stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: none !important;
    transform-origin: center !important;
    background-image: url("../works-reference/works-hero-desktop-v74-hq-v66.webp") !important;
    background-repeat: no-repeat !important;
    background-position: 50% 0 !important;
    background-size: 100% 100% !important;
  }

  body.page-works .works-hero__stage > img,
  body.page-works .works-hero__copy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.page-works .works-reference-hotspots {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
  }

  body.page-works .works-reference-hotspots a {
    position: absolute;
    display: block;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    outline-offset: -3px;
  }

  body.page-works .works-reference-hotspots a:focus-visible {
    outline: 2px solid #39779d;
  }

  .works-reference-hotspots__logo    { left: 2.8%;  top: 2.0%; width: 18.2%; height: 8.5%; }
  .works-reference-hotspots__home    { left: 42.3%; top: 4.2%; width: 12.3%; height: 4.6%; }
  .works-reference-hotspots__works   { left: 56.5%; top: 4.2%; width: 6.2%;  height: 4.6%; }
  .works-reference-hotspots__news    { left: 63.0%; top: 4.2%; width: 6.2%;  height: 4.6%; }
  .works-reference-hotspots__faq     { left: 69.4%; top: 4.2%; width: 8.9%;  height: 4.6%; }
  .works-reference-hotspots__company { left: 78.3%; top: 4.2%; width: 6.7%;  height: 4.6%; }
  .works-reference-hotspots__contact { left: 85.5%; top: 3.2%; width: 12.7%; height: 5.8%; border-radius: 999px !important; }

  .works-reference-hotspots__filter { top: 59.45%; height: 6.15%; }
  .works-reference-hotspots__filter--all        { left: 2.35%; width: 6.55%; }
  .works-reference-hotspots__filter--hiraya     { left: 8.90%; width: 7.25%; }
  .works-reference-hotspots__filter--onehalf    { left: 16.15%; width: 7.45%; }
  .works-reference-hotspots__filter--two        { left: 23.60%; width: 7.20%; }
  .works-reference-hotspots__filter--renovation { left: 30.80%; width: 8.80%; }

  body.page-works .works__content {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: clamp(64px, 7vw, 112px) clamp(32px, 5vw, 80px) 120px;
    background: #f0f5f8;
  }
}

/* タブレット縦・スマートフォン：同じ要素を読みやすい縦組みにする */
@media (max-width: 900px) {
  body.page-works .works--visual-hero {
    padding: 0 !important;
    background: #fff;
  }

  body.page-works .works-hero {
    position: relative !important;
    height: auto !important;
    min-height: 760px !important;
    margin: 0 !important;
    padding: clamp(100px, 17vw, 132px) 24px 330px !important;
    overflow: hidden !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0 56%, rgba(243, 247, 249,.94) 78%, #f0f5f8 100%) !important;
  }

  body.page-works .works-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 330px;
    background-image: url("../works-reference/works-hero-desktop-v74-hq-v66.webp");
    background-repeat: no-repeat;
    background-size: 245% auto;
    background-position: 79% 82%;
    clip-path: ellipse(88% 92% at 66% 100%);
  }

  body.page-works .works-hero__stage {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: none !important;
    background: none !important;
  }

  body.page-works .works-hero__stage > img:not(.works-hero__badge) {
    display: none !important;
  }

  body.page-works .works-hero__copy {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    width: min(100%, 620px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  body.page-works .works-hero__badge {
    display: block !important;
    position: static !important;
    width: clamp(118px, 30vw, 150px) !important;
    height: auto !important;
    margin: 0 auto 28px !important;
    opacity: .88;
  }

  body.page-works .works-hero__title {
    margin: 0 !important;
    color: #23384b !important;
    font-family: "Noto Serif JP", "Yu Mincho", serif !important;
    font-size: clamp(38px, 10.5vw, 58px) !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: .12em !important;
    white-space: nowrap;
  }

  body.page-works .works-hero__divider {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(230px, 60vw);
    margin: 26px auto 18px !important;
    color: #a8b79c;
  }

  body.page-works .works-hero__divider span {
    display: block !important;
    flex: 1;
    height: 1px;
    background: #d6e3eb;
  }

  body.page-works .works-hero__lead {
    max-width: 24em;
    margin: 0 auto !important;
    color: #54697d !important;
    font-size: clamp(13px, 3.5vw, 16px) !important;
    line-height: 2 !important;
    letter-spacing: .08em !important;
  }

  body.page-works .works-hero__tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important;
    margin: 28px auto 0 !important;
    border: 1px solid #d8e4eb !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: rgba(255,255,255,.94) !important;
  }

  body.page-works .works-hero__tabs a {
    min-height: 46px;
    padding: 12px 8px !important;
    border-right: 1px solid #d8e4eb !important;
    border-bottom: 1px solid #d8e4eb !important;
    color: #4b5f72 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  body.page-works .works-hero__tabs a:last-child {
    grid-column: 1 / -1;
    border-bottom: 0 !important;
  }

  body.page-works .works-hero__tabs .is-active {
    color: #fff !important;
    background: #39779d !important;
  }

  body.page-works .works-reference-hotspots {
    display: none !important;
  }

  body.page-works .works__content {
    width: 100%;
    padding: 48px 20px 80px !important;
    background: #f0f5f8;
  }
}

@media (max-width: 420px) {
  body.page-works .works-hero {
    min-height: 720px !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
    padding-bottom: 292px !important;
  }

  body.page-works .works-hero::after {
    height: 292px;
    background-size: 280% auto;
    background-position: 78% 84%;
  }

  body.page-works .works-hero__title {
    font-size: clamp(34px, 10vw, 42px) !important;
    letter-spacing: .08em !important;
  }
}
