/* ==============================
   Works Page — works-style.css
   依存: style.css（変数・リセット・共通）
============================== */

/* ===== HERO ===== */
.wk-hero {
  position: relative;
  min-height: 100vh;
  background: #0e1419;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 72px;
  overflow: hidden;
}

.wk-hero-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wk-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.wk-hero-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: #fff !important;
  margin-bottom: 40px;
}

.wk-hero-title {
  font-family: var(--font-ja);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
  letter-spacing: .07em;
  margin-bottom: 48px;
}

.wk-hero-desc {
  font-size: 14px;
  line-height: 2.6;
  letter-spacing: .08em;
  color: #fff !important;
  max-width: 460px;
  margin-bottom: 60px;
}

.wk-scroll-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .25);
}

.wk-scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, .18);
}

/* ===== 共通ラベル ===== */
.wk-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: #aaa;
  margin-bottom: 16px;
}

.wk-eyebrow--light {
  color: #fff !important;
}

/* ===== OUR ROLE ===== */
.wk-role {
  padding: 140px 72px;
  background: #fff;
}

.wk-role-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.wk-role-heading {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .1em;
  margin-bottom: 28px;
}

.wk-role-body {
  font-size: 14px;
  line-height: 2.6;
  letter-spacing: .06em;
  color: #666;
}

.wk-role-img {
  aspect-ratio: 4 / 5;
  background: #e8e4dc;
  overflow: hidden;
}

.wk-role-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== PROCESS ===== */
.wk-process {
  position: relative;
  padding: 120px 60px 140px;
  background: #1e1a15;
  overflow: hidden;
}

.wk-process-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wk-process-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.wk-process-title {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: .1em;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 72px;
}

/* ===== バブルフロー（PC） ===== */
.wk-bubble-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  /* ← ここが横並びのキモ */
  flex-direction: row;
  flex-wrap: nowrap;
}

.wk-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.wk-connector {
  flex: 1;
  height: 1px;
  background: rgba(200, 190, 160, .18);
  position: relative;
  min-width: 12px;
  max-width: 52px;
  flex-shrink: 1;
  align-self: flex-end;
  /* バブルの底辺に揃えるため少し上にオフセット */
  margin-bottom: 72px;
}

.wk-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(200, 190, 160, .25);
  border-top: 1px solid rgba(200, 190, 160, .25);
}

/* バブル共通 */
.wk-bubble {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform .3s ease;
  cursor: default;
}

.wk-bubble:hover {
  transform: scale(1.05);
}

/* サイズ段階 */
.wk-b1 {
  width: 100px;
  height: 100px;
  border: 0.8px solid rgba(200, 190, 160, .18);
  background: rgba(255, 255, 255, .03);
}

.wk-b2 {
  width: 128px;
  height: 128px;
  border: 0.8px solid rgba(200, 190, 160, .22);
  background: rgba(255, 255, 255, .04);
}

.wk-b3 {
  width: 158px;
  height: 158px;
  border: 1px solid rgba(200, 190, 160, .28);
  background: rgba(255, 255, 255, .05);
}

.wk-b4 {
  width: 188px;
  height: 188px;
  border: 1px solid rgba(200, 190, 160, .35);
  background: rgba(240, 236, 228, .06);
}

.wk-b5 {
  width: 222px;
  height: 222px;
  border: 1.2px solid rgba(200, 190, 160, .45);
  background: rgba(240, 236, 228, .08);
}

.wk-b5::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 0.5px solid rgba(200, 190, 160, .14);
}

.wk-b5::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 0.5px solid rgba(200, 190, 160, .07);
}

.wk-bubble-step {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .2em;
  color: #fff !important;
  margin-bottom: 6px;
}

.wk-bubble-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #fff;
  text-align: center;
  line-height: 1.8;
  padding: 0 8px;
}

.wk-b5 .wk-bubble-label {
  font-size: 13px;
  color: #f0ece4;
}

.wk-b5 .wk-bubble-step {
  color: #fff !important;
}

.wk-bubble-caption {
  font-size: 10px;
  letter-spacing: .06em;
  color: #fff !important;
  text-align: center;
  line-height: 1.9;
  max-width: 110px;
}

.wk-b5-wrap .wk-bubble-caption {
  color: #fff !important;
  max-width: 130px;
}

/* ===== バブル（SP） ===== */
.wk-bubble-sp {
  display: none;
  flex-direction: column;
  position: relative;
}

/* 中央縦ライン */
.wk-bubble-sp::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200, 190, 160, .1);
  transform: translateX(-50%);
}

.wk-sp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.wk-sp-item--rev {
  flex-direction: row-reverse;
}

.wk-sp-connector {
  width: 1px;
  height: 20px;
  background: rgba(200, 190, 160, .15);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.wk-sp-text {
  flex: 1;
}

.wk-sp-text--rev {
  text-align: right;
}

.wk-sp-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.7;
}

.wk-sp-desc {
  font-size: 10px;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1.9;
}

/* ===== ENGAGE（間取り図） ===== */
.wk-engage {
  padding: 120px 72px 140px;
  background: #f0ece4;
  position: relative;
  overflow: hidden;
}

.wk-engage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 62, 85, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 85, .055) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.wk-engage-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.wk-engage-title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.8;
  margin-bottom: 12px;
}

.wk-engage-desc {
  font-size: 13px;
  line-height: 2.3;
  letter-spacing: .06em;
  color: #6a6058;
  margin-bottom: 56px;
  max-width: 460px;
}

/* 間取り図共通 */
.wk-madori {
  position: relative;
  background: #ebe7de;
  border: 1.5px solid rgba(44, 62, 85, .25);
  outline: 4px solid rgba(44, 62, 85, .05);
  outline-offset: 8px;
}

/* PC間取り図 */
.wk-madori--pc {
  display: block;
}

.wk-madori--sp {
  display: none;
}

.wk-madori-svg {
  width: 100%;
  display: block;
}

.wk-room {
  cursor: pointer;
  transition: all .3s ease;
}

.wk-room-fill {
  transition: fill .3s ease;
}

.wk-room:hover .wk-room-fill {
  fill: rgba(44, 62, 85, .1);
}

.wk-room.is-active .wk-room-fill {
  fill: rgba(44, 62, 85, .16);
}

.wk-madori-titlebox {
  position: absolute;
  bottom: 16px;
  right: 16px;
  border: 0.8px solid rgba(44, 62, 85, .22);
  padding: 10px 20px;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(44, 62, 85, .45);
  background: #ebe7de;
  z-index: 10;
  line-height: 1.8;
}

.wk-madori-scale {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.wk-madori-scale-line {
  width: 48px;
  height: 1px;
  background: rgba(44, 62, 85, .28);
  position: relative;
}

.wk-madori-scale-line::before,
.wk-madori-scale-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(44, 62, 85, .28);
}

.wk-madori-scale-line::after {
  right: 0;
}

.wk-madori-scale-label {
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: .12em;
  color: rgba(44, 62, 85, .38);
}

/* 詳細パネル（PC） */
.wk-detail-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 480px;
  max-width: 90%;
  background: #1a1a1a;
  padding: 48px 44px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.wk-detail-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.wk-overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font-en);
  letter-spacing: .1em;
  transition: color .2s;
  padding: 4px 8px;
}

.wk-overlay-close:hover {
  color: #fff;
}

.wk-detail-num {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 400;
  color: rgba(255, 255, 255, .08);
  line-height: 1;
}

.wk-detail-tag {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .38);
  border: 0.5px solid rgba(255, 255, 255, .18);
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 16px;
}

.wk-detail-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: .1em;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 18px;
}

.wk-detail-body {
  font-size: 13px;
  line-height: 2.5;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .62);
}

.wk-detail-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.wk-detail-nav-btn {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
  padding: 0;
}

.wk-detail-nav-btn:hover {
  color: rgba(255, 255, 255, .85);
}

.wk-detail-dots {
  display: flex;
  gap: 8px;
}

.wk-detail-dot {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .2s;
}

.wk-detail-dot.active {
  background: rgba(255, 255, 255, .75);
}

/* SP間取りリスト */
.wk-madori-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 0.8px solid rgba(44, 62, 85, .12);
}

.wk-madori-info {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(44, 62, 85, .42);
  line-height: 1.7;
}

.wk-sp-room {
  border-bottom: 0.8px solid rgba(44, 62, 85, .1);
  cursor: pointer;
  background: transparent;
  transition: background .25s;
}

.wk-sp-room.is-open {
  background: rgba(44, 62, 85, .04);
}

.wk-sp-room-row {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  align-items: center;
  min-height: 72px;
}

.wk-sp-room-num {
  border-right: 0.8px solid rgba(44, 62, 85, .1);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebe7de;
  font-family: var(--font-en);
  font-size: 18px;
  color: rgba(44, 62, 85, .35);
  min-height: 72px;
}

.wk-sp-room-info {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wk-sp-room-label {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .22em;
  color: rgba(44, 62, 85, .38);
}

.wk-sp-room-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #2C3E55;
}

.wk-sp-room-sub {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(44, 62, 85, .42);
}

.wk-sp-room-arrow {
  font-family: var(--font-en);
  font-size: 16px;
  color: rgba(44, 62, 85, .28);
  padding-right: 14px;
  transition: transform .25s;
}

.wk-sp-room.is-open .wk-sp-room-arrow {
  transform: rotate(90deg);
}

.wk-sp-room-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
  background: #1a1a1a;
}

.wk-sp-room.is-open .wk-sp-room-detail {
  max-height: 320px;
}

.wk-sp-detail-inner {
  padding: 28px 20px 32px;
}

.wk-madori-footer {
  padding: 10px 16px;
  border-top: 0.8px solid rgba(44, 62, 85, .1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CTA ===== */
.wk-cta {
  background: #0e1419;
  padding: 140px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wk-cta-arch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wk-cta-inner {
  position: relative;
  z-index: 1;
}

.wk-cta-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 52px;
  line-height: 1.9;
}

/* 白ボタン変種 */
.btn-outline--white {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}

.btn-outline--white:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {

  /* hero */
  .wk-hero {
    min-height: auto;
    padding: 120px 28px 64px;
  }

  /* role */
  .wk-role {
    padding: 80px 28px;
  }

  .wk-role-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* process */
  .wk-process {
    padding: 80px 28px 100px;
  }

  /* バブル：PC横並びを非表示、SP縦を表示 */
  .wk-bubble-row {
    display: none;
  }

  .wk-bubble-sp {
    display: flex;
  }

  /* バブルSPサイズ縮小 */
  .wk-b1 {
    width: 76px;
    height: 76px;
  }

  .wk-b2 {
    width: 92px;
    height: 92px;
  }

  .wk-b3 {
    width: 108px;
    height: 108px;
  }

  .wk-b4 {
    width: 124px;
    height: 124px;
  }

  .wk-b5 {
    width: 144px;
    height: 144px;
  }

  .wk-b5::before {
    inset: -7px;
  }

  .wk-b5::after {
    inset: -16px;
  }

  /* engage */
  .wk-engage {
    padding: 80px 28px 96px;
  }

  .wk-madori--pc {
    display: none;
  }

  .wk-madori--sp {
    display: block;
  }

  .wk-detail-panel.is-open {
    max-height: 500px;
    padding: 36px 24px;
  }

  .wk-detail-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wk-detail-num {
    font-size: 48px;
  }

  /* cta */
  .wk-cta {
    padding: 96px 28px;
  }
}