/* ===== Project Detail Page 専用スタイル（フォーカス完全除去版） ===== */

/* ===== 最強フォーカス除去（最上位に配置） ===== */
*,
*::before,
*::after,
*:focus,
*:focus-visible,
*:focus-within,
*:active,
*:hover,
a,
a:focus,
a:focus-visible,
a:focus-within,
a:active,
a:hover,
button,
button:focus,
button:focus-visible,
button:focus-within,
button:active,
button:hover,
input,
input:focus,
input:focus-visible,
input:focus-within,
input:active,
select,
select:focus,
select:focus-visible,
select:focus-within,
select:active,
textarea,
textarea:focus,
textarea:focus-visible,
textarea:focus-within,
textarea:active,
[tabindex],
[tabindex]:focus,
[tabindex]:focus-visible,
[tabindex]:focus-within,
[tabindex]:active,
.nav__link,
.nav__link:focus,
.nav__link:focus-visible,
.nav__link:focus-within,
.nav__link:active,
.nav__link:hover,
.nav__menu-link,
.nav__menu-link:focus,
.nav__menu-link:focus-visible,
.nav__menu-link:focus-within,
.nav__menu-link:active,
.nav__menu-link:hover,
.nav__logo,
.nav__logo:focus,
.nav__logo:focus-visible,
.nav__logo:focus-within,
.nav__logo:active,
.nav__logo:hover,
.btn,
.btn:focus,
.btn:focus-visible,
.btn:focus-within,
.btn:active,
.btn:hover,
.gallery-item,
.gallery-item:focus,
.gallery-item:focus-visible,
.gallery-item:focus-within,
.gallery-item:active,
.gallery-item:hover,
.related-item,
.related-item:focus,
.related-item:focus-visible,
.related-item:focus-within,
.related-item:active,
.related-item:hover,
.concept-card,
.concept-card:focus,
.concept-card:focus-visible,
.concept-card:focus-within,
.concept-card:active,
.concept-card:hover,
.feature-item,
.feature-item:focus,
.feature-item:focus-visible,
.feature-item:focus-within,
.feature-item:active,
.feature-item:hover,
.gallery-swiper-dot,
.gallery-swiper-dot:focus,
.gallery-swiper-dot:focus-visible,
.gallery-swiper-dot:focus-within,
.gallery-swiper-dot:active,
.gallery-swiper-dot:hover,
.breadcrumb__link,
.breadcrumb__link:focus,
.breadcrumb__link:focus-visible,
.breadcrumb__link:focus-within,
.breadcrumb__link:active,
.breadcrumb__link:hover {
  outline: none !important;
  box-shadow: none !important;
  outline-offset: 0 !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* ===== ファーストビュー（Project） ===== */
.hero-project {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-project__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImageZoom 20s ease-in-out infinite;
}

.hero-project__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.8) 0%,
    rgba(168, 216, 185, 0.7) 100%
  );
  z-index: -1;
}

.hero-project__content {
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: 0 20px;
  animation: heroContentSlide 1s ease-out;
}

.hero-project__breadcrumb {
  margin-bottom: 2rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--color-white);
}

.breadcrumb__separator {
  margin: 0 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb__current {
  color: var(--color-white);
  font-weight: 500;
}

.hero-project__info {
  text-align: center;
}

.project-category {
  display: inline-block;
  background: rgba(168, 216, 185, 0.2);
  color: var(--color-accent);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(168, 216, 185, 0.3);
}

.hero-project__title {
  font-family: var(--font-japanese);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-white), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite;
}

.hero-project__subtitle {
  font-family: var(--font-japanese);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* スクロールボタン */
.hero-project__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ===== プロジェクト概要セクション（修正版） ===== */
.project-overview {
  padding: 8rem 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.project-overview::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(111, 165, 199, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.project-overview__content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.project-overview__info {
  background: var(--color-background);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--color-primary);
}

.project-meta {
  margin-top: 2rem;
}

.project-meta__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(111, 165, 199, 0.1);
}

.project-meta__item:last-child {
  border-bottom: none;
}

.project-meta__label {
  font-family: var(--font-japanese);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.project-meta__value {
  font-family: var(--font-primary);
  color: #666;
  font-size: 0.95rem;
  text-align: right;
  max-width: 200px;
}

.project-overview__description {
  padding: 2rem 0;
}

.project-overview__description p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-overview__description p:last-child {
  margin-bottom: 0;
}

/* ===== デザインコンセプトセクション ===== */
.design-concept {
  padding: 8rem 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.design-concept::before {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(168, 216, 185, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.design-concept__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.concept-card {
  background: var(--color-white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(111, 165, 199, 0.08);
  position: relative;
  overflow: hidden;
}

.concept-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 165, 199, 0.05),
    transparent
  );
  transition: left 0.8s;
}

.concept-card:hover::before {
  left: 100%;
}

.concept-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(111, 165, 199, 0.15);
  border-color: var(--color-primary);
}

.concept-card__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(111, 165, 199, 0.3);
}

.concept-card:hover .concept-card__icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(111, 165, 199, 0.4);
}

.concept-card__title {
  font-family: var(--font-japanese);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.concept-card__description {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

/* ===== デザインギャラリーセクション ===== */
.design-gallery {
  padding: 8rem 0;
  background: var(--color-white);
  position: relative;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 4rem;
}

.gallery-section {
  position: relative;
}

.gallery-section__title {
  font-family: var(--font-japanese);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.gallery-section__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 2px;
}

/* レスポンシブデザイン紹介（3枚縦長） */
.gallery-responsive-3 {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.gallery-responsive-3 .gallery-item--mobile {
  width: 280px;
  height: 650px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* デスクトップデザイン */
.gallery-desktop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item--desktop {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 500px;
}

/* 特別なレスポンシブ表示（2枚縦長） */
.gallery-special-2 {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.gallery-special-2 .gallery-item--mobile {
  width: 370px;
  height: 520px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* ギャラリーアイテム共通スタイル */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* モバイルデバイスでの画像表示改善 */
@media (max-width: 768px) {
  .gallery-item img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .gallery-item img[src=""],
  .gallery-item img:not([src]) {
    opacity: 0 !important;
  }
  
  .gallery-item img.loaded {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .related-item__image img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .related-item__image img[src=""],
  .related-item__image img:not([src]) {
    opacity: 0 !important;
  }
  
  .related-item__image img.loaded {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(111, 165, 199, 0.9) 100%
  );
  color: var(--color-white);
  padding: 2rem 1.5rem 1.5rem;
  font-family: var(--font-japanese);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== スワイプ機能用スタイル（パルス波動型インジケーター） ===== */
.gallery-swiper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 3rem;
}

.gallery-swiper-container {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.gallery-swiper-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}

.gallery-swiper-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
  background: transparent;
}

/* パルス波動型インジケーター */
.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(111, 165, 199, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: none;
  outline: none;
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: none;
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot.active {
  background: var(--color-primary);
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot.active::before {
  opacity: 1;
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot.active::after {
  opacity: 0.6;
  animation: pulseWave 2s infinite;
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot:hover {
  transform: scale(1.2);
}

.gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@keyframes pulseWave {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}
/* ===== プロジェクトの特徴セクション（2×2グリッドレイアウト） ===== */
.project-features {
  padding: 8rem 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.project-features::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(111, 165, 199, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(111, 165, 199, 0.08);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-primary),
    var(--color-accent)
  );
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s ease;
}

.feature-item:hover::before {
  transform: scaleY(1);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(111, 165, 199, 0.15);
}

.feature-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-item__number {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 25px rgba(111, 165, 199, 0.3);
}

.feature-item__title {
  font-family: var(--font-japanese);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.feature-item__description {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

/* ===== 関連プロジェクトセクション ===== */
.related-projects {
  padding: 8rem 0;
  background: var(--color-white);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.related-item {
  background: var(--color-background);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.related-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-item__image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.related-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.related-item:hover .related-item__image img {
  transform: scale(1.1);
}

.related-item__content {
  padding: 2.5rem;
}

.related-item__category {
  display: inline-block;
  background: rgba(111, 165, 199, 0.1);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.related-item__title {
  font-family: var(--font-japanese);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.related-item__description {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

.related-actions {
  text-align: center;
  margin-top: 4rem;
}

/* ===== お問い合わせCTAセクション ===== */
.contact-cta {
  padding: 8rem 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="white" opacity="0.08"/><circle cx="85" cy="35" r="1" fill="white" opacity="0.06"/><circle cx="45" cy="85" r="1" fill="white" opacity="0.1"/><circle cx="70" cy="20" r="1" fill="white" opacity="0.04"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  z-index: 0;
}

.contact-cta__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-cta__title {
  font-family: var(--font-japanese);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.contact-cta__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-cta__buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.contact-cta .btn--primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.contact-cta .btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.contact-cta .btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== アニメーション用クラス（横ずれ修正版） ===== */
.fade-in-up {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
}

.fade-in-left {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
}

.fade-in-right {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
}

/* ===== フルスクリーン画像モーダル ===== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.image-modal.active .image-modal__content {
  transform: scale(1);
}

.image-modal__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal__close {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* ===== アニメーション ===== */
@keyframes heroImageZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes heroContentSlide {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
  .project-overview__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .design-concept__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 600px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-desktop {
    grid-template-columns: 1fr;
  }

  .gallery-responsive-3,
  .gallery-special-2 {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* ヒーローセクション */
  .hero-project__title.hero-project__title {
    font-size: 2.8rem;
  }

  .hero-project__subtitle {
    font-size: 1.1rem;
  }

  .project-category {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }

  /* セクション調整 */
  .project-overview,
  .design-concept,
  .design-gallery,
  .project-features,
  .related-projects,
  .contact-cta {
    padding: 6rem 0;
  }

  /* プロジェクト概要 */
  .project-overview__info {
    padding: 2.5rem;
  }

  .project-meta__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .project-meta__value {
    text-align: left;
    max-width: 100%;
  }

  /* コンセプトカード */
  .concept-card {
    padding: 2.5rem 2rem;
  }

  .concept-card__icon {
    width: 80px;
    height: 80px;
  }

  /* 特徴アイテム */
  .feature-item {
    padding: 2.5rem;
  }

  .feature-item__number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  /* ギャラリー - スワイプ対応 */
  .gallery-responsive-3,
  .gallery-special-2,
  .gallery-desktop {
    display: none;
  }

  .gallery-swiper {
    display: block;
    margin-bottom: 2rem;
  }

  .gallery-responsive-3 .gallery-item--mobile {
    width: 250px;
    height: 580px;
  }

  .gallery-special-2 .gallery-item--mobile {
    width: 320px;
    height: 480px;
  }

  /* スワイプインジケーターのモバイル調整 */
  .gallery-swiper .gallery-swiper-indicators {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot {
    width: 12px;
    height: 12px;
  }

  /* コンタクトCTA */
  .contact-cta__title {
    font-size: 2rem;
  }

  .contact-cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* 全体的な余白調整 */
  .container {
    padding: 0 15px;
  }

  /* ヒーローセクション */
  .hero-project__title {
    font-size: 2.2rem;
  }

  .hero-project__subtitle {
    font-size: 1rem;
  }

  .hero-project__scroll {
    bottom: 20px;
  }

  /* セクション調整 */
  .project-overview,
  .design-concept,
  .design-gallery,
  .project-features,
  .related-projects,
  .contact-cta {
    padding: 4rem 0;
  }

  /* プロジェクト概要 */
  .project-overview__info {
    padding: 2rem;
  }

  .project-overview__description p {
    font-size: 1rem;
  }

  /* コンセプトカード */
  .concept-card {
    padding: 2rem 1.5rem;
  }

  .concept-card__icon {
    width: 70px;
    height: 70px;
  }

  .concept-card__title {
    font-size: 1.4rem;
  }

  /* 特徴アイテム */
  .feature-item {
    padding: 2rem;
  }

  .feature-item__title {
    font-size: 1.4rem;
  }

  /* 関連プロジェクト */
  .related-item__content {
    padding: 2rem;
  }

  .related-item__title {
    font-size: 1.4rem;
  }

  /* ギャラリー調整 */
  .gallery-responsive-3 .gallery-item--mobile {
    width: 220px;
    height: 520px;
  }

  .gallery-special-2 .gallery-item--mobile {
    width: 280px;
    height: 420px;
  }

  /* スワイプインジケーターの小画面調整 */
  .gallery-swiper .gallery-swiper-indicators {
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
  }

  .gallery-swiper .gallery-swiper-indicators .gallery-swiper-dot {
    width: 10px;
    height: 10px;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 1.8rem;
  }

  .gallery-section__title {
    font-size: 1.5rem;
  }

  /* コンタクトCTA */
  .contact-cta__title {
    font-size: 1.8rem;
  }

  .contact-cta__description {
    font-size: 1rem;
  }
}

/* ===== パフォーマンス最適化 ===== */
.gallery-item img,
.related-item__image img,
.hero-project__image {
  will-change: transform;
}

.concept-card,
.feature-item,
.related-item {
  will-change: transform, box-shadow;
}

/* ===== アクセシビリティ対応 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gallery-item:hover,
  .concept-card:hover,
  .feature-item:hover,
  .related-item:hover {
    transform: none !important;
  }

  .hero-project__image {
    animation: none !important;
  }
}

/* ===== プリント用スタイル ===== */
@media print {
  .hero-project {
    height: auto;
    padding: 2rem 0;
  }

  .hero-project__content {
    color: #000;
  }

  .hero-project__title {
    -webkit-text-fill-color: #000;
  }

  .project-overview,
  .design-concept,
  .design-gallery,
  .project-features,
  .related-projects,
  .contact-cta {
    page-break-inside: avoid;
    padding: 2rem 0;
  }

  .contact-cta {
    background: #f5f5f5;
    color: #000;
  }

  .gallery-item:hover .gallery-item__caption {
    opacity: 1;
    transform: translateY(0);
  }

  .image-modal {
    display: none;
  }

  .gallery-swiper-indicators {
    display: none;
  }
}

/* ===== 高解像度ディスプレイ対応 ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-project__image,
  .gallery-item img,
  .related-item__image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ダークモード対応（将来的な拡張用） ===== */
@media (prefers-color-scheme: dark) {
  .project-overview,
  .design-gallery {
    background: #1a1a1a;
  }

  .project-overview__info,
  .concept-card,
  .feature-item,
  .related-item {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .project-meta__label,
  .concept-card__title,
  .feature-item__title,
  .related-item__title {
    color: #e0e0e0;
  }

  .project-meta__value,
  .concept-card__description,
  .feature-item__description,
  .related-item__description {
    color: #b0b0b0;
  }
}

/* ===== スクロール進行バー（プロジェクト詳細専用） ===== */
.scroll-progress-project {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(111, 165, 199, 0.5);
}

/* ===== カスタムスクロールバー ===== */
.project-overview__description::-webkit-scrollbar,
.concept-card__description::-webkit-scrollbar,
.feature-item__description::-webkit-scrollbar {
  width: 6px;
}

.project-overview__description::-webkit-scrollbar-track,
.concept-card__description::-webkit-scrollbar-track,
.feature-item__description::-webkit-scrollbar-track {
  background: rgba(111, 165, 199, 0.1);
  border-radius: 3px;
}

.project-overview__description::-webkit-scrollbar-thumb,
.concept-card__description::-webkit-scrollbar-thumb,
.feature-item__description::-webkit-scrollbar-thumb {
  background: rgba(111, 165, 199, 0.3);
  border-radius: 3px;
}

.project-overview__description::-webkit-scrollbar-thumb:hover,
.concept-card__description::-webkit-scrollbar-thumb:hover,
.feature-item__description::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 165, 199, 0.5);
}

/* ===== 読み込み状態のスタイル ===== */
.loading-placeholder {
  background: linear-gradient(
    90deg,
    rgba(111, 165, 199, 0.1) 0%,
    rgba(111, 165, 199, 0.2) 50%,
    rgba(111, 165, 199, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== スムーズスクロール強化 ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ===== セレクション色のカスタマイズ ===== */
::selection {
  background: rgba(111, 165, 199, 0.2);
  color: var(--color-primary);
}

::-moz-selection {
  background: rgba(111, 165, 199, 0.2);
  color: var(--color-primary);
}

/* ===== 追加フォーカス除去（特に強力） ===== */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
}

html,
body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

button,
button:focus,
button:active,
button:hover {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ナビゲーション特化フォーカス除去 */
.nav__link,
.nav__menu-link,
.nav__logo,
.breadcrumb__link {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

.nav__link:focus,
.nav__link:active,
.nav__link:hover,
.nav__menu-link:focus,
.nav__menu-link:active,
.nav__menu-link:hover,
.nav__logo:focus,
.nav__logo:active,
.nav__logo:hover,
.breadcrumb__link:focus,
.breadcrumb__link:active,
.breadcrumb__link:hover {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}
/* iOS Safari 特化フォーカス除去 */
@supports (-webkit-touch-callout: none) {
  * {
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  a,
  button,
  input,
  textarea,
  select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Firefox 特化フォーカス除去（修正版） */
@-moz-document url-prefix() {
  * {
    outline: none !important;
    user-select: none !important;
  }

  a,
  button,
  input,
  textarea,
  select {
    outline: none !important;
    box-shadow: none !important;
    user-select: none !important;
  }

  /* Firefox特有のフォーカスリング除去 */
  *::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
  }

  *::-moz-focus-outer {
    border: 0 !important;
    outline: none !important;
  }
}

/* Edge/IE 特化フォーカス除去 */
@supports (-ms-ime-align: auto) {
  * {
    touch-action: manipulation !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

/* ===== 終了 ===== */
