/* odl-member.css */

/* ==========================================
   親ページのベース設定を踏襲
========================================== */
.gallery-container {
  margin: 0 auto;
  background-color: #fdf7eb;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 15.36rem;
  font-family: sans-serif;
}
.gallery-container img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-main-visual {
  width: 100%;
}

/* ==========================================
   コメント（吹き出し）エリア
========================================== */
.gallery-intro-section {
  background-color: #ffffff;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
}
.intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative; 
}
.intro-row.reverse {
  flex-direction: row-reverse;
}

.character-img {
  width: 42%;
}
.message-bubble-wrapper {
  position: relative;
  width: 55%;
}
.message-bubble-wrapper > img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.05));
}

.anim-fade-in,
.anim-slide-left,
.anim-slide-right {
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}
.anim-slide-left { transform: translateX(-40px); }
.anim-slide-right { transform: translateX(40px); }

.js-scroll-trigger.is-animated .anim-fade-in {
  opacity: 1;
  transition-delay: 0.25s;
}
.js-scroll-trigger.is-animated .anim-slide-left,
.js-scroll-trigger.is-animated .anim-slide-right {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   タブセクション
========================================== */
.gallery-tabs-section {
  padding: 20px 10px 40px;
}
.tab-links {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #A68B6A; 
}
.tab-links li {
  background-color: #F8F5F0;
  color: #555;
  padding: 10px 4px; 
  flex: 1;
  text-align: center;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 22px; 
  line-height: 1.3;
  transition: all 0.3s ease;
  border: 1px solid #EBE4D8;
  border-bottom: none;
  margin-right: 2px;
}
.tab-links li:last-child {
  margin-right: 0;
}
.tab-links li:hover {
  background-color: #EBE4D8;
}
.tab-links li.active {
  background-color: #A68B6A;
  color: #fff;
  border-color: #A68B6A;
}
.sp_only {
  display: none;
}

@media (max-width: 798px) {
  .tab-links li { font-size: 12px; padding: 8px 2px; }
  .sp_only { display: block; }
}

.tab-content-wrapper {
  background-color: #fff;
  border: 1px solid #EBE4D8;
  border-top: none;
  padding: 20px 10px;
  border-radius: 0 0 8px 8px;
}
.tab-pane {
  display: none; 
  animation: fadeIn 0.4s ease;
}
.tab-pane.active {
  display: block; 
}

/* ==========================================
   ポイント・ランク制度
========================================== */
.point-content-wrapper > img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}
.point-content-wrapper > img:last-child {
  margin-bottom: 0;
}

.rank-slider-container {
  background-color: #FDFBFC;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #EBE4D8;
  margin: 15px 0;
}

.rank-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  justify-content: center;
}
.rank-nav-btn {
  background-color: #F8F5F0;
  color: #777;
  border: 1px solid #D5C8B8;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 calc(25% - 6px); 
  text-align: center;
}
.rank-nav-btn:hover {
  background-color: #EBE4D8;
}
.rank-nav-btn.active {
  background-color: #A68B6A;
  color: #fff;
  border-color: #A68B6A;
}
@media (max-width: 768px) {
  .rank-nav-btn { font-size: 12px; padding: 5px; flex: 1 1 calc(33% - 6px); }
}

.rank-slider {
  display: flex;
  align-items: center; 
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
  gap: 15px;
  padding-bottom: 10px; 
}
.rank-slider::-webkit-scrollbar {
  height: 6px;
}
.rank-slider::-webkit-scrollbar-track {
  background: #F0EBE1;
  border-radius: 3px;
}
.rank-slider::-webkit-scrollbar-thumb {
  background-color: #C3B49E;
  border-radius: 3px;
}
.rank-slider img.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  height: auto;
  object-fit: contain; 
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ==========================================
   PC・スマホ 画像切り替え＆分割画像結合スタイル
========================================== */
.img-sp-only {
  display: none;
}
.point-system-images-wrapper {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden; 
}
.point-system-images-wrapper img {
  margin-bottom: 0 !important; 
  border-radius: 0 !important; 
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  .img-pc-only { display: none !important; }
  .img-sp-only { display: block; }
}

/* ==========================================
   ランキングセクション
========================================== */
.dynamic-ranking-section {
  margin: 30px 0;
}
.ranking-title-img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rank-badge, .rank-deco {
  width: 26%;
  flex-shrink: 0;
}
.rank-badge img, .rank-deco img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.rank-name {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 32px; 
  padding: 14px 5px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  line-height: 1.2;
}

.rank-1 { border: 2px solid #D4AF37; background-color: #FFFDF0; color: #B8860B; }
.rank-2 { border: 2px solid #A9A9A9; background-color: #F8F9FA; color: #696969; }
.rank-3 { border: 2px solid #CD7F32; background-color: #FFF5EE; color: #8B4513; }
.rank-4, .rank-5 { border: 1px solid #A68B6A; background-color: #FDFBFC; color: #555; }

@media (max-width: 400px) {
  .rank-name {
    font-size: 16px;
    padding: 12px 5px;
  }
}

/* ==========================================
   レシピ・コラム（タブ3）、会員メンバー（タブ4）
========================================== */
.recipe-content-wrapper > img,
.member-content-wrapper > img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}
.recipe-btn-wrapper,
.member-btn-wrapper {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}
.recipe-btn-wrapper a,
.member-btn-wrapper a {
  display: inline-block;
  width: 90%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.recipe-btn-wrapper a:hover,
.recipe-btn-wrapper a:active,
.member-btn-wrapper a:hover,
.member-btn-wrapper a:active {
  opacity: 0.8;
  transform: scale(0.98);
}
.recipe-btn-wrapper img,
.member-btn-wrapper img {
  width: 100%;
  height: auto;
}

/* ==========================================
   ★ 会員メンバーテーブル・ページネーション用 CSS
========================================== */
.member-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 4px;
  -webkit-overflow-scrolling: touch;
}
.member-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background-color: #FFFDF0;
  font-family: sans-serif;
  font-size: 14px;
}
.member-table th {
  background-color: #4A6B39;
  color: #FFF;
  padding: 12px 10px;
  font-weight: normal;
  text-align: center;
  border: 1px solid #D1D5C6;
  white-space: nowrap;
}
.member-table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #EBE4D8;
  color: #333;
}
.member-table td.rank-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.member-table td.rank-col img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.pagination-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #A68B6A;
  background-color: #fff;
  color: #A68B6A;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.page-btn.active {
  background-color: #A68B6A;
  color: #fff;
}
.page-btn:hover:not(.active) {
  background-color: #F8F5F0;
}

/* ==========================================
   カレンダー・モーダル
========================================== */
.calendar-wrapper { margin: 0 auto; }

.calendar-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}
.calendar-nav-wrapper .calendar-header {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}
.calendar-nav-wrapper .calendar-header img {
  width: 100%;
  height: auto;
}
.calendar-nav-btn {
  width: 32px;
  height: 32px;
  background-color: #F8F5F0;
  border: 1px solid #D5C8B8;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}
.calendar-nav-btn:hover:not(:disabled) {
  background-color: #EBE4D8;
}
.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.calendar-nav-btn span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #8c7f73;
  border-right: 2px solid #8c7f73;
}
.calendar-nav-btn.prev span {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.calendar-nav-btn.next span {
  transform: rotate(45deg);
  margin-right: 4px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  font-weight: bold;
  font-size: 26px; 
  margin-bottom: 5px;
  color: #A68B6A;
}
.calendar-weekdays div {
  padding: 5px 0;
}

@media (max-width: 600px) {
  .calendar-weekdays {
    font-size: 14px; 
  }
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-item { display: flex; justify-content: center; align-items: center; aspect-ratio: 65 / 100; position: relative; }
.calendar-item a { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; }

.calendar-item.has-link img { transition: opacity 0.2s; cursor: pointer; }
.calendar-item.has-link img:hover { opacity: 0.8; }
.calendar-item:not(.has-link) img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }

.event-modal {
  display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); align-items: center; justify-content: center;
}
.event-modal.show { display: flex; }
.event-modal-content {
  background: #fff; padding: 30px 20px; border-radius: 12px; width: 90%; max-width: 400px;
  text-align: center; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: zoomIn 0.3s ease;
}
.event-modal-content h3 { color: #A68B6A; margin-top: 0; margin-bottom: 20px; font-size: 18px; border-bottom: 2px solid #EBE4D8; padding-bottom: 10px;}
.event-modal-close {
  position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold;
  color: #999; cursor: pointer; line-height: 1;
}
.event-modal-close:hover { color: #333; }
.event-modal-links a {
  display: block; margin: 10px 0; padding: 15px; background: #F8F5F0; border: 1px solid #D5C8B8;
  border-radius: 8px; color: #555; text-decoration: none; font-weight: bold; transition: background 0.2s;
}
.event-modal-links a:hover { background: #EBE4D8; }

@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }