/* column.css: コラム・お知らせ 共通スタイル */

/* 一覧ページの本文ラップ用セクション。
   base.cssの素の `section{width:975px}` はモバイル向けの上書きが無く固定幅のままなので、
   ここでは使わずクラスで幅を管理する（すべてのビューポートでフルード） */
.article-section {
  width: 92%;
  max-width: 975px;
  margin: 0 auto;
}

/* ヒーロー：写真素材が無いため legal-hero（背景色＋中央揃え）を流用し、
   見出しだけ .sec-ttl（JP＋Allura英字）に差し替える */
.article-hero {
  padding-bottom: 50px;
}
.article-hero .sec-ttl {
  margin: 0;
}

/* カテゴリータブ */
.column-tabs {
  margin: 0 auto 40px;
  max-width: 975px;
}
.column-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.column-tabs__item a {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: .2s;
}
.column-tabs__item a:hover {
  background: var(--color-main);
  color: #fff;
}
.column-tabs__item.is-current a {
  background: var(--color-main);
  color: #fff;
}

/* 記事カード一覧グリッド */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px 30px;
  margin: 0 auto 60px;
}

/* 記事カード（一覧／関連／人気で共通） */
.article-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  height: 100%;
}
.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card__thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card__link:hover .article-card__thumb img {
  transform: scale(1.05);
}

/* サムネイル未設定時の仮画像（横長ロゴ）は3:2枠でcoverすると極端に拡大されるため、
   containで枠内に収めて表示する */
.article-card__thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.article-card__thumb--fallback img {
  width: 55%;
  height: auto;
  object-fit: contain;
}
.article-card__link:hover .article-card__thumb--fallback img {
  transform: none;
}
.article-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--color-panel);
  color: #6d5a2a;
  font-size: 0.75rem;
}
.article-card__badge--news {
  background: var(--color-main);
  color: #fff;
}
.article-card__ttl {
  font-family: var(--font-heading), "Shippori Mincho", serif;
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 10px;
}
.article-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__date {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

/* ページネーション（WP paginate_links() 標準マークアップに対応） */
.article-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 80px;
}
.article-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-panel);
  color: var(--color-text);
  font-size: 0.9rem;
}
.article-pagination .page-numbers.current {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}
.article-pagination .page-numbers.dots {
  border: none;
}

.article-empty {
  text-align: center;
  padding: 60px 0 100px;
}

/* お知らせ一覧（行リスト） */
.news-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
}
.news-list__item {
  border-bottom: 1px solid var(--color-panel);
}
.news-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 8px;
  flex-wrap: wrap;
}
.news-list__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.news-list__date {
  font-size: 0.85rem;
  color: #999;
  min-width: 90px;
}
.news-list__badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--color-panel);
  color: #6d5a2a;
  font-size: 0.75rem;
  white-space: nowrap;
}
.news-list__badge--recruit {
  background: var(--color-main);
  color: #fff;
}
.news-list__badge--maintenance {
  background: #c9c9c9;
  color: #333;
}
.news-list__badge--event {
  background: var(--color-accent);
  color: #fff;
}
.news-list__ttl {
  flex: 1;
  min-width: 200px;
  color: var(--color-text);
  font-size: 1rem;
}
.news-list__link:hover .news-list__ttl {
  text-decoration: underline;
}

/* 記事詳細（コラム／お知らせ共通） */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 20px 100px;
}
.article-detail__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--color-main);
  font-size: 0.9rem;
}
.article-detail__back--btm {
  margin: 40px 0 0;
}
.article-detail__head {
  text-align: center;
  margin-bottom: 30px;
}
.article-detail__cat {
  display: inline-block;
  padding: 4px 18px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--color-panel);
  color: #6d5a2a;
  font-size: 0.8rem;
}
.article-detail__ttl {
  font-size: 1.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-detail__date {
  display: block;
  font-size: 0.85rem;
  color: #999;
}
.article-detail__thumb {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}
.article-detail__thumb img {
  width: 100%;
  height: auto;
}

/* 本文タイポグラフィ（the_content） */
.article-detail__body {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 2;
}
.article-detail__body h2 {
  font-size: 1.5rem;
  color: var(--color-main);
  margin: 2.4em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--color-panel);
}
.article-detail__body h3 {
  font-size: 1.25rem;
  color: var(--color-main);
  margin: 2em 0 0.6em;
  border-left: 6px solid var(--color-accent);
  padding-left: 0.6em;
}
.article-detail__body p {
  margin: 0 0 1.6em;
}
.article-detail__body ul,
.article-detail__body ol {
  margin: 0 0 1.6em 1.4em;
}
.article-detail__body li {
  margin-bottom: 0.5em;
  list-style: revert;
}
.article-detail__body img {
  border-radius: 16px;
  margin: 1.6em 0;
}
.article-detail__body a {
  color: var(--color-main);
  text-decoration: underline;
}
.article-detail__body blockquote {
  margin: 1.8em 0;
  padding: 1.2em 1.6em;
  background: #f7f7ed;
  border-left: 6px solid var(--color-accent);
  border-radius: 12px;
}

/* 関連記事・人気記事カルーセル
   これもbase.cssの素の`section{width:975px}`（モバイル未対応の固定幅）に
   巻き込まれないよう、幅は自前でフルードに管理する */
.article-related {
  width: 92%;
  max-width: 975px;
  margin: 0 auto;
  padding: 60px 0 90px;
}
.article-related .sec-ttl {
  margin-bottom: 30px;
}
.article-carousel {
  max-width: 975px;
  margin: 0 auto;
  padding: 0 50px;
}
.article-carousel .article-card {
  margin: 0 12px;
}
/* このテーマはslick-theme.cssを読み込んでいない（slick.css本体のみ）ため、
   矢印ボタンの位置・アイコン・ブラウザ標準ボタン見た目のリセットをここで代わりに行う */
.article-carousel .slick-prev,
.article-carousel .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  outline: none;
}
.article-carousel .slick-prev {
  left: -10px;
}
.article-carousel .slick-next {
  right: -10px;
}
.article-carousel .slick-prev::before,
.article-carousel .slick-next::before {
  font-family: initial;
  color: var(--color-main);
  font-size: 20px;
  line-height: 1;
  opacity: 1;
}
.article-carousel .slick-prev::before {
  content: "\2039";
}
.article-carousel .slick-next::before {
  content: "\203A";
}

@media (max-width: 600px) {
  .article-hero {
    padding-bottom: 8vw;
  }
  .column-tabs {
    margin-bottom: 8vw;
  }
  .column-tabs__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    width: 90vw;
    margin: 0 auto 12vw;
    gap: 24px;
  }
  .article-detail {
    padding: 4vw 6vw 18vw;
  }
  .article-detail__ttl {
    font-size: 6.5vw;
  }
  .news-list {
    width: 90vw;
  }
  .news-list__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 4vw 2vw;
  }
  .news-list__ttl {
    min-width: 0;
    width: 100%;
    font-size: 3.8vw;
    line-height: 1.5;
  }
  .article-carousel {
    padding: 0 30px;
  }
}
