@charset "UTF-8";

/* =========================================================
   WORKS PAGE
   - Header/footer/font system inherits the latest top page.
   - Product photographs are displayed exactly as supplied.
   - No AI edit, no background removal, no image filters.
   ========================================================= */

.works-page{
  background:#fff;
}

/* current nav */
.global-nav .works-current{
  position:relative;
}
.global-nav .works-current::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-9px;
  height:2px;
  background:#fff;
}

/* Hero — intentionally compact, matching the approved visual direction */
.works-hero{
  background:#fff;
  border-bottom:1px solid #ecefeb;
}
.works-hero-inner{
  width:min(1180px,calc(100% - 48px));
  height:205px;
  margin:0 auto;
  display:grid;
  grid-template-columns:37% 63%;
}
.works-hero-copy{
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px 30px 18px 10px;
}
.works-hero-copy h1{
  margin:0;
  color:var(--green);
  font-family:"Yu Mincho","Hiragino Mincho ProN","YuMincho",serif;
  font-size:39px;
  line-height:1.2;
  letter-spacing:.04em;
  font-weight:600;
}
.works-en{
  margin:9px 0 0;
  color:var(--green);
  font-family:"Noto Sans JP","Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
}
.works-rule{
  display:block;
  width:68px;
  height:3px;
  margin-top:16px;
  background:var(--green);
}
.works-hero-photo{
  position:relative;
  height:205px;
  margin:0;
  overflow:hidden;
}
.works-hero-photo::before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0 auto 0 0;
  width:34%;
  background:linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,.96) 28%,
    rgba(255,255,255,.68) 56%,
    rgba(255,255,255,.18) 83%,
    rgba(255,255,255,0) 100%
  );
}
.works-hero-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 50%;
}

/* Gallery */
.works-gallery-section{
  padding:52px 0 70px;
  background:#fafbf9;
}
.works-gallery-container{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
}
.works-gallery-heading{
  margin:0 0 34px;
  text-align:center;
}
.works-gallery-heading h2{
  margin:0;
  color:var(--green);
  font-family:"Yu Mincho","Hiragino Mincho ProN","YuMincho",serif;
  font-size:30px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:.04em;
}
.works-gallery-heading span{
  display:block;
  width:62px;
  height:2px;
  margin:12px auto 0;
  background:var(--green);
}
.works-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.works-item{
  margin:0;
  min-width:0;
}
.works-image-frame{
  aspect-ratio:1 / 1;
  overflow:hidden;
  border:1px solid #e2e5e2;
  border-radius:4px;
  background:#f5f6f4;
  display:flex;
  align-items:center;
  justify-content:center;
}

/*
  Important:
  original photo remains unchanged.
  object-fit: contain prevents cutting or enlarging a product disproportionately.
*/
.works-image-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  filter:none;
  transform:none;
}

/* Tablet */
@media (max-width:980px){
  .works-gallery{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
}

/* Smartphone */
@media (max-width:640px){
  .works-hero-inner{
    width:100%;
    height:auto;
    display:block;
  }
  .works-hero-copy{
    padding:24px 22px 14px;
  }
  .works-hero-copy h1{
    font-size:29px;
  }
  .works-en{
    font-size:11px;
  }
  .works-rule{
    width:54px;
    height:2px;
    margin-top:12px;
  }
  .works-hero-photo{
    height:112px;
  }
  .works-hero-photo::before{
    width:18%;
    background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.55) 45%,rgba(255,255,255,0) 100%);
  }

  .works-gallery-section{
    padding:28px 0 42px;
  }
  .works-gallery-container{
    width:calc(100% - 22px);
  }
  .works-gallery-heading{
    margin-bottom:22px;
  }
  .works-gallery-heading h2{
    font-size:24px;
  }
  .works-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
}
