/* =====================
   ベース
===================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* =====================
   ヘッダー
===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 5%;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}

.nav ul {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

/* =====================
   キービジュアル
===================== */
.hero-img {
  width: 100%;
  height: 60vh;
  background-image: url('../img/kv.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  position: relative;
}

.hero-text {
  background: rgba(100, 100, 100, 0.8); /* 淡いグレーの半透明背景 */
  padding: 20px 30px;
  border-radius: 10px;
  display: inline-block;
}

.hero-text h2 {
  color: #fff;
  font-size: 2.4rem;
  text-align: center;
  line-height: 1.2; /* 行間を短く */
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 16px rgba(255,255,255,0.6),
    0 0 24px rgba(173,216,230,0.4);
  background: linear-gradient(180deg, #ffffff 0%, #e0f7ff 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow:
      0 0 8px rgba(255,255,255,0.8),
      0 0 16px rgba(255,255,255,0.6),
      0 0 24px rgba(173,216,230,0.4);
  }
  100% {
    text-shadow:
      0 0 16px rgba(255,255,255,1),
      0 0 32px rgba(255,255,255,0.9),
      0 0 48px rgba(173,216,230,0.6);
  }
}

/* =====================
   施工実績セクション
===================== */
.works-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 5%;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.works-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 5%;
}

.work-item {
  flex: 0 0 calc((100% - 2 * 30px)/3); /* PC3列 */
  min-width: 0;
  position: relative;
}

/* タブレット：2列表示 */
@media (max-width: 1024px) {
  .work-item {
    flex: 0 0 calc((100% - 30px)/2); /* 2列 */
  }
}

/* スマホ：1列表示、ブロックに変更 */
@media (max-width: 768px) {
  .works-gallery {
    display: block; /* Flexではなくブロックに */
  }
  .work-item {
    width: 100%;   /* 1列表示 */
    margin-bottom: 30px; /* 下余白 */
  }
}

.work-img {
  width: 100%;
  aspect-ratio: 3 / 3; /* ← 高さを短く */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.4s;
}

.work-caption {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.work-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.work-img:hover::after {
  background: rgba(0,0,0,0.1);
}

/* =====================
   フッター
===================== */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  margin-top: 60px;
}

/* =====================
   レスポンシブ
===================== */
@media (max-width: 768px) {
  .works-gallery {
    flex-direction: column;
  }

  .work-item {
    flex: 1 1 100%;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }
}



/* =====================
   物件ページ
===================== */


.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングして全体にフィット */
  object-position: center; /* 中央を基準に表示 */
  display: block;
}

/* =====================
   ベース
===================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* =====================
   ヘッダー
===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 5%;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}

.nav ul {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

/* =====================
   キービジュアル
===================== */
.hero-img {
  width: 100%;
  height: 60vh;
  background-image: url('../img/kv.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  position: relative;
}

.hero-text {
  background: rgba(100, 100, 100, 0.8); /* 淡いグレーの半透明背景 */
  padding: 20px 30px;
  border-radius: 10px;
  display: inline-block;
}

.hero-text h2 {
  color: #fff;
  font-size: 2.4rem;
  text-align: center;
  line-height: 1.2; /* 行間を短く */
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 16px rgba(255,255,255,0.6),
    0 0 24px rgba(173,216,230,0.4);
  background: linear-gradient(180deg, #ffffff 0%, #e0f7ff 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow:
      0 0 8px rgba(255,255,255,0.8),
      0 0 16px rgba(255,255,255,0.6),
      0 0 24px rgba(173,216,230,0.4);
  }
  100% {
    text-shadow:
      0 0 16px rgba(255,255,255,1),
      0 0 32px rgba(255,255,255,0.9),
      0 0 48px rgba(173,216,230,0.6);
  }
}

/* =====================
   施工実績セクション
===================== */
.works-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 5%;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.works-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 5%;
}

.work-item {
  flex: 0 0 calc((100% - 2 * 30px)/3); /* PC3列 */
  min-width: 0;
  position: relative;
}

/* タブレット：2列表示 */
@media (max-width: 1024px) {
  .work-item {
    flex: 0 0 calc((100% - 30px)/2); /* 2列 */
  }
}

/* スマホ：1列表示、ブロックに変更 */
@media (max-width: 768px) {
  .works-gallery {
    display: block; /* Flexではなくブロックに */
  }
  .work-item {
    width: 100%;   /* 1列表示 */
    margin-bottom: 30px; /* 下余白 */
  }
}

.work-img {
  width: 100%;
  aspect-ratio: 3 / 3; /* ← 高さを短く */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background 0.4s;
}

.work-caption {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.work-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.work-img:hover::after {
  background: rgba(0,0,0,0.1);
}

/* =====================
   フッター
===================== */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  margin-top: 60px;
}

/* =====================
   レスポンシブ
===================== */
@media (max-width: 768px) {
  .works-gallery {
    flex-direction: column;
  }

  .work-item {
    flex: 1 1 100%;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }
}



/* =====================
   物件ページ
===================== */


.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングして全体にフィット */
  object-position: center; /* 中央を基準に表示 */
  display: block;
}

/* --- kugahara5のみ --- */
#project-kugahara5 .project-hero {
  height: 60vh;
  background-image: url('../works/kugahara5/img/kugahara5_main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-height: 250px;

  display: flex;            /* ← これを追加 */
  justify-content: center;  /* 横中央 */
  align-items: center;      /* 縦中央 */
  text-align: center;       /* テキスト中央 */
  position: relative;
  margin-top: 64px;         /* ヘッダーの高さ分 */
}

#project-kugahara5 .project-hero .hero-text {
  display: inline-block;        /* ブロックではなくインラインで中央 */
  padding: 20px 30px;
  border-radius: 10px;
  background: rgba(100, 100, 100, 0.6);
  color: #fff;
}


/* --- kugahara5のみ --- */
#project-kugahara5  {
  background-image: url('../works/kugahara5/img/kugahara5_main.jpg');
}


/* --- denentyouhuhontyo41のみ --- */
body.denentyouhuhontyo41 .project-hero {
  background-image: url('../works/denentyouhuhontyo41/img/denentyouhuhontyo41_main.jpg');
}



/* スライダー全体 */
.slider-container {
  position: relative;
  max-width: 800px;      /* スライダーの表示幅 */
  margin: 0 auto;
  overflow: hidden;       /* 横にはみ出した画像は隠す */
}

/* スライダー内 */
.slider {
  display: flex;          /* 横並びにする */
  transition: transform 0.5s ease;
}

/* 各スライド画像 */
.slides img {
  width: 100%;            /* スライダー幅に合わせる */
  flex-shrink: 0;         /* 横幅を固定 */
  display: block;
  border-radius: 8px;
}

/* 前後ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* --- 月ボタン --- */
.month-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.month-buttons button {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.month-buttons button:hover {
  background: #ddd;
}

.month-buttons button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* --- スライダー --- */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
  aspect-ratio: 4 / 2.5;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide-img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

/* 前後ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* --- サムネイル --- */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  border-radius: 4px;
}

.thumbnails img.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #333;
}

/* コメント  */

.photo-comment {
  max-width: 800px;
  margin: 10px auto 30px auto;
  text-align: center;
  font-size: 1rem;
  color: #555;
}


/* ==========================
   物件ページ専用スタイル
   ========================== */

#project-page .project-hero {
  height: 60vh;
  max-height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 64px; /* ヘッダー高さ分 */
}

/* hero内テキスト */
#project-page .project-hero .hero-text {
  display: inline-block;
  padding: 20px 30px;
  border-radius: 10px;
  background: rgba(100, 100, 100, 0.6);
  color: #fff;
}

/* 物件ごとの背景指定 */
.kugahara5 .project-hero {
  background-image: url('../works/kugahara5/img/kugahara5_main.jpg');
}

#project-page.denenchofu .project-hero {
  background-image: url('../works/denenchofu/img/denenchofu_main.jpg');
}

/* 戻るリンク */
#project-page .back-link {
  text-align: center;
  margin: 40px 0;
}

#project-page .back-link a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

#project-page .back-link a:hover {
  text-decoration: underline;
}
