/**
 * Home Next — lower pages
 * Black / white / lime. Fonts inherit from home-next.css
 */

.nw-lower {
  --nw-lower-lime: #c8e85a;
  --nw-lower-lime-hover: #d6f075;
  --nw-lower-black: #1d1d1d;
  --nw-lower-muted: #666;
  --nw-lower-line: rgba(29, 29, 29, 0.12);
  color: var(--nw-lower-black);
  background: #fff;
  padding-top: var(--header-h, 84px);
  min-height: 60vh;
}

.nw-lower a {
  color: inherit;
  text-decoration: none;
}

.nw-lower :focus-visible {
  outline: 2px solid var(--nw-lower-black);
  outline-offset: 3px;
}

/* —— Hero —— */
.nw-lower-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.nw-lower-hero__inner {
  position: relative;
}

.nw-lower-hero__en {
  margin: 0;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--nw-lower-black);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.nw-lower-hero.is-ready .nw-lower-hero__en,
.nw-lower-hero__en.is-visible {
  opacity: 1;
  transform: none;
}

.nw-lower-hero__jp {
  margin: clamp(16px, 2.5vw, 28px) 0 0;
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.08s, transform 0.7s ease 0.08s;
}

.nw-lower-hero.is-ready .nw-lower-hero__jp,
.nw-lower-hero__jp.is-visible {
  opacity: 1;
  transform: none;
}

.nw-lower-hero__lead {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--nw-lower-muted);
  font-size: 14px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.14s, transform 0.7s ease 0.14s;
}

.nw-lower-hero.is-ready .nw-lower-hero__lead,
.nw-lower-hero__lead.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Breadcrumb —— */
.nw-lower-breadcrumb {
  padding: 0 0 clamp(32px, 4vw, 56px);
}

.nw-lower-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-lower-muted);
}

.nw-lower-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.nw-lower-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  opacity: 0.45;
}

.nw-lower-breadcrumb__item a {
  color: var(--nw-lower-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nw-lower-breadcrumb__item a:hover {
  color: var(--nw-lower-black);
  border-bottom-color: currentColor;
}

.nw-lower-breadcrumb__item [aria-current="page"] {
  color: var(--nw-lower-black);
  overflow-wrap: anywhere;
}

/* —— Shared Contact CTA（自己完結：.nw-lower 外の Services でも成立） —— */
.nw-lower-cta {
  --nw-lower-lime: #c8e85a;
  --nw-lower-lime-hover: #d6f075;
  --nw-lower-black: #111;
  --nw-lower-muted: rgba(255, 255, 255, 0.72);
  --nw-lower-line: rgba(255, 255, 255, 0.14);

  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding: clamp(80px, 9vw, 120px) 0;
  background-color: var(--nw-lower-black, #111);
  background-image: none;
  color: #fff;
  overflow: hidden;
  border-bottom: 0;
}

.nw-lower-cta::before,
.nw-lower-cta::after {
  content: none;
  display: none;
}

.nw-lower-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  min-width: 0;
}

.nw-lower-cta__en {
  margin: 0;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.nw-lower-cta__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(24px, 3.2vw, 48px);
  align-items: center;
  min-width: 0;
}

.nw-lower-cta__copy {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.nw-lower-cta__jp {
  margin: 0;
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
}

.nw-lower-cta__jp-line {
  display: inline;
}

.nw-lower-cta__lead {
  margin: 0;
  max-width: min(54em, 100%);
  color: var(--nw-lower-muted, rgba(255, 255, 255, 0.72));
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.85;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

.nw-lower-cta__lead-line {
  display: inline;
}

@media (min-width: 981px) {
  .nw-lower-cta__lead-line {
    display: block;
  }
}

@media (min-width: 1101px) {
  .nw-lower-cta__lead-line {
    white-space: nowrap;
  }
}

.nw-lower-cta__action {
  flex-shrink: 0;
  min-width: 0;
}

/* Lime CTA button */
.nw-lower-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0 32px;
  border: 1px solid var(--nw-lower-lime, #c8e85a);
  border-radius: 999px;
  background: var(--nw-lower-lime, #c8e85a);
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nw-lower-cta-btn:hover {
  background: var(--nw-lower-lime-hover, #d6f075);
  border-color: var(--nw-lower-lime-hover, #d6f075);
  color: #111111;
}

.nw-lower-cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  color: #111111;
}

.nw-lower-cta-btn__label {
  color: #111111;
}

/* Chevron arrow（丸に見えないよう border の2辺のみ） */
.nw-lower-cta-btn__arrow {
  display: inline-block;
  box-sizing: border-box;
  width: 0.5em;
  height: 0.5em;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1.5px solid #111111;
  border-right: 1.5px solid #111111;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nw-lower-cta-btn__arrow::before,
.nw-lower-cta-btn__arrow::after {
  content: none;
  display: none;
}

.nw-lower-cta-btn:hover .nw-lower-cta-btn__arrow {
  transform: translateX(4px) rotate(45deg);
}

/* Override .nw-next a { color: inherit } */
.nw-next a.nw-lower-cta-btn,
.nw-next a.nw-lower-cta-btn:hover,
.nw-next a.nw-lower-cta-btn:focus-visible,
.nw-lower a.nw-lower-cta-btn,
.nw-lower a.nw-lower-cta-btn:hover,
.nw-lower a.nw-lower-cta-btn:focus-visible {
  color: #111111;
  text-decoration: none;
}

.nw-next a.nw-lower-cta-btn .nw-lower-cta-btn__label,
.nw-lower a.nw-lower-cta-btn .nw-lower-cta-btn__label {
  color: #111111;
}

/* CTA直下フッターとの白い隙間を避ける */
body.nw-next-page .nw-next-footer {
  margin-top: 0;
}

body.nw-next-page .nw-lower-cta + .nw-next-footer,
body.nw-next-page main + .nw-next-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .nw-lower-cta__row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .nw-lower-cta__lead {
    max-width: none;
  }

  .nw-lower-cta__lead-line {
    display: inline;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .nw-lower-cta {
    padding: clamp(64px, 14vw, 80px) 0;
  }

  .nw-lower-cta__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .nw-lower-cta__en {
    font-size: 12px;
  }

  .nw-lower-cta__jp {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.35;
  }

  .nw-lower-cta__lead {
    max-width: none;
    font-size: 14px;
    line-height: 1.8;
  }

  .nw-lower-cta-btn {
    width: 100%;
    max-width: none;
    min-height: 56px;
    padding: 0 24px;
  }
}

/* —— Contact form —— */
.nw-contact-next__section {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.nw-contact-next__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.nw-contact-next__intro-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.nw-contact-next__form-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
}

.nw-contact-next__alert {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--nw-lower-line);
  font-size: 14px;
  line-height: 1.7;
}

.nw-contact-next__alert p {
  margin: 0;
}

.nw-contact-next__alert p + p {
  margin-top: 6px;
}

.nw-contact-next__alert--success {
  background: #f7fbe8;
  border-color: var(--nw-lower-lime);
}

.nw-contact-next__alert--error {
  background: #fff5f5;
  border-color: #e0a0a0;
}

.nw-contact-next__hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nw-contact-next__form {
  position: relative;
  display: grid;
  gap: 22px;
}

.nw-contact-next__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.nw-contact-next__label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.nw-contact-next__req {
  margin-left: 6px;
  color: #b33;
  font-size: 11px;
  font-weight: 700;
}

.nw-contact-next__interests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-contact-next__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.nw-contact-next__check input {
  margin-top: 3px;
  accent-color: var(--nw-lower-black);
}

.nw-contact-next__input,
.nw-contact-next__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--nw-lower-line);
  border-radius: 2px;
  background: #fff;
  color: var(--nw-lower-black);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-contact-next__textarea {
  resize: vertical;
  min-height: 160px;
}

.nw-contact-next__input:focus,
.nw-contact-next__textarea:focus {
  outline: none;
  border-color: var(--nw-lower-lime);
  box-shadow: 0 0 0 3px rgba(200, 232, 90, 0.35);
}

.nw-contact-next__privacy {
  padding-top: 4px;
}

.nw-contact-next__privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw-contact-next__submit {
  padding-top: 8px;
}

.nw-contact-next__submit-btn {
  border: 1px solid var(--nw-lower-lime);
}

/* —— Company —— */
.nw-company-next__section {
  padding-bottom: clamp(48px, 6vw, 96px);
}

.nw-company-next__heading {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: 18px;
  font-weight: 700;
}

.nw-company-next__dl {
  margin: 0;
  border-top: 1px solid var(--nw-lower-line);
}

.nw-company-next__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nw-lower-line);
}

.nw-company-next__row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--nw-lower-muted);
}

.nw-company-next__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.nw-company-next__row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw-company-next__map {
  margin-top: clamp(48px, 6vw, 72px);
}

.nw-company-next__map-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.nw-company-next__map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #efefef;
  overflow: hidden;
}

.nw-company-next__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nw-company-next__map-link {
  margin: 14px 0 0;
  font-size: 13px;
}

.nw-company-next__map-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Message —— */
.nw-message-next .nw-lower-hero {
  padding-bottom: clamp(16px, 2.5vw, 32px);
}

.nw-message-next .nw-lower-hero__en {
  font-size: clamp(40px, 11vw, 128px);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nw-message-next .nw-lower-breadcrumb {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.nw-message-next__section {
  padding-bottom: clamp(48px, 6vw, 96px);
}

.nw-message-next__intro {
  margin: 0 0 clamp(40px, 6vw, 72px);
  max-width: 20em;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.nw-message-next__intro-line {
  display: block;
}

.nw-message-next__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.nw-message-next__media {
  position: sticky;
  top: calc(var(--header-h, 84px) + 20px);
  align-self: start;
}

.nw-message-next__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #efefef;
}

.nw-message-next__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  background: #efefef;
}

.nw-message-next__media-empty {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #efefef, #e2e2e2);
}

.nw-message-next__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 56px 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
  pointer-events: none;
}

.nw-message-next__caption-en {
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--nw-lower-lime, #c8e85a);
}

.nw-message-next__caption-ja {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.nw-message-next__main {
  min-width: 0;
}

.nw-message-next__article {
  max-width: 36em;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.01em;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.nw-message-next__article p {
  margin: 0 0 1.55em;
}

.nw-message-next__highlights {
  margin: 0 0 1.7em;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--nw-lower-lime, #c8e85a);
}

.nw-message-next__highlight {
  margin: 0 0 0.85em !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.nw-message-next__highlight:last-child {
  margin-bottom: 0 !important;
}

.nw-message-next__sign {
  margin: 2.6em 0 0 !important;
  font-weight: 700;
  line-height: 1.85;
}

.nw-message-next__sign-line {
  display: block;
}

.nw-message-next__profile {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--nw-lower-line, rgba(29, 29, 29, 0.12));
  max-width: 36em;
  background: #fff;
}

.nw-message-next__profile-en {
  margin: 0 0 6px;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nw-lower-muted, #666);
}

.nw-message-next__profile-jp {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nw-lower-black, #1d1d1d);
}

.nw-message-next__profile-name {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.nw-message-next__profile-role {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--nw-lower-muted, #666);
}

.nw-message-next__profile-body {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.nw-message-next__profile-body p {
  margin: 0 0 1.35em;
}

.nw-message-next__profile-body p:last-child {
  margin-bottom: 0;
}

.nw-message-next__company-link {
  margin: 32px 0 0;
}

.nw-message-next__company-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--nw-lower-black, #1d1d1d);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nw-message-next__company-anchor:hover {
  color: #111;
  border-bottom-color: currentColor;
}

.nw-message-next__company-anchor:focus-visible {
  outline: 2px solid var(--nw-lower-black, #1d1d1d);
  outline-offset: 4px;
}

.nw-message-next__company-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nw-message-next__company-anchor:hover .nw-message-next__company-arrow {
  transform: translateX(4px);
}

/* Message reveal — visible without JS */
.nw-message-next.is-js [data-nw-lower-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.nw-message-next.is-js [data-nw-lower-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nw-message-next__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nw-message-next__media {
    position: static;
    max-width: none;
    width: 100%;
  }

  .nw-message-next__intro {
    max-width: none;
    font-size: clamp(20px, 5.6vw, 28px);
    margin-bottom: 32px;
  }

  .nw-message-next__article {
    max-width: none;
    font-size: 15px;
    line-height: 1.95;
  }

  .nw-message-next__highlight {
    font-size: 14px;
  }

  .nw-message-next__profile {
    max-width: none;
  }

  .nw-message-next__profile-body {
    font-size: 14px;
  }

  .nw-message-next__caption {
    padding: 48px 16px 16px;
  }
}

@media (max-width: 430px) {
  .nw-message-next .nw-next-wrap {
    margin-inline: 22px;
  }

  .nw-message-next__intro {
    font-size: clamp(18px, 5.4vw, 24px);
  }
}

/* —— Privacy —— */
.nw-privacy-next__section {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.nw-privacy-next__prose {
  max-width: 720px;
}

.nw-privacy-next__article {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

.nw-privacy-next__article h2 {
  margin: 2.2em 0 0.8em;
  font-size: 17px;
  font-weight: 700;
  color: var(--nw-lower-black);
  line-height: 1.5;
}

.nw-privacy-next__article h2:first-child {
  margin-top: 0;
}

.nw-privacy-next__article p {
  margin: 0 0 1em;
  overflow-wrap: anywhere;
}

.nw-privacy-next__article ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.nw-privacy-next__article li {
  margin: 0.35em 0;
}

.nw-privacy-next__article ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.nw-privacy-next__article a {
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.nw-privacy-next__contact-link {
  margin-top: 3em !important;
  padding-top: 1.5em;
  border-top: 1px solid var(--nw-lower-line);
}

/* —— Knowledge / archive cards —— */
.nw-archive-next__section {
  padding-bottom: clamp(48px, 6vw, 96px);
}

.nw-archive-next__featured {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.nw-archive-next__featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  color: inherit;
}

.nw-archive-next__featured-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #efefef;
  overflow: hidden;
}

.nw-archive-next__featured-media img,
.nw-archive-next__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-archive-next__media-empty {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, #efefef, #e2e2e2);
}

.nw-archive-next__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--nw-lower-muted);
  letter-spacing: 0.04em;
}

.nw-archive-next__cat {
  font-weight: 700;
  color: var(--nw-lower-black);
}

.nw-archive-next__featured-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.nw-archive-next__excerpt {
  margin: 0 0 16px;
  color: var(--nw-lower-muted);
  font-size: 14px;
  line-height: 1.8;
}

.nw-archive-next__more {
  font-size: 13px;
  font-weight: 700;
}

.nw-archive-next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-archive-next__card-link {
  display: grid;
  gap: 14px;
  height: 100%;
  color: inherit;
  position: relative;
}

.nw-archive-next__card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #efefef;
  overflow: hidden;
}

.nw-archive-next__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-archive-next__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.nw-archive-next__card-link:hover .nw-archive-next__arrow {
  transform: translate(2px, -2px);
}

.nw-archive-next__empty {
  margin: 0;
  padding: 48px 0;
  color: var(--nw-lower-muted);
  font-size: 15px;
}

/* —— News rows —— */
.nw-archive-next__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nw-lower-line);
}

.nw-archive-next__row-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--nw-lower-line);
  color: inherit;
}

.nw-archive-next__row-date {
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nw-lower-muted);
}

.nw-archive-next__row-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: transform 0.3s ease;
}

.nw-archive-next__row-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.nw-archive-next__row-link:hover .nw-archive-next__row-title {
  transform: translateX(4px);
}

.nw-archive-next__row-link:hover .nw-archive-next__row-arrow {
  transform: translateX(4px);
}

/* —— Pagination —— */
.nw-lower-pagination {
  margin-top: clamp(40px, 5vw, 64px);
}

.nw-lower-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-lower-pagination__item a,
.nw-lower-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--nw-lower-line);
  font-size: 13px;
  font-weight: 700;
}

.nw-lower-pagination__item .current {
  background: var(--nw-lower-black);
  border-color: var(--nw-lower-black);
  color: #fff;
}

.nw-lower-pagination__item a:hover {
  border-color: var(--nw-lower-black);
}

/* —— Single prose —— */
.nw-single-next__header {
  padding: 12px 0 clamp(28px, 4vw, 48px);
}

.nw-single-next__label {
  margin: 0 0 12px;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nw-lower-muted);
}

.nw-single-next__title {
  margin: 0;
  max-width: 18em;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.nw-single-next__meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--nw-lower-muted);
}

.nw-single-next__article {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.nw-single-next__inner {
  max-width: 820px;
}

.nw-single-next__inner--narrow {
  max-width: 720px;
}

.nw-single-next__thumb {
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.nw-single-next__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.nw-single-next__prose {
  font-size: 15px;
  line-height: 1.95;
  color: #333;
  overflow-wrap: anywhere;
}

.nw-single-next__prose > *:first-child {
  margin-top: 0;
}

.nw-single-next__prose h2,
.nw-single-next__prose h3,
.nw-single-next__prose h4 {
  margin: 2em 0 0.7em;
  color: var(--nw-lower-black);
  font-weight: 700;
  line-height: 1.4;
}

.nw-single-next__prose h2 {
  font-size: 1.35em;
}

.nw-single-next__prose h3 {
  font-size: 1.15em;
}

.nw-single-next__prose p,
.nw-single-next__prose ul,
.nw-single-next__prose ol,
.nw-single-next__prose blockquote,
.nw-single-next__prose table,
.nw-single-next__prose figure {
  margin: 0 0 1.25em;
}

.nw-single-next__prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw-single-next__prose img {
  max-width: 100%;
  height: auto;
}

.nw-single-next__prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.nw-single-next__prose blockquote {
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--nw-lower-black);
  color: var(--nw-lower-muted);
}

.nw-single-next__tags {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--nw-lower-line);
  font-size: 13px;
  color: var(--nw-lower-muted);
}

.nw-single-next__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--nw-lower-line);
  font-size: 14px;
  font-weight: 700;
}

.nw-single-next__nav-next {
  text-align: right;
}

.nw-single-next__back {
  margin: 28px 0 0;
  font-size: 14px;
}

.nw-single-next__related {
  margin-top: clamp(48px, 6vw, 80px);
}

.nw-single-next__related-title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
}

.nw-single-next__empty {
  padding: 64px 0;
}

/* —— 404 —— */
.nw-404-next__section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.nw-404-next__inner {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.nw-404-next__en {
  margin: 0;
  font-family: var(--font-en, "Unbounded", sans-serif);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.nw-404-next__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
}

.nw-404-next__lead {
  margin: 0 0 12px;
  color: var(--nw-lower-muted);
  font-size: 14px;
  line-height: 1.7;
}

.nw-404-next__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.nw-404-next__text-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Text link (when home-next not providing) —— */
.nw-lower .nw-next-text-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

/* —— Responsive 980 —— */
@media (max-width: 980px) {
  .nw-lower {
    padding-top: var(--header-h, 68px);
  }

  .nw-contact-next__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nw-contact-next__interests {
    grid-template-columns: 1fr;
  }

  .nw-company-next__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nw-company-next__map-frame {
    aspect-ratio: 4 / 3;
  }

  .nw-message-next__layout {
    grid-template-columns: 1fr;
  }

  .nw-message-next__media {
    position: static;
    max-width: none;
  }

  .nw-archive-next__featured-link {
    grid-template-columns: 1fr;
  }

  .nw-archive-next__grid {
    grid-template-columns: 1fr;
  }

  .nw-archive-next__row-link {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .nw-archive-next__row-date {
    grid-column: 1 / -1;
  }

  .nw-single-next__nav {
    grid-template-columns: 1fr;
  }

  .nw-single-next__nav-next {
    text-align: left;
  }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .nw-lower-hero__en,
  .nw-lower-hero__jp,
  .nw-lower-hero__lead,
  .nw-lower-cta-btn__arrow,
  .nw-archive-next__arrow,
  .nw-archive-next__row-title,
  .nw-archive-next__row-arrow,
  .nw-message-next.is-js [data-nw-lower-reveal],
  .nw-message-next.is-js [data-nw-lower-reveal].is-visible,
  .nw-message-next__company-arrow {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .nw-lower-cta-btn:hover .nw-lower-cta-btn__arrow,
  .nw-archive-next__card-link:hover .nw-archive-next__arrow,
  .nw-archive-next__row-link:hover .nw-archive-next__row-title,
  .nw-archive-next__row-link:hover .nw-archive-next__row-arrow,
  .nw-message-next__company-anchor:hover .nw-message-next__company-arrow {
    transform: none !important;
  }
}
