body {
  background: #f7f7f7;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* プロジェクト詳細ページではメニューを非表示 */
.project-detail-nav--hidden {
  display: none;
}

/* スライドエリア全体（画像エリアのみ・pagination/caption は .swiper-extra へ） */
.swiper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 50px;
  padding-bottom: 0;
}

/* ページネーション・キャプション（swiper 外に配置してナビボタンを画像中央に） */
.swiper-extra {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 50px;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.swiper-pagination-bullet {
  width: 30px;
  height: 6px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #f5c542;
}

/* スライドキャプション */
.swiper-caption {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #fffdf5;
  border: 1px solid #f5c542;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 90%;
  margin: 16px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.swiper-coming-soon {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.swiper-pagination {
  position: static;  /* または relative */
}

/* メインエリア */
.project-detail {
  max-width: 820px;
  padding: 3rem 2.5rem;
  margin: 100px auto 80px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: calc(100% - 40px);
  box-sizing: border-box;
}

/* タイトル */
.project-detail__header {
  text-align: center;
  margin-bottom: 12px;
}

.project-detail__title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: .6px;
  margin-bottom: 1.5rem;
  color: #333;

  padding-left: clamp(50px, 6vw, 78px);
  z-index: 0;
  isolation: isolate;
}

.project-detail__title::before,
.project-detail__title::after {
  content: "";
  position: absolute;
  border-radius: 20%;
  z-index: -1;
  pointer-events: none;
}

/* 手前（大）ホワホワ */
.project-detail__title::before {
  width: 1.8em;
  height: 1.8em;
  left: clamp(4px, 1vw, 8px);
  top: clamp(4px, 1vw, 8px);
  background: rgba(252, 176, 69, .25);
  transform: rotate(15deg);
}

/* 奥（小）ホワホワ */
.project-detail__title::after {
  width: 1.4em;
  height: 1.4em;
  left: clamp(24px, 4vw, 36px);
  top: clamp(-12px, -2vw, -18px);
  background: rgba(252, 176, 69, .15);
  transform: rotate(-10deg);
}

/* タグはそのまま（横に置く場合） */
.project-detail__tag {
  display: inline-block;
  background: #f5c542;
  color: #fff;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 500;
}

/* ==========================
     セクション
========================== */
.project-detail__section {
  margin-bottom: 2.5rem;
}

/* 見出し */
.project-detail__heading {
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  border-left: 6px solid #f5c542;
  padding-left: 0.6rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
  color: #333;
}

/* サブ見出し（ユーザー向け・管理者向け） */
.project-detail__subheading {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 600;
  color: #333;
  margin: 0.8rem 0 0.4rem;
  padding-left: 0.8rem;
  border-left: 3px solid #ffd966;
}

/* テキスト・リスト */
.project-detail__text {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #444;
  line-height: clamp(1.6, 2vw, 1.8);
}

.project-detail__list {
  list-style: none;
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

.project-detail__item {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.3rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: clamp(1.6, 2vw, 1.8);
}

.project-detail__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border: 2px solid #aaa;
  border-radius: 50%;
  background: transparent;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
}

/* ボタン */
.project-detail__button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffe07a;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.project-detail__button:hover {
  background-color: #f5c542;
  transform: translateY(-2px);
}

/* ページトップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #f5c542;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 1000;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #ffd966;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  font-size: 20px;
}

/* ==========================
       画像モーダル
  ========================== */
.image-modal {
  display: none;
  
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;

  justify-content: center;
  align-items: center;

  overflow: hidden; 
}

.image-modal.show {
  display: flex;
}

.image-modal__content {
  user-select: none;
  touch-action: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.image-modal__content.dragging {
  cursor: grabbing;
}

.image-modal__close {
  position: fixed; 
  top: 20px;
  right: 30px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 22px;
  cursor: pointer;

  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(4px);

  z-index: 2001;
  transition: background 0.2s ease, transform 0.2s ease;
}

.image-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.image-modal.zoomed {
  align-items: flex-start;
  padding-top: 60px;
}

.image-modal.zoomed .image-modal__content {
  margin: 0;
}

/* ==========================
     レスポンシブ対応
========================== */
/* Tablet（768px〜1024px） - タブレット */
@media (min-width: 768px) and (max-width: 1023px) {
  .swiper,
  .swiper-extra {
    padding: 0 30px;
  }

  .project-detail {
    padding: 2.5rem 2rem;
    margin: 90px auto 60px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .project-detail__title {
    font-size: 1.7rem;
    padding-left: 65px;
  }

  .project-detail__title::before {
    width: 45px;
    height: 45px;
    left: 6px;
    top: 6px;
  }

  .project-detail__title::after {
    width: 30px;
    height: 30px;
    left: 30px;
    top: -15px;
  }

  .project-detail__heading {
    font-size: 1.1rem;
  }

  .project-detail__subheading {
    font-size: 1rem;
  }

  .image-modal__close {
    top: 15px;
    right: 20px;
    font-size: 34px;
  }
}

/* Mobile（〜767px） */
@media (max-width: 767px) {
  .image-modal__content {
    max-width: 95%;
    max-height: 90vh;
  }

  .image-modal__close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .swiper,
  .swiper-extra {
    padding: 0 20px;
  }

  .swiper-pagination-bullet {
    width: 20px;
    height: 4px;
  }

  .swiper-caption {
    font-size: 12px;
    padding: 8px 12px;
    margin: 12px auto;
  }

  .project-detail {
    padding: 1.5rem 1rem;
    margin: 80px 16px 40px;
    border-radius: 8px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .project-detail__title {
    font-size: 1.4rem;
    padding-left: 50px;
    margin-bottom: 1rem;
  }

  .project-detail__title::before {
    width: 36px;
    height: 36px;
    left: 4px;
    top: 4px;
  }

  .project-detail__title::after {
    width: 24px;
    height: 24px;
    left: 24px;
    top: -12px;
  }

  .project-detail__tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .project__section {
    margin-bottom: 2rem;
  }

  .project-detail__heading {
    font-size: 1rem;
    border-left-width: 4px;
    padding-left: 0.5rem;
  }

  .project-detail__subheading {
    font-size: 0.95rem;
    padding-left: 0.6rem;
    border-left-width: 2px;
  }

  .project-detail__text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .project-detail__list {
    padding-left: 1rem;
  }

  .project-detail__item {
    padding-left: 1.2em;
    margin-bottom: 0.4rem;
  }

  .project-detail__button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top i {
    font-size: 18px;
  }
}

/* 小さい画面（455px以下） - ページネーションが2段にならないように調整 */
@media (max-width: 455px) {
  .swiper-pagination {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .swiper-pagination-bullet {
    width: 12px;
    height: 4px;
    margin: 0 2px;
    flex-shrink: 0;
  }

  .swiper-caption {
    margin-top: 20px;
  }
}