/* TOPページ固有のスタイル */

/* ウィジェットセクション */
#widget {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 1180px;
    margin: 0 auto;
}

/* TOPICS用バウンス（グレー→ピンク） */
#topics .title-bounce {
    animation: textBounceGrey 5s ease-in-out infinite;
}

#topics .title-bounce:nth-child(1) { animation-delay: 0s; }
#topics .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#topics .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#topics .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#topics .title-bounce:nth-child(5) { animation-delay: 1.6s; }
#topics .title-bounce:nth-child(6) { animation-delay: 2.0s; }

/* DIARY用バウンス（白→ピンク） */
#diary .title-bounce {
    animation: textBounceWhite 5s ease-in-out infinite;
}

#diary .title-bounce:nth-child(1) { animation-delay: 0s; }
#diary .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#diary .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#diary .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#diary .title-bounce:nth-child(5) { animation-delay: 1.6s; }

/* SCHEDULE用バウンス（グレー→ピンク） */
#schedule .title-bounce {
    animation: textBounceGrey 5s ease-in-out infinite;
}

#schedule .title-bounce:nth-child(1) { animation-delay: 0s; }
#schedule .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#schedule .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#schedule .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#schedule .title-bounce:nth-child(5) { animation-delay: 1.6s; }
#schedule .title-bounce:nth-child(6) { animation-delay: 2.0s; }
#schedule .title-bounce:nth-child(7) { animation-delay: 2.4s; }
#schedule .title-bounce:nth-child(8) { animation-delay: 2.8s; }

/* TOPICS セクション */
#topics {
    padding-top: 130px;
    padding-bottom: 50px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Canvas ドット背景アニメーション */
#topicsDotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#topics h2 {
    color: #6e6e6e;
    position: relative;
    z-index: 2;
    font-weight: 300;
    -webkit-text-stroke: 5px #ffffff;
    text-stroke: 5px #ffffff;
    paint-order: stroke fill;
}

#topics h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 1182px;
    height: 15px;
    background: linear-gradient(90deg,
        #ffcfe3 0%,
        #eaeaff 40%,
        #eaeaff 60%,
        #ffcfe3 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    z-index: -1;
    animation: borderGradientFlow 10s ease-in-out infinite;
}

@keyframes borderGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.topics-images {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 20px;
    margin-top: 50px;
    width: 1180px;
    margin-left: calc(50% - 590px - 1px);
    margin-right: auto;
}

.topics-images img {
    display: block;
    width: 280px;
}

.topics-card {
    position: relative;
    width: 280px;
    height: 550px;
    background-image: url('../images/schedulecard_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* カード縁アニメーション用Canvas */
.topics-card-border-canvas {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 288px;
    height: 558px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* マルチカードは手動制御（JavaScriptで制御） */
.topics-card-multi .topics-card-border-canvas {
    opacity: 0;
}

/* マルチカードで縁アニメーション表示クラス */
.topics-card-multi.show-border .topics-card-border-canvas {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 画像エリアホバー時は強制的に非表示 */
.topics-card-multi.image-hover .topics-card-border-canvas {
    opacity: 0 !important;
    transition: none !important;
}

.topics-card img {
    display: block;
    width: 280px;
}

/* マルチ画像カルーセル用 */
.topics-multi-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    pointer-events: auto;
    z-index: 10;
}

.topics-multi-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: grab;
    pointer-events: auto;
    z-index: 5;
    opacity: 0.6;
}

.topics-multi-img:active {
    cursor: grabbing;
}

.topics-multi-img-left,
.topics-multi-img-right {
    z-index: 6;
    opacity: 0.6;
}

.topics-multi-img-center {
    z-index: 7;
    opacity: 1;
}

/* 画像エリアホバー時のみ: 左右の画像が飛び出す */
.topics-card-multi .topics-multi-image-container:hover .topics-multi-img-left {
    transform: translateX(-60px) scale(0.8);
}

.topics-card-multi .topics-multi-image-container:hover .topics-multi-img-center {
    transform: scale(1);
}

.topics-card-multi .topics-multi-image-container:hover .topics-multi-img-right {
    transform: translateX(60px) scale(0.8);
}

/* 電光掲示板アニメーション */
.topics-led-text-container {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 画像エリアホバー時のみ電光掲示板を非表示 */
.topics-card-multi .topics-multi-image-container:hover .topics-led-text-container {
    opacity: 0;
}

.topics-led-text {
    position: absolute;
    white-space: nowrap;
    font-family: Impact, 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 50px;
    color: #bf9ce2d7;
    animation: ledScroll 8s linear infinite, ledBlink 0.8s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    filter: contrast(2) brightness(1.2);
}

/* カード2専用の電光掲示板カラー */
.topics-card-multi-2 .topics-led-text {
    color: #48ddd2d7;
}

.topics-card-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    color: #6e6e6e;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    animation: textBlink 0.8s ease-in-out infinite;
}

.topics-card-girl-image {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    height: 320px;
    background-color: #f0f0f0;
    z-index: 1;
}

.topics-card-girl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topics-card-info {
    position: absolute;
    top: 48px;
    left: 0;
    width: 280px;
    height: 502px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.topics-card-name {
    position: absolute;
    top: 332px;
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.topics-card-name .topics-name-main {
    font-size: 30px;
    display: inline-block;
    position: relative;
}

.topics-card-name .topics-name-age {
    font-size: 14px;
}

.topics-card-size {
    position: absolute;
    top: 379px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 13px;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
}

.topics-card-time {
    position: absolute;
    top: 414px;
    width: 234px;
    height: 38px;
    background-color: #bf9ce2;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 17px;
    color: #ffffff;
    pointer-events: auto;
    cursor: pointer;
    gap: 6px;
}

/* 時計アイコン（FontAwesome） */
.topics-card-time::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 17px;
    display: inline-block;
    flex-shrink: 0;
}

/* 時間未登録時はアイコン非表示 */
.topics-card-time.no-time::before {
    display: none;
}

/* カード2と4の青色バージョン */
.topics-card-time-blue {
    background-color: #48ddd2;
}

.topics-card-fee {
    position: absolute;
    top: 463px;
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.topics-view-more {
    align-self: flex-end;
    margin-top: 20px;
    margin-right: calc(50% - 590px);
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #6e6e6e;
    text-decoration: none;
    display: inline-block;
    animation: viewMoreBlink 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* DIARY セクション */
#diary {
    height: auto;
    background-color: #c4c8d2;
    padding-top: 50px;
    padding-bottom: 50px;
    justify-content: flex-start;
    position: relative;
}

#diary h2 {
    color: #ffffff;
    position: relative;
    z-index: 2;
    font-weight: 300;
}


.diary-view-more {
  align-self: flex-end;
  margin-top: 20px;
  margin-right: calc(50% - 590px);
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
  color: #6e6e6e;
  text-decoration: none;
  display: inline-block;
  animation: viewMoreBlink 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

#diary .diary-box{
  width: 1130px;
  max-width: 100%;
}



@keyframes viewMoreBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* SCHEDULE セクション */
#schedule {
    height: auto;
    min-height: 942px;
    padding-top: 150px;
    padding-bottom: 100px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Canvas ドット背景アニメーション（SCHEDULE用） */
#scheduleDotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#schedule h2 {
    color: #6e6e6e;
    position: relative;
    z-index: 2;
    font-weight: 300;
    -webkit-text-stroke: 5px #ffffff;
    text-stroke: 5px #ffffff;
    paint-order: stroke fill;
}

#schedule h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 1180px;
    height: 15px;
    background: linear-gradient(90deg,
        #ffcfe3 0%,
        #eaeaff 40%,
        #eaeaff 60%,
        #ffcfe3 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    z-index: -1;
    animation: borderGradientFlow 10s ease-in-out infinite;
}

.schedule-images {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 20px;
    margin-top: 50px;
    width: 1180px;
    margin-left: calc(50% - 590px - 1px);
    margin-right: auto;
}

.schedule-images img {
    display: block;
    width: 280px;
}

.schedule-card {
    position: relative;
    width: 280px;
    height: 550px;
    background-image: url('../images/schedulecard_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* カード縁アニメーション用Canvas */
.card-border-canvas {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 288px;
    height: 558px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* カード全体のホバー時に縁アニメーションを表示（デフォルト） */
.schedule-card:hover .card-border-canvas {
    opacity: 1;
}

/* マルチカードは手動制御（JavaScriptで制御） */
/* デフォルトの縁アニメーションは非表示（JavaScriptでshow-borderクラスを制御） */
.schedule-card-multi .card-border-canvas {
    opacity: 0;
}

/* マルチカードで縁アニメーション表示クラス */
.schedule-card-multi.show-border .card-border-canvas {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 画像エリアホバー時は強制的に非表示 */
.schedule-card-multi.image-hover .card-border-canvas {
    opacity: 0 !important;
    transition: none !important;
}

.schedule-card img {
    display: block;
    width: 280px;
}

/* マルチ画像カルーセル用 */
.multi-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    pointer-events: auto; /* 画像エリアは独立したホバー判定 */
    z-index: 10; /* カード本体より上に配置 */
}

/* ポップアップ表示中は画像カルーセルを無効化 */
.schedule-card.popup-active .multi-image-container {
    pointer-events: none;
}

.multi-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: grab;
    pointer-events: auto;
    z-index: 5;
    opacity: 0.6;  /* 奥の画像は80%透過 */
}

.multi-img:active {
    cursor: grabbing;
}

/* デフォルト状態: すべて中央に重なる */
.multi-img-left,
.multi-img-right {
    z-index: 6;
    opacity: 0.6;  /* 奥の画像は80%透過 */
}

.multi-img-center {
    z-index: 7;
    opacity: 1;  /* 手前の画像は透過なし */
}

/* 画像エリアホバー時のみ: 左右の画像が飛び出す（20%縮小） */
.schedule-card-multi .multi-image-container:hover .multi-img-left {
    transform: translateX(-60px) scale(0.8);
}

.schedule-card-multi .multi-image-container:hover .multi-img-center {
    transform: scale(1);
}

.schedule-card-multi .multi-image-container:hover .multi-img-right {
    transform: translateX(60px) scale(0.8);
}

/* 星が飛び出すアニメーション（非表示） */
.burst-star {
    display: none;
}

/* 電光掲示板アニメーション */
.led-text-container {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 10;  /* 画像の上に表示 */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 画像エリアホバー時のみ電光掲示板を非表示 */
.schedule-card-multi .multi-image-container:hover .led-text-container {
    opacity: 0;
}

.led-text {
    position: absolute;
    white-space: nowrap;
    font-family: Impact, 'Arial Black', sans-serif;
    font-weight: 900;
    /* ★サイズ設定★ ここでフォントサイズを調整できます */
    font-size: 50px;
    /* ★カラー設定★ ここで色を変更できます */
    color: #bf9ce2d7;
    animation: ledScroll 8s linear infinite, ledBlink 0.8s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* ドット感を出すためのフィルター */
    filter: contrast(2) brightness(1.2);
}

/* カード2専用の電光掲示板カラー */
.schedule-card-multi-2 .led-text {
    /* ★カード2のカラー設定★ ここで色を変更できます */
    color: #48ddd2d7;  /* カード2は青色 */
}

/* カード4専用の電光掲示板カラー */
.schedule-card-multi-4 .led-text {
    /* ★カード4のカラー設定★ ここで色を変更できます */
    color: #48ddd2d7;  /* カード4は青色 */
}

@keyframes ledScroll {
    0% {
        transform: translateX(100%) scaleY(1.2);
    }
    100% {
        transform: translateX(-100%) scaleY(1.2);
    }
}

@keyframes ledBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.schedule-card-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    color: #6e6e6e;
    z-index: 2;
    pointer-events: auto;  /* クリック可能に */
    cursor: pointer;
    animation: textBlink 0.8s ease-in-out infinite;
}

@keyframes textBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.1;
    }
}

.schedule-card-girl-image {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    height: 320px;
    background-color: #f0f0f0;
    z-index: 1;
}

.schedule-card-girl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.schedule-card-info {
    position: absolute;
    top: 48px;
    left: 0;
    width: 280px;
    height: 502px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;  /* クリックを画像に通す */
    z-index: 2;
}

.schedule-card-name {
    position: absolute;
    top: 332px;
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;  /* クリック可能に */
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.schedule-card-name.marquee {
    text-align: left;
}

.schedule-card-name .marquee-inner {
    display: inline-block;
    animation: marqueeScroll 12s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    35% { transform: translateX(0); }
    65% { transform: translateX(-50%); }
    100% { transform: translateX(-50%); }
}

.schedule-card-name .name-main {
    font-size: 30px;
    display: inline-block;
    position: relative;
}

/* カード全体ホバー時のname-mainアニメーション用の擬似要素 */
.schedule-card-name .name-main::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

/* JavaScriptで制御するため、クラスベースに変更 */
.schedule-card-name .name-main.zoom-active::before {
    animation: zoomFadeOut 0.5s ease forwards;
}

@keyframes zoomFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.schedule-card-name .name-age {
    font-size: 14px;
}

.schedule-card-size {
    position: absolute;
    top: 379px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 13px;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;  /* クリック可能に */
    cursor: pointer;
}

.schedule-card-time {
    position: absolute;
    top: 414px;
    width: 234px;
    height: 38px;
    background-color: #bf9ce2;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 17px;
    color: #ffffff;
    pointer-events: auto;  /* クリック可能に */
    cursor: pointer;
    gap: 6px; /* アイコンとテキストの間隔 */
}

/* 時計アイコン（FontAwesome） */
.schedule-card-time::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 17px;
    display: inline-block;
    flex-shrink: 0;
}

/* 時間未登録時はアイコン非表示 */
.schedule-card-time.no-time::before {
    display: none;
}

/* カード2と4の青色バージョン */
.schedule-card-time-blue {
    background-color: #48ddd2;
}

.schedule-card-fee {
    position: absolute;
    top: 463px;
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    color: #6e6e6e;
    text-align: center;
    pointer-events: auto;  /* クリック可能に */
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.schedule-card-fee.marquee {
    text-align: left;
}

.schedule-card-fee .marquee-inner {
    display: inline-block;
    animation: marqueeScroll 12s linear infinite;
}

.schedule-view-more {
    align-self: flex-end;
    margin-top: 20px;
    margin-right: calc(50% - 590px);
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #6e6e6e;
    text-decoration: none;
    display: inline-block;
    animation: viewMoreBlink 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* ============================================
   MOVIE セクション（SCHEDULEカード準拠・縦長動画スライダー）
   ============================================ */
#movie {
    padding-top: 60px;
    padding-bottom: 60px;
    justify-content: flex-start;
    position: relative;
}

/* MOVIE用バウンス（SCHEDULEと同じグレー→ピンク） */
#movie .title-bounce {
    animation: textBounceGrey 5s ease-in-out infinite;
}
#movie .title-bounce:nth-child(1) { animation-delay: 0s; }
#movie .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#movie .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#movie .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#movie .title-bounce:nth-child(5) { animation-delay: 1.6s; }

#movie h2 {
    color: #6e6e6e;
    position: relative;
    z-index: 2;
    font-weight: 300;
    -webkit-text-stroke: 5px #ffffff;
    text-stroke: 5px #ffffff;
    paint-order: stroke fill;
}

#movie h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 1180px;
    height: 15px;
    background: linear-gradient(90deg,
        #ffcfe3 0%,
        #eaeaff 40%,
        #eaeaff 60%,
        #ffcfe3 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    z-index: -1;
    animation: borderGradientFlow 10s ease-in-out infinite;
}

.movie-slider-wrap {
    position: relative;
    width: 1180px;
    max-width: 100%;
    margin: 50px auto 0;
}

.movie-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    padding: 6px 0 16px;
}
.movie-track::-webkit-scrollbar { display: none; }   /* Chrome / Safari */

.movie-card-slot {
    flex: 0 0 280px;
    width: 280px;
    height: 550px;
    scroll-snap-align: start;
}

.movie-card {
    position: relative;
    width: 280px;
    height: 550px;
    background-image: url('../images/schedulecard_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: top left;
    cursor: pointer;
}

/* メディア（縦長動画） */
.movie-card-media {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    height: 320px;
    background-color: #f0f0f0;
    overflow: hidden;
    z-index: 1;
}
.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}
.movie-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 3px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
}

/* 名前・サイズ（SCHEDULEと同じ座標） */
.movie-card-name {
    position: absolute;
    top: 380px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    color: #6e6e6e;
    text-align: center;
}
.movie-card-name .name-main { font-size: 30px; }
.movie-card-name .name-age { font-size: 14px; }

.movie-card-size {
    position: absolute;
    top: 427px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 13px;
    color: #6e6e6e;
    text-align: center;
}

/* ハッシュタグ（時間/料金枠の位置に配置） */
.movie-card-tags {
    position: absolute;
    top: 462px;
    left: 50%;
    transform: translateX(-50%);
    width: 234px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 14px;
    color: #bf9ce2;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;
}
.movie-card-2 .movie-card-tags { color: #48ddd2; }

/* 矢印 */
.movie-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    color: #bf9ce2;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease;
}
.movie-arrow-prev { left: 4px; }
.movie-arrow-next { right: 4px; }
.movie-arrow.disabled { opacity: 0.25; pointer-events: none; }

/* スクロール位置インジケーター（スクロール可能と一目で分かるように。SPで常時表示） */
.movie-scrollbar {
    display: none;
    position: relative;
    width: 60%;
    max-width: 320px;
    height: 5px;
    margin: 12px auto 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    overflow: hidden;
}
.movie-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: #bf9ce2;
    border-radius: 3px;
    pointer-events: none;
}

/* view more */
.movie-view-more {
    align-self: flex-end;
    margin-top: 20px;
    margin-right: calc(50% - 590px);
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #6e6e6e;
    text-decoration: none;
    display: inline-block;
    animation: viewMoreBlink 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* 動画ポップアップ（枠のみ） */
.movie-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}
.movie-popup-overlay.active { display: flex; }
.movie-popup-container {
    position: relative;
    max-width: 100%;
}
.movie-popup-video-wrap {
    width: min(360px, 86vw);
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
#moviePopupVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.movie-popup-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

/* SP: 2枚並び（カードを縮小） */
@media screen and (max-width: 768px) {
    #movie {
        padding-top: 30px;
        padding-bottom: 40px;
    }
    #movie h2::before {
        width: 90%;
    }
    .movie-slider-wrap {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    .movie-track { gap: 12px; }
    .movie-card-slot {
        flex: 0 0 168px;
        width: 168px;
        height: 330px;   /* 550 * 0.6 */
    }
    .movie-card { transform: scale(0.6); }
    .movie-arrow { display: none; }   /* SPはスワイプ操作 */
    .movie-scrollbar { display: block; }   /* SPは常時スクロールバー表示 */
}

/* 日記ウィジェットPC/SP切り替え */
.diary-box-sp {
    display: none;
}

/* ウィジェット レスポンシブ */
@media screen and (max-width: 768px) {
    #widget {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .widget-container {
        flex-direction: column;
        width: 95%;
        gap: 30px;
    }

    .fujoho_custom_banner {
        width: 100% !important;
        max-width: 350px;
    }
}

/* ====================================
   TOPページ レスポンシブ
   ==================================== */
@media screen and (max-width: 1024px) {
    #topics {
        height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .topics-images {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
    }

    .topics-card,
    .topics-card img,
    .topics-card-overlay {
        width: 100%;
    }

    .topics-images img {
        width: 100%;
    }

    .topics-card {
        flex: 0 0 calc(20% - 8px);
    }

    #topics h2::before {
        width: 90%;
    }

    #diary {
        height: auto;
        padding-bottom: 60px;
    }

    #diary .diary-box {
        width: 90%;
    }

    .diary-view-more {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 15px;
        align-self: flex-end;
        margin-right: 5%;
    }

    #schedule {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    #schedule h2::before {
        width: 90%;
    }

    .schedule-images {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(4, 280px);
        justify-content: center;
    }

    .schedule-view-more {
        margin-right: 5%;
    }

    .topics-view-more {
        margin-right: 5%;
    }

    .movie-view-more {
        margin-right: 5%;
    }
}

@media screen and (max-width: 768px) {
    #topics {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .topics-images {
        width: 95%;
        gap: 20px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .topics-card {
        width: 280px;
        max-width: 100%;
    }

    .topics-card-border-canvas {
        width: calc(100% + 8px);
        height: calc(100% + 8px);
    }

    .topics-multi-image-container {
        width: 100%;
    }

    .topics-multi-img {
        width: 100%;
    }

    .topics-card-text {
        width: 100%;
    }

    .topics-card-girl-image {
        width: 83.57%;
    }

    .topics-card-info {
        width: 100%;
    }

    .topics-card-name {
        width: 83.57%;
    }

    .topics-card-time {
        width: 83.57%;
    }

    .topics-card-fee {
        width: 83.57%;
    }

    .topics-led-text {
        font-size: 32px;
    }

    .topics-led-text-container {
        height: 40px;
    }

    .topics-overlay-line {
        width: 100%;
        font-size: 12px;
    }

    #topics h2::before {
        width: 95%;
    }

    #diary {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    #diary .diary-box-pc {
        display: none;
    }

    .diary-box-sp {
        display: flex !important;
        justify-content: center;
    }

    #diary .diary-box {
        width: 95%;
    }

    .diary-view-more {
        font-size: 16px;
        margin-right: 2.5%;
    }

    #schedule {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    #schedule h2::before {
        width: 95%;
    }

    .schedule-images {
        width: 95%;
        grid-template-columns: repeat(2, 280px);
        justify-content: center;
    }

    .schedule-view-more {
        margin-right: 2.5%;
    }

    .topics-view-more {
        margin-right: 2.5%;
    }

    .movie-view-more {
        margin-right: 2.5%;
    }
}

@media screen and (max-width: 620px) {
    .schedule-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .schedule-card {
        width: 100%;
        height: auto;
        aspect-ratio: 280 / 550;
        background-size: 100% 100%;
    }

    .schedule-card-text {
        width: 100%;
        height: calc(48 / 550 * 100%);
        font-size: 14px;
    }

    .schedule-card-girl-image {
        width: 83.57%;
        height: calc(320 / 550 * 100%);
        top: calc(48 / 550 * 100%);
    }

    .multi-image-container {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }

    .multi-img {
        width: 100%;
        height: 100%;
    }

    .schedule-card-info {
        width: 100%;
        height: calc(502 / 550 * 100%);
        top: calc(48 / 550 * 100%);
    }

    .schedule-card-name {
        top: calc(332 / 502 * 100%);
        width: 83.57%;
    }

    .schedule-card-name .name-main {
        font-size: 22px;
    }

    .schedule-card-name .name-age {
        font-size: 12px;
    }

    .schedule-card-size {
        top: calc(379 / 502 * 100%);
        font-size: 11px;
    }

    .schedule-card-time {
        top: calc(414 / 502 * 100%);
        width: 83.57%;
        height: calc(38 / 550 * 100%);
        font-size: 14px;
    }

    .schedule-card-fee {
        top: calc(463 / 502 * 100%);
        width: 83.57%;
        font-size: 13px;
    }

    .card-border-canvas {
        width: calc(100% + 8px);
        height: calc(100% + 8px);
    }

    .led-text {
        font-size: 32px;
    }

    .led-text-container {
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .topics-card {
        flex: 0 0 calc(50% - 4px);
    }

    .topics-card-overlay {
        height: auto;
        padding: 8px;
    }

    .topics-overlay-line {
        font-size: 11px;
    }
}

/* === MOVIE: 会員限定 / 空表示（ATTENDA DB連携 追加分） === */
.movie-members-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    background: #c9a227;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .03em;
}
.movie-card.is-members .movie-play-icon {
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
}
.movie-popup-video-wrap {
    position: relative;
}
.movie-popup-members-note {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, .85);
    border-radius: 8px;
}
.movie-popup-members-note i { font-size: 34px; color: #c9a227; }
.movie-popup-members-note p { margin: 0; font-size: 15px; letter-spacing: .05em; }
.movie-empty { text-align: center; color: #888; padding: 40px 0; width: 100%; }

/* === MOVIE: 長い名前のマーキー表示（追加分） === */
.movie-card-name { overflow: hidden; white-space: nowrap; }
.movie-card-name .name-main { display: inline-block; white-space: nowrap; }
.movie-card-name.is-marquee { text-align: left; }
.movie-card-name.is-marquee .name-main {
    animation: movieNameMarquee linear infinite alternate;
    animation-duration: var(--marquee-dur, 6s);
}
@keyframes movieNameMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--marquee-dist, 0)); }
}

/* MOVIE 会員限定ポップアップ内のログインボタン */
.movie-popup-members-note .movie-popup-login-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 9px 22px;
    font-size: 14px;
    color: #fff;
    background: #c9a227;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.05em;
}
.movie-popup-members-note .movie-popup-login-btn:hover { background: #b38f1f; }
