/*
 * 施工事例一覧 v76
 * 合成スクリーンショットを廃止し、実写真・ロゴ・ナビゲーション・本文・
 * 絞り込みを独立したHTML/CSS要素として描画する最終上書きレイヤー。
 */

:root {
  --works-brand: #39779d; --text-v37-works-brand: #39799d;
  --works-brand-deep: #39779d; --text-v37-works-brand-deep: #2f607f;
  --works-ink: #39779d; --text-v37-works-ink: #233746;
  --works-copy: #39779d; --text-v37-works-copy: #52697c;
  --works-paper: #fff; --text-v37-works-paper: #fff;
  --works-sky: #f0f5f8; --text-v37-works-sky: #eef5fa;
  --works-line: #e7e4dd; --text-v37-works-line: #e7e4dd;
}

body.page-works .works-reference-hotspots,
body.page-works .works-hero__mobile-lower-wave {
  display: none !important;
}

/* ==============================
   PC / large tablet
   ============================== */
@media (min-width: 901px) {
  html,
  body.page-works {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--works-paper);
  }

  body.page-works main,
  body.page-works .works--visual-hero {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--works-paper) !important;
  }

  body.page-works .works-hero {
    position: relative !important;
    isolation: isolate;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--works-paper) !important;
  }

  body.page-works .works-hero__mobile-photo-wave {
    position: absolute !important;
    inset: 0 !important;
    z-index: -3 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 62% center !important;
    filter: saturate(.9) brightness(1.02) !important;
    pointer-events: none !important;
  }

  body.page-works .works-hero::before,
  body.page-works .works-hero::after {
    content: none !important;
    display: none !important;
  }

  body.page-works .works-hero__stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: none !important;
    transform: none !important;
  }

  body.page-works .works-hero__stage::before {
    content: "";
    position: absolute;
    top: -13%;
    bottom: -12%;
    left: -25%;
    z-index: 0;
    width: 70%;
    background: rgba(255,255,255,.992);
    border-radius: 0 52% 49% 0 / 0 51% 49% 0;
    box-shadow: 20px 0 42px rgba(255,255,255,.24);
  }

  body.page-works .works-hero__stage::after {
    content: none !important;
    display: none !important;
  }

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

  /* PCは下端の山型装飾を使わず、写真と白い一覧パネルだけで構成する。 */
  body.page-works .works-hero__mobile-statement {
    display: none !important;
  }

  body.page-works .works-hero__mobile-statement::before {
    content: none !important;
    display: none !important;
  }

  body.page-works .works-hero__mobile-statement::after,
  body.page-works .works-hero__mobile-statement > * {
    display: none !important;
  }

  body.page-works .works-hero__copy {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    z-index: 4 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 45% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    color: var(--text-v37-works-ink) !important;
    text-align: center !important;
    white-space: normal !important;
    transform: none !important;
  }

  body.page-works .works-hero__badge {
    position: absolute !important;
    top: 23.7% !important;
    left: 50% !important;
    display: block !important;
    width: 17.4% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    object-fit: contain !important;
    opacity: .9 !important;
    transform: translateX(-50%) !important;
  }

  body.page-works .works-hero__title {
    position: absolute !important;
    top: 36.5% !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    color: var(--text-v37-works-ink) !important;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
    font-size: clamp(42px, 4.3vw, 66px) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  body.page-works .works-hero__title.motion-heading.is-visible,
  body.page-works .works-hero__lead.is-visible,
  body.page-works .works-hero__tabs.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  body.page-works .works-hero__divider {
    position: absolute !important;
    top: 46.5% !important;
    left: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 17px !important;
    width: 28% !important;
    height: auto !important;
    margin: 0 !important;
    color: #a6b69d !important;
    background: none !important;
    transform: translateX(-50%) !important;
  }

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

  body.page-works .works-hero__divider b {
    display: block !important;
    color: #a6b69d !important;
    font-size: clamp(16px, 1.45vw, 22px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  body.page-works .works-hero__lead {
    position: absolute !important;
    top: 50.2% !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: var(--text-v37-works-copy) !important;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
    font-size: clamp(13px, 1.15vw, 17px) !important;
    font-weight: 400 !important;
    line-height: 2.1 !important;
    letter-spacing: .1em !important;
  }

  body.page-works .works-hero__tabs {
    position: absolute !important;
    top: 59.5% !important;
    left: 5.2% !important;
    display: grid !important;
    grid-template-columns: 1fr 1.08fr 1.16fr 1.08fr 1.34fr !important;
    gap: 0 !important;
    width: 86.8% !important;
    height: clamp(54px, 6.05vw, 93px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--works-line) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 5px 16px rgba(42,63,78,.035) !important;
    transform: none !important;
  }

  body.page-works .works-hero__tabs a,
  body.page-works .works-hero__tabs a:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-right: 1px solid var(--works-line) !important;
    border-radius: 0 !important;
    color: #526477 !important;
    background: transparent !important;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
    font-size: clamp(12px, 1.08vw, 16px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  body.page-works .works-hero__tabs a:last-child {
    border-right: 0 !important;
  }

  body.page-works .works-hero__tabs .is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #39779d, #39779d) !important;
  }

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

/* ==============================
   Mobile: 実写真 + CSSの波形
   ============================== */
@media (max-width: 900px) {
  html,
  body.page-works {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--works-paper) !important;
  }

  body.page-works .works-hero {
    height: 216.178195vw !important;
    background: #fff !important;
  }

  body.page-works .works-hero::before,
  body.page-works .works-hero::after {
    content: none !important;
    display: none !important;
  }

  body.page-works .works-hero__mobile-photo-wave {
    position: absolute !important;
    top: 15.240328vw !important;
    left: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 79.25vw !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    filter: saturate(.92) brightness(1.02) !important;
    pointer-events: none !important;
  }

  body.page-works .works-hero__stage {
    isolation: isolate;
    overflow: visible !important;
  }

  body.page-works .works-hero__stage::before {
    content: "";
    position: absolute;
    top: 87.9vw;
    left: -12%;
    z-index: 2;
    display: block;
    width: 124%;
    height: 13.1vw;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #fff;
    pointer-events: none;
  }

  body.page-works .works-hero__stage::after {
    content: none;
    display: none;
  }

  body.page-works .works-hero__copy {
    z-index: 4 !important;
  }

  body.page-works .works-hero__mobile-lower-wave {
    display: none !important;
  }

  body.page-works .works-hero__mobile-statement {
    position: absolute !important;
    top: 171.8vw !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 13.5vw 10.433763vw 0 !important;
    color: var(--text-v37-works-ink) !important;
    background: var(--works-sky) !important;
    text-align: left !important;
  }

  body.page-works .works-hero__mobile-statement::before {
    content: "";
    position: absolute;
    top: -10.2vw;
    left: -10%;
    z-index: -1;
    width: 120%;
    height: 18vw;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--works-sky);
    transform: rotate(.8deg);
    pointer-events: none;
  }

  body.page-works .works-hero__mobile-statement::after {
    content: none !important;
    display: none !important;
  }

  body.page-works .works-hero__mobile-statement h2 {
    font-size: 4.454865vw !important;
    line-height: 1.55 !important;
  }

  body.page-works .works-hero__mobile-statement p {
    margin-top: 4.923798vw !important;
    font-size: 2.579132vw !important;
    line-height: 2.2 !important;
  }

  body.page-works .works__content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    background: var(--works-sky) !important;
  }

  body.page-works .works__grid {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* Very narrow devices: prevent any tab label from clipping. */
@media (max-width: 390px) {
  body.page-works .works-hero__tabs a,
  body.page-works .works-hero__tabs a:last-child {
    font-size: 2.12vw !important;
    letter-spacing: 0 !important;
  }
}
