@charset "UTF-8";
/* ==========================================================================
   KANAME CONSTRUCTION — Works Page  (style.css → sub.css の後に読み込む)
   --------------------------------------------------------------------------
   01. Hero stats
   02. Pick up
   03. Project list / Filter
   04. Project detail (modal content)
   05. Clients
   06. Responsive
   ========================================================================== */

/* ---------- 01. Hero stats ---------- */
.wstats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.wstats li { display: flex; flex-direction: column; padding: 20px 24px 22px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.wstats span { font-size: 12px; opacity: .7; }
.wstats b { margin-top: 6px; color: var(--blue); font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
.wstats small { margin-left: 3px; font-family: var(--f-sans); font-weight: 500; font-size: 13px; color: var(--black); }
.wstats em { margin-top: 8px; font-style: normal; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; opacity: .5; }

/* ---------- 02. Pick up ---------- */
.pickup { padding: var(--section-space) 0; background: var(--blue-pale); }
.pickup .feat a { cursor: pointer; }
.pickup__more { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; font-weight: 700; font-size: 14px; }
.pickup__more svg { width: 40px; height: 40px; padding: 10px; border: 1px solid var(--black); border-radius: 50%; transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease); }
.pickup .feat a:hover .pickup__more svg { background: var(--red); border-color: var(--red); color: var(--white); transform: rotate(-45deg); }

/* ---------- 03. Project list ---------- */
.wl { padding: var(--section-space) 0; }
.wl__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.wl__count { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.wl__count b { color: var(--blue); font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: clamp(48px, 5vw, 80px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wl__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(24px, 3vw, 40px); padding-bottom: 6px; }
.wl__bar .img-note { margin-top: 0; }
.wlist--all { margin-top: clamp(24px, 3vw, 40px); row-gap: clamp(36px, 4vw, 56px); }
.wlist--all li[hidden] { display: none; }
.wlist--all .wcard__img { position: relative; }
.wcard__cat { position: absolute; left: 12px; top: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--blue); font-size: 11px; font-weight: 700; line-height: 1.8; }
.wcard[data-cat="civil"] .wcard__cat { color: #175596; }
.wcard[data-cat="renovation"] .wcard__cat { color: #985132; }
.wcard[data-cat="maintenance"] .wcard__cat { color: #14625e; }
.wcard[data-cat="environment"] .wcard__cat { color: #2c7a3d; }
.wl__more { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 56px); }
.wl__more .btn { margin-top: 0; }
.wl__more .btn__icon svg { transform: rotate(90deg); }
.wl__more .btn:hover .btn__icon svg { transform: rotate(90deg) translateX(4px); }
.wl__more [hidden] { display: none; }

/* ---------- 04. Project detail ---------- */
.wd { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100%; }
.wd__img { position: relative; min-height: 320px; background: var(--blue-pale); }
.wd__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd__body { padding: clamp(28px, 3.4vw, 52px); }
.wd__cat { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 11px; }
.wd__cat span { padding: 2px 8px; border-radius: 4px; background: var(--red); color: var(--white); }
.wd__ttl { margin-top: 18px; padding-right: 40px; font-family: var(--f-serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.5; }
.wd__txt { margin-top: 16px; font-size: 14px; line-height: 2.1; opacity: .85; }
.wd__data { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; border-top: 1px solid var(--line-strong); }
.wd__data div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wd__data div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.wd__data dt { font-size: 11px; opacity: .6; }
.wd__data dd { color: var(--blue); font-family: var(--f-en); font-stretch: 112%; font-weight: 800; font-size: 18px; line-height: 1.5; }
.wd__spec { margin-top: 22px; }
.wd__spec div { display: grid; grid-template-columns: 80px 1fr; padding: 6px 0; font-size: 13px; }
.wd__spec dt { font-family: var(--f-mono); font-size: 11px; opacity: .6; padding-top: 2px; }
.wd__spec a { color: var(--blue); border-bottom: 1px solid currentColor; }
.wd__tag { margin-top: 18px; font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.wd__note { margin-top: 6px; font-size: 11px; color: #42566d; }

/* ---------- 05. Clients ---------- */
.clients { padding: var(--section-space) 0; background: var(--blue-pale); }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr 280px; gap: clamp(14px, 1.6vw, 24px); }
.clients__col { padding: clamp(22px, 2.6vw, 36px); border-radius: 14px; background: var(--white); border-top: 4px solid var(--blue); }
.clients__col:nth-child(2) { border-top-color: var(--red); }
.clients__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.clients__head svg { width: 28px; height: 28px; color: var(--blue); }
.clients__head span { margin-left: auto; font-family: var(--f-sans); font-weight: 500; font-size: 12px; opacity: .6; text-transform: none; }
.clients__col li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.clients__col li::before { content: "—"; font-family: var(--f-mono); margin-right: 10px; color: var(--red); }
.clients__ring { position: relative; display: grid; place-items: center; padding: 24px; border-radius: 14px; background: var(--grad); color: var(--white); }
.clients__ring svg { width: 100%; max-width: 220px; rotate: -90deg; }
.ring__bg { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 8; }
.ring__fg { fill: none; stroke: var(--white); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 2s var(--ease) .4s; }
.clients__ring.is-in .ring__fg { stroke-dasharray: 70 100; }
.clients__ring p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.clients__ring b { font-family: var(--f-en); font-stretch: 125%; font-weight: 800; font-size: 52px; line-height: 1; }
.clients__ring small { font-family: var(--f-sans); font-size: 16px; margin-left: 2px; }
.clients__ring span { margin-top: 8px; font-size: 12px; }

/* ---------- 06. Responsive ---------- */
@media (max-width: 1180px) {
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .clients__ring { grid-column: 1 / -1; min-height: 260px; }
  .clients__ring svg { max-width: 200px; }
}
@media (max-width: 960px) {
  .wstats { grid-template-columns: 1fr 1fr; }
  .wlist--all { grid-template-columns: 1fr 1fr; }
  .wd { grid-template-columns: 1fr; }
  .wd__img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .wstats li { padding: 16px; }
  .wstats em { display: none; }
  .wl__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .wlist--all { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: 1fr; }
  .wd__data { grid-template-columns: 1fr; }
  .wd__data div:nth-child(2n) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ring__fg { stroke-dasharray: 70 100; }
}
