@charset "UTF-8";

/* ===================================================
   Plan Switcher v2 Custom Styling
   =================================================== */

/* カードの白背景、影、ボーダーを解除して透過にする */
.highgrade-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* タイトル下のメイン画像 */
.highgrade-image {
  max-width: 1000px;
  /* 標準プラン全体の幅と揃える */
  margin: 0 auto 40px;
  overflow: hidden;
}

.highgrade-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.highgrade-image img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .highgrade-image {
    margin-bottom: 24px;
  }
}

/* High Grade Planのスペックを左寄せにし、Standardとレイアウトを統一 */
.highgrade-card .specs {
  text-align: left;
}

/* ---- Plan Switcher Container & Split Buttons ---- */
.plan-switcher-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto 60px;
  max-width: 820px;
}

.switcher {
  margin: 0 !important;
  /* コンテナ配置のため単体マージンを解除 */
}

/* ハイグレードプラン専用ボタン */
.switch-btn-hg {
  padding: 12px 28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--color-text);
  border-radius: 40px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-btn-hg:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.3);
}

.switch-btn-hg.active {
  background: var(--color-text) !important;
  /* 黒地 */
  color: #ffffff !important;
  border-color: var(--color-text) !important;
}

@media (max-width: 768px) {
  .plan-switcher-container {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 var(--page-px);
  }

  .switcher {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    /* スクロール可能に */
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    border-radius: 30px !important;
    scrollbar-width: none;
  }

  .switcher::-webkit-scrollbar {
    display: none;
  }

  .switch-btn {
    flex: 0 0 auto !important;
    min-width: 100px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
  }

  .switch-btn-hg {
    width: 100%;
    height: 44px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* 画像の上に重ねるテキストバッジ */
.m-carousel,
.hg-carousel {
  position: relative;
}

.carousel-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(22, 22, 22, 0.85);
  color: #ffffff;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-en), var(--font-ja), sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}

.carousel-badge.hg-badge {
  background-color: rgba(184, 153, 94, 0.9); /* 高級感のあるゴールド調 */
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .carousel-badge {
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 10px;
  }
}


/* --- 案2: マトリックス型ワンウィンドウUI独自のスタイル --- */
.matrix-switcher-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto 60px;
  max-width: 820px;
  background: transparent;
  padding: 0;
  border: none;
}
.switcher-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
/* スイッチャーをテキストソートタブUIへ変更 */
.switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.switch-btn {
  background: none !important;
  border: none !important;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 300;
  color: rgba(74, 74, 74, 0.6) !important;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  border-radius: 0 !important;
}
.switch-btn:hover {
  color: #000 !important;
}
.switch-btn.active {
  background: transparent !important;
  color: #000 !important;
  font-weight: 400 !important;
}
.switch-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.switch-btn.active::after {
  transform: scaleX(1);
}
/* HIGH GRADEのアクティブ時はサイトの過去のトーンと合わせてゴールドに */
#switcher-grade .switch-btn[data-grade="hg"].active {
  color: #b8995e !important;
}
#switcher-grade .switch-btn[data-grade="hg"].active::after {
  background-color: #b8995e !important;
}
@media (max-width: 768px) {
  .matrix-switcher-container {
    padding: 0;
    gap: 12px;
    margin-bottom: 40px;
  }
  .switcher-row {
    gap: 8px 16px;
  }
  .switcher {
    gap: 8px 16px;
  }
  .switch-btn {
    font-size: 14px;
    padding: 4px 8px;
  }
  .switch-btn::after {
    left: 8px;
    right: 8px;
  }
}

/* --- 案2: 精緻化用（タイル配置とフェードインアニメーション） --- */
.grade-content {
  display: none;
  opacity: 0;
}

.grade-content.active {
  display: block;
  animation: gradeFadeIn 0.4s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes gradeFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4枚の2カラム2行タイルレイアウト */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.tile-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: rgba(0, 0, 0, 0.05);
}

.tile-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.tile-item img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .tile-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- 案A: High Grade カルーセル矢印デザイン（極細アウトライン＋SVG細アロー） --- */
.hg-carousel {
  overflow: visible !important;
}

.hg-carousel__btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  color: var(--color-dark) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.hg-carousel__btn span {
  display: none !important;
}

.hg-carousel__btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1px;
  fill: none;
  transition: transform 0.3s ease;
}

.hg-carousel__btn:hover {
  background: var(--color-dark) !important;
  border-color: var(--color-dark) !important;
  color: #ffffff !important;
}

.hg-carousel__btn--prev:hover svg {
  transform: translateX(-3px);
}

.hg-carousel__btn--next:hover svg {
  transform: translateX(3px);
}

.hg-carousel__btn--prev {
  left: -24px !important;
}

.hg-carousel__btn--next {
  right: -24px !important;
}

@media (max-width: 768px) {
  .hg-carousel__btn {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }
  .hg-carousel__btn--prev {
    left: 8px !important;
  }
  .hg-carousel__btn--next {
    right: 8px !important;
  }
}

/* Cinematic Modal 内のナビゲーションボタン */
.modal-overlay {
  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: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s, transform 0.3s;
  z-index: 1010;
  padding: 0;
}

.modal-btn:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.modal-btn svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1px;
  fill: none;
}

.modal-btn--prev {
  left: 32px;
}

.modal-btn--next {
  right: 32px;
}

@media (max-width: 768px) {
  .modal-btn {
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.7);
  }
  .modal-btn svg {
    width: 24px;
    height: 24px;
  }
  .modal-btn--prev {
    left: 10px;
  }
  .modal-btn--next {
    right: 10px;
  }
  .modal-img {
    max-width: 90%;
    max-height: 80%;
  }
}

/* カタカナ見出し専用の字間微調整 */
.project-header__title--katakana {
  letter-spacing: 0.15em !important;
  text-indent: 0.15em !important;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
