@charset "UTF-8";
/* ==========================================================================
   お役立ちコラム 一覧ページ用スタイル
   対象テンプレート : category-column.php（カテゴリー「お役立ちコラム」／スラッグ column）
   設置場所         : /wp-content/themes/swell_child/column.css
   すべて .tlc- で始まるクラスだけに効くので、他のページには影響しません。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SWELL のコンテンツ枠を、このページだけ画面幅いっぱいにする
   -------------------------------------------------------------------------- */
.tl-columnPage #content.l-content,
#content.l-content:has(> .tlc) {
  max-width: none;
  margin-bottom: 0;
  padding: 0;
}

.tl-columnPage .l-mainContent.tlc,
#content.l-content > .l-mainContent.tlc {
  width: 100%;
  max-width: none;
  margin: 0;
}

.tlc > .l-mainContent__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   2. 色・寸法（サイトの既存デザインから取った値）
   -------------------------------------------------------------------------- */
.tlc {
  --tlc-royal: #193290;                    /* ヘッダー・TOPICS帯の青 */
  --tlc-navy: #101d4b;                     /* 会社案内などの濃紺 */
  --tlc-navy-2: #172c60;                   /* 濃紺の斜め切り返し */
  --tlc-line: rgba(255, 255, 255, 0.3);    /* 白い罫線 */
  --tlc-sub: rgba(255, 255, 255, 0.74);    /* 補助テキスト */
  --tlc-gutter: clamp(20px, 5vw, 48px);
  --tlc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 文字色などの指定はヒーローと一覧エリアの中だけ。
   下部のブログパーツ（お問い合わせ等）には一切触れません。 */
.tlc-hero,
.tlc-body {
  color: #fff;
  line-height: 1.7;
}

.tlc-hero *,
.tlc-hero *::before,
.tlc-hero *::after,
.tlc-body *,
.tlc-body *::before,
.tlc-body *::after {
  box-sizing: border-box;
}

.tlc-body a {
  color: inherit;
  text-decoration: none;
}

.tlc-body a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.tlc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tlc-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tlc-container {
  width: min(1200px, calc(100% - var(--tlc-gutter) * 2));
  margin-right: auto;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   3. ヒーロー（下層ページと同じ「大きな英字 + 斜体のコピー」）
   -------------------------------------------------------------------------- */
.tlc-hero {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 33vw, 474px);
  padding: clamp(56px, 8vw, 96px) var(--tlc-gutter);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tlc-navy) 55%, var(--tlc-navy-2) 0);
  text-align: center;
}

.tlc-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
}

.tlc-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* 写真があるときだけ、他ページのカバーと同じ 70% の黒を重ねる */
.tlc-hero.has-image::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.7);
}

.tlc-hero__inner {
  width: 100%;
  max-width: 900px;
}

.tlc-hero__en {
  margin: 0;
  line-height: 0;
}

.tlc-hero__en svg {
  display: block;
  width: min(675px, 78vw);
  height: auto;
  margin: 0 auto;
  fill: #fff;
}

.tlc-hero .tlc-hero__title {
  margin: clamp(12px, 1.4vw, 18px) 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.tlc-hero__catch {
  margin: clamp(14px, 2vw, 26px) 0 0;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.6;
}

.tlc-hero__catch span {
  display: inline-block; /* 文節の途中で折り返さない */
}

/* --------------------------------------------------------------------------
   4. 一覧エリア（濃紺の斜め背景）
   -------------------------------------------------------------------------- */
.tlc-body {
  padding: clamp(44px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
  background: linear-gradient(135deg, var(--tlc-navy) 55%, var(--tlc-navy-2) 0);
}

.tlc-lead {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  color: var(--tlc-sub);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2;
  text-align: center;
  word-break: auto-phrase; /* 対応ブラウザでは文節の切れ目で改行 */
}

.tlc-lead p {
  margin: 0;
}

.tlc-lead p + p {
  margin-top: 1em;
}

.tlc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tlc-line);
}

.tlc-head .tlc-head__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.tlc-head .tlc-head__title::before,
.tlc-head .tlc-head__title::after {
  content: none;
}

.tlc-head__count {
  margin: 0;
  color: var(--tlc-sub);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tlc-head__count b {
  margin: 0 0.2em;
  color: #fff;
  font-size: 1.35em;
}

/* --- サムネイル共通 --- */
.tlc-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tlc-royal);
}

.tlc-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--tlc-ease);
}

.tlc-thumb__noimg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tlc .tlc-thumb__noimg svg {
  width: 56%;
  height: auto;
  fill: rgba(255, 255, 255, 0.34);
}

.tlc-date {
  display: block;
  color: var(--tlc-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --- 最新記事（1ページ目の先頭だけ大きく） --- */
.tlc-feature {
  margin: 0;
  border-bottom: 1px solid var(--tlc-line);
}

.tlc-feature__link {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 3.6vw, 48px) 0;
}

.tlc-feature .tlc-thumb {
  aspect-ratio: 16 / 10;
  /* 英字ロゴと同じ傾き（約5度）で右辺を斜めに落とす */
  clip-path: polygon(0 0, 100% 0, 94.6% 100%, 0 100%);
}

.tlc-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.tlc-tag {
  display: inline-block;
  padding: 3px 14px 2px;
  background: #fff;
  color: var(--tlc-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  transform: skewX(-5deg);
}

.tlc-feature .tlc-feature__title {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  word-break: auto-phrase;
}

.tlc-feature__excerpt {
  display: -webkit-box;
  margin: 16px 0 0;
  overflow: hidden;
  color: var(--tlc-sub);
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tlc-more {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: 11px 22px 11px 26px;
  border: 1px solid #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s;
}

.tlc svg.tlc-arrow {
  display: block;
  width: 22px;
  height: 8px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.4s var(--tlc-ease);
}

/* --- カード一覧 --- */
.tlc .tlc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(22px, 2.6vw, 36px);
  margin: clamp(36px, 4.4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.tlc .tlc-grid > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tlc .tlc-grid > li::before {
  content: none;
}

.tlc-card,
.tlc-card__link {
  height: 100%;
}

.tlc-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--tlc-line);
}

.tlc-card .tlc-thumb {
  aspect-ratio: 16 / 9;
}

.tlc-card__body {
  padding-top: 16px;
}

.tlc-card .tlc-card__title {
  display: -webkit-box;
  margin: 8px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tlc-card__excerpt {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--tlc-sub);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tlc-card__link > .tlc-arrow {
  position: absolute;
  right: 2px;
  bottom: 19px;
}

/* --- ホバー --- */
@media (hover: hover) {
  .tlc-feature__link:hover .tlc-thumb img,
  .tlc-card__link:hover .tlc-thumb img {
    transform: scale(1.06);
  }

  .tlc-feature__link:hover .tlc-more {
    background: #fff;
    color: var(--tlc-navy);
  }

  .tlc-feature__link:hover .tlc-arrow,
  .tlc-card__link:hover .tlc-arrow {
    transform: translateX(6px);
  }

  .tlc-card__link:hover {
    border-bottom-color: #fff;
  }
}

/* --- 記事がまだ無いとき --- */
.tlc-empty {
  margin: 0;
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--tlc-line);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* --- ページ送り --- */
.tlc-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(44px, 6vw, 80px);
}

/* SWELL 標準のページ送り（灰色の四角・影・余白）を打ち消して、白い罫線の四角にする */
.tlc .tlc-pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 46px;
  height: 46px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--tlc-line);
  background-color: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.tlc .tlc-pager .page-numbers.current {
  border-color: #fff;
  background-color: #fff;
  color: var(--tlc-navy);
}

.tlc .tlc-pager .page-numbers.dots {
  min-width: 24px;
  border-color: transparent;
  background-color: transparent;
  color: #fff;
}

.tlc .tlc-pager svg.tlc-arrow.is-prev {
  transform: scaleX(-1);
}

@media (hover: hover) {
  .tlc .tlc-pager a.page-numbers:hover {
    border-color: #fff;
    background-color: #fff;
    color: var(--tlc-navy);
  }
}

@media (hover: none) {
  .tlc .tlc-pager a.page-numbers:hover {
    background-color: transparent;
    color: #fff;
  }
}

/* --------------------------------------------------------------------------
   5. ページ下部（お問い合わせ等のブログパーツ）
   -------------------------------------------------------------------------- */
/* SWELL が .post_content に付ける上下の余白・左右の内側余白を消して、一覧の直下にぴったり付ける */
.tlc > .l-mainContent__inner > .tlc-parts {
  margin: 0;
  padding: 0;
}

.tlc > .l-mainContent__inner > .tlc-parts > .p-blogParts {
  margin-top: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. スクロールでふわっと表示（サイト全体の fade-element と同じ動き）
   JavaScript が動いたときだけ隠すので、万一JSが止まっても記事は消えません。
   -------------------------------------------------------------------------- */
.tlc.is-js .tlc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tlc.is-js .tlc-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tlc.is-js .tlc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tlc-thumb img,
  .tlc svg.tlc-arrow {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   7. タブレット・スマホ
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
  .tlc .tlc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tlc-hero {
    min-height: 46vh;
  }

  .tlc-lead {
    text-align: left;
    word-break: normal;
  }

  .tlc-feature__link {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tlc-feature .tlc-thumb {
    clip-path: none;
  }

  .tlc-feature .tlc-feature__title {
    margin-top: 12px;
  }

  .tlc-feature__excerpt {
    margin-top: 10px;
    -webkit-line-clamp: 2;
  }
}

/* スマホでは2件目以降を「左に写真・右に見出し」の行にして、一覧性を上げる */
@media (max-width: 599px) {
  .tlc .tlc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 0;
  }

  .tlc-card__link {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }

  .tlc-card .tlc-thumb {
    flex: none;
    width: 36%;
    aspect-ratio: 4 / 3;
  }

  .tlc-card__body {
    flex: 1;
    min-width: 0;
    padding-top: 0;
  }

  .tlc-card .tlc-card__title {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
  }

  .tlc-card__excerpt,
  .tlc .tlc-card__link > svg.tlc-arrow {
    display: none;
  }

  .tlc .tlc-pager .page-numbers {
    min-width: 42px;
    height: 42px;
  }
}
