* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #ffffff;
}

body {
  background-color: transparent;
  font-family: "Times New Roman", Times, serif;
  color: #333;
  overflow-x: hidden;
}

/* パララックスフェードイン */
.parallax-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.parallax-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヘッダー */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner {
  margin-bottom: 20px;
  flex: 0 0 45%; /* 45%の幅を確保 */
  position: relative;
}

.banner-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.banner-link:hover {
  opacity: 0.9;
}

.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-slide {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: none;
}

.banner-slide.active {
  position: relative;
  opacity: 1;
}

.banner-slide.slide-out {
  animation: slideOut 0.5s ease-in-out forwards;
}

.banner-slide.slide-in {
  animation: slideIn 0.5s ease-in-out forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.banner-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  transition: none;
}

.banner-progress-bar.animating {
  animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.header-logo-left {
  position: absolute;
  left: 0;
  width: 27.5%; /* 左側の余白エリア (100% - 45%) / 2 = 27.5% */
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo-left img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.header-logo-left.bounce img {
  animation: logoBounce 0.6s ease-in-out forwards;
}

.header-logo-right {
  position: absolute;
  right: 0;
  width: 27.5%; /* 右側の余白エリア (100% - 45%) / 2 = 27.5% */
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo-right img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.header-logo-right.bounce img {
  animation: logoBounce 0.6s ease-in-out forwards;
}

@keyframes logoBounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes textBounce {
  0% {
    transform: translateY(0);
  }
  3.08% {
    transform: translateY(-8px);
  }
  6.15%,
  100% {
    transform: translateY(0);
  }
}

/* TOPICSとSCHEDULE用バウンス（グレー→ピンク） */
@keyframes textBounceGrey {
  0%,
  6.15%,
  100% {
    transform: translateY(0);
    color: #6e6e6e;
  }
  3.08% {
    transform: translateY(-8px);
    color: #f8a5c8;
  }
}

/* DIARY用バウンス（白→ピンク） */
@keyframes textBounceWhite {
  0%,
  6.15%,
  100% {
    transform: translateY(0);
    color: #ffffff;
  }
  3.08% {
    transform: translateY(-8px);
    color: #3d3d3d;
  }
}

/* VIEW MORE カラー変更アニメーション（白ベース） */
@keyframes colorChangeLoopWhite {
  0% {
    color: #ffffff;
  }
  10% {
    color: #333;
  }
  50% {
    color: #333;
  }
  60% {
    color: #ffffff;
  }
  100% {
    color: #ffffff;
  }
}

/* VIEW MORE カラー変更アニメーション（グレーベース） */
@keyframes colorChangeLoopGray {
  0% {
    color: #6e6e6e;
  }
  10% {
    color: #ffb3d1;
  }
  50% {
    color: #ffb3d1;
  }
  60% {
    color: #6e6e6e;
  }
  100% {
    color: #6e6e6e;
  }
}

/* フローティングメニュー */
.floating-menu {
  position: sticky;
  top: 0;
  background-color: transparent;
  z-index: 1000;
  height: 80px;
}

/* 左右の余白シェイプ */
.floating-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: #f8a5c8;
  z-index: 0;
}

.floating-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.floating-menu li {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.floating-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 1px;
  cursor: pointer;
  width: 132px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ピンクの背景シェイプ */
.floating-menu a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 80px;
  background-color: #f8a5c8;
  z-index: -1;
  transition: transform 0.5s ease-in-out;
}

/* ホバー時に背景シェイプのみスケールアップ */
.floating-menu a:hover::after {
  transform: scaleY(1.5); /* 80px → 120px (1.5倍) */
}

/* 上下40pxの境界線 */
.floating-menu a::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 0;
  width: 1px;
  background-color: #ffffff;
  z-index: 1;
}

/* 最後の要素の右側の線を消す */
.floating-menu li:last-child a::before {
  display: none;
}

/* メインコンテンツ */
.main-content {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* 統合背景ドットCanvas */
#unifiedDotsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.section h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 32px;
  text-align: center;
  letter-spacing: 2px;
}

/* タイトルバウンスアニメーション */
.title-bounce {
  display: inline-block;
}

/* テトリスポップアップ */
.tetris-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 10000;
  pointer-events: none;
}

.tetris-popup-overlay.active {
  display: flex;
}

.tetris-popup-container {
  background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
  border-radius: 10px;
  padding: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: move;
  pointer-events: auto;
  user-select: none;
}

.tetris-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 36px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.2s ease;
}

.tetris-popup-close:hover {
  transform: scale(1.2);
}

.tetris-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tetris-next-preview {
  background-color: #2a2a2a;
  border: 3px solid #ffffff;
  border-radius: 8px;
  padding: 5px;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nextPieceCanvas {
  display: block;
  background-color: #2a2a2a;
}

.tetris-canvas-container {
  background-color: #2a2a2a;
  border: 4px solid #ffffff;
  border-radius: 10px;
  padding: 5px;
  position: relative;
}

#tetrisCanvas {
  display: block;
  background-color: #2a2a2a;
  width: 200px;
  height: 400px;
}

.tetris-info {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.tetris-score,
.tetris-level {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  color: #ffffff;
}

.tetris-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.tetris-btn {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  padding: 8px 25px;
  background-color: #ffffff;
  color: #f8a5c8;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.tetris-btn:hover {
  background-color: #f8a5c8;
  color: #ffffff;
  transform: translateY(-2px);
}

.tetris-instructions {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  max-width: 200px;
}

.tetris-instructions p {
  margin: 0;
}

.tetris-game-over {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px 50px;
  border-radius: 5px;
  text-align: center;
}

.tetris-game-over.active {
  display: block;
}

.tetris-game-over h3 {
  font-family: "Times New Roman", Times, serif;
  font-size: 32px;
  color: #f8a5c8;
  margin-bottom: 20px;
}

/* 操作説明オーバーレイ */
.tetris-instructions-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: rgba(42, 42, 42, 0.8);
  z-index: 5;
}

.tetris-instructions-overlay.hidden {
  display: none;
}

.tetris-key-group {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tetris-key {
  display: inline-block;
  min-width: 28px;
  padding: 5px 8px;
  background-color: #ffffff;
  color: #2a2a2a;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

/* レベルアップ通知 */
.tetris-level-up {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.tetris-level-up.active {
  display: block;
  animation: levelUpPop 0.3s ease-out forwards;
}

.tetris-level-up span {
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes levelUpPop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ====================================
   Cast Popup - 全ページ共通
   ==================================== */
.cast-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(2px);
}

.cast-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cast-popup-container {
    width: 725px;
    height: 800px;
    position: fixed;
    left: 50%;
    top: 50%;
    overflow: visible;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 3px;
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cast-popup-container::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 252, 0.98) 100%);
    border-radius: 7px;
    z-index: 0;
}

.cast-popup-overlay.active .cast-popup-container {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cast-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cast-popup-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(248, 165, 200, 0.5);
}

.cast-popup-content {
    display: flex;
    height: 800px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    font-family: '游明朝', 'Yu Mincho', 'Hiragino Mincho Pro', 'MS PMincho', serif;
    border-radius: 7px;
}

.cast-popup-left {
    width: 400px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(248, 165, 200, 0.08) 0%, rgba(157, 174, 228, 0.08) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.cast-popup-left::-webkit-scrollbar { width: 5px; }
.cast-popup-left::-webkit-scrollbar-track { background: rgba(248, 165, 200, 0.1); border-radius: 10px; }
.cast-popup-left::-webkit-scrollbar-thumb { background: rgba(248, 165, 200, 0.4); border-radius: 10px; }
.cast-popup-left::-webkit-scrollbar-thumb:hover { background: rgba(248, 165, 200, 0.6); }

.cast-popup-image-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cast-popup-main-image {
    width: 354px;
    height: 536px;
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
    border-radius: 10px;
}

.cast-popup-main-image::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 7px;
    z-index: 0;
}

.cast-popup-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    position: relative;
    z-index: 1;
}

.cast-popup-thumbnails {
    position: relative;
}

.thumb-slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 0;
}

.thumb-slider-wrapper::-webkit-scrollbar { display: none; }

.thumb-slider-track {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cast-popup-thumbnails .thumbnail {
    width: 85px;
    height: 128px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(248, 165, 200, 0.3);
    transition: all 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

.cast-popup-thumbnails .thumbnail:hover {
    border-color: rgba(248, 165, 200, 0.7);
    transform: translateY(-2px);
}

.cast-popup-thumbnails .thumbnail.active {
    border-color: #f8a5c8;
}

.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.thumb-arrow:hover { background: rgba(248, 165, 200, 0.8); }
.thumb-arrow-left { left: -4px; }
.thumb-arrow-right { right: -4px; }
.thumb-arrow.hidden { opacity: 0; pointer-events: none; }

.cast-popup-right {
    flex: 1;
    padding: 25px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.cast-popup-right::-webkit-scrollbar { width: 5px; }
.cast-popup-right::-webkit-scrollbar-track { background: rgba(157, 174, 228, 0.1); border-radius: 10px; }
.cast-popup-right::-webkit-scrollbar-thumb { background: rgba(157, 174, 228, 0.4); border-radius: 10px; }
.cast-popup-right::-webkit-scrollbar-thumb:hover { background: rgba(157, 174, 228, 0.6); }

.cast-popup-section { margin-bottom: 22px; }

.cast-popup-section-title {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #f8a5c8 0%, #9daee4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #f8a5c8 0%, #9daee4 100%) 1;
}

.cast-popup-profile .profile-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.cast-popup-profile .profile-name .name-text {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
}

.cast-popup-profile .profile-name .age-text {
    font-size: 15px;
    color: #666666;
}

.cast-popup-profile .profile-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cast-popup-profile .profile-item {
    display: flex;
    font-size: 13px;
    color: #666666;
    gap: 15px;
}

.cast-popup-profile .profile-label {
    width: 75px;
    color: #333333;
    font-weight: 500;
}

.cast-popup-profile .profile-value {
    flex: 1;
    color: #333333;
}

.cast-popup-schedule {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cast-popup-schedule .schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(248, 165, 200, 0.05);
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid rgba(248, 165, 200, 0.15);
}

.cast-popup-schedule .schedule-day {
    color: #333333;
    font-weight: 500;
    min-width: 85px;
}

.cast-popup-schedule .schedule-hours {
    color: #f8a5c8;
    text-align: right;
    font-weight: 500;
}

.cast-popup-comment {
    max-height: 280px;
    overflow-y: auto;
    padding: 14px;
    background: rgba(157, 174, 228, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(157, 174, 228, 0.15);
    font-size: 13px;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

.cast-popup-comment::-webkit-scrollbar { width: 5px; }
.cast-popup-comment::-webkit-scrollbar-track { background: rgba(157, 174, 228, 0.1); border-radius: 10px; }
.cast-popup-comment::-webkit-scrollbar-thumb { background: rgba(157, 174, 228, 0.4); border-radius: 10px; }

.cast-popup-qa {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(248, 165, 200, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(248, 165, 200, 0.15);
}

.cast-popup-qa::-webkit-scrollbar { width: 5px; }
.cast-popup-qa::-webkit-scrollbar-track { background: rgba(248, 165, 200, 0.1); border-radius: 10px; }
.cast-popup-qa::-webkit-scrollbar-thumb { background: rgba(248, 165, 200, 0.4); border-radius: 10px; }

.qa-item { margin-bottom: 12px; }
.qa-item:last-child { margin-bottom: 0; }

.qa-question,
.qa-answer {
    display: flex;
    gap: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.qa-question { margin-bottom: 4px; }

.qa-label {
    font-weight: 600;
    color: #f8a5c8;
    flex-shrink: 0;
    min-width: 20px;
}

.qa-answer .qa-label { color: #9daee4; }
.qa-text { flex: 1; }

.qa-empty {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 10px 0;
    margin: 0;
}

.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 9;
    letter-spacing: 1px;
}

.schedule-card { cursor: pointer; }

/* Cast Popup レスポンシブ */
@media (max-width: 768px) {
    .cast-popup-container {
        width: 95%;
        max-width: 500px;
        height: 90vh;
        max-height: 90vh;
        overflow: hidden;
    }

    .cast-popup-content {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cast-popup-left { display: contents; }
    .cast-popup-right { display: contents; }

    .cast-popup-close {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 1000;
    }

    .cast-popup-image-slider {
        flex-direction: column;
        align-items: center;
        order: 1;
        width: 100%;
        padding: 0 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .cast-popup-right .cast-popup-section:nth-child(1) { order: 2; width: 100%; padding: 0 15px; }
    .cast-popup-right .cast-popup-section:nth-child(2) { order: 3; width: 100%; padding: 0 15px; }
    .cast-popup-right .cast-popup-section:nth-child(3) { order: 4; width: 100%; padding: 0 15px; }
    .cast-popup-right .cast-popup-section:nth-child(4) { order: 5; width: 100%; padding: 0 15px; }
    .cast-popup-left .cast-popup-section { order: 6; width: 100%; padding: 0 15px; }

    .cast-popup-main-image { width: 240px; height: 360px; }
    .cast-popup-thumbnails .thumbnail { width: 54px; height: 80px; }
    .cast-popup-profile .profile-name .name-text { font-size: 18px; }
    .cast-popup-section { margin-bottom: 18px; }
    .cast-popup-comment { max-height: 200px; }
}

/* ====================================
   フッター - 全ページ共通
   ==================================== */
.footer {
    background-color: #f8a5c8;
    height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 20px;
    position: relative;
    z-index: 1;
}

.footer-banner {
    margin: 45px 0 65px;
}

.footer-banner-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-banner-link:hover {
    opacity: 0.8;
}

.footer-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    margin: 0 auto;
    gap: 100px;
}

.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-col img {
    width: auto;
    height: auto;
}

.footer-text-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 30px;
}

.footer-text-col p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.footer-menu-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-menu-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    color: #ffffff;
    position: absolute;
    bottom: 16px;
}

.footer-copyright p {
    margin: 0;
}

/* ====================================
   フローティングアクションバー（PC: 右側丸型縦積み）
   ==================================== */
.floating-action-bar {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fab-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    gap: 1px;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.fab-btn i {
    font-size: 18px;
}

.fab-label {
    font-size: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1;
}

.fab-phone {
    background: #f8a5c8;
}

.fab-reserve {
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
}

/* スイングメニュー内アクションボタン（デスクトップ非表示） */
.swing-menu-actions {
    display: none;
}

/* ====================================
   モバイルメニューバー・ハンバーガー（デスクトップでは非表示）
   ==================================== */
.mobile-menu-bar {
    display: none;
}

.hamburger-btn {
    display: none;
}

.menu-overlay {
    display: none;
}

body.menu-active {
    overflow: hidden;
}

/* ====================================
   共通レスポンシブ
   ==================================== */
@media screen and (max-width: 1024px) {
    .banner {
        flex: 0 0 60%;
    }

    .header-logo-left,
    .header-logo-right {
        width: 20%;
    }

    .floating-menu li {
        margin: 5px 15px;
    }

    .floating-menu a {
        font-size: 15px;
        width: 110px;
    }

    .floating-menu a::after {
        width: 110px;
    }

    .section h2 {
        font-size: 28px;
    }

    .footer-banner img {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    /* ヘッダー: ロゴ非表示（バナーはJSでmain-contentへ移動） */
    .header {
        display: none;
    }

    /* モバイルバナー（main-content先頭に移動後） */
    .banner.mobile-banner {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }

    /* フローティングメニュー → モバイルヘッダーバー + スイングメニュー */
    .floating-menu {
        position: sticky;
        top: 0;
        height: 56px;
        z-index: 10000;
    }

    .floating-menu::before {
        height: 56px;
    }

    /* モバイルメニューバー表示 */
    .mobile-menu-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 56px;
        padding: 0 15px;
        position: relative;
        z-index: 10002;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        height: 53px;
        width: auto;
    }

    /* ハンバーガーボタン */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 10003;
    }

    .hamburger-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* ハンバーガー → × アニメーション */
    .menu-open .hamburger-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .hamburger-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* メニューオーバーレイ */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000;
    }

    .menu-open .menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* スイングメニューパネル（右からスライドイン） */
    .floating-menu ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: linear-gradient(180deg, #f8a5c8 0%, #e091b5 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 55px 0 200px;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 10001;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .menu-open ul {
        transform: translateX(0);
    }

    .floating-menu li {
        margin: 0;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .floating-menu a {
        width: 100%;
        height: auto;
        padding: 16px 30px;
        font-size: 16px;
        justify-content: flex-start;
        letter-spacing: 2px;
    }


    .floating-menu a::after {
        display: none;
    }

    .floating-menu a::before {
        display: none;
    }

    .floating-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .floating-menu .mobile-menu-bar a {
        padding: 0;
    }

    /* スイングメニュー内アクションボタン */
    .swing-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 24px;
        position: fixed;
        top: auto;
        bottom: 0px;
        right: 0;
        width: 260px;
        z-index: 10001;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .menu-open .swing-menu-actions {
        transform: translateX(0);
    }

    .swing-action-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        color: #ffffff;
        font-family: 'Times New Roman', Times, serif;
        font-size: 14px;
        letter-spacing: 1px;
        transition: opacity 0.2s ease;
    }

    .swing-action-btn:active {
        opacity: 0.8;
    }

    .swing-action-btn i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .swing-action-phone {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .swing-action-reserve {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(157, 174, 228, 0.4) 100%);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* メインコンテンツ */
    .main-content {
        padding: 20px 10px;
    }

    .section {
        margin-bottom: 40px;
        min-height: auto;
    }

    .section h2 {
        font-size: 24px;
    }

    /* フッター */
    .footer {
        height: auto;
        padding: 30px 15px 50px;
    }

    .footer-banner {
        margin: 20px 0 30px;
    }

    .footer-banner img {
        width: 70%;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-logo-col img {
        max-width: 200px;
        height: auto;
    }

    .footer-text-col {
        padding-top: 0;
        align-items: center;
    }

    .footer-text-col p {
        text-align: center;
        font-size: 14px;
    }

    .footer-copyright {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        font-size: 12px;
    }

    /* カーソルスターエフェクト非表示（タッチデバイス） */
    #cursorStarCanvas {
        display: none;
    }

    /* フローティングアクションバー → モバイルバー型 */
    .floating-action-bar {
        flex-direction: row;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 56px;
        gap: 0;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }

    .fab-btn {
        flex: 1;
        width: auto;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        gap: 2px;
    }

    .fab-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .fab-btn:active {
        opacity: 0.8;
    }

    .fab-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* フッター下部にバー分の余白 */
    .footer {
        padding-bottom: 70px;
    }
}

@media screen and (max-width: 480px) {
    .section h2 {
        font-size: 20px;
    }

    .footer-banner img {
        width: 85%;
    }

    .footer-logo-col img {
        max-width: 150px;
    }
}
