@charset "UTF-8";

/* ========================================
   INFO HUB セクション
   navigation/BUST-ISSUESと完全統一
======================================== */

/* コンテナ幅統一設定 */
#section-infohub .ptl-section__inner {
  max-width: var(--ptl-container-max, 1200px);
  padding-left: var(--ptl-container-pad, 20px);
  padding-right: var(--ptl-container-pad, 20px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* セクション全体 */
.ptlHub {
  background-image: var(--infohub-bg-image, none);
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(520px, 60vh, 720px);
}

/* 固定背景では不要（DOM要素としての背景は非表示） */
.ptlHub__bg {
  display: none;
}

/* オーバーレイ */
.ptlHub__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay, 0.25));
  z-index: 1;
}

/* コンテンツエリア（上下中央配置を維持） */
.ptlHub .ptl-section__inner {
  position: relative;
  z-index: 2;
  max-width: var(--ptl-container-max, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ヘッダー（パディング追加） */
.ptlHub__header {
  text-align: center;
  margin-bottom: 60px;
}

/* カードグリッド */
.ptlHub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* カード */
.ptlHub__card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  min-width: 0;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.ptlHub__card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* カード画像 */
.ptlHub__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ptlHub__card:hover .ptlHub__media {
  opacity: 0.85;
}

.ptlHub__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ダーク オーバーレイは削除（ガラス モルフィズムで代替） */

/* キラっと光る演出（カーソルが止まってから発動） */
.ptlHub__media::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease 0.3s;
  z-index: 2;
  pointer-events: none;
}

.ptlHub__card:hover .ptlHub__media::before {
  left: 150%;
}

/* カードコンテンツ（画像の上に重ねるが透明） */
.ptlHub__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 40px 20px;
  text-align: center;
  z-index: 3;
  background: transparent;
}

/* カードタイトル（黒文字） */
.ptlHub__title {
  position: relative;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  letter-spacing: 0.08em;
  text-shadow: none;
  -webkit-text-stroke: none;
}

/* カード説明文（黒文字） */
.ptlHub__desc {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  color: #555;
  line-height: 1.6;
  margin: 0;
  text-shadow: none;
  -webkit-text-stroke: none;
}

/* ========================================
   緊急修正：カードを確実に最大幅に拡張
======================================== */

/* カードを確実にグリッドセル幅いっぱいに */
#section-infohub .ptlHub__card {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

/* ========================================
   セクション余白（独自管理）
======================================== */

#section-infohub,
.ptlHub {
  margin-top: 0;
  margin-bottom: 80px;
  padding-top: 0;
  padding-bottom: 0;
}

/* =====================================================
   SP: INFO HUB 元のスタイルに戻す
   実装日: 2025-11-10
   ----------------------------------------------------- */
@media (max-width: 959px) {
  /* PC のガラス モルフィズム効果を無効化 */
  .ptlHub__card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .ptlHub__card:hover {
    background: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  }
  
  /* 画像の opacity を戻す */
  .ptlHub__media {
    opacity: 1;
  }
  
  .ptlHub__card:hover .ptlHub__media {
    opacity: 1;
  }
  
  /* テキストを白に戻す */
  .ptlHub__title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
  }
  
  .ptlHub__desc {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 6px rgba(0, 0, 0, 0.4);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.2);
  }
  
  /* ダークオーバーレイを戻す */
  .ptlHub__media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
}
