@charset "UTF-8";

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

.column-archive,
.column-single {
  min-height: 60vh;
  padding: 32px 20px 80px;
  background: var(--bg-mint-50);
}

.column-shell {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.column-shell--article {
  width: min(100%, 960px);
}

.faq-archive .faq {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.faq-archive .faq__inner {
  width: 100%;
  margin: 0;
}

.breadcrumbs {
  margin-bottom: 40px;
  color: var(--c-text-gray);
  font-size: 12px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: var(--c-text-faint);
}

.breadcrumbs__item[aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-archive__header {
  margin-bottom: 48px;
  text-align: center;
}

.column-archive__label {
  margin-bottom: 8px;
  color: var(--c-green);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
}

.column-archive__title {
  color: var(--c-green);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: var(--fw-bold);
}

.column-archive__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 20px auto 0;
  background: var(--c-green);
}

.column-archive__lead {
  margin-top: 24px;
  color: var(--c-text-gray);
  font-size: 15px;
  line-height: 1.8;
}

.column-archive--coming-soon {
  min-height: calc(100vh - 160px);
}

.column-archive__coming-soon {
  margin: 72px 0 40px;
  color: var(--c-green);
  font-family: var(--font-en);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
}

.column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.column-card {
  overflow: hidden;
  margin-top: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(3, 142, 107, 0.18);
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: var(--shadow-card-wide);
}

.column-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.column-card__thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-mint-150);
}

.column-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.column-card__link:hover .column-card__image {
  transform: scale(1.03);
}

.column-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(3, 142, 107, 0.45);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
}

.column-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.column-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.column-card__category,
.column-article__category {
  display: inline-flex;
  border-radius: var(--r-pill);
  padding: 5px 12px;
  background: var(--c-green);
  color: var(--c-white);
  font-size: 12px;
  font-weight: var(--fw-bold);
}

.column-card__date {
  color: var(--c-text-gray);
}

.column-card__title {
  color: var(--c-text-strong);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.column-card__more {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 18px;
  color: var(--c-green);
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.column-pagination {
  margin-top: 48px;
  text-align: center;
}

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

.column-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--c-green);
  border-radius: 6px;
  background: var(--c-white);
  color: var(--c-green);
}

.column-pagination .current {
  background: var(--c-green);
  color: var(--c-white);
}

.column-empty {
  padding: 60px 20px;
  border-radius: 12px;
  background: var(--c-white);
  text-align: center;
}

.column-article {
  margin-top: 0;
  min-height: 0;
  padding: 28px 20px 56px;
  border-radius: 12px;
  background: var(--c-white);
}

.column-article__header {
  margin-bottom: 32px;
}

.column-article__title {
  margin-top: 16px;
  color: var(--c-green);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: var(--fw-bold);
  line-height: 1.45;
}

.column-article__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--c-text-gray);
  font-size: 12px;
}

.column-article__eyecatch {
  overflow: hidden;
  margin: 0 0 32px;
  border-radius: 10px;
}

.column-article__eyecatch img {
  width: 100%;
  height: auto;
}

.column-article__excerpt {
  margin-bottom: 32px;
  padding: 20px;
  border-left: 4px solid var(--c-green);
  background: var(--bg-mint-100);
  line-height: 1.8;
}

.column-toc {
  margin-block: 32px 48px;
  padding: 24px 20px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #f7f7f7;
}

.column-toc__title {
  margin-bottom: 16px;
  color: var(--c-text-strong);
  font-size: 20px;
  font-weight: var(--fw-bold);
}

.column-toc__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.5em;
}

.column-toc__item {
  color: var(--c-green-dark);
  line-height: 1.6;
}

.column-toc__item--h3 {
  margin-left: 18px;
  color: var(--c-text-gray);
  font-size: 14px;
}

.column-content {
  color: var(--c-text);
  font-size: 16px;
  line-height: 2;
}

.column-content > * + * {
  margin-top: 24px;
}

.column-content h2 {
  margin-top: 64px;
  padding: 16px 18px;
  border-left: 6px solid var(--c-green);
  background: var(--bg-mint-100);
  color: var(--c-text-strong);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

.column-content h3 {
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-green);
  color: var(--c-text-strong);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: var(--fw-bold);
  line-height: 1.55;
}

.column-content h4 {
  margin-top: 40px;
  color: var(--c-green-dark);
  font-size: 21px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.column-content h5 {
  margin-top: 32px;
  color: var(--c-text-strong);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.column-content h6 {
  margin-top: 28px;
  color: var(--c-text-gray);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.column-content a {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.column-content .review-required {
  color: #d93025;
  font-weight: 700;
}

.column-content ul,
.column-content ol {
  padding-left: 1.5em;
}

.column-content ul {
  list-style: disc outside;
}

.column-content ol {
  list-style: decimal outside;
}

.column-content li {
  display: list-item;
}

.column-content li + li {
  margin-top: 8px;
}

.column-content blockquote {
  padding: 20px;
  border-left: 4px solid var(--c-orange);
  background: var(--bg-gray-050);
}

.column-content blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--c-text-gray);
  font-size: 14px;
}

.column-content code {
  border-radius: 4px;
  padding: 0.15em 0.4em;
  background: #f1f1f1;
  font-family: monospace;
  font-size: 0.9em;
}

.column-content pre {
  overflow-x: auto;
  border-radius: 8px;
  padding: 20px;
  background: #252525;
  color: #fff;
  line-height: 1.7;
}

.column-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.column-content hr {
  height: 1px;
  border: 0;
  background: #d9d9d9;
}

.column-content table {
  width: 100%;
  border-collapse: collapse;
}

.column-content .wp-block-table {
  overflow-x: auto;
  border: 1px solid #dfe5e3;
  border-radius: 10px;
  background: var(--c-white);
}

.column-content .wp-block-table thead {
  border-bottom: 1px solid #dfe5e3;
}

.column-content th,
.column-content td {
  border: 0;
  border-right: 1px solid #dfe5e3;
  border-bottom: 1px solid #dfe5e3;
  padding: 16px 18px;
  text-align: left;
}

.column-content tr > :last-child {
  border-right: 0;
}

.column-content tbody tr:last-child td {
  border-bottom: 0;
}

.column-content th {
  background: #edf6f3;
  color: var(--c-green-dark);
  font-weight: var(--fw-bold);
}

.column-content tbody tr:nth-child(even) {
  background: #fafafa;
}

.column-content figcaption {
  margin-top: 8px;
  color: var(--c-text-gray);
  font-size: 13px;
  text-align: center;
}

.column-content .wp-block-button__link {
  display: inline-block;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  background: var(--c-green);
  color: var(--c-white);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.related-columns {
  margin-top: 64px;
}

.related-columns__title {
  margin-bottom: 28px;
  color: var(--c-green);
  font-size: 28px;
  font-weight: var(--fw-bold);
  text-align: center;
}

.related-columns .column-card__title {
  color: var(--c-green);
}

.news-archive__list {
  overflow: hidden;
  margin: 0;
  border: 1px solid #dfe5e3;
  border-radius: 12px;
  padding: 0;
  background: var(--c-white);
  list-style: none;
}

.news-archive__item + .news-archive__item {
  border-top: 1px solid #dfe5e3;
}

.news-archive__link {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  color: var(--c-text-strong);
  text-decoration: none;
}

.news-archive__link:hover .news-archive__title {
  color: var(--c-green-dark);
}

.news-archive__date {
  color: var(--c-text-gray);
  font-size: 14px;
}

.news-archive__title {
  font-weight: var(--fw-bold);
}

.news__empty {
  padding: 48px 24px;
  text-align: center;
}

@media (min-width: 768px) {
	.news-archive__link {
		grid-template-columns: 140px minmax(0, 1fr);
		align-items: center;
	}
  .column-archive,
  .column-single {
    padding: 56px 32px 120px;
  }

  .breadcrumbs {
    margin-bottom: 56px;
    font-size: 14px;
  }

  .column-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .column-article {
    padding: 56px 72px 80px;
  }

  .column-toc {
    padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .column-card__image {
    transition: none;
  }
}

/* 目次の折りたたみ（仮対応 2026-09-15） */
.column-toc.is-collapsed .column-toc__item--h3 {
  display: none;
}

.column-toc__toggle {
  display: block;
  margin: 20px auto 0;
  padding: 8px 24px;
  border: 1px solid var(--c-green);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-green);
  font-size: 14px;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

/* スマホの表を横スクロールにする（仮対応 2026-09-16） */
@media (max-width: 767px) {
  .single-column .column-content .wp-block-table {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }

  .single-column .column-content .wp-block-table.is-scrollable::before {
    content: "横にスクロールできます";
    position: sticky;
    left: 0;
    display: block;
    padding: 6px 12px;
    border-bottom: 1px solid #dfe5e3;
    background: #f7f7f7;
    color: var(--c-text-muted);
    font-size: 12px;
  }

  .single-column .column-content .wp-block-table {
    display: block;
    overflow-x: auto;
  }

  .single-column .column-content .wp-block-table > table {
    width: max-content;
    min-width: 100%;
    max-width: 900px;
    table-layout: auto;
  }

  .single-column .column-content th,
  .single-column .column-content td {
    min-width: 9em;
    padding: 10px 12px;
    font-size: 14px;
  }

  .single-column .column-content .wp-block-table > table th:first-child,
  .single-column .column-content .wp-block-table > table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 6.5em;
    min-width: 6.5em;
    padding-right: 10px;
    background: var(--c-white);
    box-shadow: 1px 0 0 #dfe5e3;
  }

  .single-column .column-content .wp-block-table > table th:first-child {
    background: #edf6f3;
  }
}
