/* ===== Media Page Styles (styles6.css) ===== */

/* ===== Header Dropdown (shared) ===== */
.header-dropdown-wrap {
  position: relative;
}
.header-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, rgba(251,233,237,0.5), rgba(234,244,255,0.5));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.5) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}
.header-dropdown.open {
  max-height: 200px;
  opacity: 1;
}
.header-dropdown-item {
  padding: 12px 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-dropdown-item:hover {
  background: rgba(117,177,255,0.12);
}
.header-nav-item .dropdown-icon {
  transition: transform 0.3s;
}
.header-nav-item.dropdown-open .dropdown-icon {
  transform: rotate(180deg);
}

/* ===== Shared ===== */
.s6-section-icon {
  width: 48px;
  height: 66px;
  flex-shrink: 0;
}

/* ===== FV (Hero) ===== */
.s6-fv {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 581px;
  overflow: hidden;
}
.s6-fv-deco {
  position: absolute;
  right: -100px;
  top: 60px;
  width: 600px;
  height: 460px;
  background: radial-gradient(ellipse at 30% 50%, rgba(117,177,255,0.15) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 40%, rgba(255,117,118,0.12) 0%, transparent 70%),
              radial-gradient(ellipse at 50% 70%, rgba(180,130,255,0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.s6-fv-image {
  position: absolute;
  right: 160px;
  top: 175px;
  width: 643px;
  height: 337px;
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100px);
  animation: s6-slide-in-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes s6-slide-in-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.s6-fv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s6-fv-content {
  position: absolute;
  left: 160px;
  top: 175px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  z-index: 1;
}
.s6-fv-en {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.96px;
  text-transform: capitalize;
  padding-bottom: 10px;
}
.s6-fv-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s6-fv-title-row {
  display: flex;
  align-items: center;
}
.s6-fv-title-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  color: var(--text-primary);
}
.s6-fv-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ===== Content Layout ===== */
.s6-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 160px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Filter Tabs ===== */
.s6-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
}
.s6-tab {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.s6-tab.active {
  background: #333;
  color: #fff;
}
.s6-tab:hover:not(.active) {
  background: #f5f5f5;
}

/* ===== Card Grid ===== */
.s6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 66px 24px;
  width: 100%;
  margin-bottom: 66px;
}

/* ===== Media Card ===== */
.s6-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white, #fff);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.s6-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 24px 0px rgba(249, 214, 222, 0.6);
}
.s6-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #FFFFFF;
}
.s6-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s6-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 0 16px;
}
.s6-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 15px;
  background: #FF7576;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}
.s6-card-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
.s6-card-divider {
  width: calc(100% - 32px);
  margin: 0 auto;
  height: 1px;
  background: #F5F5F5;
}
.s6-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
}
.s6-card-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #999;
}
.s6-card-arrow {
  width: 24px;
  height: 24px;
  transform: rotate(180deg) scaleY(-1);
  opacity: 0.4;
}

/* ===== Card hidden by filter ===== */
.s6-card.hidden {
  display: none;
}

/* ===== Pagination ===== */
.s6-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.s6-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1.92px;
  color: #666;
  cursor: pointer;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}
.s6-page-btn.active {
  background: #FF7576;
  color: #fff;
}
.s6-page-btn:hover:not(.active) {
  background: #f5f5f5;
}
.s6-page-ellipsis {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1.92px;
  color: #666;
}
.s6-page-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.s6-page-arrow img {
  width: 40px;
  height: 40px;
}
.s6-page-arrow-prev img {
  transform: rotate(180deg);
}

/* ============================================= */
/* ===== SP Responsive (max-width: 767px) ===== */
/* ============================================= */
@media (max-width: 767px) {

  body { overflow-x: hidden; }

  /* ===== FV ===== */
  .s6-fv {
    height: auto; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .s6-fv-content {
    position: relative; left: auto; top: auto;
    padding: 72px 12px 24px; gap: 24px;
    width: 100%; box-sizing: border-box; order: 1;
  }
  .s6-fv-en { font-size: 48px; line-height: 1.1; letter-spacing: 0; }
  .s6-fv-title-group { gap: 0; }
  .s6-fv-title-text { font-size: 20px; }
  .s6-fv-desc { font-size: 15px; white-space: normal; }
  .s6-fv-desc br { display: none; }
  .s6-fv-image {
    position: relative; right: auto; top: auto;
    width: calc(100% - 24px); height: 184px;
    margin: 0 12px; border-radius: 16px;
    opacity: 1; transform: none; animation: none; order: 2;
  }
  .s6-fv-deco { display: none; }
  .s6-section-icon { width: 48px; height: 66px; }

  /* ===== Content ===== */
  .s6-content {
    padding: 44px 12px 44px;
  }

  /* ===== Filter Tabs ===== */
  .s6-tabs {
    gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  }
  .s6-tab {
    font-size: 14px; padding: 6px 12px;
  }

  /* ===== Card Grid ===== */
  .s6-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 44px;
  }
  .s6-card-img { height: 180px; }
  .s6-card-text { font-size: 14px; }
  .s6-card-date { font-size: 14px; }

  /* ===== Pagination ===== */
  .s6-pagination { gap: 6px; }
  .s6-page-btn { width: 36px; height: 36px; font-size: 20px; }
  .s6-page-ellipsis { width: 36px; height: 36px; font-size: 20px; }
  .s6-page-arrow { width: 32px; height: 32px; }
  .s6-page-arrow img { width: 32px; height: 32px; }

}
