/* ──────────────────────────────────────────────────────────────
   Work Details Section
   ────────────────────────────────────────────────────────────── */
.work-details {
  padding: 0 40px;
}

.work-details > div {
  display: grid;
  grid-template-columns: 412px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto 100px;
  align-items: start;
}

.work-info {
  position: relative;
}

.work-category {
  margin-bottom: 20px;
}

.category-label {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink);
  background: transparent;
  display: inline-block;
  text-transform: uppercase;
}

.work-title {
  font-family: var(--jp-mincho);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.04em;
  white-space: pre-line;
  word-break: keep-all;
}

.work-description {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink);
  padding-top: 14px;
}

.work-description p {
  margin: 0;
  letter-spacing: 0.04em;
  text-align: justify;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .work-details > div {
    grid-template-columns: 320px 1fr;
    gap: 36px;
    margin: 60px auto 80px;
  }

  .work-details {
    padding: 0 24px;
  }

  .work-title {
    font-size: 28px;
  }
}

@media (max-width: 980px) {
  .work-details > div {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 50px auto 70px;
  }

  .work-title {
    font-size: 24px;
  }

  .work-description {
    font-size: 13px;
    line-height: 1.95;
  }
}

@media (max-width: 720px) {
  .work-details {
    padding: 0 16px;
  }

  .work-details > div {
    margin: 40px auto 60px;
  }

  .work-title {
    font-size: 20px;
  }

  .work-description {
    font-size: 12px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Detail page — additional max-width constraints
   ────────────────────────────────────────────────────────────── */
.architect,
.construction,
.firm-info,
.inquiry-wrap,
.work-details {
  max-width: var(--shell-w);
  margin-left: auto;
  margin-right: auto;
}

/* ──────────────────────────────────────────────────────────────
   Image modal (lightbox)
   ────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  padding: 40px 24px;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible }
.modal-close {
  position: absolute;
  top: 22px; right: 28px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  z-index: 2;
  border: 1.5px solid #fff;
  background: transparent;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.12) }
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 28px; height: 1.5px;
  background: #fff;
}
.modal-close::before { transform: rotate(45deg) }
.modal-close::after { transform: rotate(-45deg) }
.modal-content {
  width: 100%;
  max-width: 1200px;
  color: #fff;
  margin: auto;
}
.modal-chips { display: flex; gap: 8px; margin-bottom: 18px }
.modal-chip {
  font-size: 12px;
  letter-spacing: .06em;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  line-height: 1;
  font-family: var(--jp);
}
.modal-chip:nth-child(1) { background: #88bdeb }
.modal-chip:nth-child(2) { background: #c7b299 }
.modal-image { width: 100%; background: #000 }
.modal-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.modal-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin: 26px 0 22px;
  font-family: var(--en);
  font-size: 16px;
  letter-spacing: .08em;
  color: #fff;
}
.modal-prev,
.modal-next {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: #fff;
  cursor: pointer;
  font-family: var(--en);
  font-size: 28px;
  line-height: 1;
}
.modal-prev:hover, .modal-next:hover { opacity: .7 }
.modal-counter { min-width: 64px; text-align: center }
.modal-title {
  font-family: var(--jp);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.6;
}
.modal-desc {
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
  color: #fff;
  margin: 0;
}
.hero-swiper .swiper-slide { cursor: zoom-in }

/* ──────────────────────────────────────────────────────────────
   Breadcrumb
   ────────────────────────────────────────────────────────────── */
.breadcrumb {
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  font-size: 13px;
  letter-spacing: .04em;
  width: 100%;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 40px;
  max-width: var(--shell-w);
  margin: 0 auto;
}
.breadcrumb .chip {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink);
  background: #e8e6dc;
  padding: 4px 10px;
  line-height: 1.2;
  border-radius: 0;
  white-space: nowrap;
}
.breadcrumb .chips { display: flex; gap: 8px; flex-wrap: wrap }
.breadcrumb .name { margin-left: 18px; font-size: 13px; letter-spacing: .06em; color: var(--ink) }
.breadcrumb .divider { width: 1px; height: 14px; background: var(--ink); margin: 0 16px; flex-shrink: 0 }
.breadcrumb .firm { font-size: 13px; letter-spacing: .06em; color: var(--ink) }

/* ──────────────────────────────────────────────────────────────
   Hero slider
   ────────────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-swiper {
  width: 100%;
  height: clamp(360px, calc(100vh - 240px), 700px);
  overflow: visible;
  position: relative;
}
.hero-swiper .swiper-wrapper { align-items: stretch }
.hero-swiper .swiper-slide,
.hero-favorite-wrap {
  width: 944px;
  max-width: 70vw;
}
.hero-swiper .swiper-slide {
  height: 100%;
  flex-shrink: 0;
  transition: opacity .35s;
}
.hero-swiper .swiper-slide:not(.swiper-slide-active) { opacity: .35 }
.hero-swiper .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  position: static !important;
  width: 100% !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 2;
}
.hero-dots .swiper-pagination-bullet {
  width: 26px;
  height: 2px;
  background: #c8c8c8;
  opacity: 1;
  border-radius: 0;
  margin: 0 !important;
  cursor: pointer;
  transition: background .25s;
}
.hero-dots .swiper-pagination-bullet-active { background: #606060 }

/* スライドに追従しない固定お気に入りボタン（幅は.swiper-slideと共有、一覧ページのカードと同じ右下配置） */
.hero-favorite-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 6;
}
.hero-favorite-wrap .ext {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 31px;
  height: 31px;
  display: block;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
}
.hero-favorite-wrap .ext img { width: 100%; height: 100%; display: block }

/* ──────────────────────────────────────────────────────────────
   Section heading
   ────────────────────────────────────────────────────────────── */
.section-head {
  position: relative;
  margin: 90px auto 0;
  max-width: 1200px;
  padding: 0;
}
.section-head .script {
  position: relative;
  display: block;
  margin: 0 0 -18px 60px;
  height: auto;
  color: var(--ink);
  line-height: 1;
  z-index: 1;
}
.section-head .script img { height: auto; width: auto; display: block }
.architect .section-head .script img { width: 440px; max-width: 100% }
.architect .section-head .script { margin: 0 0 -30px 40px }
.construction .section-head .script img { width: 357px; max-width: 100% }
.section-head .rule {
  width: 100%;
  border-top: 7pt solid #f4f1e1;
  height: 0;
  position: relative;
  z-index: 0;
}

/* ──────────────────────────────────────────────────────────────
   Architect profile block
   ────────────────────────────────────────────────────────────── */
.architect { padding: 0 40px }
.architect-body {
  display: grid;
  grid-template-columns: 412px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 0;
  align-items: start;
}
.architect-photo {
  width: 412px;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
}
.architect-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.08);
  transform-origin: center;
}
.architect-info { padding-top: 14px }
.architect-name-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-bottom: 24px;
}
.architect-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--jp-mincho);
}
.architect-name .jp { font-size: 25px; letter-spacing: .08em; font-weight: 500; color: var(--ink); line-height: 1 }
.architect-name .en { font-family: var(--jp-mincho); font-size: 14px; letter-spacing: 0; color: var(--ink); margin-left: 4px; line-height: 1 }
.architect-name .stack { display: flex; flex-direction: column; align-items: flex-start }
.architect-name .stack .en { margin: 12px 0 0 2px }
.architect-divider { width: 1px; height: 50px; background: #888 }
.architect-firm { font-family: var(--jp-mincho); font-size: 25px; letter-spacing: .08em; font-weight: 500; color: var(--ink); line-height: 1 }
.architect-bio { font-size: 14px; line-height: 2.1; letter-spacing: .04em; color: var(--ink); text-align: justify }
.architect-message { font-size: 14px; line-height: 2.1; letter-spacing: .04em; color: var(--ink); text-align: justify; }
.architect-section-title {
  font-family: var(--jp-mincho);
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin: 20px 0px 5px 5px;
}

/* ──────────────────────────────────────────────────────────────
   Construction grid
   ────────────────────────────────────────────────────────────── */
.construction { padding: 0 40px }
.construction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 85px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 0;
}
.work-card { display: block }
.work-media {
  position: relative;
  width: 100%;
  height: 282px;
  overflow: hidden;
  background: #efece4;
}
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: center }
.work-ext {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 31px; height: 31px;
  display: block; line-height: 0;
}
.work-ext img { width: 31px; height: 31px }
.work-caption { margin-top: 13px; font-size: 13px; letter-spacing: .04em; color: var(--ink); text-align: center; line-height: 1.6; margin-bottom: 0 }

/* ──────────────────────────────────────────────────────────────
   Firm info table
   ────────────────────────────────────────────────────────────── */
.firm-info { padding: 80px 40px 0 }
.firm-info-inner { max-width: 1200px; margin: 0 auto; padding: 0 }
.firm-info h2 { font-family: var(--jp-mincho); font-size: 28px; font-weight: 500; letter-spacing: .12em; margin: 0 0 24px; color: var(--ink) }
.firm-info table { width: 100%; border-collapse: collapse; border-top: 2px solid #000; border-bottom: 2px solid #000 }
.firm-info th,
.firm-info td {
  text-align: left;
  vertical-align: middle;
  padding: 22px 24px;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 400;
  border-bottom: 1px solid #cccccc;
}
.firm-info tr:last-child th,
.firm-info tr:last-child td { border-bottom: 0 }
.firm-info th {
  width: 211px;
  background: transparent;
  font-family: var(--jp);
  font-weight: 400;
  border-right: 1px solid #cccccc;
  padding-left: 50px;
}

/* ──────────────────────────────────────────────────────────────
   Inquiry banner
   ────────────────────────────────────────────────────────────── */
.inquiry-wrap { padding: 60px 40px 30px }
.inquiry {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: 511px;
  max-width: 100%;
  margin: 0 auto;
  height: 130px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  transition: opacity .2s;
}
.inquiry:hover { opacity: .88 }
.inquiry-bar {
  width: 511px;
  max-width: 100%;
  height: 18px;
  background: #f4f1e1;
  margin: 0 auto;
  border: 0;
}
.inquiry .inq-script { flex-shrink: 0; width: 157px; color: #fff; display: block; line-height: 0 }
.inquiry .inq-script img { width: 157px; height: auto; display: block }
.inquiry .inq-label { font-family: var(--jp); font-size: 17px; letter-spacing: 0; color: #fff; white-space: nowrap }

/* ──────────────────────────────────────────────────────────────
   Responsive — 1280px
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .breadcrumb-inner { padding: 14px 24px }
  .hero-swiper { height: clamp(340px, calc(100vh - 220px), 560px) }
  .architect { padding: 0 24px }
  .architect-body { padding: 50px 0 0; gap: 36px; grid-template-columns: 320px 1fr }
  .architect-photo { width: 320px; height: auto }
  .construction { padding: 0 24px }
  .construction-grid { padding: 50px 0 0; gap: 60px 18px }
  .firm-info { padding: 60px 24px 0 }
  .inquiry-wrap { padding: 50px 24px 24px }
  .section-head .script { margin: 0 0 -14px 40px }
  .architect .section-head .script img { width: 360px }
  .construction .section-head .script img { width: 290px }
}

@media (max-width: 1100px) {
  .construction-grid { grid-template-columns: repeat(3, 1fr) }
}

@media (max-width: 980px) {
  .architect-body { grid-template-columns: 1fr; gap: 32px }
  .architect-photo { width: 280px; height: auto; margin: 0 auto }
  .construction-grid { grid-template-columns: repeat(2, 1fr) }
  .firm-info th { width: 140px; padding: 18px 16px; font-size: 13px }
  .firm-info td { padding: 18px 16px; font-size: 13px }
}

@media (max-width: 720px) {
  .breadcrumb-inner { flex-wrap: wrap; gap: 10px; padding: 12px 18px }
  .breadcrumb .name { margin-left: 0 }
  .breadcrumb .divider { height: 12px; margin: 0 8px }
  .hero-swiper { height: clamp(280px, 58vw, 440px) }
  .hero-swiper .swiper-slide,
  .hero-favorite-wrap { width: 88%; max-width: none }
  .hero-dots { margin-top: 16px; gap: 10px }
  .hero-dots .swiper-pagination-bullet { width: 20px }
  .section-head .script { margin: 0 0 -10px 20px }
  .architect .section-head .script img { width: 260px }
  .construction .section-head .script img { width: 210px }
  .architect { padding: 0 16px }
  .architect-body { padding: 36px 0 0 }
  .architect-photo { width: 240px; height: auto }
  .architect-name .jp { font-size: 19px }
  .architect-firm { font-size: 17px }
  .architect-bio { font-size: 13px; line-height: 1.95 }
  .construction { padding: 0 16px }
  .construction-grid { padding: 36px 0 0; grid-template-columns: 1fr 1fr; gap: 40px 12px }
  .work-media { height: 200px }
  .work-caption { font-size: 12px }
  .firm-info { padding: 48px 16px 0 }
  .firm-info h2 { font-size: 22px }
  .firm-info th { display: block; width: 100%; padding: 12px 12px 4px; font-size: 12px; color: #666; border-bottom: 0 }
  .firm-info td { display: block; width: 100%; padding: 0 12px 16px; font-size: 13px; border-bottom: 1px solid #efece4 }
  .firm-info tr:last-child td { border-bottom: 0 }
  .inquiry-wrap { padding: 36px 16px 18px }
  .inquiry { height: 100px; gap: 20px; padding: 0 20px }
  .inquiry-bar { height: 14px }
  .inquiry .inq-script { width: 120px }
  .inquiry .inq-script img { width: 120px; height: auto }
  .inquiry .inq-label { font-size: 12px; line-height: 1.5; white-space: normal }
  .modal { padding: 60px 16px 24px }
  .modal-close { top: 14px; right: 16px; width: 36px; height: 36px }
  .modal-close::before, .modal-close::after { width: 22px }
  .modal-image img { max-height: 50vh }
  .modal-pager { gap: 24px; font-size: 14px; margin: 20px 0 16px }
  .modal-title { font-size: 16px }
  .modal-desc { font-size: 12px }
  .modal-chips { margin-bottom: 14px }
}

@media (max-width: 480px) {
  .construction-grid { grid-template-columns: 1fr }
}
