/* ================================
   ◆ ヒーローセクション（テキストのみ）
================================ */
.hero-section {
  background-color: #f7f5f2; /* 明るく柔らかいベージュ系 */
  padding: 60px 20px;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-text .en-title {
  font-size: 18px;
  color: #999;
  margin-bottom: 20px;
}

.hero-line {
  width: 60px;
  height: 2px;
  background-color: #333;
  margin: 0 auto 20px auto;
}

.hero-sub {
  font-size: 16px;
  color: #555;
}

/* ================================
   施工事例ページ本体
================================ */
.works-page {
  background: #f7f5f2;
  padding: 40px 0 70px;
}

.works-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.works-heading {
  text-align: left;
  margin-bottom: 28px;
}

.works-heading h2 {
  font-size: 20px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  margin-bottom: 6px;
}

.works-sub {
  font-size: 13px;
  color: #777;
}

.works-note-bottom {
  font-size: 12px;
  color: #777;
  margin-top: 32px;
}

/* グリッドレイアウト（参考サイト寄せ） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
}

@media (max-width: 720px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.work-item {
  cursor: pointer;
}

/* ずらしレイアウト */
@media (min-width: 721px) {
  .work-item:nth-child(2),
  .work-item:nth-child(5) {
    margin-top: 40px;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* サムネ画像ブロック */
.work-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition:
    transform 0.26s ease-out,
    box-shadow 0.26s ease-out;
}

/* アスペクト比を揃える */
.work-thumb::before {
  content: "";
  display: block;
  padding-top: 120%;  /* 縦長気味にそろえる */
}

.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

/* 画像左下のタグ */
.work-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* hover */
@media (hover: hover) {
  .work-thumb:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  }
}

/* タイトル・メタ */
.work-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-meta {
  font-size: 12px;
  color: #777;
}

/* ================================
   モーダル
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  max-width: 1100px;
  width: 96vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 26px 60px rgba(0,0,0,0.7);
  animation: modal-in 0.25s ease-out;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 880px) {
  .modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

.modal-left {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav.prev { left: 12px; }
.modal-nav.next { right: 12px; }

@media (max-width: 640px) {
  .modal-nav {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .modal-nav.prev { left: 6px; }
  .modal-nav.next { right: 6px; }
}

.modal-right {
  padding: 28px 32px 24px;
  font-size: 14px;
  color: #222;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.modal-type {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: #c03;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal-info {
  margin: 0 0 12px;
  font-size: 13px;
}

.modal-info dt {
  float: left;
  clear: both;
  width: 64px;
  color: #777;
}

.modal-info dd {
  margin: 0 0 4px 72px;
}

.modal-note {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}

.modal-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #eee;
  padding: 8px 16px;
  font-size: 11px;
  color: #777;
  background: #fafafa;
}

/* スクロール固定 */
body.no-scroll {
  overflow: hidden;
}

/* 準備中カードはクリックさせない */
.work-item.coming-soon {
  pointer-events: none;
}

/* ★ここが重要：枠いっぱいに“絶対配置”で敷き詰める */
.work-item.coming-soon .coming-soon-thumb{
  position: absolute;
  inset: 0;              /* top/right/bottom/left:0 と同じ */
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #f4f4f4, #e9e9e9);
  border: 1px solid #e0e0e0;
}

/* coming soon文字 */
.coming-soon-en {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
}

.coming-soon-jp {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
}