/* --- CSS Styles --- */
:root {
    --primary-color: rgb(248, 152, 40); /* オレンジ */
    --secondary-color: rgb(0, 0, 0); /* 黒 */
    --bg-color: #fafafa;
    --text-color: rgb(0, 0, 0);
    --border-color: rgba(0, 0, 0, 0.15);
    --header-height: 60px;
    --panel-height: 600px; /* 画像・タイムライン・サイドバーの固定高さ */
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* --- ヘッダー --- */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: bold;
  color: #666;
  font-size: 0.9rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary-color);
}

/* --- レイアウト --- */
.layout-wrapper {
  display: flex;
  max-width: 1840px;
  margin: 20px auto;
  padding: 0 12px;
  gap: 18px;
  align-items: stretch;
  flex-direction: row-reverse;
  height: auto;
}

.sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: var(--panel-height);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.main-content {
  flex: 1;
  max-width: none;
}
 
/* --- Live Feed (サイドバー内ウィンドウ) --- */
.live-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.live-feed {
  max-height: 280px;
  overflow-y: auto;
}

.feed-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 10px;
  animation: feed-in .25s ease;
}

.feed-time {
  font-size: 0.75rem;
  color: #757575;
  margin-bottom: 4px;
}

.feed-text {
  font-size: 0.9rem;
  color: var(--secondary-color);
  line-height: 1.4;
}
@keyframes feed-in { from { opacity:0; transform:translateY(6px);} to { opacity:1; transform:translateY(0);} }

/* --- サイドバー --- */
.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.banner-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 15px;
}

.banner-item {
  display: block;
  background: white;
  border-radius: 8px;
  padding: 15px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: .2s;
  text-align: center;
}

.banner-item:nth-child(3) {
  display: none;
}

.banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-img-placeholder {
  width: 100%;
  flex: 1;
  min-height: 150px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 12px;
  overflow: hidden;
}

.banner-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.banner-text p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* --- メイン --- */
.main-content > div:first-child {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* 旧レイアウト向けの包括的な img 指定は削除（hero と競合するため） */
/* --- Hero left live feed --- */
.hero-live-feed {
  width: 100%;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 12px;
}

.hero-live-feed .feed-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 10px;
  animation: feed-in .25s ease;
}

.hero-live-feed .feed-time {
  font-size: 0.75rem;
  color: #757575;
  margin-bottom: 4px;
}

.hero-live-feed .feed-text {
  font-size: 0.9rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

@media (max-width:1100px) {
  .hero-live-feed {
    width: auto;
    margin: 0 0 12px;
  }
}
/* --- Edge live feed: grid layout to avoid overlaps --- */
.main-content {
  display: block;
}

.main-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: stretch;
}

.edge-live-feed {
  grid-column: 1;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: var(--panel-height);
  max-height: var(--panel-height);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 12px;
}

.hero-block {
  grid-column: 2;
  height: var(--panel-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-block img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.edge-live-feed .feed-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 10px;
  animation: feed-in .25s ease;
}

.edge-live-feed .feed-time {
  font-size: 0.75rem;
  color: #757575;
  margin-bottom: 4px;
}

.edge-live-feed .feed-text {
  font-size: 0.9rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

@media (max-width:1100px) {
  .main-hero {
    grid-template-columns: 1fr;
  }
  .edge-live-feed {
    display: none;
  }
}
.live-section {
  margin: 0 0 20px;
}

.content-live-feed {
  background: white;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  max-height: 360px;
  overflow: auto;
}

.content-live-feed .feed-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  margin-top: 10px;
  animation: feed-in .25s ease;
}

.content-live-feed .feed-time {
  font-size: 0.75rem;
  color: #757575;
  margin-bottom: 4px;
}

.content-live-feed .feed-text {
  font-size: 0.9rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

/* --- Hero Title Section --- */
.hero-title-section {
  max-width: 1840px;
  margin: 30px auto 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgb(248, 152, 40) 0%, rgb(255, 100, 0) 100%);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title-section h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 4px 4px 12px rgba(0,0,0,0.6);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.point-section {
  max-width: 1840px;
  margin: 30px auto;
  padding: 0 12px;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  width: auto;
  max-width: none;
  margin-bottom: 30px;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.points-display {
  background: rgba(248, 152, 40, 0.1);
  color: var(--primary-color);
  padding: 1rem;
  border-radius: 8px;
  font-size: 2rem;
  font-weight: bold;
  margin: 1.5rem 0;
  border: 2px solid var(--primary-color);
}

.points-caption {
  font-size: 1rem;
  color: #444;
  margin-right: 8px;
  font-weight: 600;
}

.points-label {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}

button.cta-button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(248, 152, 40, 0.3);
}

button.cta-button:hover {
  box-shadow: 0 4px 12px rgba(248, 152, 40, 0.4);
}

button.cta-button:active {
  transform: scale(.98);
}

button.cta-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* --- 景品プレビューセクション --- */
.prizes-preview-section {
  max-width: 1840px;
  margin: 30px auto;
  padding: 0 12px;
}

.prizes-preview-section .container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.prizes-preview-section .section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.toggle-prizes {
  text-align: center;
  margin-bottom: 1.5rem;
}

.toggle-prizes-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.toggle-prizes-btn:hover {
  background: var(--primary-color);
  color: white;
}

.prizes-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.prizes-preview-grid.collapsed {
  display: none;
}

.prize-preview-card {
  background: #f9f9f9;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.prize-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: var(--primary-color);
}

.prize-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.prize-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--secondary-color);
}

.prize-amount {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.prize-points {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.prize-points .pt-label {
  font-size: 0.9rem;
  color: #999;
}

.view-all-btn-container {
  text-align: center;
  margin-top: 1.5rem;
}

.view-all-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.1s, opacity 0.2s;
}

.view-all-btn:hover {
  opacity: 0.9;
}

.view-all-btn:active {
  transform: scale(0.98);
}

/* --- 口コミ --- */
.section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.reviews-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  max-width: 1840px;
  margin: 0 auto 30px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.review-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  width: 200px;
  flex-shrink: 0;
}

.review-user {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.review-comment {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 4));
  }
}

/* --- Overlay / Modal (広告) --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.ad-modal {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

#ad-placeholder {
  width: 100%;
  height: 250px;
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.timer-text {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ffeb3b;
}

.close-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

@media (max-width:768px) {
  .layout-wrapper {
    flex-direction: column;
    padding: 0 15px;
  }
  .sidebar,
  .main-content {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
    position: static;
  }
  /* スマホではバナー(サイドバー)を非表示 */
  .sidebar {
    display: none;
  }
  .main-content {
    order: 1;
  }
  .header-inner {
    padding: 0 15px;
  }
  .site-nav ul {
    gap: 1rem;
  }
  .site-nav a {
    font-size: 0.8rem;
  }
  /* モバイルではヒーロど16:9で表示し、画像を全面フィット */
  .hero-block {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .hero-block img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  /* ヒーロタイトルセクション */
  .hero-title-section {
    margin: 20px 0 0;
    padding: 30px 15px;
  }
  .hero-title-section h1 {
    font-size: 2.2rem;
  }
  /* ヒーロをフルブリード（左右の余白打ち消し） */
  .main-hero {
    margin-left: -15px;
    margin-right: -15px;
  }
  .main-content > div:first-child {
    border-radius: 0;
    box-shadow: none;
  }
  /* 景品グリッドをモバイル対応 */
  .prizes-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  body {
    padding-bottom: 120px;
  }
  .reviews-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
    z-index: 50;
  }
}

/* Cookie/Prefs関連のスタイルを削除しました */
/* --- Contact Page --- */
.contact-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.contact-form p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  background: white;
  color: var(--text-color);
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: white;
  color: var(--text-color);
}

.required {
  color: #e74c3c;
  margin-left: 4px;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: transform 0.1s, opacity 0.2s;
  margin-top: 10px;
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:active {
  transform: scale(0.98);
}

.contact-info {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-info p {
  color: #666;
  font-size: 0.95rem;
  margin: 8px 0;
  line-height: 1.6;
}

/* --- Exchange Page --- */
.exchange-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.points-header {
  background: linear-gradient(135deg, rgb(248, 152, 40) 0%, rgb(255, 100, 0) 100%);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.points-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.points-header p {
  font-size: 1.05rem;
}

.current-points {
  font-size: 3rem;
  font-weight: bold;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.current-points .pt-label {
  font-size: 1.5rem;
  opacity: 0.9;
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.exchange-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.exchange-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.exchange-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exchange-card.disabled:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgb(248, 152, 40) 0%, rgb(255, 100, 0) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
  text-align: center;
}

.card-amount {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
}

.card-points {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card-points .pt-label {
  font-size: 1rem;
  color: #666;
}

.exchange-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: transform 0.1s, opacity 0.2s;
}

.exchange-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.exchange-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.exchange-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.info-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-section h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-section ul {
  list-style: disc;
  padding-left: 25px;
  color: #666;
  line-height: 1.8;
}

.info-section li {
  margin-bottom: 8px;
}

@media (max-width:768px) {
  .points-header h1 {
    font-size: 1.8rem;
  }
  .current-points {
    font-size: 2.5rem;
  }
  .exchange-grid {
    grid-template-columns: 1fr;
  }
}