/*
 * page-top.css
 * top.php専用のスタイル
 * 作成日: 2026-01-29
 */

/* ========================================
   スマホ用カードメニュー
   ======================================== */
.sp-menu-card-style {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
}

.sp-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
    grid-column: span 2; /* デフォルトは3列（6/2=3） */
}

.sp-menu-card:hover,
.sp-menu-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

.sp-menu-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sp-menu-card-icon i {
    color: #666;
    font-size: 18px;
}

.sp-menu-card-text {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.sp-menu-card-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 2列表示（最後が2つの場合） */
.sp-menu-card-half {
    grid-column: span 3;
}

/* 横長カード（最後が1つ、またはマイページ） */
.sp-menu-card-wide {
    grid-column: span 6;
    flex-direction: row;
    gap: 10px;
    padding: 12px 20px;
    min-height: auto;
}

.sp-menu-card-wide .sp-menu-card-icon {
    margin-bottom: 0;
}

.sp-menu-card-wide .sp-menu-card-text {
    font-size: 14px;
}

/* ========================================
   会員限定写メグリッド
   ======================================== */
.photo-grid-locked .photo-grid-image {
    position: relative;
}

.photo-grid-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.photo-grid-lock-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.photo-grid-lock-overlay span {
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   カスタムモーダル（Bootstrap非依存）
   ======================================== */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal-overlay.is-active {
    display: flex;
    opacity: 1;
}

.photo-modal-container {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.photo-modal-overlay.is-active .photo-modal-container {
    transform: scale(1);
}

.photo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.photo-modal-header-member {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.photo-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.photo-modal-title i {
    margin-right: 8px;
}

.photo-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-modal-body {
    padding: 24px 20px;
}

.photo-modal-form-group {
    margin-bottom: 12px;
}

.photo-modal-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.photo-modal-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.photo-modal-input::placeholder {
    color: #aaa;
}

.photo-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-btn i {
    margin-right: 6px;
}

.photo-modal-btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 14px 24px;
}

.photo-modal-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.photo-modal-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.photo-modal-divider::before,
.photo-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.photo-modal-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

.photo-modal-btn-register {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff !important;
    padding: 14px 24px;
}

.photo-modal-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
    color: #fff;
    text-decoration: none;
}

.photo-modal-login-prompt {
    text-align: center;
}

.photo-modal-login-prompt p {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

.photo-modal-login-form {
    margin-bottom: 0;
}

/* ========================================
   top.php専用スタイル
   ======================================== */
/* クチコミカードの影を無効化 */
.review_box {
    box-shadow: none !important;
}
.review_box:hover {
    box-shadow: none !important;
}

/* ニュース画像を角丸に */
.post-header img {
    border-radius: 10px;
}

/* ========================================
   クチコミグリッド（トップページ用）
   ======================================== */
.review-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .review-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .review-grid-container {
        grid-template-columns: 1fr;
    }
}

.review-grid-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.review-grid-content {
    padding: 16px;
}

.review-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.review-grid-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-grid-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.review-grid-date {
    font-size: 11px;
    color: #999;
}

.review-grid-stars {
    display: flex;
    gap: 2px;
}

.review-grid-stars .star {
    color: #ffc107;
    font-size: 12px;
}

.review-grid-stars .star-off {
    color: #e0e0e0;
    font-size: 12px;
}

.review-grid-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.review-grid-text p {
    margin: 0;
}

.review-grid-cast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.review-grid-cast:hover {
    background: #f0f1f2;
    text-decoration: none;
    color: inherit;
}

.review-grid-cast-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-grid-cast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-grid-cast-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-grid-cast-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.review-grid-cast-size {
    font-size: 11px;
    color: #888;
}

.no-review-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-review-message p {
    margin: 0;
}

/* ========================================
   つぶやき横一列（トップページ用）
   ======================================== */
.tweet-horizontal-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1199px) {
    .tweet-horizontal-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .tweet-horizontal-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tweet-horizontal-container {
        grid-template-columns: 1fr;
    }
}

.tweet-horizontal-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tweet-horizontal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tweet-horizontal-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.tweet-horizontal-link:hover {
    text-decoration: none;
    color: inherit;
}

.tweet-horizontal-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tweet-horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tweet-horizontal-content {
    padding: 10px;
}

.tweet-horizontal-header {
    margin-bottom: 6px;
}

.tweet-horizontal-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: block;
}

.tweet-horizontal-date {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 2px;
}

.tweet-horizontal-date i {
    margin-right: 3px;
}

.tweet-horizontal-text {
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-tweet-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    width: 100%;
}

.no-tweet-message p {
    margin: 0;
}

/* ========================================
   イベントバナー一覧
   ======================================== */
.event-banner-list {
    padding-top: 10px;
    padding-bottom: 15px;
}
.event-banner-item {
    padding: 0 5px;
    margin-bottom: 8px;
    height: auto;
    overflow: visible;
}
.event-banner-item a {
    display: block;
}
.event-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ========================================
   style_top.css から統合
   ======================================== */
/* 動画遅延読み込み */
video.lazy-video {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  min-height: 200px;
}
video.lazy-video-loaded {
  background: transparent;
  min-height: auto;
}

/* スマホ版ヘッダー動画 */
.video-header-fullscreen {
  width: 100%;
  background: #000;
  position: relative;
}
.video-header-fullscreen .video-header-player {
  width: 100%;
  display: block;
}
.video-header-fullscreen .video-header-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.5s ease;
}
.video-header-fullscreen .video-header-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-header-fullscreen:not(.has-poster) .video-header-player {
  opacity: 1;
}
.video-header-fullscreen.has-poster .video-header-player {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.video-header-fullscreen.has-poster .video-header-player.video-ready {
  opacity: 1;
}

/* 動画コンテナ（サムネイル付き） */
.video-container {
  position: relative;
}
.video-container .video-poster {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.5s ease;
}
.video-container .video-poster.hidden {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.video-container.has-poster video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.video-container.has-poster video.video-ready {
  position: relative;
  opacity: 1;
}
.video-container video {
  width: 100%;
  display: block;
  border-radius: 8px;
}
@media (max-width: 767px) {
  body:has(.video-header-fullscreen) .nav-wrap,
  body:has(.video-header-fullscreen) .navbar,
  body:has(.video-header-fullscreen) header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  body:has(.video-header-fullscreen) .main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body:has(.video-header-fullscreen) .video-header-fullscreen {
    margin-top: 0 !important;
  }
}

/* 動画コンテンツセクション */
.video-content-section {
  margin-bottom: 20px;
}
.video-content-section video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* スライダー用ローディングアニメーションのスタイル */
.loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loading {
  border: 5px solid rgba(0, 181, 205, 0.3);
  border-radius: 50%;
  border-top: 5px solid #00b5cd;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 写メ日記グリッドレイアウト */
.photo-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #f0f0f0;
}

.photo-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.photo-grid-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.photo-grid-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #f0f0f0;
  overflow: hidden;
}

.photo-grid-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.photo-grid-item:hover .photo-grid-image img {
  transform: scale(1.05);
}

.photo-grid-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 30px 10px 10px;
  color: #fff;
}

.photo-grid-name {
  display: block;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-grid-time {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

.photo-grid-locked {
  position: relative;
}

.photo-grid-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.photo-grid-lock-overlay i {
  font-size: 24px;
  margin-bottom: 5px;
}

.photo-grid-lock-overlay span {
  font-size: 12px;
}

.no-photo-message {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

/* スマホ版 写メグリッド */
@media (max-width: 767px) {
  .photo-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .photo-grid-info {
    padding: 20px 8px 8px;
  }

  .photo-grid-name {
    font-size: 11px;
  }

  .photo-grid-time {
    font-size: 9px;
  }
}

/* PC版バナースライダー */
.swiper-pc-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-top: 30px;
  overflow: hidden;
}
.swiper-pc-banner .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.swiper-pc-banner .swiper-slide a {
  display: block;
}

/* スマホ版バナースライダー */
.swiper-sp-banner {
  width: 100%;
  overflow: hidden;
}
.swiper-sp-banner .swiper-slide {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.swiper-sp-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 新着ニュース リスト形式 */
.news_box {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}
.news-date-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-date-list li {
  border-bottom: 1px dotted #aaa;
  padding: 8px 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.news-date-list li:last-child {
  border-bottom: none;
}
.news-date-list li .news-date {
  background: var(--primary-color, #ec4899);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
}
.news-date-list li a {
  color: #333;
  text-decoration: none;
}
.news-date-list li a:hover {
  color: var(--primary-color, #ec4899);
}

/* LOGIN NOW ドットスタイル */
.login-time-text {
  text-align: center;
  margin-bottom: 6px;
}
.login-time-text-sp {
  text-align: center;
  padding: 8px 0;
  background: #f8f9fa;
  border-radius: 6px;
}
.login-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.login-dot-blue { background-color: #2196F3; }
.login-dot-green { background-color: #4CAF50; }
.login-dot-orange { background-color: #FF9800; }
.login-dot-gray { background-color: #9E9E9E; }
.login-time-label {
  font-size: 11px;
  color: #666;
  vertical-align: middle;
}
