@charset "UTF-8";

/* ===== Single Works ===== */
.single-works {
  padding: 40px 0 80px;
}

/* --- Title --- */
.single-works__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #14205C;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 50px;
  margin-left: 151px;  
}
.single-works__city {
  display: inline;
}

/* --- Gallery（Swiper メイン＋サムネ連動: aoi-gallery-sync.js） --- */
.single-works__gallery {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  gap: 12px;
  margin-bottom: 40px;
}
.single-works__gallery-main {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: #C7C7C7;
  overflow: hidden;
}
.single-works__gallery-main .swiper-wrapper {
  height: 100%;
}
.single-works__gallery-main .swiper-slide {
  height: 100%;
}
.single-works__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.single-works__gallery-thumbs {
  max-width: 230px;
  width: 100%;
  margin-left: 370px;

}
.single-works__gallery-thumbs .swiper-wrapper {
  align-items: stretch;
}
.single-works__gallery-thumb {
  aspect-ratio: 1;
  background: #C7C7C7;
  overflow: hidden;
  height: auto;
}
.aoi-gallery-sync__thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  box-sizing: border-box;
}
.aoi-gallery-sync__thumb-btn:focus-visible {
  outline: 3px solid #006B5E;
  outline-offset: 2px;
}
.single-works__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.single-works__gallery-thumbs .swiper-slide-thumb-active .aoi-gallery-sync__thumb-btn {
  box-shadow: inset 0 0 0 3px #006B5E;
}

/* --- Info Table --- */
.single-works__table {
  width: 125%;
  border-collapse: collapse;
  margin-bottom: 50px;
  font-size: 1.5rem;
  max-width: 860px;
  margin: 0 auto 50px;
}
.single-works__table th,
.single-works__table td {
  border: 1px solid #555;
  padding: 7px 45px;
  vertical-align: middle;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #333;
}
.single-works__table th {
  width: 250px;
  text-align: center;
  font-weight: 700;
  background: #ccc;
  white-space: nowrap;
}
.single-works__table td {
  text-align: left;
  font-weight: 400;
}

/* --- Back Button --- */
.single-works__back {
  display: flex;
  justify-content: center;
}
.single-works__back-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 470px;
  padding: 15px 40px;
  background: #006B5E;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 50px;
  transition: opacity 0.2s;
}
.single-works__back-btn:hover {
  opacity: 0.8;
}
.single-works__back-arrow {
  position: absolute;
  left: 35px;
  font-size: 2.0rem;
  line-height: 1;
  display: flex;
  align-items: center;
  font-weight: 400;
}

@media screen and (max-width: 768px) {

  /* ===== 全体余白 ===== */
  .single-works {
    padding: 30px 0 60px;
  }

  .inner {
    padding: 0 16px;
  }

  /* ===== タイトル ===== */
  .single-works__title {
    font-size: 2.4rem;
    margin: 0 0 30px;
    text-align: left;
    line-height: 1.5;
  }

  /* ===== ギャラリー ===== */
  .single-works__gallery {
    margin: 0 0 30px;
    align-items: center;
    gap: 10px;
  }

  .single-works__gallery-main {
    max-width: 100%;
    aspect-ratio: 1;
  }

.single-works__gallery-thumbs {
  max-width: 230px;
  width: 100%;
  margin-left: 0;

}

  /* ===== テーブル ===== */
  .single-works__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  font-size: 1.5rem;
  max-width: 360px;
  margin: 0 auto 50px;
}

  .single-works__table th {
    width: 35%;
    font-size: 1.2rem;
  }

  .single-works__table td {
    font-size: 1.3rem;
  }

  /* ===== 戻るボタン ===== */
  .single-works__back-btn {
    position: relative;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1.6rem;
    max-width: 100%;
  }

  .single-works__back-arrow {
    position: absolute;
    left: 16px;
    font-size: 2rem;
  }

}