/* ===== News Page Styles (styles8.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 ===== */
.s8-section-icon {
  width: 48px;
  height: 66px;
  flex-shrink: 0;
}

/* ===== FV (Hero) ===== */
.s8-fv {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 581px;
  overflow: hidden;
}
.s8-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;
}
.s8-fv-image {
  position: absolute;
  right: 160px;
  top: 175px;
  width: 643px;
  height: 337px;
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100px);
  animation: s8-slide-in-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes s8-slide-in-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.s8-fv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s8-fv-content {
  position: absolute;
  left: 160px;
  top: 175px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  z-index: 1;
}
.s8-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;
}
.s8-fv-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s8-fv-title-row {
  display: flex;
  align-items: center;
}
.s8-fv-title-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  color: var(--text-primary);
}
.s8-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 ===== */
.s8-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 160px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Filter Tabs ===== */
.s8-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
}
.s8-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;
}
.s8-tab.active {
  background: #333;
  color: #fff;
}
.s8-tab:hover:not(.active) {
  background: #f5f5f5;
}

/* ===== News List ===== */
.s8-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 66px;
}

/* ===== News Item ===== */
.s8-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid #C0C0C0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.s8-item:hover {
  opacity: 0.7;
}
.s8-item-thumb {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #FFFFFF;
}
.s8-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s8-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s8-item-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: #999;
  white-space: nowrap;
}
.s8-item-category {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--brand-vivid-pink, #FF7576);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
}
.s8-item-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

/* ===== Item hidden by filter ===== */
.s8-item.hidden {
  display: none;
}

/* ===== Pagination ===== */
.s8-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.s8-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;
}
.s8-page-btn.active {
  background: #FF7576;
  color: #fff;
}
.s8-page-btn:hover:not(.active) {
  background: #f5f5f5;
}
.s8-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;
}
.s8-page-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.s8-page-arrow img {
  width: 40px;
  height: 40px;
}
.s8-page-arrow-prev img {
  transform: rotate(180deg);
}

/* ===== Single Article Header ===== */
.s8-single-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.s8-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.s8-single-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.s8-single-category {
  display: inline-block;
  padding: 2px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.8;
  color: var(--brand-vivid-pink);
  border: 1px solid var(--brand-vivid-pink);
  border-radius: 20px;
}
.s8-single-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.7;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.s8-single-thumbnail {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 8px;
}
.s8-single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Single Article Content ===== */
.s8-single-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px 88px;
}
.s8-single-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
  word-break: break-word;
  overflow: hidden;
}

/* Headings */
.s8-single-body h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-tear-vivid) 1;
}
.s8-single-body h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--brand-vivid-pink);
}
.s8-single-body h4 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

/* Paragraphs */
.s8-single-body p {
  margin: 0 0 24px;
}
.s8-single-body p:last-child {
  margin-bottom: 0;
}

/* Links */
.s8-single-body a {
  color: var(--tear-vivid-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.s8-single-body a:hover {
  opacity: 0.7;
}

/* Lists */
.s8-single-body ul,
.s8-single-body ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
}
.s8-single-body ul {
  list-style: disc;
}
.s8-single-body ol {
  list-style: decimal;
}
.s8-single-body li {
  margin-bottom: 8px;
  line-height: 1.9;
}
.s8-single-body li:last-child {
  margin-bottom: 0;
}

/* Blockquote */
.s8-single-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--neutral-soft-blue);
  border-left: 4px solid var(--tear-vivid-blue);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.s8-single-body blockquote p {
  margin-bottom: 0;
}

/* Images */
.s8-single-body img {
  display: block;
  margin: 32px auto;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 12px;
}

/* WordPress block image wrapper */
.s8-single-body .wp-block-image {
  margin: 32px 0;
  max-width: 100% !important;
  width: auto !important;
}
.s8-single-body .wp-block-image img {
  margin: 0 auto;
}
.s8-single-body figure {
  max-width: 100% !important;
  width: auto !important;
  margin-left: 0;
  margin-right: 0;
}
.s8-single-body .wp-block-image figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}


/* Table */
.s8-single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.s8-single-body th,
.s8-single-body td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.s8-single-body th {
  background: var(--neutral-soft-blue);
  font-weight: 600;
}

/* Horizontal Rule */
.s8-single-body hr {
  border: none;
  height: 1px;
  background: #e0e0e0;
  margin: 40px 0;
}

/* First heading no top margin */
.s8-single-body > h2:first-child,
.s8-single-body > h3:first-child,
.s8-single-body > h4:first-child {
  margin-top: 0;
}

/* ===== Back Button ===== */
.s8-single-back {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

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

  body { overflow-x: hidden; }

  /* ===== FV ===== */
  .s8-fv {
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .s8-fv-deco { display: none; }
  .s8-fv-content {
    position: relative;
    left: auto;
    top: auto;
    padding: 72px 12px 24px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    order: 1;
  }
  .s8-fv-en {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .s8-fv-title-group { gap: 0; }
  .s8-fv-title-text { font-size: 20px; }
  .s8-fv-desc {
    font-size: 15px;
    white-space: normal;
  }
  .s8-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;
  }
  .s8-section-icon { width: 48px; height: 66px; }

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

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

  /* ===== News List ===== */
  .s8-list {
    margin-bottom: 44px;
    gap: 0;
  }
  .s8-item {
    gap: 16px;
    padding: 16px 0;
  }
  .s8-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
  }
  .s8-item-date {
    font-size: 12px;
  }
  .s8-item-content {
    gap: 4px;
  }
  .s8-item-category {
    font-size: 11px;
    padding: 1px 8px;
  }
  .s8-item-title {
    font-size: 14px;
  }
  .s8-page-arrow {
    width: 32px;
    height: 32px;
  }
  .s8-page-arrow img {
    width: 32px;
    height: 32px;
  }

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

  /* ===== Single Article ===== */
  .s8-single-header {
    padding: 80px 16px 0;
    gap: 16px;
  }
  .s8-single-meta {
    gap: 12px;
  }
  .s8-single-date {
    font-size: 13px;
  }
  .s8-single-category {
    font-size: 11px;
    padding: 1px 10px;
  }
  .s8-single-title {
    font-size: 20px;
    line-height: 1.6;
  }
  .s8-single-thumbnail {
    border-radius: 12px;
  }
  .s8-single-content {
    padding: 28px 16px 44px;
  }
  .s8-single-body {
    font-size: 15px;
    line-height: 1.9;
  }
  .s8-single-body h2 {
    font-size: 20px;
    margin: 40px 0 16px;
    padding-bottom: 10px;
  }
  .s8-single-body h3 {
    font-size: 18px;
    margin: 32px 0 12px;
  }
  .s8-single-body h4 {
    font-size: 16px;
    margin: 24px 0 10px;
  }
  .s8-single-body p {
    margin-bottom: 20px;
  }
  .s8-single-body blockquote {
    padding: 16px 20px;
    margin: 24px 0;
  }
  .s8-single-body img {
    border-radius: 8px;
    margin: 24px auto;
  }
  .s8-single-body table {
    font-size: 13px;
    margin: 24px 0;
  }
  .s8-single-body th,
  .s8-single-body td {
    padding: 8px 10px;
  }
  .s8-single-back {
    margin-top: 40px;
  }

}
