/* =========================================================
   column.css
   お役立ち情報（一覧・記事）と法務ページ（プライバシーポリシー・特商法）の
   ページ固有スタイル。共通のヘッダー・フッター・CTA は style.css 側。
   ========================================================= */

/* ---------- 共通部品 ---------- */

.resources-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: #5f7c8e;
  font-size: 0.92rem;
  font-weight: 700;
}

.resources-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.resources-breadcrumb a:hover,
.resources-breadcrumb a:focus-visible {
  color: #1799cf;
}

.resources-breadcrumb li {
  position: relative;
  /* 「トップ」等のリンク項目は折らず、最後の現在ページ名だけ折り返す */
  flex: 0 0 auto;
  white-space: nowrap;
}

.resources-breadcrumb li:last-child {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}

.resources-breadcrumb li + li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 2px solid rgba(95, 124, 142, 0.7);
  border-right: 2px solid rgba(95, 124, 142, 0.7);
  transform: translateY(-50%) rotate(45deg);
}

.resources-section-kicker {
  margin: 0 0 10px;
  color: #17a1d1;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resources-article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(30, 173, 225, 0.1);
  color: #1399cc;
  font-size: 0.82rem;
  font-weight: 900;
}

.resources-article-title-link {
  color: inherit;
  text-decoration: none;
}

.resources-article-title-link:hover,
.resources-article-title-link:focus-visible {
  color: #1799cf;
}

.resources-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  color: #648091;
  font-size: 0.86rem;
  font-weight: 800;
}

.resources-article-meta a {
  color: #1799cf;
  text-decoration: none;
}

/* 記事・一覧・法務ページの末尾 CTA は style.css の帯背景を外して地に馴染ませる */
.resources-cta-section {
  margin-top: 0;
  background: none;
}

.resources-cta-section::before {
  display: none;
}

/* ---------- お役立ち情報 一覧 ---------- */

.column-index-container {
  width: min(calc(100% - 28px), 1040px);
  margin: 0 auto;
}

.column-index-hero {
  padding: 8px 0 26px;
}

.column-index-title {
  margin: 0;
  color: #143144;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.column-index-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: #516c7b;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 500;
}

.column-index-section {
  padding: 0 0 34px;
}

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

.column-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(210, 227, 237, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(82, 128, 154, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.column-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(82, 128, 154, 0.14);
}

.column-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf7fc 0%, #d6edf8 100%);
}

.column-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  /* 机が左右いっぱいまで描かれたイラストなので、下寄せで端まで敷く */
  object-fit: cover;
  object-position: center bottom;
}

.column-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 20px;
}

.column-card-body .resources-article-tag {
  margin-bottom: 12px;
}

.column-card-title {
  margin: 0;
  color: #173547;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}

.column-card-excerpt {
  margin: 10px 0 0;
  color: #4f6d7c;
  font-size: 0.94rem;
  line-height: 1.8;
  font-weight: 500;
}

/* ---------- お役立ち情報 記事 ---------- */

.resource-detail-container {
  width: min(calc(100% - 28px), 1080px);
  margin: 0 auto;
}

.resource-detail-hero {
  padding: 8px 0 36px;
}

.resource-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: center;
}

.resource-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 16px;
}

.resource-detail-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(129, 206, 235, 0.42);
  background: rgba(237, 249, 255, 0.95);
  color: #1399cc;
  font-size: 0.84rem;
  font-weight: 900;
}

.resource-detail-date {
  color: #648091;
  font-size: 0.92rem;
  font-weight: 700;
}

.resource-detail-title {
  margin: 0;
  color: #173547;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}

.resource-detail-lead {
  margin: 18px 0 0;
  color: #4d6877;
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 500;
}

.resource-detail-cover {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(211, 229, 239, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #eaf7fc 0%, #d6edf8 100%);
  box-shadow: 0 14px 32px rgba(82, 128, 154, 0.1);
}

.resource-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.resource-detail-section {
  padding: 0 0 40px;
}

.resource-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.resource-detail-main {
  min-width: 0;
}

.resource-detail-body {
  padding: 40px 44px 44px;
  border: 1px solid rgba(210, 227, 237, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(82, 128, 154, 0.08);
}

.resource-detail-body h2 {
  position: relative;
  margin: 2.6em 0 0.9em;
  padding-left: 18px;
  color: #143144;
  font-size: 1.5rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}

.resource-detail-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4db5df 0%, #1d97c8 100%);
}

.resource-detail-body h2:first-child {
  margin-top: 0;
}

.resource-detail-body h3 {
  margin: 1.9em 0 0.7em;
  color: #1b4258;
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 800;
  font-feature-settings: "palt";
}

.resource-detail-body p {
  margin: 0;
  color: #3b5361;
  font-size: 1.04rem;
  line-height: 1.95;
  font-weight: 500;
}

.resource-detail-body p + p {
  margin-top: 1.1em;
}

.resource-detail-body strong {
  color: #143144;
  font-weight: 800;
  /* 蛍光ペン風の下地。太字だけより主張が伝わり、本文の重さは増えない */
  background: linear-gradient(transparent 64%, rgba(255, 226, 120, 0.55) 64%);
}

.resource-detail-points {
  display: grid;
  gap: 10px;
  margin: 1.1em 0 0;
  padding: 18px 22px;
  list-style: none;
  border: 1px solid rgba(200, 224, 238, 0.7);
  border-radius: 16px;
  background: #f3fafd;
}

.resource-detail-points + p,
.resource-detail-points + h3 {
  margin-top: 1.3em;
}

.resource-detail-points li {
  position: relative;
  padding-left: 28px;
  color: #2f4b5a;
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 500;
}

.resource-detail-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid #17a1d1;
  border-bottom: 2.5px solid #17a1d1;
  transform: rotate(-45deg);
}

.resource-detail-note {
  margin-top: 44px;
  padding: 22px 26px;
  border: 1px solid #e3ebf0;
  border-radius: 16px;
  background: #f7f9fb;
}

.resource-detail-body .resource-detail-note h2 {
  margin: 0 0 10px;
  padding-left: 0;
  color: #4f6d7c;
  font-size: 1.02rem;
}

.resource-detail-body .resource-detail-note h2::before {
  display: none;
}

.resource-detail-body .resource-detail-note p {
  color: #55707e;
  font-size: 0.94rem;
  line-height: 1.85;
}

.resource-detail-aside {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 18px;
}

.resource-detail-summary,
.resource-related-box {
  padding: 22px 24px;
  border-radius: 20px;
}

.resource-detail-summary {
  border: 1px solid rgba(160, 214, 236, 0.55);
  background: linear-gradient(180deg, #eef8fd 0%, #e4f3fb 100%);
}

.resource-related-box {
  border: 1px solid rgba(200, 224, 238, 0.9);
  background: #fff;
}

.resource-detail-summary h2,
.resource-related-box h2 {
  margin: 0 0 12px;
  color: #1498c7;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.resource-related-box h2 {
  color: #4f6d7c;
}

.resource-detail-summary ul,
.resource-related-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-detail-summary ul {
  counter-reset: summary;
}

.resource-detail-summary li {
  position: relative;
  padding-left: 30px;
  color: #1f3f52;
  font-size: 0.96rem;
  line-height: 1.7;
  font-weight: 700;
  counter-increment: summary;
}

.resource-detail-summary li::before {
  content: counter(summary);
  position: absolute;
  left: 0;
  top: 0.16em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(20, 152, 199, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #1498c7;
  font-size: 0.76rem;
  font-weight: 900;
}

.resource-related-box li {
  color: #173547;
  font-size: 0.96rem;
  line-height: 1.7;
  font-weight: 700;
}

.resource-related-box a {
  color: inherit;
  text-decoration: none;
}

.resource-related-box a:hover,
.resource-related-box a:focus-visible {
  color: #1799cf;
}

.resource-detail-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: #1799cf;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.resource-detail-backlink::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- 法務ページ（プライバシーポリシー・特商法） ---------- */

.legal-page main {
  padding-bottom: 72px;
}

.legal-container {
  width: min(calc(100% - 28px), 880px);
  margin: 0 auto;
}

.legal-hero {
  padding: 8px 0 34px;
}

.legal-title {
  margin: 0;
  color: #173547;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-lead {
  margin: 20px 0 0;
  color: #516c7b;
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 500;
}

.legal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.legal-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(129, 206, 235, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1399cc;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.legal-jump a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.legal-jump a:hover {
  border-color: rgba(20, 152, 199, 0.6);
  background: #edf9ff;
}

.legal-section {
  padding: 0;
}

.legal-body {
  padding: 36px 38px 40px;
  border: 1px solid rgba(210, 227, 237, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(82, 128, 154, 0.08);
  /* スティッキーヘッダー分だけ余白を取り、アンカー遷移で見出しが隠れないようにする */
  scroll-margin-top: 124px;
}

.legal-body + .legal-body {
  margin-top: 28px;
}

.legal-body-title {
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(210, 227, 237, 0.9);
  color: #143144;
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-article {
  padding: 26px 0 0;
}

.legal-article + .legal-article {
  margin-top: 6px;
  border-top: 1px dashed rgba(210, 227, 237, 0.9);
}

.legal-body h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  color: #143144;
  font-size: 1.14rem;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-article-no {
  flex: none;
  color: #1498c7;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.legal-body p,
.legal-body li {
  color: #3b5361;
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 500;
}

.legal-body p {
  margin: 0;
}

.legal-body p + p,
.legal-body p + ol {
  margin-top: 12px;
}

.legal-body ol {
  margin: 0;
  padding-left: 1.7em;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body li::marker {
  color: #1498c7;
  font-weight: 800;
}

.legal-sublist {
  margin-top: 8px !important;
  padding-left: 0 !important;
  list-style: none;
  counter-reset: legal-sub;
}

.legal-sublist li {
  position: relative;
  padding-left: 1.9em;
  counter-increment: legal-sub;
}

.legal-sublist li + li {
  margin-top: 4px;
}

.legal-sublist li::before {
  content: "(" counter(legal-sub) ")";
  position: absolute;
  left: 0;
  color: #1498c7;
  font-weight: 800;
}

.legal-table {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0 28px;
  margin: 20px 0 0;
  padding: 8px 28px;
  border: 1px solid rgba(220, 233, 239, 0.98);
  border-radius: 20px;
  background: rgba(247, 252, 255, 0.9);
}

.legal-table dt,
.legal-table dd {
  padding: 14px 0;
  border-top: 1px solid rgba(210, 227, 237, 0.7);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 500;
}

.legal-table dt:first-of-type,
.legal-table dd:first-of-type {
  border-top: 0;
}

.legal-table dt {
  color: #1498c7;
  font-weight: 800;
}

.legal-table dd {
  margin: 0;
  color: #3b5361;
}

.legal-table dd a {
  color: inherit;
  text-decoration: none;
}

.legal-table-compact {
  margin-top: 14px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 1100px) {
  .resource-detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }

  .resource-detail-layout {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 28px;
  }

  .resource-detail-body {
    padding: 34px 32px 36px;
  }
}

@media (max-width: 900px) {
  /* 一覧: タブレット幅は 1 列だと画像が間延びするので横組みにする */
  .column-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .column-card {
    flex-direction: row;
  }

  .column-card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
  }

  .column-card-body {
    padding: 20px 22px;
  }

  /* 記事: ヒーローは縦積み、サイドは本文の下に 2 列で並べる */
  .resource-detail-hero {
    padding-bottom: 28px;
  }

  .resource-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resource-detail-cover {
    width: min(100%, 560px);
    aspect-ratio: 16 / 9;
  }

  .resource-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resource-detail-body {
    padding: 28px 24px 32px;
  }

  .resource-detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .resource-detail-aside .resource-detail-backlink {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .legal-body {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 640px) {
  .column-index-container,
  .resource-detail-container,
  .legal-container {
    width: calc(100% - 36px);
  }

  /* パンくず: 現在ページ名が収まらない時だけ 2 行目に落として全幅で折り返す */
  .resources-breadcrumb {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 14px;
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .resources-breadcrumb li:last-child {
    flex: 1 1 auto;
    padding-left: 14px;
  }

  .resources-breadcrumb li:last-child::before {
    left: 0;
    top: 0.78em;
  }

  /* 一覧 */
  .column-index-hero {
    padding-bottom: 20px;
  }

  .column-card {
    flex-direction: column;
    border-radius: 20px;
  }

  .column-card-media {
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .column-card-body {
    padding: 18px 20px 18px;
  }

  .column-card-title {
    font-size: 1.1rem;
  }

  .column-card-excerpt {
    font-size: 0.92rem;
  }

  /* 記事 */
  .resource-detail-title {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .resource-detail-lead {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .resource-detail-meta {
    gap: 8px 12px;
    margin-bottom: 12px;
  }

  .resource-detail-cover {
    border-radius: 18px;
  }

  .resource-detail-body {
    padding: 24px 18px 28px;
    border-radius: 20px;
  }

  .resource-detail-body h2 {
    margin-top: 2.2em;
    padding-left: 14px;
    font-size: 1.28rem;
  }

  .resource-detail-body h3 {
    font-size: 1.08rem;
  }

  .resource-detail-body p {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .resource-detail-points {
    padding: 14px 16px;
  }

  .resource-detail-points li {
    font-size: 0.95rem;
  }

  .resource-detail-note {
    margin-top: 32px;
    padding: 18px 18px;
  }

  .resource-detail-aside {
    grid-template-columns: 1fr;
  }

  .resource-detail-summary,
  .resource-related-box {
    padding: 18px 20px;
  }

  /* 法務 */
  .legal-page main {
    padding-bottom: 48px;
  }

  .legal-hero {
    padding-bottom: 26px;
  }

  .legal-body {
    padding: 26px 20px 30px;
    border-radius: 20px;
  }

  .legal-body-title {
    font-size: 1.38rem;
  }

  .legal-body h3 {
    flex-direction: column;
    gap: 2px;
    font-size: 1.06rem;
  }

  .legal-body p,
  .legal-body li {
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .legal-table {
    grid-template-columns: 1fr;
    padding: 6px 18px;
  }

  .legal-table dt {
    padding-bottom: 0;
  }

  .legal-table dd {
    padding-top: 2px;
    border-top: 0;
  }
}
