/* =====================================================
  子ページ共通テンプレ
===================================================== */

.about-child.container {
  margin: 40px auto 80px;
}

/* セクション */
.about-section {
  margin-bottom: 64px;
}

.about-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-left: 1rem;
  position: relative;
  border-left: 4px solid var(--c-agri);
}

.about-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 3px;
  height: 1.5em;
  background-color: var(--c-main);
  border-radius: 999px;
}

h3.heading {
  color: var(--c-agri);
}

h3.heading::after {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  background: #cdd20d;
}

.page-hero-inner.child-page.container {
  padding: 0;
}

.about-wysiwyg {
  line-height: 1.9;
}

.about-wysiwyg p {
  margin: 0 0 1.1em;
}

.about-wysiwyg iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* ========================================
   WYSIWYG 画像の配置対応
======================================== */

.about-wysiwyg .alignleft {
  float: left;
  margin: 0 24px 16px 0;
  display: inline;
}

.about-wysiwyg .alignright {
  float: right;
  margin: 0 0 16px 24px;
  display: inline;
}

.about-wysiwyg .aligncenter {
  display: block;
  margin: 0 auto 16px;
  float: none;
}

/* .about-wysiwyg::after {
  content: "";
  display: block;
  clear: both;
} */

/* .about-wysiwyg p {
  margin: 0 0 1.1em;
} */
.about-wysiwyg a.alignleft,
.about-wysiwyg a.alignright,
.about-wysiwyg a.aligncenter {
  display: inline-block;
}

.about-wysiwyg img {
  max-width: 100%;
  height: auto;
}

.about-wysiwyg::after {
  content: "";
  display: block;
  clear: both;
}

/* ===== レイアウト2 / 3（画像＋テキスト） ===== */
.about-media {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
  width: 90%;
}

.about-media.reverse {
  flex-direction: row-reverse;
}

.about-media-figure {
  width: 34%;
  margin: 0;
}

.about-media-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.about-media-text {
  width: 66%;
  line-height: 1.9;
}

.about-media-text p {
  margin: 0 0 1.1em;
}

/* ===== レイアウト4（テキストのみ） ===== */
.about-text-only {
  line-height: 1.9;
}

.about-text-only p {
  margin: 0 0 1.1em;
}

/* ===== ブロック共通 ===== */
.about-child-block {
  padding: 28px 0;
  border-bottom: 1px solid #e5e5e5;
}

.about-linklist {
  margin-top: 20px;
}

.about-linkitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #111;
  transition: .3s;
}

.about-linkitem:hover {
  color: var(--dept-color);
}

.about-linkitem__arrow {
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__arrow {
  transform: translateX(6px);
}

.about-linkitem__pdf {
  font-size: .75rem;
  padding: 4px 10px;
  border: 1px solid #333;
}

.about-slider {
  margin-top: 30px;
}

.about-slider img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 600px;
  margin: auto;
}

.about-slider .swiper-pagination-bullet {
  background: #999;
  opacity: 1;
}

.about-slider .swiper-pagination-bullet-active {
  background: var(--dept-color);
}

.about-child-block .about-media__img img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
  .about-child.container {
    margin: 24px auto 64px;
  }

  .about-section-title {
    font-size: 1.25rem;
  }

  .about-media,
  .about-media.reverse {
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
  }

  .about-media-figure,
  .about-media-text {
    width: 100%;
  }
}

.text-emphasis {
  color: var(--c-main);
  font-weight: 700;
}

.text-small {
  font-size: 0.9em;
}

.text-large {
  font-size: 1.2em;
  font-weight: 600;
}

.star-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 1em;
}

.star-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.4em;
  color: var(--c-main);
  font-weight: 600;
}

.star-list li::before {
  content: "☆";
  position: absolute;
  left: 0;
  top: 0;
}

.history-block {
  margin-top: 40px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.history-table thead th {
  background: #f4f7fb;
  text-align: center;
  padding: 14px 12px;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

.history-table tbody th,
.history-table tbody td {
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

.history-date {
  width: 160px;
  white-space: nowrap;
  color: #1e50a2;
  font-weight: 600;
}

.history-table tbody tr {
  position: relative;
}

.history-table tbody th,
.history-table thead th {
  position: relative;
}

.history-table th::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #ddd;
}

@media (max-width: 768px) {

  .history-table,
  .history-table thead,
  .history-table tbody,
  .history-table th,
  .history-table td,
  .history-table tr {
    display: block;
  }

  .history-table thead {
    display: none;
  }

  .history-table tr {
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
  }

  .history-date {
    width: auto;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
  }

  .history-content {
    display: block;
  }

  .history-table tbody th::after {
    display: none;
  }
}

.links-page {
  max-width: 1100px;
  margin: 0 auto 80px;
}

.link-category {
  margin-bottom: 48px;
}

.link-category-title {
  font-size: 1.5rem;
  border-left: 6px solid #0a8;
  padding-left: 12px;
  margin-bottom: 24px;
}

.link-group {
  margin-bottom: 24px;
}

.link-group-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 6px;
}

.link-list a {
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

.file-type {
  font-size: 0.75rem;
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================
   リンク一覧（2カラム）
========================== */

.about-linklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin-top: 40px;
}

.about-linkitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  transition: .3s;
}

/* ホバー */
.about-linkitem:hover {
  color: var(--dept-color);
}

/* 矢印 */
.about-linkitem__arrow {
  font-size: 18px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__arrow {
  transform: translateX(6px);
}

/* PDF表示 */
.about-linkitem__pdf {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #222;
  border-radius: 2px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__pdf {
  border-color: var(--dept-color);
  color: var(--dept-color);
}

/* ==========================
   SP対応
========================== */

@media (max-width: 768px) {
  .about-linklist {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================
   リンク一覧（2カラム）
========================== */

.about-linklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin-top: 40px;
}

.about-linkitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  transition: .3s;
}

/* ホバー */
.about-linkitem:hover {
  color: var(--dept-color);
}

/* 矢印 */
.about-linkitem__arrow {
  font-size: 18px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__arrow {
  transform: translateX(6px);
}

/* PDF表示 */
.about-linkitem__pdf {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #222;
  border-radius: 2px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__pdf {
  border-color: var(--dept-color);
  color: var(--dept-color);
}


@media (max-width: 768px) {
  .about-linklist {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================
   リンク一覧（2カラム）
========================== */

.about-linklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin-top: 40px;
}

.about-linkitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  transition: .3s;
}

/* ホバー */
.about-linkitem:hover {
  color: var(--dept-color);
}

/* 矢印 */
.about-linkitem__arrow {
  font-size: 18px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__arrow {
  transform: translateX(6px);
}

.about-linkitem__pdf {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #222;
  border-radius: 2px;
  transition: .3s;
}

.about-linkitem:hover .about-linkitem__pdf {
  border-color: var(--dept-color);
  color: var(--dept-color);
}

@media (max-width: 768px) {
  .about-linklist {
    grid-template-columns: 1fr;
    gap: 0;
  }
}