/* SAEBA EDITION v1.3.0 — only posts opted into the NDS article layout. */
.nds-article {
  --nds-saeba-red: var(--saeba26-red, #e1002e);
  --nds-saeba-ink: var(--saeba26-ink, #231815);
  --nds-saeba-muted: #675f59;
  --nds-image-ratio: 4 / 3;
  --nds-image-radius: 0px;
  --nds-section-gap: clamp(34px, 5vw, 64px);
  --nds-gallery-gap: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1060px;
  min-width: 0;
  margin: 0 auto clamp(80px, 10vw, 140px);
  color: var(--nds-saeba-ink);
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 2;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.nds-article *, .nds-article *::before, .nds-article *::after { box-sizing: border-box; }
/* Lightning: suppress only the managed post's duplicate theme header. */
.nds-managed-post > .entry-header,
.nds-managed-post > .entryHeader { display: none; }
.nds-article > * { margin: 0; }
.nds-article > * + * { margin-top: var(--nds-section-gap); }

.nds-article .nds-article-header {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(38px, 6vw, 84px) clamp(26px, 6vw, 84px) clamp(38px, 5vw, 62px);
  border-top: clamp(8px, 1.1vw, 14px) solid var(--nds-saeba-red);
  background: var(--nds-saeba-ink);
  color: #fff;
  isolation: isolate;
}
.nds-article .nds-article-header::before {
  content: 'SAEBA COORDINATION / INFORMATION';
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(28px, 4vw, 58px);
  color: rgba(255,255,255,.68);
  font: 700 11px/1.5 'Jost', sans-serif;
  letter-spacing: .18em;
  overflow-wrap: anywhere;
}
.nds-article .nds-article-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(10px, 2.5vw, 26px);
  height: 100%;
  background: var(--nds-saeba-red);
  z-index: 0;
  pointer-events: none;
}
.nds-article .nds-article-title {
  position: relative;
  z-index: 1;
  max-width: 870px;
  margin: 0 0 clamp(30px, 4vw, 46px);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: clamp(29px, 4vw, 53px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  text-align: left;
}
.nds-article .nds-article-title::before,
.nds-article .nds-article-title::after { content: none; }
.nds-article .nds-article-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  color: rgba(255,255,255,.7);
  font: 600 13px/1.5 'Jost', 'Noto Sans JP', sans-serif;
  letter-spacing: .1em;
}
.nds-article .nds-article-category {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--nds-saeba-red);
  border-radius: 0;
  color: #fff;
  background: var(--nds-saeba-red);
  font: 700 11px/1.5 'Noto Sans JP', sans-serif;
  letter-spacing: .03em;
}
.nds-article .nds-article-intro {
  margin-top: 0;
  padding: clamp(25px, 4vw, 54px) clamp(25px, 5vw, 64px);
  background: #f6f5f2;
  border-left: 5px solid var(--nds-saeba-red);
  color: var(--nds-saeba-ink);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.95;
  letter-spacing: -.01em;
}
.nds-article .nds-article-main,
.nds-article .nds-article-photo { min-width: 0; }
.nds-article .nds-article-main { padding: 0; }
.nds-article .nds-article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--nds-image-ratio);
  object-fit: cover;
  object-position: center;
  border-radius: var(--nds-image-radius);
  background: #e9e6e3;
  margin: 0;
}
.nds-article .nds-article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nds-gallery-gap);
  padding-top: clamp(20px, 3vw, 38px);
  border-top: 1px solid #dedbd7;
}
.nds-article .nds-article-gallery .nds-article-photo { margin: 0; }
.nds-article .nds-article-body {
  padding: 0 clamp(12px, 4vw, 50px);
  color: var(--nds-saeba-ink);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2.15;
  letter-spacing: .025em;
}
.nds-article .nds-article-body > :first-child { margin-top: 0; }
.nds-article .nds-article-body > :last-child { margin-bottom: 0; }
.nds-article .nds-article-body p { margin: 0 0 1.5em; }
.nds-article .nds-article-body :is(h2, h3, h4) {
  margin: 2.5em 0 1em;
  padding: 0 0 .65em;
  border-bottom: 1px solid #dedbd7;
  color: var(--nds-saeba-ink);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.03em;
}
.nds-article .nds-article-body h2 { font-size: clamp(23px, 2.6vw, 32px); }
.nds-article .nds-article-body h3 { font-size: clamp(19px, 2.1vw, 25px); }
.nds-article .nds-article-body :is(h2, h3, h4)::before { content: none; }
.nds-article .nds-article-body :is(img, video, iframe) { max-width: 100%; }
.nds-article .nds-article-body :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.nds-article .nds-article-body :is(.alignwide, .alignfull) {
  width: 100%; max-width: 100%; margin-inline: 0;
}
.nds-article .nds-article-body :is(a, a:visited) { color: #bb0027; text-underline-offset: 4px; }
.nds-article .nds-article-body a:focus-visible { outline: 2px solid var(--nds-saeba-red); outline-offset: 3px; }
@media (max-width: 650px) {
  .nds-article {
    --nds-section-gap: clamp(30px, 9vw, 44px);
    margin-bottom: 80px;
  }
  .nds-article .nds-article-header { padding: 34px 24px 38px; }
  .nds-article .nds-article-header::before { font-size: 10px; letter-spacing: .1em; margin-bottom: 34px; }
  .nds-article .nds-article-title { font-size: clamp(26px, 7vw, 35px); line-height: 1.5; margin-bottom: 28px; }
  .nds-article .nds-article-header::after { width: 7px; }
  .nds-article .nds-article-intro { border-left-width: 4px; }
  .nds-article .nds-article-body { padding: 0 10px; }
  .nds-article .nds-article-gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .nds-article * { transition: none !important; animation: none !important; }
}
