/*
=========================================
News
投稿一覧・投稿詳細・アーカイブ
=========================================
*/

.p-news {
  --news-blue: #07599c;
  --news-blue-dark: #064889;
  --news-text: #17364d;
  --news-heading: #101f2b;
  --news-line: #d5e1e8;
  --news-pale-blue: #f3f8fb;
  --news-bg: #f8fbfd;

  overflow: hidden;
  color: var(--news-text);
  background: #fff;
}

.p-news *,
.p-news *::before,
.p-news *::after {
  box-sizing: border-box;
}

.p-news img {
  display: block;
  max-width: 100%;
  height: auto;
}

.p-news a {
  color: inherit;
  text-decoration: none;
}


/*
=========================================
Hero
ページヘッダー
=========================================
*/

.p-news-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: #f7fbfe;
}

.p-news-hero .p-company-hero__image {
  position: absolute;
  inset: 0;
}

.p-news-hero .p-company-hero__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 36%,
      rgba(255, 255, 255, 0.18) 72%
    );
  pointer-events: none;
}

.p-news-hero .p-company-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.p-news-hero .p-company-hero__wave {
  position: absolute;
  bottom: 28px;
  left: -8%;
  z-index: 2;
  width: 62%;
  height: 400px;
  max-height: 100%;
  opacity: 0.55;
  background:
    url("/wp-content/themes/nissan/assets/images/company/hero__image--wave.webp")
    0 100% / contain no-repeat;
  pointer-events: none;
}

.p-news-hero .p-company-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100% - 56px, var(--inner-width));
  min-height: 410px;
  margin-inline: auto;
}

.p-news-hero .p-company-hero__title {
  margin: 0;
  color: #111;
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
}


/*
=========================================
Archive
投稿一覧・アーカイブ共通
=========================================
*/

.p-news-archive {
  padding: 82px 0 110px;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fff 72%,
      #f6fafc 100%
    );
}

.p-news-archive__inner {
  width: min(100% - 56px, var(--inner-width));
  margin-inline: auto;
}

.p-news-archive__header {
  max-width: 800px;
  margin-bottom: 42px;
}

.p-news-archive__header .p-company-section__label {
  margin: 0;
  color: var(--news-blue);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.p-news-archive__header .p-company-section__title {
  margin: 8px 0 0;
  color: var(--news-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.p-news-archive__lead {
  margin: 18px 0 0;
  color: #415564;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.9;
}


/*
=========================================
Archive Description
=========================================
*/

.p-news-archive__description {
  max-width: 760px;
  margin-top: 18px;
  color: #415564;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.9;
}

.p-news-archive__description p {
  margin: 0;
}

.p-news-archive__description p + p {
  margin-top: 10px;
}


/*
=========================================
News List
縦一列
=========================================
*/

.p-news-list {
  border-top: 1px solid var(--news-line);
}

.p-news-card {
  margin: 0;
  border-bottom: 1px solid var(--news-line);
  background: #fff;
}

.p-news-card__link {
  position: relative;
  display: block;
  padding: 27px 64px 27px 20px;
  transition:
    padding-left 0.25s ease,
    background-color 0.25s ease;
}

.p-news-card__link:hover {
  padding-left: 26px;
  background: var(--news-pale-blue);
}


/*
=========================================
Card Body
=========================================
*/

.p-news-card__body {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  padding: 0;
}


/*
=========================================
Meta
=========================================
*/

.p-news-card__meta {
  display: flex;
  flex: 0 0 235px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.p-news-card__date {
  flex: 0 0 82px;
  color: #526b7a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.p-news-card__categories {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 5px;
}

.p-news-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid #bcd3e0;
  border-radius: 999px;
  color: var(--news-blue);
  background: #f6fafc;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
}


/*
=========================================
Title
=========================================
*/

.p-news-card__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--news-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.p-news-card__link:hover .p-news-card__title {
  color: var(--news-blue);
}


/*
=========================================
Arrow
=========================================
*/

.p-news-card__more {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
}

.p-news-card__more::after {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--news-blue);
  border-right: 2px solid var(--news-blue);
  content: "";
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.p-news-card__link:hover .p-news-card__more::after {
  transform: translateX(3px) rotate(45deg);
}


/*
=========================================
Empty
=========================================
*/

.p-news-empty {
  padding: 70px 24px;
  border: 1px solid var(--news-line);
  background: var(--news-bg);
  text-align: center;
}

.p-news-empty__text {
  margin: 0;
  color: #415564;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.8;
}


/*
=========================================
Pagination
=========================================
*/

.p-news-pagination {
  margin-top: 58px;
}

.p-news-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.p-news-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.p-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #cbd9e2;
  border-radius: 4px;
  color: #375467;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.p-news-pagination a.page-numbers:hover {
  border-color: var(--news-blue);
  color: #fff;
  background: var(--news-blue);
}

.p-news-pagination .page-numbers.current {
  border-color: var(--news-blue);
  color: #fff;
  background: var(--news-blue);
}

.p-news-pagination .page-numbers.dots {
  min-width: 28px;
  padding-inline: 4px;
  border-color: transparent;
  background: transparent;
}

.p-news-pagination .prev,
.p-news-pagination .next {
  min-width: 76px;
}


/*
=========================================
Single
投稿詳細
=========================================
*/

.p-news-single {
  padding: 82px 0 110px;
  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fff 75%,
      #f6fafc 100%
    );
}

.p-news-single__inner {
  width: min(100% - 56px, 920px);
  margin-inline: auto;
}

.p-news-single__article {
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 68, 105, 0.07);
}


/*
=========================================
Single Header
=========================================
*/

.p-news-single__header {
  padding: 42px 46px 36px;
  border-bottom: 1px solid var(--news-line);
}

.p-news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.p-news-single__date {
  color: #526b7a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.p-news-single__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-news-single__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 12px;
  border: 1px solid #bcd3e0;
  border-radius: 999px;
  color: var(--news-blue);
  background: #f6fafc;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

a.p-news-single__category:hover {
  border-color: var(--news-blue);
  color: #fff;
  background: var(--news-blue);
}

.p-news-single__title {
  margin: 20px 0 0;
  color: var(--news-heading);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.045em;
  overflow-wrap: anywhere;
}


/*
=========================================
Single Content
=========================================
*/

.p-news-single__content {
  padding: 46px;
  color: #263c4a;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 2;
  overflow-wrap: anywhere;
}

.p-news-single__content > *:first-child {
  margin-top: 0;
}

.p-news-single__content > *:last-child {
  margin-bottom: 0;
}

.p-news-single__content p {
  margin: 0 0 1.7em;
}

.p-news-single__content h2 {
  position: relative;
  margin: 2.6em 0 1em;
  padding: 16px 20px 16px 25px;
  border-left: 6px solid var(--news-blue);
  color: var(--news-heading);
  background: var(--news-pale-blue);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.55;
}

.p-news-single__content h3 {
  margin: 2.3em 0 0.9em;
  padding-bottom: 10px;
  border-bottom: 2px solid #d5e3eb;
  color: var(--news-heading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.6;
}

.p-news-single__content h4 {
  margin: 2em 0 0.8em;
  color: var(--news-blue);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.6;
}

.p-news-single__content ul,
.p-news-single__content ol {
  margin: 1.3em 0 1.8em;
  padding-left: 1.6em;
}

.p-news-single__content ul {
  list-style: disc;
}

.p-news-single__content ol {
  list-style: decimal;
}

.p-news-single__content li {
  margin: 0.35em 0;
}

.p-news-single__content li::marker {
  color: var(--news-blue);
  font-weight: 700;
}

.p-news-single__content a {
  color: var(--news-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.p-news-single__content a:hover {
  opacity: 0.72;
}

.p-news-single__content strong {
  color: #122f43;
  font-weight: 800;
}

.p-news-single__content img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.p-news-single__content figure {
  max-width: 100%;
  margin: 2em 0;
}

.p-news-single__content figcaption {
  margin-top: 8px;
  color: #687b87;
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
}

.p-news-single__content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid #9fc1d6;
  color: #405865;
  background: #f5f9fb;
}

.p-news-single__content blockquote > *:last-child {
  margin-bottom: 0;
}

.p-news-single__content hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--news-line);
}


/*
=========================================
Single Table
=========================================
*/

.p-news-single__content .wp-block-table {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p-news-single__content table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.p-news-single__content th,
.p-news-single__content td {
  padding: 14px 16px;
  border: 1px solid #ccd9e1;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: left;
}

.p-news-single__content th {
  color: #173b53;
  background: var(--news-pale-blue);
  font-weight: 800;
}

.p-news-single__content td {
  background: #fff;
}


/*
=========================================
Post Page Links
=========================================
*/

.p-news-single__page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--news-line);
}

.p-news-single__page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #cbd9e2;
  border-radius: 4px;
  color: #375467;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.p-news-single__page-links .post-page-numbers.current {
  border-color: var(--news-blue);
  color: #fff;
  background: var(--news-blue);
}


/*
=========================================
Single Navigation
=========================================
*/

.p-news-single__navigation {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.p-news-single__navigation-prev,
.p-news-single__navigation-index,
.p-news-single__navigation-next {
  flex: 1 1 0;
  min-width: 0;
}

/*
リンクと、記事がない場合の直下spanだけを対象にする
*/

.p-news-single__navigation-prev > a,
.p-news-single__navigation-prev > span,
.p-news-single__navigation-index > a,
.p-news-single__navigation-index > span,
.p-news-single__navigation-next > a,
.p-news-single__navigation-next > span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  border: 1px solid var(--news-line);
  border-radius: 5px;
  color: #294a5f;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-news-single__navigation a {
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.p-news-single__navigation a:hover {
  border-color: var(--news-blue);
  color: var(--news-blue);
  background: var(--news-pale-blue);
}


/*
前の記事
*/

.p-news-single__navigation-prev > a,
.p-news-single__navigation-prev > span {
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}


/*
一覧へ戻る
*/

.p-news-single__navigation-index > a,
.p-news-single__navigation-index > span {
  justify-content: center;
  text-align: center;
}


/*
次の記事
*/

.p-news-single__navigation-next > a,
.p-news-single__navigation-next > span {
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}


/*
リンク内の矢印
*/

.p-news-single__navigation a > span {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.p-news-single__navigation-prev > a:hover > span {
  transform: translateX(-3px);
}

.p-news-single__navigation-next > a:hover > span {
  transform: translateX(3px);
}


/*
記事が存在しない場合
*/

.p-news-single__navigation-prev > span,
.p-news-single__navigation-next > span {
  color: #9aa8b1;
  background: #f7f9fa;
}


/*
=========================================
Tablet
=========================================
*/

@media (max-width: 1024px) {

  .p-news-card__meta {
    flex-basis: 215px;
  }

  .p-news-single__header {
    padding: 36px 38px 32px;
  }

  .p-news-single__content {
    padding: 40px 38px;
  }

}


/*
=========================================
Smartphone
=========================================
*/

@media (max-width: 767px) {

  /*
  Hero
  */

  .p-news-hero,
  .p-news-hero .p-company-hero__inner {
    min-height: 300px;
  }

  .p-news-hero .p-company-hero__image::after {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.92) 58%,
        rgba(255, 255, 255, 0.52) 100%
      );
  }

  .p-news-hero .p-company-hero__image img {
    object-position: 64% center;
  }

  .p-news-hero .p-company-hero__wave {
    bottom: -34px;
    left: -30%;
    width: 110%;
    height: 165px;
  }

  .p-news-hero .p-company-hero__inner {
    width: min(100% - 32px, var(--inner-width));
  }

  .p-news-hero .p-company-hero__title {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.4;
  }


  /*
  Archive
  */

  .p-news-archive,
  .p-news-single {
    padding: 58px 0 76px;
  }

  .p-news-archive__inner,
  .p-news-single__inner {
    width: min(100% - 32px, var(--inner-width));
  }

  .p-news-archive__header {
    margin-bottom: 30px;
  }

  .p-news-archive__header .p-company-section__title {
    font-size: 1.65rem;
  }

  .p-news-archive__lead,
  .p-news-archive__description {
    margin-top: 16px;
    font-size: 0.84rem;
    line-height: 1.85;
  }


  /*
  News List
  */

  .p-news-card__link {
    padding: 22px 42px 22px 8px;
  }

  .p-news-card__link:hover {
    padding-left: 12px;
  }

  .p-news-card__body {
    display: block;
  }

  .p-news-card__meta {
    display: flex;
    flex-basis: auto;
    gap: 7px 10px;
  }

  .p-news-card__date {
    flex-basis: auto;
  }

  .p-news-card__title {
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .p-news-card__more {
    right: 12px;
  }


  /*
  Pagination
  */

  .p-news-pagination {
    margin-top: 42px;
  }

  .p-news-pagination .nav-links {
    gap: 6px;
  }

  .p-news-pagination .page-numbers {
    min-width: 39px;
    min-height: 39px;
    padding: 6px 9px;
    font-size: 0.75rem;
  }

  .p-news-pagination .prev,
  .p-news-pagination .next {
    min-width: 60px;
  }


  /*
  Single
  */

  .p-news-single__article {
    border-radius: 5px;
    box-shadow: none;
  }

  .p-news-single__header {
    padding: 26px 20px 24px;
  }

  .p-news-single__title {
    margin-top: 16px;
    font-size: 1.45rem;
    line-height: 1.55;
  }

  .p-news-single__content {
    padding: 28px 20px 34px;
    font-size: 0.875rem;
    line-height: 1.95;
  }

  .p-news-single__content h2 {
    margin-top: 2.2em;
    padding: 13px 14px 13px 17px;
    border-left-width: 5px;
    font-size: 1.25rem;
  }

  .p-news-single__content h3 {
    font-size: 1.1rem;
  }

  .p-news-single__content h4 {
    font-size: 1rem;
  }

  .p-news-single__content blockquote {
    padding: 18px;
  }

  .p-news-single__content th,
  .p-news-single__content td {
    padding: 11px 12px;
    font-size: 0.78rem;
  }


  /*
  Single Navigation
  */

  .p-news-single__navigation {
    display: block;
  }

  .p-news-single__navigation > div + div {
    margin-top: 10px;
  }

  .p-news-single__navigation-prev > a,
  .p-news-single__navigation-prev > span,
  .p-news-single__navigation-index > a,
  .p-news-single__navigation-index > span,
  .p-news-single__navigation-next > a,
  .p-news-single__navigation-next > span {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 0.75rem;
  }

  .p-news-single__navigation-prev > a,
  .p-news-single__navigation-prev > span,
  .p-news-single__navigation-index > a,
  .p-news-single__navigation-index > span,
  .p-news-single__navigation-next > a,
  .p-news-single__navigation-next > span {
    justify-content: center;
    text-align: center;
  }

}