/* ===== Works page ===== */
.gnav a.is-active{color:var(--navy);font-weight:700}

/* info bar */
.pinfo{background:#eef2f8;border-bottom:1px solid #e0e6f0}
.pinfo__inner{max-width:var(--maxw);margin:0 auto;padding:12px 28px;display:flex;align-items:center;gap:10px}
.pinfo__inner svg{width:20px;height:20px;fill:#8a97ad;flex-shrink:0}
.pinfo__inner span{font-size:15px;font-weight:700;color:var(--navy)}

/* hero */
.whero{position:relative;background:#fff}
.whero__top{position:relative;overflow:hidden}

/* right visual: scaffold photo + blueprint panel split by a diagonal */
.whero__visual{position:absolute;top:0;right:0;bottom:0;width:62%;z-index:0}
.whero__photo{
  position:absolute;inset:0;
  background:url("../assets/img/wk-scaffold.png") center/cover no-repeat;
  clip-path:polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.whero__plan{
  position:absolute;top:0;right:0;bottom:0;width:42%;
  background:url("../assets/img/wk-bg-plan.png") right center/cover no-repeat;
  opacity:.6;
  clip-path:polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.whero__inner{
  position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:52px 28px 0;
  min-height:640px;
  display:grid;grid-template-columns:41% 59%;column-gap:28px;align-items:start;
}
.whero__body{padding-top:6px;max-width:560px}
.whero__crumb{font-size:15px;color:var(--muted)}
.whero__crumb a{color:var(--muted)}
.whero__crumb a:hover{color:var(--navy)}
.whero__label{display:block;margin-top:22px;font-size:20px;font-weight:800;letter-spacing:3px;color:#2b5bb5}
.whero__title{margin-top:12px;font-size:60px;font-weight:900;color:var(--navy);letter-spacing:3px;line-height:1.18}
.whero__rule{display:block;width:64px;height:3px;background:#c7d0e0;margin:24px 0}
.whero__lead{font-size:17px;line-height:1.95;color:var(--text);font-weight:500}
.whero__btn{
  display:inline-flex;align-items:center;gap:16px;margin-top:34px;
  background:var(--navy);color:#fff;height:72px;padding:0 44px;border-radius:8px;
  font-size:20px;font-weight:700;transition:opacity .2s;box-shadow:0 14px 30px rgba(12,35,80,.22);
}
.whero__btn .arr{font-style:normal;font-size:24px;margin-left:4px}
.whero__btn:hover{opacity:.92}

/* sample cards */
.whero__cards{
  align-self:end;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
  padding-bottom:52px;
}
.wcard{
  background:#fff;border:1px solid #e6ebf3;border-radius:14px;overflow:hidden;
  box-shadow:0 16px 38px rgba(12,35,80,.14);
}
.wcard__head{display:flex;align-items:center;gap:12px;padding:16px 18px 14px}
.wcard__ic{
  width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--navy);
  display:flex;align-items:center;justify-content:center;
}
.wcard__ic svg{width:22px;height:22px}
.wcard__title{font-size:19px;font-weight:800;color:var(--navy)}
.wcard__img{padding:0 14px 16px}
.wcard__img img{
  width:100%;height:168px;object-fit:cover;object-position:center;
  border:1px solid #eef1f6;border-radius:8px;background:#fbfcfe;display:block;
}
.wcard:nth-child(3) .wcard__img img{object-position:top}

/* bottom feature bar */
.whero__features{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:0 28px 46px}
.whero__features-inner{
  background:#f5f7fb;border:1px solid #e6ebf3;border-radius:14px;
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;
  padding:22px 20px;
}
.wfeat{display:flex;align-items:center;gap:16px;justify-content:center;padding:4px 20px}
.wfeat__ic{
  width:52px;height:52px;flex-shrink:0;border-radius:50%;background:var(--navy);
  display:flex;align-items:center;justify-content:center;
}
.wfeat__ic svg{width:28px;height:28px;fill:#fff}
.wfeat__txt{display:flex;flex-direction:column;gap:3px}
.wfeat__txt b{font-size:19px;font-weight:800;color:var(--navy)}
.wfeat__txt span{font-size:14px;color:var(--muted)}
.wfeat__div{width:1px;height:52px;background:#dde3ee}

/* ===== responsive ===== */
@media (max-width:1100px){
  .whero__title{font-size:50px}
  .whero__inner{grid-template-columns:40% 60%;min-height:560px}
  .wcard__img img{height:140px}
}
@media (max-width:980px){
  .whero__visual{width:100%;height:340px;position:relative}
  .whero__photo{clip-path:none;-webkit-mask-image:linear-gradient(180deg,#000 66%,rgba(0,0,0,.2));mask-image:linear-gradient(180deg,#000 66%,rgba(0,0,0,.2))}
  .whero__plan{width:36%;clip-path:polygon(24% 0,100% 0,100% 100%,0 100%)}
  .whero__inner{display:block;min-height:0;padding:0 28px}
  .whero__body{max-width:none;padding:34px 0 4px}
  .whero__cards{padding-bottom:0;margin-top:8px}
  .wcard__img img{height:150px}
}
@media (max-width:768px){
  .whero__visual{height:240px}
  .whero__title{font-size:38px;letter-spacing:2px}
  .whero__label{font-size:16px}
  .whero__lead{font-size:15px}
  .whero__lead br{display:none}
  .whero__btn{width:100%;justify-content:center;height:62px;font-size:18px}
  .whero__cards{grid-template-columns:1fr;gap:14px}
  .wcard__img img{height:210px}
  .whero__features{padding:22px 18px 40px}
  .whero__features-inner{grid-template-columns:1fr;gap:0;padding:6px 18px}
  .wfeat{justify-content:flex-start;padding:16px 0}
  .wfeat__div{width:auto;height:1px}
}
@media (max-width:430px){
  .whero__title{font-size:32px}
  .whero__visual{height:190px}
}

/* ===== shared section title ===== */
.wsec-title{font-size:40px;font-weight:900;color:var(--navy);text-align:center;letter-spacing:2px;line-height:1.35}
.wsec-rule{display:block;height:4px;border-radius:2px;margin:20px auto 0;
  transform:scaleX(0);transform-origin:center;transition:transform .9s cubic-bezier(.25,.8,.3,1)}
.wsec-rule.is-drawn{transform:scaleX(1)}
@media (prefers-reduced-motion: reduce){.wsec-rule{transform:none;transition:none}}
.wsec-rule--blue{width:82px;background:#2b5bb5}
.wsec-rule--navy{width:60px;height:3px;background:var(--navy)}
.wsec-lead{text-align:center;margin-top:24px;font-size:16px;color:#5b6b86;line-height:1.7}

/* ===== 図面サンプル ===== */
.wsample{background:linear-gradient(180deg,#f5f8fc 0%,#eef3f9 100%);padding:80px 0 88px}
.wsample__inner{max-width:1220px;margin:0 auto;padding:0 28px}
.wsample__grid{margin-top:46px;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.wsample__card{display:flex;flex-direction:column;background:#fff;border:1px solid #e6ebf3;border-radius:16px;padding:26px 26px 28px;box-shadow:0 14px 34px rgba(12,35,80,.09)}
.wsample__head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.wsample__ic{width:48px;height:48px;flex-shrink:0}
.wsample__ic img{width:100%;height:100%;object-fit:contain}
.wsample__t{font-size:22px;font-weight:800;color:var(--navy)}
.wsample__img{border:1px solid #eef1f6;border-radius:8px;background:#fff;padding:12px}
.wsample__img img{width:100%;height:242px;object-fit:contain;display:block}

/* ===== 施工写真 ===== */
.wphotos{position:relative;overflow:hidden;background:#fff;padding:80px 0 72px}
.wphotos__bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.55;
  background:
    url("../assets/img/wk3-bg-a.png") left -90px top -50px/600px auto no-repeat,
    url("../assets/img/wk3-bg-b.png") right -70px bottom -50px/620px auto no-repeat;
}
.wphotos__inner{position:relative;z-index:2;max-width:1260px;margin:0 auto;padding:0 28px}
.wphotos__grid{margin-top:46px;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.wphoto{position:relative;margin:0;border-radius:12px;overflow:hidden;box-shadow:0 16px 36px rgba(12,35,80,.18)}
.wphoto img{width:100%;height:430px;object-fit:cover;display:block}
.wphoto figcaption{
  position:absolute;left:16px;bottom:16px;
  background:#fff;color:var(--navy);font-size:15px;font-weight:700;
  padding:8px 20px;border-radius:8px;box-shadow:0 4px 14px rgba(12,35,80,.16);
}
.wfeatbar{
  margin-top:32px;background:#f5f7fb;border:1px solid #e6ebf3;border-radius:14px;
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;padding:22px 20px;
}
.wfeat--sm{gap:14px}
.wfeat--sm b{font-size:19px;font-weight:800;color:var(--navy)}
.wphotos__note{text-align:center;margin-top:28px;font-size:14px;color:#7c879b}

/* ===== CTA ===== */
.wcta{position:relative;overflow:hidden;background:linear-gradient(180deg,#eef3fa 0%,#e5edf7 100%);padding:88px 0 94px}
.wcta__bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.9;mix-blend-mode:multiply;
  background:
    url("../assets/img/wk4-bg-plan.png") left top/auto 92% no-repeat,
    url("../assets/img/wk4-bg-scaffold.png") right bottom/auto 100% no-repeat;
}
.wcta__inner{position:relative;z-index:2;max-width:900px;margin:0 auto;padding:0 28px;text-align:center}
.wcta__ic{display:inline-flex;width:82px;height:82px;margin-bottom:6px}
.wcta__ic img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.wcta__title{font-size:40px;font-weight:900;color:var(--navy);letter-spacing:2px}
.wcta__lead{margin-top:22px;font-size:17px;line-height:1.95;color:var(--text);font-weight:500}
.wcta__btn{
  display:flex;align-items:center;gap:20px;max-width:640px;margin:38px auto 0;
  background:var(--navy);color:#fff;height:80px;padding:0 40px;border-radius:10px;
  font-size:22px;font-weight:700;transition:opacity .2s;box-shadow:0 18px 36px rgba(12,35,80,.26);
}
.wcta__btn span{flex:1;text-align:center}
.wcta__btn .arr{font-style:normal;font-size:26px}
.wcta__btn:hover{opacity:.93}

/* ===== section responsive ===== */
@media (max-width:980px){
  .wsec-title{font-size:30px}
  .wsample__grid{grid-template-columns:1fr;max-width:520px;margin-left:auto;margin-right:auto}
  .wphotos__grid{grid-template-columns:repeat(2,1fr);gap:18px}
  .wphoto img{height:360px}
  .wfeatbar{grid-template-columns:1fr;gap:0;padding:6px 22px}
  .wfeat--sm{justify-content:flex-start;padding:16px 0}
  .wfeat__div{width:auto;height:1px}
}
@media (max-width:768px){
  .wsample{padding:56px 0 60px}
  .wsample__img img{height:220px}
  .wphotos{padding:56px 0 54px}
  .wphotos__grid{gap:14px}
  .wphoto img{height:300px}
  .wcta{padding:60px 0 66px}
  .wcta__title{font-size:29px}
  .wcta__lead{font-size:15px}
  .wcta__lead br{display:none}
  .wcta__btn{height:66px;font-size:18px;padding:0 26px}
}
@media (max-width:480px){
  .wphotos__grid{grid-template-columns:1fr;max-width:420px;margin-left:auto;margin-right:auto}
  .wphoto img{height:340px}
  .wcta__btn{gap:10px}
  .wcta__btn .arr{font-size:22px}
}

/* ===== Footer (shared with service page) ===== */
.sfooter{background:var(--navy);color:#fff}
.sfooter__inner{max-width:var(--maxw);margin:0 auto;padding:70px 28px 46px;display:grid;grid-template-columns:1.2fr 1fr;gap:48px}
.sfooter__logo{display:flex;align-items:center;gap:16px}
.sfooter__logo img{width:auto;height:104px;object-fit:contain}
.sfooter__name{font-size:23px;font-weight:800;letter-spacing:.5px}
.sfooter__tag{margin-top:22px;font-size:15px;line-height:1.9;color:rgba(255,255,255,.8)}
.sfooter__btn{display:inline-flex;align-items:center;gap:12px;margin-top:28px;background:#fff;color:var(--navy);height:56px;padding:0 32px;border-radius:8px;font-size:17px;font-weight:700;transition:opacity .2s}
.sfooter__btn .arr{font-style:normal;font-size:20px}
.sfooter__btn:hover{opacity:.9}
.sfooter__info{list-style:none;display:flex;flex-direction:column;gap:20px;padding-top:8px}
.sfooter__info li{display:flex;align-items:center;gap:16px;font-size:15px;color:rgba(255,255,255,.9)}
.sfooter__info svg{width:24px;height:24px;fill:#fff;flex-shrink:0;opacity:.95}
.sfooter__info a{color:rgba(255,255,255,.9);transition:opacity .2s}
.sfooter__info a:hover{opacity:.7}
.sfooter__bottom{border-top:1px solid rgba(255,255,255,.16);max-width:var(--maxw);margin:0 auto;padding:26px 28px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.sfooter__nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.sfooter__nav a{font-size:14px;color:rgba(255,255,255,.82);transition:opacity .2s}
.sfooter__nav a:hover{opacity:.6}
.sfooter__copy{font-size:13px;color:rgba(255,255,255,.6)}
@media (max-width:980px){.sfooter__inner{grid-template-columns:1fr;gap:34px}}
@media (max-width:768px){
  .sfooter__inner{padding:52px 22px 36px}
  .sfooter__name{font-size:19px}
  .sfooter__logo img{height:84px}
  .sfooter__bottom{padding:22px 22px 34px;flex-direction:column;align-items:flex-start;gap:16px}
}
@media (max-width:480px){.sfooter__info li{font-size:14px;gap:12px}}

/* ===== 実績はこちら ボタン（サンプルカード内） ===== */
.wsample__btn{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin-top:18px;width:100%;height:52px;border:none;border-radius:8px;cursor:pointer;
  background:var(--navy);color:#fff;font-family:inherit;font-size:16px;font-weight:700;letter-spacing:.5px;
  transition:opacity .2s, transform .2s;box-shadow:0 10px 24px rgba(12,35,80,.18);
}
.wsample__btn .arr{font-style:normal;font-size:19px;line-height:1}
.wsample__btn:hover{opacity:.93;transform:translateY(-2px)}

/* ===== ギャラリー モーダル ===== */
.gmodal{position:fixed;inset:0;z-index:1000;display:none}
.gmodal.is-open{display:block}
.gmodal__overlay{position:absolute;inset:0;background:rgba(8,20,45,.62);backdrop-filter:blur(2px)}
.gmodal__dialog{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(920px,92vw);max-height:88vh;overflow-y:auto;
  background:#fff;border-radius:18px;box-shadow:0 40px 90px rgba(8,20,45,.4);
  padding:44px 44px 40px;animation:gPop .28s ease;
}
@keyframes gPop{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.gmodal__close{
  position:absolute;top:16px;right:16px;width:44px;height:44px;border:none;border-radius:50%;
  background:#f1f4fa;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:background .2s, transform .2s;z-index:2;
}
.gmodal__close svg{width:22px;height:22px;fill:var(--navy)}
.gmodal__close:hover{background:#e3e9f4;transform:rotate(90deg)}
.gmodal__title{font-size:26px;font-weight:900;color:var(--navy);text-align:center;letter-spacing:1px}
.gmodal__lead{margin-top:10px;font-size:15px;color:var(--muted);text-align:center}

.gview{display:none}
.gview.is-active{display:block}

/* エリア選択 */
.gregions{margin-top:30px;display:grid;grid-template-columns:1fr;gap:16px}
.gregion{
  display:flex;align-items:center;gap:20px;width:100%;text-align:left;cursor:pointer;
  background:#fff;border:1px solid #e6ebf3;border-radius:14px;padding:14px 18px;
  transition:border-color .2s, box-shadow .2s, transform .2s;font-family:inherit;
}
.gregion:hover{border-color:#b9ccec;box-shadow:0 14px 30px rgba(12,35,80,.12);transform:translateY(-2px)}
.gregion__thumb{width:96px;height:72px;flex-shrink:0;border-radius:10px;background-size:cover;background-position:center;background-color:#eef2f8}
.gregion__body{flex:1;display:flex;flex-direction:column;gap:5px}
.gregion__name{font-size:19px;font-weight:800;color:var(--navy)}
.gregion__count{font-size:13.5px;color:var(--muted)}
.gregion__arr{font-style:normal;font-size:26px;color:#9fb0cc;flex-shrink:0}

/* 写真グリッド */
.gback{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;cursor:pointer;
  background:none;border:none;font-family:inherit;font-size:15px;font-weight:700;color:var(--navy);
  transition:opacity .2s;
}
.gback:hover{opacity:.65}
.gback .arr{font-style:normal;font-size:22px;line-height:1}
.gphotos{margin-top:26px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gphoto{padding:0;border:none;cursor:pointer;border-radius:12px;overflow:hidden;background:#eef2f8;box-shadow:0 8px 20px rgba(12,35,80,.10);transition:transform .2s, box-shadow .2s}
.gphoto img{display:block;width:100%;height:150px;object-fit:cover;transition:transform .3s}
.gphoto:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(12,35,80,.18)}
.gphoto:hover img{transform:scale(1.05)}

/* 全画面 ライトボックス */
.glightbox{position:absolute;inset:0;z-index:10;display:none;align-items:center;justify-content:center;background:rgba(6,14,32,.92)}
.glightbox.is-open{display:flex}
.glightbox__img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:6px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.glightbox__close{
  position:absolute;top:20px;right:24px;width:52px;height:52px;border:none;border-radius:50%;
  background:rgba(255,255,255,.14);cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:background .2s, transform .2s;
}
.glightbox__close svg{width:26px;height:26px;fill:#fff}
.glightbox__close:hover{background:rgba(255,255,255,.28);transform:rotate(90deg)}
.glightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;border:none;border-radius:50%;
  background:rgba(255,255,255,.14);cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:#fff;transition:background .2s;
}
.glightbox__nav i{font-style:normal;font-size:34px;line-height:1;margin-top:-3px}
.glightbox__nav:hover{background:rgba(255,255,255,.28)}
.glightbox__nav--prev{left:24px}
.glightbox__nav--next{right:24px}

@media (max-width:768px){
  .gmodal__dialog{padding:40px 22px 30px;width:94vw}
  .gmodal__title{font-size:22px}
  .gphotos{grid-template-columns:1fr 1fr;gap:12px}
  .gphoto img{height:120px}
  .gregion__thumb{width:76px;height:58px}
  .gregion__name{font-size:17px}
  .glightbox__nav{width:44px;height:44px}
  .glightbox__nav--prev{left:10px}
  .glightbox__nav--next{right:10px}
  .glightbox__close{top:12px;right:14px;width:46px;height:46px}
}
@media (max-width:480px){
  .gphotos{grid-template-columns:1fr}
  .gphoto img{height:180px}
}

/* ===== ギャラリー：セクション見出し・PDFカード ===== */
.gsection{margin-top:30px}
.gsection+.gsection{margin-top:34px}
.gsection__head{font-size:16px;font-weight:800;color:var(--navy);padding-bottom:10px;border-bottom:2px solid #eef1f6;margin-bottom:18px}
.gpdf{display:flex;flex-direction:column;gap:12px}
.gpdf__item{
  display:flex;align-items:center;gap:16px;padding:16px 18px;
  background:#f7f9fd;border:1px solid #e3e9f4;border-radius:12px;cursor:pointer;
  transition:border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.gpdf__item:hover{background:#fff;border-color:#b9ccec;box-shadow:0 14px 30px rgba(12,35,80,.12);transform:translateY(-2px)}
.gpdf__ic{width:44px;height:44px;flex-shrink:0;border-radius:10px;background:#d5241f;display:flex;align-items:center;justify-content:center}
.gpdf__ic svg{width:24px;height:24px;fill:#fff}
.gpdf__txt{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.gpdf__name{font-size:16px;font-weight:800;color:var(--navy);line-height:1.4}
.gpdf__sub{font-size:12.5px;color:var(--muted)}
.gpdf__arr{flex-shrink:0}
.gpdf__arr svg{width:20px;height:20px;fill:#9fb0cc}
.gpdf__item:hover .gpdf__arr svg{fill:#2b5bb5}
