:root {
 --blue-royal: #4f9657;
 --blue-deep: #3f7e48;
 --blue-darker: #2f5c38;
 --blue-light: #7ab07f;
 --blue-bg: #edf6ec;
 --gray-bg: #f7f7f5;
 --ink: #1e2228;
 --ink-soft: #5b6168;
 --line: #e3e3e0;
 --white: #ffffff;
 --amber: #d98e3d;
 --sans: "Noto Sans JP", sans-serif;
 --serif: "Noto Serif JP", serif;
}
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
html {
 scroll-behavior: smooth;
}
body {
 font-family: var(--sans);
 color: var(--ink);
 background: var(--white);
 line-height: 1.85;
 font-size: 16px;
 -webkit-font-smoothing: antialiased;
}
img {
 display: block;
 max-width: 100%;
}
a {
 color: inherit;
 text-decoration: none;
}
a:focus-visible,
button:focus-visible {
 outline: 3px solid var(--blue-royal);
 outline-offset: 2px;
}
ul {
 list-style: none;
}
.wrap {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
}
.wrap-narrow {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
}
.ph-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 1;
}

/* ===== Header (shared) ===== */
header {
 background: var(--white);
 border-bottom: 1px solid var(--line);
 position: sticky;
 top: 0;
 z-index: 50;
}
.header-inner {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 84px;
}
.brand {
 display: flex;
 align-items: center;
 gap: 12px;
}
.brand-logo {
 position: relative;
 width: 46px;
 height: 46px;
 border-radius: 8px;
 overflow: hidden;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #fff;
 font-family: var(--serif);
 font-weight: 700;
 font-size: 20px;
 flex-shrink: 0;
}
.brand-text {
 font-size: 17.5px;
 font-weight: 700;
 color: var(--ink);
}
.brand-text small {
 display: block;
 font-size: 11px;
 font-weight: 400;
 color: var(--ink-soft);
 margin-top: 2px;
 letter-spacing: 0.02em;
}
nav {
 display: flex;
 align-items: center;
 gap: 32px;
}
.nav-links {
 display: flex;
 gap: 30px;
 font-size: 14.5px;
}
.nav-links a {
 padding: 8px 0;
 border-bottom: 2px solid transparent;
 transition:
  border-color 0.2s ease,
  color 0.2s ease;
}
.nav-links a:hover {
 border-color: var(--blue-royal);
 color: var(--blue-royal);
}
.nav-links a.current {
 color: var(--blue-royal);
 border-color: var(--blue-royal);
}
.header-cta {
 display: flex;
 align-items: center;
 gap: 14px;
}
.header-tel {
 text-align: right;
}
.header-tel .label {
 font-size: 10.5px;
 color: var(--ink-soft);
}
.header-tel .num {
 font-size: 18px;
 font-weight: 700;
 color: var(--blue-royal);
}
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 13px 26px;
 font-size: 14.5px;
 font-weight: 700;
 letter-spacing: 0.02em;
 border-radius: 7px;
 transition: all 0.2s ease;
 cursor: pointer;
}
.btn-primary {
 background: var(--blue-royal);
 color: #fff;
}
.btn-primary:hover {
 background: var(--blue-deep);
}
.btn-outline.dark {
 border: 1.5px solid var(--blue-royal);
 color: var(--blue-royal);
 background: transparent;
}
.btn-outline.dark:hover {
 background: var(--blue-bg);
}

/* ===== Breadcrumb ===== */
.crumbs-bar {
 background: var(--gray-bg);
 border-bottom: 1px solid var(--line);
}
.crumbs {
 max-width: 1140px;
 margin: 0 auto;
 padding: 14px 24px;
 font-size: 12.5px;
 color: var(--ink-soft);
}
.crumbs a:hover {
 color: var(--blue-royal);
}
.crumbs .sep {
 margin: 0 8px;
 color: var(--line);
}
.crumbs .here {
 color: var(--ink);
}

/* ===== Article header ===== */
.article-head {
 padding: 56px 0 0;
}
.ah-tag {
 margin-bottom: 18px;
}
.news-tag {
 font-size: 12px;
 font-weight: 700;
 color: var(--blue-royal);
 border: 1px solid var(--blue-royal);
 border-radius: 999px;
 padding: 4px 14px;
 display: inline-block;
}
.article-head h1 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(26px, 3.4vw, 38px);
 line-height: 1.45;
 color: var(--ink);
 margin-bottom: 28px;
}

/* contact-rows reused as info table */
.contact-rows {
 display: flex;
 flex-direction: column;
 gap: 14px;
 background: var(--gray-bg);
 border: 1px solid var(--line);
 border-radius: 12px;
 padding: 24px 28px;
}
.contact-rows .cr {
 display: flex;
 gap: 16px;
 font-size: 14.3px;
}
.contact-rows dt {
 width: 96px;
 flex-shrink: 0;
 color: var(--ink-soft);
 font-weight: 600;
}
.contact-rows dd {
 color: var(--ink);
}

/* ===== Section scaffolding ===== */
.section {
 padding: 64px 0;
}
.section-alt {
 background: var(--gray-bg);
}
.block-head {
 margin-bottom: 28px;
}
.block-eyebrow {
 font-size: 12.5px;
 font-weight: 700;
 color: var(--blue-royal);
 letter-spacing: 0.08em;
 margin-bottom: 8px;
}
.block-head h2 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(21px, 2.4vw, 27px);
 color: var(--ink);
}

/* ===== Before / After ===== */
.ba-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 24px;
}
.ba-col {
}
.ba-label {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-family: var(--serif);
 font-weight: 700;
 font-size: 15px;
 margin-bottom: 12px;
}
.ba-label .badge {
 font-size: 11px;
 font-weight: 700;
 color: #fff;
 border-radius: 999px;
 padding: 3px 12px;
 font-family: var(--sans);
 letter-spacing: 0.04em;
}
.ba-col.before .badge {
 background: var(--ink-soft);
}
.ba-col.after .badge {
 background: var(--blue-royal);
}
.ba-photo {
 position: relative;
 aspect-ratio: 4/3;
 border-radius: 12px;
 overflow: hidden;
}
.ba-photo.before {
 background: linear-gradient(
  150deg,
  #9aa39a 0%,
  #71807a 38%,
  #4d5c52 70%,
  #2f3a32 100%
 );
}
.ba-photo.after {
 background: linear-gradient(150deg, #a8b3a6 0%, #82967f 42%, #566e54 100%);
}
.ba-cap {
 font-size: 12.5px;
 color: var(--ink-soft);
 margin-top: 10px;
}

/* ===== Gallery (shared) ===== */
.gallery-grid {
 display: grid;
 grid-template-columns: 1.4fr 1fr 1fr;
 grid-template-rows: 240px 240px;
 gap: 14px;
}
.gphoto {
 position: relative;
 border-radius: 10px;
 overflow: hidden;
 display: flex;
 align-items: flex-end;
}
.gphoto .gcap {
 position: relative;
 z-index: 3;
 color: #fff;
 font-size: 13px;
 padding: 16px 18px;
 font-weight: 600;
 letter-spacing: 0.02em;
}
.gphoto .gcap small {
 display: block;
 font-weight: 400;
 font-size: 11.5px;
 color: rgba(255, 255, 255, 0.78);
 margin-top: 2px;
}
.gphoto::before {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
 z-index: 2;
}
.gphoto.g1 {
 grid-row: 1 / 3;
 background: linear-gradient(
  150deg,
  #869186 0%,
  #5f6c60 35%,
  #3e473d 70%,
  #262e25 100%
 );
}
.gphoto.g2 {
 background: linear-gradient(150deg, #94957f 0%, #6e7060 45%, #4d4f42 100%);
}
.gphoto.g3 {
 background: linear-gradient(150deg, #a8b3a6 0%, #82967f 40%, #566e54 100%);
}
.gphoto.g4 {
 background: linear-gradient(150deg, #8d9398 0%, #646b70 45%, #3d4347 100%);
}
.gphoto.g5 {
 background: linear-gradient(150deg, #b0a489 0%, #8d7f61 45%, #5e5340 100%);
}

/* ===== Detail text ===== */
.detail-body {
 max-width: 760px;
}
.detail-body p {
 font-size: 15px;
 color: var(--ink);
 margin-bottom: 22px;
}
.detail-sub {
 font-family: var(--serif);
 font-weight: 700;
 font-size: 18px;
 color: var(--ink);
 margin: 36px 0 16px;
 padding-left: 14px;
 border-left: 3px solid var(--blue-royal);
}
.process-list {
 display: flex;
 flex-direction: column;
 gap: 0;
 border-top: 1px solid var(--line);
}
.process-list li {
 display: grid;
 grid-template-columns: 48px 1fr;
 gap: 18px;
 padding: 18px 4px;
 border-bottom: 1px solid var(--line);
 align-items: start;
}
.process-list .pnum {
 font-family: var(--serif);
 font-weight: 700;
 font-size: 14px;
 color: #fff;
 background: var(--blue-royal);
 width: 30px;
 height: 30px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.process-list .ptext h4 {
 font-size: 15px;
 font-weight: 700;
 color: var(--ink);
 margin-bottom: 3px;
}
.process-list .ptext p {
 font-size: 13.5px;
 color: var(--ink-soft);
 margin: 0;
}

/* ===== Related CTA ===== */
.related {
 text-align: center;
 padding: 64px 0;
 border-top: 1px solid var(--line);
}
.related h3 {
 font-family: var(--serif);
 font-size: 20px;
 font-weight: 700;
 margin-bottom: 8px;
}
.related p {
 font-size: 14px;
 color: var(--ink-soft);
 margin-bottom: 26px;
}
.related-actions {
 display: flex;
 gap: 14px;
 justify-content: center;
 flex-wrap: wrap;
}

/* ===== Footer (shared) ===== */
footer {
 background: var(--blue-darker);
 color: rgba(255, 255, 255, 0.82);
 padding: 52px 0 26px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 1.3fr 1fr 1fr;
 gap: 40px;
 padding-bottom: 32px;
 border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-brand .fb-name {
 font-size: 17.5px;
 font-weight: 700;
 color: #fff;
 margin-bottom: 14px;
}
.footer-brand p {
 font-size: 13.3px;
 color: rgba(255, 255, 255, 0.6);
 max-width: 300px;
}
.footer-col h6 {
 font-size: 12px;
 letter-spacing: 0.08em;
 color: rgba(255, 255, 255, 0.5);
 margin-bottom: 14px;
}
.footer-col ul {
 display: flex;
 flex-direction: column;
 gap: 9px;
 font-size: 13.3px;
}
.footer-col a:hover {
 color: #fff;
}
.footer-bottom {
 display: flex;
 justify-content: space-between;
 padding-top: 20px;
 font-size: 11.5px;
 color: rgba(255, 255, 255, 0.45);
 flex-wrap: wrap;
 gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
 .nav-links {
  display: none;
 }
 .gallery-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px 200px;
 }
 .gphoto.g1 {
  grid-row: 1 / 2;
  grid-column: 1 / 3;
 }
 .footer-grid {
  grid-template-columns: 1fr;
  gap: 26px;
 }
}
@media (max-width: 640px) {
 .header-inner {
  height: auto;
  min-height: 72px;
  padding: 14px 18px;
  flex-wrap: wrap;
  row-gap: 10px;
 }
 .brand-text {
  font-size: 14.5px;
 }
 .brand-text small {
  display: none;
 }
 .header-cta {
  width: 100%;
  justify-content: space-between;
 }
 .header-tel .label {
  display: none;
 }
 .header-tel .num {
  font-size: 15px;
 }
 .btn-primary {
  padding: 10px 18px;
  font-size: 13.5px;
 }
 .section {
  padding: 48px 0;
 }
 .ba-grid {
  grid-template-columns: 1fr;
  gap: 28px;
 }
 .contact-rows .cr {
  flex-direction: column;
  gap: 2px;
 }
 .contact-rows dt {
  width: auto;
 }
 .gallery-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 180px);
 }
 .gphoto.g1 {
  grid-column: 1;
  grid-row: 1;
 }
}
@media (prefers-reduced-motion: reduce) {
 html {
  scroll-behavior: auto;
 }
 * {
  transition: none !important;
 }
}
/* ============================================================
   工事実績 詳細ページ簡略版
============================================================ */

.product-single-simple .article-head {
 padding-bottom: 48px;
}

.product-single-simple .article-head h1 {
 margin-bottom: 32px;
}

.product-single-simple .work-summary .cr {
 grid-template-columns: 112px 1fr;
}

.product-single-simple .work-images-section {
 padding-top: 24px;
}

.product-single-simple .work-images-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 24px;
}

.product-single-simple .work-image-item {
 margin: 0;
 overflow: hidden;
 border-radius: 12px;
 background: #eef1ec;
}

.product-single-simple .work-image-item .ph-img {
 position: static;
 inset: auto;
 z-index: auto;
 display: block;
 width: 100%;
 height: auto;
 max-width: 100%;
 aspect-ratio: 4 / 3;
 object-fit: cover;
 object-position: center;
}

.product-single-simple .work-image-main {
 grid-column: 1 / -1;
}

.product-single-simple .work-image-main .ph-img {
 aspect-ratio: 16 / 9;
}

.product-single-simple .work-ba-grid {
 margin-bottom: 40px;
}

.product-single-simple .work-other-label {
 margin-bottom: 16px;
}

@media (max-width: 767px) {
 .product-single-simple .work-summary .cr {
  grid-template-columns: 88px 1fr;
 }

 .product-single-simple .work-images-grid {
  grid-template-columns: 1fr;
  gap: 16px;
 }

 .product-single-simple .work-image-main {
  grid-column: auto;
 }

 .product-single-simple .work-image-main .ph-img,
 .product-single-simple .work-image-item .ph-img {
  aspect-ratio: 4 / 3;
 }
}

/* ===== ライトボックス（拡大表示） ===== */
.work-image-link {
 position: relative;
 display: block;
 cursor: zoom-in;
}
.work-image-zoom {
 position: absolute;
 right: 12px;
 bottom: 12px;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: rgba(30, 34, 40, 0.55);
 color: #fff;
 display: flex;
 align-items: center;
 justify-content: center;
 opacity: 0;
 transform: translateY(4px);
 transition:
  opacity 0.2s ease,
  transform 0.2s ease,
  background 0.2s ease;
 z-index: 2;
 pointer-events: none;
}
.work-image-link:hover .work-image-zoom,
.work-image-link:focus-visible .work-image-zoom {
 opacity: 1;
 transform: translateY(0);
}
.work-image-link:hover .ph-img {
 filter: brightness(0.94);
}
.product-single-simple .work-image-item .ph-img {
 transition: filter 0.2s ease;
}

.lightbox {
 position: fixed;
 inset: 0;
 z-index: 1000;
 display: none;
 align-items: center;
 justify-content: center;
 background: rgba(15, 17, 20, 0.92);
 padding: 24px;
}
.lightbox.is-open {
 display: flex;
}
.lightbox-figure {
 max-width: min(1100px, 92vw);
 max-height: 86vh;
 margin: 0;
 display: flex;
 align-items: center;
 justify-content: center;
}
.lightbox-img {
 max-width: 100%;
 max-height: 86vh;
 width: auto;
 height: auto;
 border-radius: 6px;
 box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
 position: absolute;
 top: 20px;
 right: 20px;
 width: 44px;
 height: 44px;
 border: none;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.12);
 color: #fff;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: background 0.2s ease;
}
.lightbox-close:hover {
 background: rgba(255, 255, 255, 0.22);
}
.lightbox-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 width: 52px;
 height: 52px;
 border: none;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.12);
 color: #fff;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: background 0.2s ease;
}
.lightbox-nav:hover {
 background: rgba(255, 255, 255, 0.22);
}
.lightbox-prev {
 left: 20px;
}
.lightbox-next {
 right: 20px;
}
.lightbox-counter {
 position: absolute;
 bottom: 22px;
 left: 50%;
 transform: translateX(-50%);
 color: rgba(255, 255, 255, 0.75);
 font-size: 13px;
 letter-spacing: 0.04em;
}

@media (max-width: 640px) {
 .work-image-zoom {
  opacity: 1;
  width: 30px;
  height: 30px;
  right: 8px;
  bottom: 8px;
 }
 .lightbox-nav {
  width: 42px;
  height: 42px;
 }
 .lightbox-prev {
  left: 8px;
 }
 .lightbox-next {
  right: 8px;
 }
 .lightbox-close {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
 }
}
@media (prefers-reduced-motion: reduce) {
 .work-image-zoom,
 .work-image-link .ph-img,
 .lightbox-close,
 .lightbox-nav {
  transition: none !important;
 }
}
