@charset "UTF-8";
/* --------------------------------

  下層ページ用スタイル
  （noguchi.css の後に読み込む。ヘッダー・フッターは noguchi.css を共用）

-------------------------------- */

/* ▼ページタイトル帯（背景画像） */
.page-title-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.page-title-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-title-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 41, 91, 0.5), rgba(18, 41, 91, 0.68));
}

.page-title-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 30px 20px;
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ▼パンくず */
.pankz {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.pankz__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 1.3rem;
}

.pankz a {
  color: var(--blue);
  text-decoration: none;
}

.pankz a:hover {
  text-decoration: underline;
}

/* ▼コンテンツ共通 */
.secondary-section {
  padding: 60px 20px 90px;
}

.secondary-section .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.secondary-section .section-heading,
.secondary-section .heading {
  margin: 0 0 45px;
  color: var(--navy);
  font-family: var(--font-mincho);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 768px) {
  .section-heading .jp {
    font-size: 3.2rem;
  }
}

.secondary-section .section-heading::after,
.secondary-section .heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--blue);
}

/* ▼記事一覧（カテゴリ・アーカイブ） */
.news-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-link {
  display: block;
  padding: 24px 28px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-link:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(18, 41, 91, 0.1);
  opacity: 1;
}

.news-img {
  margin: 0 0 12px;
}

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

.news-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.news-date {
  color: var(--muted);
}

.news-category {
  padding: 2px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
}

.news-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.news-body,
.news-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.8;
}

.news-content :where(p) {
  margin: 0;
}

/* ▼ページネーション */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 45px 0 0;
}

.pagination a,
.pagination .current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 1.4rem;
  text-decoration: none;
}

.pagination .current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
  opacity: 1;
}

/* ▼記事詳細の前後ページ・戻るボタン */
.detail-paging {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.detail-paging-subsection {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-size: 1.4rem;
}

.detail-paging-subsection + .detail-paging-subsection {
  margin-top: 26px;
  justify-content: center;
}

.detail-paging .prev a,
.detail-paging .next a {
  color: var(--blue);
  text-decoration: none;
}

.detail-paging .prev a:hover,
.detail-paging .next a:hover {
  text-decoration: underline;
}

.link-button {
  display: inline-block;
  padding: 12px 45px;
  background: var(--navy);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
}

.link-button:hover {
  background: var(--blue);
  opacity: 1;
}

/* ▼レスポンシブ */
@media (max-width: 767px) {
  .page-title-hero {
    min-height: 140px;
  }

  .page-title-hero__title {
    padding: 20px 15px;
    font-size: 2.2rem;
  }

  .pankz__inner {
    padding: 8px 15px;
    font-size: 1.1rem;
  }

  .secondary-section {
    padding: 40px 15px 60px;
  }

  .secondary-section .section-heading,
  .secondary-section .heading {
    margin-bottom: 30px;
    font-size: 2.2rem;
  }

  .secondary-section .inner :where(h2):not(.detail-text *):not(.section-heading):not(.heading):not(.contact-form h2) {
    font-size: 1.9rem;
  }

  .secondary-section .inner :where(h3):not(.detail-text *):not(.contact-form h3) {
    font-size: 1.7rem;
  }

  .news-link {
    padding: 18px 20px;
  }

  .news-title {
    font-size: 1.6rem;
  }
}

.detail-text {
  line-height: 1.8;
  margin-bottom: 3em;
}

.detail-text h3 {
  position: relative;
  font-family: var(--font-mincho);
  font-size: 1.1em;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
  padding: 0.7em 0 0.7em 17px;
  margin: 3.5em 0 1.5em;
  background-color: #fafafa;
  border-left: 5px solid #17338f;
}

@media screen and (min-width: 768px), print {
  .detail-text h3 {
    font-size: 1.3em;
  }
}

.detail-text h3:after {
  position: absolute;
  display: block;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ddd;
}

.detail-text h4 {
  position: relative;
  color: #17338f;
  font-family: var(--font-mincho);
  font-size: 1.1em;
  font-weight: 700;
  padding: 0 0 0.3em 1.5em;
  margin: 3.5em 0 1.5em;
  border-bottom: 2px solid #17338f;
}

.detail-text h4:before {
  position: absolute;
  display: block;
  content: "";
  top: 40%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #17338f;
  -webkit-transform: translateY(-40%);
  transform: translateY(-40%);
}

.detail-text blockquote {
  padding: 1.5em;
  border-radius: 0.5em;
  border: 2px solid #ccc;
  background-color: #f7f7f7;
  text-align: center;
  font-family: var(--font-mincho);
}

.detail-text blockquote p,
.detail-text blockquote strong,
.detail-text blockquote em {
  font-style: italic;
  font-weight: 700;
  color: #444;
}

.detail-text blockquote p {
  margin-bottom: 1em;
}

.detail-text blockquote p:last-child {
  font-style: normal;
  margin-bottom: 0;
}

.detail-text ul > li {
  list-style: disc;
  margin-left: 1.5em;
}

.detail-text ol > li {
  list-style: decimal;
  margin-left: 1.5em;
}

.detail-text .number-list {
  counter-reset: list-counter;
}

.detail-text .number-list > li {
  position: relative;
  list-style: none;
  padding-left: 1.5em;
  margin-left: 0;
}

.detail-text .number-list > li:before {
  counter-increment: list-counter;
  content: counter(list-counter);
  display: inline-block;
  position: absolute;
  top: .4em;
  left: 0;
  border: 1px solid #555;
  border-radius: 50%;
  height: 18px;
  width: 18px;
  color: #333;
  font-size: 1.2rem;
  line-height: 16px;
  text-align: center;
  background-color: transparent;
}

.detail-text .arrow-list > li {
  position: relative;
  list-style: none;
  padding-left: 1.3em;
  margin-left: 0;
}

.detail-text .arrow-list > li:before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 1rem;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #333;
  border-right: 0;
  background: transparent;
  border-radius: 0;
}

.detail-text .katakana-list {
  counter-reset: kana;
}

.detail-text .katakana-list > li {
  position: relative;
  list-style: none;
  padding-left: 2em;
  margin-left: 0;
}

.detail-text .katakana-list > li:before {
  counter-increment: kana;
  content: "(" counter(kana,katakana) ") ";
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  font-size: 1.5rem;
  background: transparent;
}

.detail-text ul li:not(:last-child),
.detail-text ol li:not(:last-child) {
  margin-bottom: 1.3em;
}

.detail-text ul li ul,
.detail-text ol li ul,
.detail-text ul li ol,
.detail-text ol li ol {
  margin-top: 1em;
  margin-bottom: 1em;
}

.detail-text ul li ul li:not(:last-child),
.detail-text ol li ul li:not(:last-child),
.detail-text ul li ol li:not(:last-child),
.detail-text ol li ol li:not(:last-child) {
  margin-bottom: 0.7em;
}

.detail-text table {
  width: 100%;
}

.detail-text table th,
.detail-text table td {
  padding: 0.5em 1em;
  border: 1px solid #ddd;
}

.detail-text table th {
  text-align: center;
  background-color: #f7f7f7;
}