/* お知らせ（P15）一覧・詳細。Figma JKnKRv41yZNpSS04LEfXQ3 ページ 1534:16299
   一覧 PC 1534:16305／SP 1534:16699、詳細 PC 1534:17012・1534:17719／SP 1534:17406・1534:18113
   本文ブロックの見た目は news-article.css（編集画面と共通）。 */
.news-page {
  --line: #f0e6c6;
  position: relative;
  overflow-x: clip;
  color: var(--ink);
}

/* 詳細ページの帯の「お知らせ」は見出しではなく帯の文字（h1は記事タイトル）。
   記事タイトルを早く見せるため、詳細だけ帯を低くする（Figma PC 200px）。
   パンくずは帯から記事の頭へ移した（2026-10-23 Figma 案3 PC 1824:5639／SP 1824:6015）ので、上下の余白を同じにする */
.news-hero.is-single {
  padding: calc(54 * var(--pc-unit, 1px)) 0;
}
.news-hero.is-single .l-hero-en {
  margin-top: 0;
  font-size: clamp(calc(18 * var(--pc-unit, 1px)), calc(1.6 * var(--vw, 1vw)), calc(24 * var(--pc-unit, 1px)));
}
.news-hero.is-single .l-hero-en img {
  width: clamp(calc(24 * var(--pc-unit, 1px)), calc(2.1 * var(--vw, 1vw)), calc(30 * var(--pc-unit, 1px)));
}
.news-hero .news-hero-title {
  margin: calc(8 * var(--pc-unit, 1px)) 0 0;
  color: #fff;
  font-size: clamp(calc(26 * var(--pc-unit, 1px)), calc(2.8 * var(--vw, 1vw)), calc(40 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

/* 帯の下の弧（Figma「区切りA｜要所」1537:20488）。両端の黄色が下の白へ垂れ、中央は帯の下端に接する */
.news-hero {
  position: relative;
  z-index: 1;
}
.news-hero::after {
  position: absolute;
  top: calc(100% - calc(1 * var(--pc-unit, 1px)));
  left: 0;
  width: 100%;
  height: clamp(calc(48 * var(--pc-unit, 1px)), calc(4.6 * var(--vw, 1vw)), calc(88 * var(--pc-unit, 1px)));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 88' preserveAspectRatio='none'%3E%3Cpath d='M0 88C640-29.33 1280-29.33 1920 88V0H0Z' fill='%23ffc602'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  content: '';
  pointer-events: none;
}

.news-wrap {
  width: min(calc(1200 * var(--pc-unit, 1px)), calc(100% - calc(64 * var(--pc-unit, 1px))));
  margin-inline: auto;
}

/* ---------- 一覧：導入 ---------- */
.news-intro {
  padding: calc(120 * var(--pc-unit, 1px)) 0 0;
  background: #fff;
  text-align: center;
}
.news-lead {
  margin: 0;
  font-size: calc(36 * var(--pc-unit, 1px));
  font-weight: 700;
  line-height: calc(60 * var(--pc-unit, 1px));
  letter-spacing: 0.08em;
}
.news-lead-text {
  margin: calc(32 * var(--pc-unit, 1px)) 0 0;
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  font-weight: 500;
  line-height: max(28px, calc(36 * var(--pc-unit, 1px)));
}

/* ---------- 一覧：分類タブ（TOPのNEWSの絞り込みと同じ見た目。home.css .news-filters と値をそろえる） ---------- */
.news-archive {
  position: relative;
  padding: calc(56 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
  background: #fff;
}
.news-archive > .news-wrap {
  position: relative;
}
.news-tabs ul {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: #f3f1ee;
  list-style: none;
}
.news-tabs li {
  display: flex;
  flex: 0 0 auto;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  height: 40px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
@media (hover: hover) {
  .news-tab:not([aria-current]):hover {
    background: #fff;
    color: var(--orange);
    box-shadow: 0 2px 6px rgb(65 45 26 / 10%);
  }
}
.news-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.news-tab[aria-current='page'] {
  background: #0b0b0b;
  border-color: #0b0b0b;
  color: #fff;
  box-shadow: 0 2px 6px rgb(65 45 26 / 14%);
}
.news-tab[aria-current='page'].is-notice {
  background: var(--orange);
  border-color: var(--orange);
}
.news-tab[aria-current='page'].is-event {
  background: #ffc605;
  border-color: #ffc605;
}
@media (max-width: 1400px) {
  .news-tabs ul {
    overflow-x: auto;
  }
  .news-tab {
    min-width: auto;
    padding-inline: 13px;
  }
}
@media (max-width: 500px) {
  .news-tabs ul {
    width: 295px;
    height: 42px;
    padding: 4px;
    justify-content: space-between;
  }
  .news-tab {
    height: 34px;
    padding-inline: 12px;
  }
}

/* ---------- 記事の行（一覧・その他のお知らせ共通） ---------- */
.news-rows {
  margin: calc(48 * var(--pc-unit, 1px)) 0 0;
  padding: 0;
  border-top: calc(2 * var(--pc-unit, 1px)) solid var(--line);
  list-style: none;
}
.news-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) calc(40 * var(--pc-unit, 1px));
  align-items: center;
  column-gap: calc(28 * var(--pc-unit, 1px));
  min-height: calc(100 * var(--pc-unit, 1px));
  padding: calc(24 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px));
  border-bottom: calc(2 * var(--pc-unit, 1px)) solid var(--line);
  color: var(--ink);
  transition: background-color 200ms ease;
}
.news-row-meta {
  display: flex;
  align-items: center;
  gap: calc(28 * var(--pc-unit, 1px));
}
.news-date {
  font-size: max(14px, calc(22 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(150 * var(--pc-unit, 1px));
  min-height: calc(27 * var(--pc-unit, 1px));
  padding: calc(5 * var(--pc-unit, 1px)) calc(16 * var(--pc-unit, 1px));
  border-radius: calc(999 * var(--pc-unit, 1px));
  background: var(--orange);
  color: #fff;
  font-size: max(14px, calc(14 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.news-badge.is-event {
  background: var(--yellow);
}
.news-row-title {
  font-size: max(14px, calc(22 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.news-row-arrow {
  color: var(--orange);
  transition: transform 220ms ease;
}
@media (hover: hover) {
  .news-row:hover {
    background: #fffbea;
  }
  .news-row:hover .news-row-title {
    color: var(--orange);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-row:hover .news-row-arrow {
    transform: translateX(calc(4 * var(--pc-unit, 1px)));
  }
}
.news-row:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(-2 * var(--pc-unit, 1px));
}
.news-empty {
  margin: calc(48 * var(--pc-unit, 1px)) 0 0;
  padding: calc(40 * var(--pc-unit, 1px)) 0;
  border-block: calc(2 * var(--pc-unit, 1px)) solid var(--line);
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  text-align: center;
}

/* ---------- ページネーション（1ページ20件。2ページ以上のときだけ出す） ---------- */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: calc(12 * var(--pc-unit, 1px));
  margin-top: calc(64 * var(--pc-unit, 1px));
}
.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(48 * var(--pc-unit, 1px));
  height: calc(48 * var(--pc-unit, 1px));
  border-radius: calc(999 * var(--pc-unit, 1px));
  color: var(--ink);
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1;
}
.news-pagination .page-numbers.current {
  background: var(--pale-yellow);
}
.news-pagination .page-numbers.dots {
  min-width: calc(24 * var(--pc-unit, 1px));
}
.news-pagination .prev,
.news-pagination .next {
  gap: calc(10 * var(--pc-unit, 1px));
  padding: 0 calc(24 * var(--pc-unit, 1px));
  border: calc(1.5 * var(--pc-unit, 1px)) solid var(--ink);
  font-size: max(14px, calc(15 * var(--pc-unit, 1px)));
  letter-spacing: 0.05em;
}
.news-pagination .is-disabled {
  border-color: #d6d1c4;
  color: #b7b0a0;
}
@media (hover: hover) {
  .news-pagination a.page-numbers:hover {
    background: var(--ink);
    color: #fff;
  }
}
.news-pagination a:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(3 * var(--pc-unit, 1px));
}

/* ---------- 詳細：記事 ---------- */
.news-article {
  position: relative;
  padding: calc(104 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
  background: #fff;
}
.news-article-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(56 * var(--pc-unit, 1px));
  width: min(calc(1000 * var(--pc-unit, 1px)), calc(100% - calc(64 * var(--pc-unit, 1px))));
  margin-inline: auto;
}
.news-article-head {
  padding-bottom: calc(40 * var(--pc-unit, 1px));
  border-bottom: calc(2 * var(--pc-unit, 1px)) solid var(--line);
}
/* 記事の頭のパンくず。記事名はすぐ下の見出しと重なるので出さない（構造化データには記事名まで入れる） */
.news-article-crumbs {
  margin-bottom: calc(20 * var(--pc-unit, 1px));
}
.news-article-crumbs ol {
  color: rgb(43 42 40 / 60%);
}
.news-article-meta {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--pc-unit, 1px));
  margin: 0;
}
/* 記事の頭の札は文字幅に合わせる（一覧の行はタイトルの頭をそろえるため固定幅） */
.news-article-meta .news-badge {
  width: auto;
}
.news-article-title {
  margin: calc(20 * var(--pc-unit, 1px)) 0 0;
  font-size: calc(44 * var(--pc-unit, 1px));
  font-weight: 700;
  line-height: calc(66 * var(--pc-unit, 1px));
  letter-spacing: 0.06em;
  line-break: strict;
}
.news-eyecatch {
  margin: 0;
}
.news-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(24 * var(--pc-unit, 1px));
  object-fit: cover;
}

/* 前後の記事 */
.news-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: calc(2 * var(--pc-unit, 1px)) solid var(--line);
}
.news-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--pc-unit, 1px));
  padding: calc(32 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px)) 0;
  color: var(--ink);
}
.news-adjacent-link.is-prev {
  border-right: calc(2 * var(--pc-unit, 1px)) solid var(--line);
}
.news-adjacent-link.is-next {
  grid-column: 2;
  align-items: flex-end;
  padding: calc(32 * var(--pc-unit, 1px)) 0 calc(32 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px));
  text-align: right;
}
.news-adjacent-label {
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--pc-unit, 1px));
  color: var(--orange);
  font-size: max(14px, calc(15 * var(--pc-unit, 1px)));
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news-adjacent-title {
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
@media (hover: hover) {
  .news-adjacent-link:hover .news-adjacent-title {
    color: var(--orange);
  }
}
.news-adjacent-link:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(-2 * var(--pc-unit, 1px));
}
.news-back {
  margin: 0;
  padding-top: calc(8 * var(--pc-unit, 1px));
  text-align: center;
}
/* 「お知らせ一覧へ」（本文のアウトラインボタンと同じ見た目） */
.news-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--pc-unit, 1px));
  min-width: calc(238 * var(--pc-unit, 1px));
  min-height: calc(64 * var(--pc-unit, 1px));
  padding: calc(8 * var(--pc-unit, 1px)) calc(10 * var(--pc-unit, 1px)) calc(8 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px));
  border: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  border-radius: calc(999 * var(--pc-unit, 1px));
  background: #fff;
  color: var(--orange);
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 200ms ease;
}
.news-outline-btn::after {
  content: '';
  flex: none;
  width: calc(44 * var(--pc-unit, 1px));
  height: calc(44 * var(--pc-unit, 1px));
  margin-left: auto;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / calc(20 * var(--pc-unit, 1px)) no-repeat;
}
@media (hover: hover) {
  .news-outline-btn:hover {
    background: #fff4ec;
  }
}
.news-outline-btn:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(3 * var(--pc-unit, 1px));
}

/* その他のお知らせ（淡い黄の地に白いカード） */
.news-others {
  padding-block: calc(120 * var(--pc-unit, 1px));
  background: var(--pale-yellow);
}
.news-others-card {
  margin-top: calc(42 * var(--pc-unit, 1px));
  padding: calc(8 * var(--pc-unit, 1px)) calc(16 * var(--pc-unit, 1px));
  border-top: 0;
  border-radius: calc(20 * var(--pc-unit, 1px));
  background: #fff;
}
.news-others-card li:last-child .news-row {
  border-bottom: 0;
}

/* ---------- 1199px以下 ---------- */
@media (max-width: 767.98px) {
  .news-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    row-gap: 8px;
    padding: 24px 16px;
  }
  .news-row-meta {
    gap: 16px;
  }
  .news-row-title {
    grid-row: 2;
  }
  .news-row-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .news-hero.is-single {
    padding: 40px 0;
  }
  .news-hero::after {
    height: 32px;
  }
  .news-hero.is-single .l-hero-en {
    margin-top: 0;
  }
  .news-wrap,
  .news-article-inner {
    width: calc(100% - 40px);
  }
  .news-intro {
    padding-top: 56px;
  }
  .news-lead {
    font-size: 20px;
    line-height: 34px;
  }
  .news-lead-text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 28px;
  }
  .news-archive {
    padding: 44px 0 80px;
  }
  .news-rows {
    margin-top: 32px;
  }
  .news-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    column-gap: 12px;
    min-height: 0;
    padding: 20px 4px;
  }
  .news-row-meta {
    gap: 10px;
  }
  .news-row .news-date {
    font-size: 14px;
  }
  .news-row .news-badge {
    width: auto;
    min-height: 17px;
    padding: 2px 10px;
    font-size: 11px;
  }
  .news-row-title {
    font-size: 16px;
    line-height: 26px;
  }
  .news-row-arrow {
    width: 40px;
    height: 40px;
  }
  .news-pagination {
    gap: 8px;
    margin-top: 40px;
  }
  .news-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .news-pagination .prev,
  .news-pagination .next {
    gap: 6px;
    padding: 0 16px;
    font-size: 14px;
  }
  .news-article {
    padding: 56px 0 80px;
  }
  .news-article-inner {
    gap: 40px;
  }
  .news-article-head {
    padding-bottom: 24px;
  }
  .news-article-crumbs {
    margin-bottom: 12px;
  }
  .news-article-meta {
    gap: 12px;
  }
  .news-article-meta .news-date {
    font-size: 15px;
  }
  .news-article-meta .news-badge {
    width: auto;
    min-height: 20px;
    padding: 3px 12px;
    font-size: 12px;
  }
  .news-article-title {
    margin-top: 12px;
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 0.04em;
  }
  .news-eyecatch img {
    border-radius: 16px;
  }
  .news-adjacent {
    grid-template-columns: 1fr;
  }
  .news-adjacent-link,
  .news-adjacent-link.is-next {
    grid-column: auto;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
    text-align: left;
  }
  .news-adjacent-link.is-prev {
    border-right: 0;
  }
  .news-adjacent-link + .news-adjacent-link {
    border-top: 1px solid var(--line);
  }
  .news-adjacent-label {
    gap: 8px;
    font-size: 13px;
  }
  .news-adjacent-label svg {
    width: 18px;
    height: 18px;
  }
  .news-adjacent-title {
    font-size: 15px;
    letter-spacing: 0.02em;
  }
  .news-back {
    padding-top: 0;
  }
  .news-outline-btn {
    min-height: 56px;
    padding: 8px 8px 8px 24px;
    font-size: 16px;
  }
  .news-outline-btn::after {
    width: 40px;
    height: 40px;
  }
  .news-others {
    padding-block: 64px;
  }
  .news-others-card {
    margin-top: 24px;
    padding: 0 16px;
    border-radius: 16px;
  }
}

/* PC比率フェーズ2：固定属性・折り返しの補正。 */
@media (min-width: 768px) and (max-width: 1919.98px) {
  .news-row-arrow {
    width: calc(40 * var(--pc-unit));
    height: calc(40 * var(--pc-unit));
  }
  .news-pagination svg {
    width: calc(18 * var(--pc-unit));
    height: calc(18 * var(--pc-unit));
  }
  .news-adjacent-label svg {
    width: calc(22 * var(--pc-unit));
    height: calc(22 * var(--pc-unit));
  }
}
