/* ========================================
   ニュースリリースページ
   ======================================== */

/* ========================================
   PC版
   ======================================== */

/* ページベース */
.news-pc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 0 0 80px;
  width: 100%;
}

/* ヘッダー（グレー背景・全幅） */
.news-header-pc {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: var(--spacing-page-header-y) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-header-pc__inner {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: flex-start;
}

.news-header-pc__title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

/* メインセクション（2カラム） */
.news-section-pc {
  width: 100%;
  padding: 48px 0 0;
}

/* 詳細ページはグレーヘッダー直後のため上部余白を付けない */
.news-header-pc + .news-section-pc {
  padding-top: 0;
}

.news-section-pc__inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* 左カラム: 見出し（flex 直接子に sticky — __heading-top 等の内側要素では効かない） */
.news-section-pc__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 376px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 136px;
}

.news-section-pc__heading-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.news-section-pc__heading-bar {
  width: 8px;
  align-self: stretch;
  background-color: var(--color-base-safety-red);
  flex-shrink: 0;
}

.news-section-pc__heading-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-section-pc__heading-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: 1.52px;
  color: var(--color-base-black);
  margin: 0;
}

/* 見出し下の X 公式アカウントの案内（赤バー 8px＋余白 24px ぶん字下げして見出し文字の左端にそろえる） */
.news-section-pc__sns-note {
  padding-left: 32px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

.news-section-pc__sns-link {
  color: var(--color-key-blue);
  text-decoration: underline;
}

/* タブナビゲーション（右カラム上部・横並び） */
.news-section-pc__tab-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.news-section-pc__tab-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-bottom: 2px solid var(--color-base-line);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-disable);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-section-pc__tab-link:hover {
  color: var(--color-base-black);
}

.news-section-pc__tab-link--active {
  border-bottom-color: var(--color-base-safety-red);
  color: var(--color-base-black);
  font-weight: 700;
}

/* 右カラム: コンテンツ */
.news-section-pc__content {
  width: 624px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* フィルター */
.news-section-pc__filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.news-filter-pc {
  flex: 1;
  position: relative;
}

.news-filter-pc__box {
  background: var(--color-base-white);
  border-radius: 16px;
  box-shadow: 0 0 24px 0 rgba(140, 7, 8, 0.12);
  overflow: hidden;
}

.news-filter-pc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
}

.news-filter-pc__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
  white-space: nowrap;
}

.news-filter-pc__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.news-filter-pc__toggle--open {
  transform: rotate(180deg);
}

/* ドロップダウン */
.news-filter-pc__dropdown {
  display: none;
  flex-direction: column;
  padding: 0 24px 12px;
  border-top: 1px solid var(--color-base-line);
}

.news-filter-pc__dropdown--open {
  display: flex;
}

.news-filter-pc__dropdown-item {
  padding: 10px 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  cursor: pointer;
  border-bottom: 1px solid var(--color-base-line);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
}

.news-filter-pc__dropdown-item:last-child {
  border-bottom: none;
}

.news-filter-pc__dropdown-item:hover {
  color: var(--color-base-safety-red);
}

.news-filter-pc__dropdown-item--active {
  font-weight: 700;
  color: var(--color-base-safety-red);
}

/* ニュースカード */
.news-card-pc {
  background: var(--color-base-white);
  border-radius: 24px;
  box-shadow: 0 0 24px 0 rgba(140, 7, 8, 0.12);
  padding: 32px;
}

.news-card-pc__list {
  display: flex;
  flex-direction: column;
}

.news-card-pc__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-base-line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.news-card-pc__item:first-child {
  padding-top: 0;
}

.news-card-pc__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card-pc__item:hover {
  opacity: 0.7;
}

.news-card-pc__item-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-card-pc__item-date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
  white-space: nowrap;
}

.news-card-pc__item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px;
  background: var(--color-base-safety-red);
  color: var(--color-base-white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.news-card-pc__item-label--press {
  background: var(--color-base-caption);
}

.news-card-pc__item-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

/* ページネーション */
.news-pagination-pc {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.news-pagination-pc__btn {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.news-pagination-pc__btn:hover {
  opacity: 0.7;
}

.news-pagination-pc__btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.news-pagination-pc__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-base-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(140, 7, 8, 0.16);
  flex-shrink: 0;
}

.news-pagination-pc__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 2px;
  color: var(--color-base-black);
  white-space: nowrap;
}

/* 空表示 */
.news-section-pc__empty {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-caption);
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

/* ========================================
   SP版
   ======================================== */

/* ページベース */
.news-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 0 24px;
}

/* ヘッダー（グレー背景） */
.news-header-sp {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: var(--spacing-page-header-y-sp) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: flex-start;
}

.news-header-sp__title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

/* 見出し＋X 公式アカウントの案内（.news-sp の gap より詰めて見出しとひとまとまりにする） */
.news-section-sp__heading-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* 赤バー 8px＋余白 16px ぶん字下げして見出し文字の左端にそろえる */
.news-section-sp__sns-note {
  padding: 0 16px 0 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

.news-section-sp__sns-link {
  color: var(--color-key-blue);
  text-decoration: underline;
}

/* 見出し（赤バー＋タイトル）※一覧はグレーヘッダー無しのため上部余白を確保 */
.news-section-sp__heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 40px 16px 0;
  box-sizing: border-box;
}

.news-section-sp__heading-bar {
  width: 8px;
  align-self: stretch;
  background-color: var(--color-base-safety-red);
  flex-shrink: 0;
}

.news-section-sp__heading-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.news-section-sp__heading-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

/* タブ */
.news-section-sp__tabs {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.news-section-sp__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 12px 0;
  border-bottom: 2px solid var(--color-base-line);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-base-disable);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-section-sp__tab--active {
  border-bottom-color: var(--color-base-safety-red);
  color: var(--color-base-black);
  font-weight: 700;
}

/* フィルター */
.news-section-sp__filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.news-filter-sp {
  flex: 1;
  position: relative;
  width: 100%;
}

.news-filter-sp__box {
  background: var(--color-base-white);
  border-radius: 16px;
  box-shadow: 0 0 16px 0 rgba(140, 7, 8, 0.12);
  overflow: hidden;
}

.news-filter-sp__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}

.news-filter-sp__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
  white-space: nowrap;
}

.news-filter-sp__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.news-filter-sp__toggle--open {
  transform: rotate(180deg);
}

/* ドロップダウン */
.news-filter-sp__dropdown {
  display: none;
  flex-direction: column;
  padding: 0 16px 12px;
  border-top: 1px solid var(--color-base-line);
}

.news-filter-sp__dropdown--open {
  display: flex;
}

.news-filter-sp__dropdown-item {
  padding: 10px 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  cursor: pointer;
  border-bottom: 1px solid var(--color-base-line);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
}

.news-filter-sp__dropdown-item:last-child {
  border-bottom: none;
}

.news-filter-sp__dropdown-item--active {
  font-weight: 700;
  color: var(--color-base-safety-red);
}

/* ニュースカード */
.news-card-sp {
  background: var(--color-base-white);
  border-radius: 16px;
  box-shadow: 0 0 16px 0 rgba(140, 7, 8, 0.12);
  padding: 16px 16px 24px;
  margin: 0 16px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.news-card-sp__list {
  display: flex;
  flex-direction: column;
}

.news-card-sp__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-base-line);
  text-decoration: none;
  color: inherit;
}

.news-card-sp__item:first-child {
  padding-top: 0;
}

.news-card-sp__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card-sp__item-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-card-sp__item-date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-base-black);
  white-space: nowrap;
}

.news-card-sp__item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px;
  background: var(--color-base-safety-red);
  color: var(--color-base-white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.news-card-sp__item-label--press {
  background: var(--color-base-caption);
}

.news-card-sp__item-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ページネーション */
.news-pagination-sp {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.news-pagination-sp__btn {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.news-pagination-sp__btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.news-pagination-sp__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-base-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(140, 7, 8, 0.16);
  flex-shrink: 0;
}

.news-pagination-sp__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 2px;
  color: var(--color-base-black);
  white-space: nowrap;
}

/* 空表示 */
.news-section-sp__empty {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-caption);
  text-align: center;
  padding: 40px 16px;
  margin: 0;
}
