@import url("fonts.css");

/*
  NEWS page and article styles.
  NEWS_chijimatsu_cpa.html and NEWS_YYYYMMDD.html share this file.
  The article list is generated by NEWS_auto.js.
*/

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "NotoSansJP-VariableFont_wght", "ZenKakuGothicNew-Regular", sans-serif;
  color: #ffffff;
  background-color: #00193b;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* NEWS list hero and article hero. */
.news-hero,
.article-hero {
  min-height: 420px;
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(0, 25, 59, 0.5), rgba(0, 25, 59, 0.72)),
    url("image/投稿.jpg") center center / cover no-repeat;
}

.news-hero-text h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2.1rem, 6.4vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin: 0;
  font-family: "ShipporiMincho-Medium", "NotoSansJP-VariableFont_wght", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

/* NEWS lead and article content spacing. */
.lead-section,
.article-section {
  padding: 80px 32px;
}

.lead-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  background-color: #00193b;
  color: #ffffff;
}

.section-heading p,
.news-list-heading p {
  margin: 0 0 8px;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b9c8dd;
}

.section-heading h2,
.news-list-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2.25rem, 4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.section-body h3 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  line-height: 1.7;
}

.section-body p,
.news-summary p,
.article-section p,
.article-info dd,
.news-list-note p,
.contact-section p {
  line-height: 1.9;
}

.section-body p,
.news-summary p,
.article-section p,
.news-list-note p {
  margin: 0;
}

.news-list-section {
  padding: 80px 32px;
  background-color: #ffffff;
  color: #00193b;
}

/* NEWS index cards generated by NEWS_auto.js. */
.news-list-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.news-list-heading {
  margin-bottom: 34px;
}

.news-list-heading p {
  color: #557095;
}

.news-list-heading span {
  display: block;
  margin-top: 12px;
  color: #557095;
  font-size: 0.92rem;
}

.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  padding: 34px 0;
  border-top: 1px solid #d9e0ea;
}

.news-card:last-of-type {
  border-bottom: 1px solid #d9e0ea;
}

.news-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.news-meta time {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.7rem;
  color: #557095;
}

.news-meta span,
.article-category {
  width: fit-content;
  padding: 5px 12px;
  border: 1px solid #b7c3d2;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.article-section .article-category {
  color: #557095;
  border-color: #b7c3d2;
}

.news-summary h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.5;
}

.read-more,
.back-link,
.source-link a {
  display: inline-block;
  margin-top: 24px;
  color: inherit;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 10px 12px;
  border: 1px solid #b7c3d2;
  border-radius: 999px;
  text-align: center;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.pagination-current {
  background-color: #00193b;
  color: #ffffff;
  border-color: #00193b;
}

.pagination-disabled {
  color: #8b9ab0;
}

/* Article detail page. */
.news-list-note {
  padding: 64px 32px;
  background-color: #00193b;
  color: #ffffff;
  text-align: center;
}

.news-list-note p {
  max-width: 1000px;
  margin: 0 auto;
}

.article-hero-text {
  max-width: 900px;
}

.article-hero-text h1 {
  margin: 16px 0;
  font-family: "ShipporiMincho-Bold", "NotoSansJP-VariableFont_wght", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.article-hero-text time {
  color: #d7e1ef;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.1rem;
}

.article-section {
  background-color: #ffffff;
  color: #00193b;
}

.article-inner {
  max-width: 900px;
  margin: 0 auto;
}

.article-section p + p {
  margin-top: 18px;
}

.article-header {
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d9e0ea;
}

.article-header h1 {
  margin: 16px 0 14px;
  font-family: "ShipporiMincho-Bold", "NotoSansJP-VariableFont_wght", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.article-inner .back-link {
  display: block;
  width: fit-content;
  margin-left: auto;
  text-align: right;
}

.article-header time {
  color: #557095;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1rem;
}

.article-body {
  margin-bottom: 36px;
}

.article-info {
  margin: 38px 0 0;
  border-top: 1px solid #d9e0ea;
}

.article-info div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #d9e0ea;
}

.article-info dt {
  color: #557095;
  font-weight: 700;
}

.article-info dd {
  margin: 0;
}

.contact-section {
  padding: 76px 24px;
  text-align: center;
  background-color: #f4f7fb;
  color: #00193b;
}

.contact-section p {
  max-width: 720px;
  margin: 18px auto 0;
}

.contact-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 36px;
  border-radius: 999px;
  background-color: #00193b;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform 0.3s, opacity 0.3s;
}

.contact-button:hover {
  opacity: 0.84;
  transform: translateY(-2px);
}

/* Tablet: stack list cards and content columns. */
@media (max-width: 1180px) {
.news-hero,
  .article-hero {
    margin-top: 0;
  }

  .lead-section,
  .news-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lead-section,
  .news-list-section,
  .article-section {
    padding: 58px 24px;
  }
}

/* Smartphone. */
@media (max-width: 560px) {
.news-hero,
  .article-hero {
    min-height: 320px;
    padding: 64px 18px;
  }

  .section-body h3 {
    font-size: 1.12rem;
  }

  .article-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Narrow smartphone. */
@media (max-width: 420px) {
  .lead-section,
  .news-list-section,
  .article-section,
  .news-list-note {
    padding: 48px 18px;
  }

  .news-hero,
  .article-hero {
    min-height: 290px;
  }

  .hero-subtitle {
    letter-spacing: 0.12em;
    line-height: 1.7;
  }

  .news-card {
    padding: 28px 0;
  }

  .news-meta time {
    font-size: 1.35rem;
  }

  .article-hero-text h1 {
    font-size: 1.55rem;
  }

  .contact-button {
    width: 100%;
  }
}
