/* =========================================================
   家族・相続カテゴリーの基本レイアウト
========================================================= */

/* =========================================================
   START FROM 39 — FAMILY & INHERITANCE CATEGORY
   Design: Letter / family album editorial
   Scope: PC / TABLET / MOBILE

   PAGE FLOW
   01  Cover / hero
   02  Introduction / quote and memory photo
   03  Topic index / five article themes
   04  Featured story and expert guide
   05  Latest articles / three recent posts
   06  Separate all-articles archive link
   07  Closing message
   08  Responsive rules / reduced motion

   IMPORTANT
   - CSS is scoped to .sf-family-ed.
   - Images are stored under /assets/images/family/.
   - The article count is intentionally not displayed.
========================================================= */

.sf-family-ed {
  --fe-ink: #30483f;
  --fe-ink-soft: #52675d;
  --fe-sage: #dfe8dd;
  --fe-sage-deep: #aab9a8;
  --fe-paper: #fbfaf6;
  --fe-paper-warm: #f4f0e7;
  --fe-line: #d8d8cc;
  --fe-gold: #b69a67;
  --fe-muted: #777a70;

  width: 100%;

  color: var(--fe-ink);
  background: var(--fe-paper);

  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  line-height: 1.9;

  overflow: clip;
}

.sf-family-ed *,
.sf-family-ed *::before,
.sf-family-ed *::after {
  box-sizing: border-box;
}

.sf-family-ed a {
  color: inherit;

  text-decoration: none;
}

.sf-family-ed img {
  display: block;

  width: 100%;
  height: auto;
}

.sf-family-ed h1,
.sf-family-ed h2,
.sf-family-ed h3 {
  margin-top: 0;

  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
}

.sf-family-ed__eyebrow {
  margin: 0;

  color: var(--fe-gold);

  font: 600 10px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* =========================================================
   01. COVER / HERO — full-bleed family letter and photo setting
========================================================= */

.sf-family-ed__cover {
  position: relative;
  display: flex;

  align-items: center;

  min-height: 610px;

  isolation: isolate;

  background: #e7e2d5;
}

.sf-family-ed__cover-visual {
  position: absolute;
  z-index: -2;
  inset: 0;

  background: url("../../images/family/family-letters.webp") center 54% / cover no-repeat;
}

.sf-family-ed__cover::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";

  background: linear-gradient(90deg, rgba(31, 34, 27, .14), transparent 67%);
}

.sf-family-ed__cover-panel {
  width: min(570px, 48%);

  margin-left: clamp(42px, 7vw, 112px);
  padding: 42px 48px 46px;

  background: rgba(251, 250, 246, .92);
  border: 1px solid rgba(255, 255, 255, .8);
}

.sf-family-ed__cover-panel .sf-family-ed__eyebrow {
  color: #8f7950;
}

.sf-family-ed__cover-panel h1 {
  margin: 18px 0 15px;

  color: #242c26;

  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.58;
  letter-spacing: .055em;
}

.sf-family-ed__cover-lead {
  margin: 0;

  color: #5f6258;

  font-size: 12px;
  line-height: 2.1;
}

.sf-family-ed__scroll {
  position: absolute;
  right: 30px;
  bottom: 36px;
  display: flex;

  align-items: center;
  gap: 12px;

  color: rgba(48, 72, 63, .75);

  font: 9px Georgia, serif;
  letter-spacing: .18em;

  writing-mode: vertical-rl;
}

.sf-family-ed__scroll i {
  display: block;

  width: 1px;
  height: 42px;

  background: var(--fe-gold);
}

/* =========================================================
   02. INTRODUCTION — personal message beside a family-memory detail
========================================================= */

.sf-family-ed__introduction {
  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) 80px;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;

  max-width: 1280px;

  margin: 0 auto;
  padding: 108px 54px 92px;
}

.sf-family-ed__introduction-copy {
  position: relative;

  padding-left: 34px;
}

.sf-family-ed__quote-mark {
  position: absolute;
  top: -38px;
  left: 0;

  margin: 0;

  color: #d1c6a8;

  font: 70px/.9 Georgia, serif;
}

.sf-family-ed__introduction-copy .sf-family-ed__eyebrow {
  margin-bottom: 14px;
}

.sf-family-ed__introduction h2 {
  margin: 0 0 18px;

  color: #282f29;

  font-size: clamp(30px, 3.3vw, 43px);
  line-height: 1.65;
  letter-spacing: .04em;
}

.sf-family-ed__body-copy {
  max-width: 660px;

  margin: 0;

  color: #66685f;

  font-size: 12px;
  line-height: 2.15;
}

.sf-family-ed__introduction-image {
  position: relative;

  margin: 0;
}

.sf-family-ed__introduction-image img {
  height: 260px;

  object-fit: cover;
}

.sf-family-ed__introduction-image figcaption {
  position: absolute;
  top: 0;
  right: -48px;

  height: 100%;

  display: flex;

  align-items: center;

  max-width: 36px;

  color: #6b7068;

  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 11px;
  line-height: 1.9;

  writing-mode: vertical-rl;
}

/* =========================================================
   03. TOPIC INDEX — numbered editorial links without boxed cards
========================================================= */

.sf-family-ed__topics {
  max-width: 1280px;

  margin: 0 auto;
  padding: 8px 48px 76px;
}

.sf-family-ed__topics-heading {
  display: flex;

  align-items: center;
  gap: 18px;

  padding-bottom: 9px;

  border-bottom: 1px solid var(--fe-line);
}

.sf-family-ed__topics-heading h2 {
  margin: 0;

  color: #30342d;

  font-size: 20px;
  line-height: 1.5;
}

.sf-family-ed__topics-heading .sf-family-ed__eyebrow {
  margin-left: auto;

  font-size: 8px;
}

.sf-family-ed__topic-list {
  display: grid;

  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sf-family-ed__topic-list > a {
  display: grid;

  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;

  min-height: 96px;

  padding: 14px 18px 14px 0;

  border-bottom: 1px solid var(--fe-line);

  transition: color .22s ease,
    background-color .22s ease;
}

.sf-family-ed__topic-list > a:nth-child(1),
.sf-family-ed__topic-list > a:nth-child(2),
.sf-family-ed__topic-list > a:nth-child(3) {
  grid-column: span 2;
}

.sf-family-ed__topic-list > a:nth-child(4) {
  grid-column: 2 / span 2;
}

.sf-family-ed__topic-list > a:nth-child(5) {
  grid-column: 4 / span 2;
}

.sf-family-ed__topic-list > a:hover,
.sf-family-ed__topic-list > a:focus-visible {
  color: #8f7950;
  background: rgba(232, 237, 226, .48);
}

.sf-family-ed__topic-number {
  color: var(--fe-gold);

  font: italic 26px/1 Georgia, serif;
}

.sf-family-ed__topic-copy {
  min-width: 0;
}

.sf-family-ed__topic-copy small,
.sf-family-ed__topic-copy strong,
.sf-family-ed__topic-copy > span {
  display: block;
}

.sf-family-ed__topic-copy small {
  margin-bottom: 2px;

  color: #98917e;

  font: 8px/1.4 Georgia, serif;
  letter-spacing: .12em;
}

.sf-family-ed__topic-copy strong {
  color: #30372f;

  font: 500 15px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sf-family-ed__topic-copy > span {
  color: #84847b;

  font-size: 9px;
  line-height: 1.55;
}

.sf-family-ed__topic-list b {
  color: #9e8a60;

  font-size: 15px;
  font-weight: 400;
}

/* =========================================================
   04. FEATURES — asymmetrical featured article and pale-sage expert guide
========================================================= */

.sf-family-ed__features {
  display: grid;

  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  gap: 14px;
  align-items: stretch;

  margin-top: 0;

  background: #f3f1e9;
}

.sf-family-ed__featured-story {
  position: relative;
  display: block;

  min-height: 500px;

  background: #f8f7f2;
}

.sf-family-ed__featured-image {
  position: absolute;
  inset: 0;
  display: block;

  min-height: 100%;

  overflow: hidden;
}

.sf-family-ed__featured-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;

  object-fit: cover;

  transition: transform .6s ease;
}

.sf-family-ed__featured-image:hover img {
  transform: scale(1.035);
}

.sf-family-ed__featured-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  padding: 38px clamp(28px, 4vw, 58px) 35px;

  background: linear-gradient(0deg, rgba(251, 250, 246, .98) 0%, rgba(251, 250, 246, .94) 72%, rgba(251, 250, 246, 0) 100%);
}

.sf-family-ed__featured-copy h2 {
  max-width: 570px;

  margin: 12px 0 11px;

  color: #28342c;

  font-size: clamp(24px, 2.45vw, 34px);
  line-height: 1.55;
}

.sf-family-ed__featured-copy > p:not(.sf-family-ed__eyebrow) {
  margin: 0;

  color: #74756c;

  font-size: 11px;
  line-height: 1.95;
}

.sf-family-ed__text-link {
  display: inline-flex;

  align-items: center;
  gap: 18px;

  margin-top: 20px;
  padding-bottom: 5px;

  border-bottom: 1px solid #ac986e;
  color: #4f6055;

  font-size: 11px;
  font-weight: 600;

  transition: gap .2s ease,
    color .2s ease;
}

.sf-family-ed__text-link:hover {
  gap: 25px;

  color: #947a4e;
}

.sf-family-ed__text-link span {
  color: #a88d59;

  font-size: 16px;
}

.sf-family-ed__expert-guide {
  position: relative;
  display: flex;

  flex-direction: column;
  justify-content: center;

  min-height: 500px;

  padding: 62px clamp(34px, 4.5vw, 68px);

  overflow: hidden;

  background: #e9efe7;
  border-left: 1px solid #d4ded3;
}

.sf-family-ed__expert-guide::before {
  position: absolute;
  right: -50px;
  bottom: -64px;

  width: 235px;
  height: 235px;

  content: "";

  border: 1px solid rgba(136, 157, 133, .25);
  border-radius: 50%;
}

.sf-family-ed__expert-guide h2 {
  position: relative;

  margin: 13px 0 4px;

  color: #2b4439;

  font-size: clamp(26px, 2.6vw, 37px);
  line-height: 1.5;
}

.sf-family-ed__expert-subtitle {
  position: relative;

  max-width: 410px;

  margin: 0;

  color: #495a4f;

  font: 500 17px/1.75 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sf-family-ed__expert-description {
  position: relative;

  max-width: 400px;

  margin: 17px 0 0;

  color: #747b70;

  font-size: 11px;
  line-height: 1.9;
}

.sf-family-ed__expert-guide .sf-family-ed__text-link {
  position: relative;

  align-self: flex-start;

  margin-top: 22px;
}

.sf-family-ed__guide-branch {
  position: absolute;
  right: 13px;
  bottom: 8px;

  width: 100px;

  color: #91a38b;

  pointer-events: none;
}

/* =========================================================
   05. LATEST ARTICLES — five recent posts in an editorial index
========================================================= */

.sf-family-ed__latest {
  max-width: 1240px;

  margin: 0 auto;
  padding: 86px 48px 42px;
}

.sf-family-ed__latest-heading {
  display: flex;

  align-items: baseline;
  gap: 18px;

  margin-bottom: 12px;
  padding-bottom: 9px;

  border-bottom: 1px solid var(--fe-line);
}

.sf-family-ed__latest-heading h2 {
  margin: 0;

  color: #30342d;

  font-size: 23px;
}

.sf-family-ed__latest-heading .sf-family-ed__eyebrow {
  margin-left: auto;

  color: #a49b87;

  font-size: 8px;
}

.sf-family-ed__latest-list {
  position: relative;
}

.sf-family-ed__latest-row {
  display: grid;

  grid-template-columns: 48px 180px minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;

  min-height: 148px;

  padding: 17px 8px;

  border-bottom: 1px solid var(--fe-line);

  transition: background-color .2s ease;
}

.sf-family-ed__latest-row:hover,
.sf-family-ed__latest-row:focus-visible {
  background: #f2f4ed;
}

.sf-family-ed__latest-number {
  color: #a58e5e;

  font: italic 25px/1 Georgia, serif;
}

.sf-family-ed__latest-image {
  display: block;

  height: 112px;

  overflow: hidden;

  background: #e7e5dc;
}

.sf-family-ed__latest-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.sf-family-ed__latest-copy {
  display: block;

  min-width: 0;
}

.sf-family-ed__latest-copy strong,
.sf-family-ed__latest-copy small,
.sf-family-ed__latest-copy time {
  display: block;
}

.sf-family-ed__latest-copy strong {
  color: #374239;

  font: 500 17px/1.7 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sf-family-ed__latest-copy small {
  margin-top: 3px;

  overflow: hidden;

  color: #818178;

  font-size: 11px;
  line-height: 1.75;
  text-overflow: ellipsis;

  display: -webkit-box;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sf-family-ed__latest-copy time {
  margin-top: 4px;

  color: #a09b8f;

  font: 9px Georgia, serif;
}

.sf-family-ed__latest-arrow {
  color: #a78c5d;

  font: 16px Georgia, serif;
}

.sf-family-ed__empty {
  margin: 18px 0;

  color: var(--fe-muted);

  font-size: 12px;
}

/* =========================================================
   06. ALL ARTICLES — explicit doorway to a separate archive page
========================================================= */

.sf-family-ed__all-articles {
  position: relative;
  display: grid;

  grid-template-columns: 190px minmax(0, 1fr) 42px;
  gap: 25px;
  align-items: center;

  min-height: 142px;

  margin: 38px 0 0;
  padding: 18px 34px 18px 20px;

  overflow: hidden;

  background: #e9efe6;
  border: 1px solid #c4d0c1;

  transition: background-color .22s ease,
    border-color .22s ease;
}

.sf-family-ed__all-articles:hover {
  background: #e1e9de;
  border-color: #9eae9c;
}

.sf-family-ed__all-image {
  display: block;

  height: 104px;

  background: url("../../images/family/family-memory-detail.webp") center 44% / cover no-repeat;
}

.sf-family-ed__all-copy {
  display: block;
}

.sf-family-ed__all-copy small,
.sf-family-ed__all-copy strong,
.sf-family-ed__all-copy > span {
  display: block;
}

.sf-family-ed__all-copy small {
  margin-bottom: 4px;

  color: #9b875b;

  font: 9px Georgia, serif;
  letter-spacing: .2em;
}

.sf-family-ed__all-copy strong {
  color: #34473b;

  font: 500 clamp(17px, 2vw, 24px)/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sf-family-ed__all-copy > span {
  margin-top: 3px;

  color: #7a8077;

  font-size: 10px;
}

.sf-family-ed__all-articles > b {
  color: #8d7952;

  font: 20px Georgia, serif;
}

/* =========================================================
   07. CLOSING — light, calm transition into the site footer
========================================================= */

.sf-family-ed__closing {
  position: relative;

  max-width: 1180px;

  margin: 0 auto;
  padding: 84px 60px 92px;

  text-align: center;

  background: #f5f3ec;
}

.sf-family-ed__closing .sf-family-ed__eyebrow {
  margin-bottom: 10px;

  font-size: 8px;
}

.sf-family-ed__closing h2 {
  margin: 0;

  color: #394b3e;

  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.7;
}

.sf-family-ed__closing > p:not(.sf-family-ed__eyebrow) {
  margin: 10px 0 0;

  color: #828278;

  font-size: 11px;
}

.sf-family-ed__closing svg {
  position: absolute;
  right: 9%;
  bottom: 16px;

  width: 58px;

  color: #a7b39e;
}

/* =========================================================
   08. TABLET — stack feature blocks and tighten section spacing
========================================================= */

@media (max-width: 900px) {
  .sf-family-ed__cover {
    min-height: 520px;
  }

  .sf-family-ed__cover-panel {
    width: min(500px, 58%);

    margin-left: 5vw;
    padding: 30px 32px;
  }

  .sf-family-ed__introduction {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 35px;

    padding: 68px 32px 58px;
  }

  .sf-family-ed__introduction-image figcaption {
    display: none;
  }

  .sf-family-ed__topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-family-ed__topic-list > a:nth-child(n) {
    grid-column: auto;
  }

  .sf-family-ed__topic-list > a:last-child {
    grid-column: 1 / -1;
  }

  .sf-family-ed__features {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sf-family-ed__featured-story {
    display: block;

    min-height: 430px;
  }

  .sf-family-ed__expert-guide {
    min-height: 360px;

    padding-left: 8vw;
  }

  .sf-family-ed__latest {
    padding-right: 30px;
    padding-left: 30px;
  }
}

/* =========================================================
   09. MOBILE — readable single-column layout and tap targets
========================================================= */

@media (max-width: 640px) {
  .sf-family-ed__cover {
    min-height: 0;

    align-items: flex-end;

    padding-top: 320px;
  }

  /* HERO写真：右側のコップ・椅子・ペンが見える切り取り位置 */

  .sf-family-ed__cover-visual {
    background-position: right center;
  }

  .sf-family-ed__cover::before {
    background: linear-gradient(0deg, rgba(34, 39, 31, .38), transparent 62%);
  }

  .sf-family-ed__cover-panel {
    width: auto;

    margin: 0 16px 25px;
    padding: 27px 24px;

    background: rgba(251, 250, 246, .94);
  }

  .sf-family-ed__cover-panel h1 {
    margin: 12px 0 9px;

    font-size: clamp(27px, 8vw, 35px);
    line-height: 1.55;
  }

  .sf-family-ed__cover-lead {
    font-size: 11px;
  }

  .sf-family-ed__scroll {
    right: 13px;
    bottom: 32px;

    color: #fff;

    font-size: 7px;
  }

  .sf-family-ed__scroll i {
    height: 30px;

    background: #fff;
  }

  .sf-family-ed__introduction {
    display: block;

    padding: 72px 23px 48px;
  }

  .sf-family-ed__introduction-copy {
    padding-left: 20px;
  }

  .sf-family-ed__quote-mark {
    top: -27px;
    left: -3px;

    font-size: 48px;
  }

  .sf-family-ed__introduction h2 {
    font-size: 28px;
    line-height: 1.65;
  }

  .sf-family-ed__body-copy {
    font-size: 11px;
  }

  .sf-family-ed__introduction-image {
    width: 66%;

    margin: 25px auto 0;
  }

  .sf-family-ed__introduction-image img {
    height: 210px;
  }

  .sf-family-ed__topics {
    padding: 0 18px 48px;
  }

  .sf-family-ed__topics-heading h2 {
    font-size: 17px;
  }

  .sf-family-ed__topic-list {
    grid-template-columns: 1fr;
  }

  .sf-family-ed__topic-list > a:nth-child(n) {
    grid-column: auto;
    grid-template-columns: 42px minmax(0, 1fr) 20px;

    min-height: 88px;

    padding-right: 5px;
  }

  .sf-family-ed__topic-number {
    font-size: 23px;
  }

  .sf-family-ed__topic-copy strong {
    font-size: 14px;
  }

  .sf-family-ed__features {
    gap: 0;
  }

  .sf-family-ed__featured-story {
    display: flex;

    flex-direction: column;
  }

  .sf-family-ed__featured-image img {
    min-height: 0;
    height: 280px;
  }

  .sf-family-ed__featured-copy {
    padding: 30px 25px 36px;
  }

  .sf-family-ed__featured-copy h2 {
    font-size: 25px;
  }

  .sf-family-ed__expert-guide {
    min-height: 330px;

    padding: 42px 28px;
  }

  .sf-family-ed__expert-guide h2 {
    font-size: 27px;
  }

  .sf-family-ed__expert-subtitle {
    font-size: 15px;
  }

  .sf-family-ed__expert-description {
    max-width: 85%;

    font-size: 10px;
  }

  .sf-family-ed__guide-branch {
    width: 72px;

    right: 4px;
    bottom: 0;
  }

  .sf-family-ed__latest {
    padding: 58px 18px 36px;
  }

  .sf-family-ed__latest-heading h2 {
    font-size: 20px;
  }

  .sf-family-ed__latest-row {
    grid-template-columns: 30px 102px minmax(0, 1fr) 14px;
    gap: 12px;

    min-height: 116px;

    padding: 13px 3px;
  }

  .sf-family-ed__latest-number {
    font-size: 19px;
  }

  .sf-family-ed__latest-image {
    height: 78px;
  }

  .sf-family-ed__latest-copy strong {
    display: -webkit-box;
    overflow: hidden;

    font-size: 12px;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .sf-family-ed__latest-copy small {
    display: -webkit-box;
    overflow: hidden;

    font-size: 8px;

    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .sf-family-ed__latest-copy time {
    font-size: 8px;
  }

  .sf-family-ed__all-articles {
    grid-template-columns: 75px minmax(0, 1fr) 17px;
    gap: 13px;

    min-height: 104px;

    margin-top: 28px;
    padding: 10px;
  }

  .sf-family-ed__all-image {
    height: 72px;
  }

  .sf-family-ed__all-copy small {
    font-size: 7px;
  }

  .sf-family-ed__all-copy strong {
    font-size: 14px;
  }

  .sf-family-ed__all-copy > span {
    font-size: 8px;
    line-height: 1.5;
  }

  .sf-family-ed__closing {
    padding: 58px 20px 66px;
  }

  .sf-family-ed__closing h2 {
    font-size: 24px;
  }

  .sf-family-ed__closing svg {
    right: 5%;
    bottom: 4px;

    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-family-ed *,
  .sf-family-ed *::before,
  .sf-family-ed *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }
}

/* =========================================================
   10. REFINEMENT — align headline, restore portrait editorial rhythm, and open the full-width bookend
========================================================= */

.sf-family-ed__cover-panel {
  width: min(850px, calc(100% - 14vw));

  margin-left: max(calc((100vw - 1450px) / 2), 7vw);
  padding: 48px 54px 46px;

  text-align: center;
}

.sf-family-ed__cover-panel h1 {
  max-width: 760px;

  margin: 16px auto 14px;

  font-size: clamp(39px, 3.6vw, 52px);
  line-height: 1.55;
  letter-spacing: .035em;
  text-wrap: balance;
}

.sf-family-ed__cover-lead {
  max-width: 640px;

  margin-inline: auto;
}

.sf-family-ed__introduction {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px) 58px;

  max-width: 1320px;

  padding-top: 112px;
  padding-bottom: 100px;
}

.sf-family-ed__introduction-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;

  object-fit: cover;
  object-position: 54% center;
}

.sf-family-ed__topics-heading h2 {
  display: flex;

  align-items: center;
  gap: 14px;
}

.sf-family-ed__topics-heading h2::before {
  display: block;

  width: 2px;
  height: 1.2em;

  background: var(--fe-gold);

  content: "";
}

.sf-family-ed__featured-story {
  min-height: 560px;
}

.sf-family-ed__featured-image img {
  min-height: 560px;
}

.sf-family-ed__featured-copy {
  padding-top: 52px;
  padding-bottom: 42px;
}

.sf-family-ed__featured-copy .sf-family-ed__eyebrow span,
.sf-family-ed__expert-guide .sf-family-ed__eyebrow span {
  margin-left: 13px;

  color: #8a8e80;

  font: 500 9px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .06em;
}

.sf-family-ed__featured-copy > p:not(.sf-family-ed__eyebrow) {
  max-width: 650px;

  font-size: 12px;
  line-height: 2.05;
}

.sf-family-ed__feature-points {
  display: flex;

  flex-wrap: wrap;
  gap: 8px;

  margin: 16px 0 0;
  padding: 0;

  list-style: none;
}

.sf-family-ed__feature-points li {
  padding: 5px 10px;

  border: 1px solid rgba(142, 148, 129, .32);
  color: #677269;

  font-size: 9px;
  line-height: 1.5;
}

.sf-family-ed__expert-guide {
  min-height: 560px;

  padding-top: 68px;
  padding-bottom: 68px;
}

.sf-family-ed__expert-subtitle {
  max-width: 440px;

  font-size: 18px;
  line-height: 1.85;
}

.sf-family-ed__expert-description {
  max-width: 420px;

  margin-top: 20px;

  font-size: 12px;
  line-height: 2.05;
}

.sf-family-ed__expert-roles {
  position: relative;
  display: flex;

  align-items: center;
  gap: 12px;

  margin-top: 22px;

  color: #52665a;

  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
}

.sf-family-ed__expert-roles span {
  padding-bottom: 4px;

  border-bottom: 1px solid rgba(142, 159, 138, .55);
}

.sf-family-ed__expert-roles i {
  width: 3px;
  height: 3px;

  border-radius: 50%;
  background: #ad9a6d;
}

.sf-family-ed__latest-image {
  height: 126px;
}

.sf-family-ed__all-articles {
  left: 50%;

  width: 100vw;

  margin-top: 44px;
  margin-left: 0;
  padding: 28px max(24px, calc((100vw - 1240px) / 2));

  transform: translateX(-50%);

  border-right: 0;
  border-left: 0;
}

.sf-family-ed__all-image {
  height: 132px;
}

.sf-family-ed__closing {
  max-width: none;
  width: 100%;

  padding: 96px 24px 104px;
}

@media (max-width: 900px) {
  .sf-family-ed__cover-panel {
    width: min(760px, calc(100% - 10vw));

    margin-left: 5vw;
    padding: 38px 36px;
  }

  .sf-family-ed__cover-panel h1 {
    font-size: clamp(34px, 5.2vw, 46px);
  }

  .sf-family-ed__introduction {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  }

  .sf-family-ed__featured-story,
  .sf-family-ed__expert-guide {
    min-height: 500px;
  }

  .sf-family-ed__featured-image img {
    min-height: 500px;
  }

  .sf-family-ed__expert-guide {
    padding: 48px 8vw;
  }

  .sf-family-ed__all-articles {
    padding-inline: 30px;
  }
}

@media (max-width: 640px) {
  .sf-family-ed__cover-panel {
    width: auto;

    margin: 0 12px 22px;
    padding: 27px 18px 25px;

    text-align: center;
  }

  .sf-family-ed__cover-panel h1 {
    max-width: 360px;

    margin: 10px auto 12px;

    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.65;
    letter-spacing: 0;
  }

  .sf-family-ed__cover-lead {
    font-size: 10px;
  }

  .sf-family-ed__introduction-image {
    width: min(76%, 300px);

    margin: 28px auto 0;
  }

  .sf-family-ed__introduction-image img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .sf-family-ed__topics-heading h2 {
    gap: 10px;
  }

  .sf-family-ed__features {
    display: block;
  }

  .sf-family-ed__featured-story {
    display: flex;

    min-height: 0;

    flex-direction: column;
  }

  .sf-family-ed__featured-image {
    position: relative;
    inset: auto;

    height: 250px;
    min-height: 0;
  }

  .sf-family-ed__featured-image img {
    height: 100%;
    min-height: 0;
  }

  .sf-family-ed__featured-copy {
    position: relative;

    padding: 27px 23px 32px;

    background: #fbfaf6;
  }

  .sf-family-ed__featured-copy h2 {
    font-size: 23px;
  }

  .sf-family-ed__feature-points {
    gap: 6px;
  }

  .sf-family-ed__feature-points li {
    padding: 4px 7px;

    font-size: 8px;
  }

  .sf-family-ed__expert-guide {
    min-height: 0;

    padding: 40px 25px 46px;
  }

  .sf-family-ed__expert-guide .sf-family-ed__eyebrow span {
    display: block;

    margin: 5px 0 0;
  }

  .sf-family-ed__expert-subtitle {
    font-size: 14px;
  }

  .sf-family-ed__expert-description {
    max-width: 100%;
  }

  .sf-family-ed__expert-roles {
    gap: 9px;

    font-size: 11px;
  }

  .sf-family-ed__latest-image {
    height: 78px;
  }

  .sf-family-ed__all-articles {
    grid-template-columns: 75px minmax(0, 1fr) 17px;
    gap: 13px;

    padding: 16px 18px;
  }

  .sf-family-ed__all-image {
    height: 76px;
  }

  .sf-family-ed__closing {
    padding: 62px 20px 70px;
  }
}

/* =========================================================
   11. FINISHING TOUCHES — matching section marker, distinct thumbnails, and archive destination
========================================================= */

.sf-family-ed__latest-heading h2 {
  display: flex;

  align-items: center;
  gap: 14px;
}

.sf-family-ed__latest-heading h2::before {
  display: block;

  width: 2px;
  height: 1.2em;

  background: var(--fe-gold);

  content: "";
}

.sf-family-ed__all-articles {
  position: relative;
  display: grid;

  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr) 160px;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;

  min-height: 228px;

  margin-top: 48px;
  padding: 42px max(24px, calc((100vw - 1240px) / 2));

  overflow: hidden;

  background: #e9efe6;
  border-top: 1px solid #cbd6c8;
  border-bottom: 1px solid #cbd6c8;

  transition: background-color .25s ease;
}

.sf-family-ed__all-articles::after {
  position: absolute;
  z-index: 0;
  top: -70px;
  right: 15%;

  color: rgba(92, 117, 99, .055);

  content: "READ";

  font: italic 190px/.9 Georgia, "Times New Roman", serif;
  letter-spacing: -.06em;

  pointer-events: none;
}

.sf-family-ed__all-articles:hover {
  background: #e1e9de;
  border-color: #b6c5b4;
}

.sf-family-ed__all-label,
.sf-family-ed__all-copy,
.sf-family-ed__all-action {
  position: relative;
  z-index: 1;
}

.sf-family-ed__all-label {
  display: flex;

  flex-direction: column;
  gap: 8px;

  padding: 7px 0 7px 18px;

  border-left: 2px solid var(--fe-gold);
}

.sf-family-ed__all-label small {
  color: #987f50;

  font: 600 10px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
}

.sf-family-ed__all-label > span {
  color: #788278;

  font: 9px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: .1em;
}

.sf-family-ed__all-copy {
  display: block;
}

.sf-family-ed__all-copy strong {
  display: block;

  color: #30483f;

  font: 500 clamp(25px, 3vw, 37px)/1.55 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sf-family-ed__all-copy > span {
  display: block;

  margin-top: 7px;

  color: #737d73;

  font-size: 11px;
  line-height: 1.9;
}

.sf-family-ed__all-action {
  display: flex;

  flex-direction: column;
  align-items: center;
  gap: 10px;

  color: #788a7a;
}

.sf-family-ed__all-action b {
  display: grid;

  width: 64px;
  height: 64px;

  place-items: center;

  border: 1px solid #98a894;
  border-radius: 50%;
  color: #52695a;

  font: 24px/1 Georgia, serif;

  transition: color .25s ease,
    background-color .25s ease,
    transform .25s ease;
}

.sf-family-ed__all-action small {
  font: 8px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: .14em;
}

.sf-family-ed__all-articles:hover .sf-family-ed__all-action b {
  transform: translateX(4px);

  color: #fff;
  background: #6f8f85;
}

@media (max-width: 900px) {
  .sf-family-ed__all-articles {
    grid-template-columns: minmax(125px, .55fr) minmax(0, 1.45fr) 92px;
    gap: 22px;

    min-height: 190px;

    padding: 32px 30px;
  }

  .sf-family-ed__all-action b {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 640px) {
  .sf-family-ed__latest-heading h2 {
    gap: 10px;
  }

  .sf-family-ed__all-articles {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px 14px;

    min-height: 0;

    margin-top: 32px;
    padding: 25px 20px;
  }

  .sf-family-ed__all-label {
    grid-column: 1;
    grid-row: 1;
    gap: 4px;

    padding-left: 12px;
  }

  .sf-family-ed__all-label small {
    font-size: 9px;
  }

  .sf-family-ed__all-label > span {
    font-size: 8px;
  }

  .sf-family-ed__all-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .sf-family-ed__all-copy strong {
    font-size: 21px;
    line-height: 1.55;
  }

  .sf-family-ed__all-copy > span {
    font-size: 9px;
  }

  .sf-family-ed__all-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .sf-family-ed__all-action b {
    width: 46px;
    height: 46px;

    font-size: 20px;
  }

  .sf-family-ed__all-action small {
    display: none;
  }

  .sf-family-ed__all-articles::after {
    top: auto;
    right: 1%;
    bottom: -15px;

    font-size: 100px;
  }
}

@media (max-width: 640px) {
  .sf-family-ed__latest-row {
    grid-template-columns: 27px 104px minmax(0, 1fr) 13px;
    gap: 11px;

    min-height: 128px;

    padding: 15px 2px;
  }

  .sf-family-ed__latest-image {
    height: 88px;
  }

  .sf-family-ed__latest-copy strong {
    font-size: 13px;
    line-height: 1.65;
  }

  .sf-family-ed__latest-copy small {
    margin-top: 4px;

    font-size: 9px;
    line-height: 1.65;

    -webkit-line-clamp: 2;
  }
}

/* =========================================================
   6ページ共通の余白基準：PC / スマホ
   セクション間は次のセクション側だけに設定し、二重の余白を防ぐ。
========================================================= */

body .sf-family-ed {
  --sf39-section-space: 64px;
  --sf39-heading-space: 28px;
  --sf39-card-space: 24px;
  --sf39-feature-space: 56px;
  --sf39-closing-space: 64px;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  display: flow-root;
}

/* 通常のセクション：外側の余白と内側の上下余白を整理 */

body .sf-family-ed > :is(.sf-family-ed__introduction, .sf-family-ed__topics, .sf-family-ed__features, .sf-family-ed__latest, .sf-family-ed__closing) {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

body .sf-family-ed > * + :is(.sf-family-ed__introduction, .sf-family-ed__topics, .sf-family-ed__features, .sf-family-ed__latest, .sf-family-ed__closing) {
  margin-top: var(--sf39-section-space) !important;
}

/* 見出しからカード・本文まで */

body .sf-family-ed .sf-family-ed__topics-heading,
body .sf-family-ed .sf-family-ed__latest-heading {
  margin-bottom: var(--sf39-heading-space) !important;
}

/* カード同士：写真やカードの寸法は既存の指定を使用 */

body .sf-family-ed .sf-family-ed__topic-list,
body .sf-family-ed .sf-family-ed__features,
body .sf-family-ed .sf-family-ed__latest-list {
  gap: var(--sf39-card-space) !important;
}

/* 最後の締め：内側の上下余白 */

body .sf-family-ed .sf-family-ed__closing.sf39-family-letter {
  padding-block: var(--sf39-closing-space) !important;
}

body .sf-family-ed .sf-family-ed__all-articles {
  margin-top: var(--sf39-section-space) !important;
  margin-bottom: 0 !important;
  padding-block: var(--sf39-feature-space) !important;
}

/* フッターとの接続：締めの外側に白い余白を残さない */

body:has(.sf-family-ed) :is(.sf-footer, .sf-site-footer) {
  margin-top: 0 !important;
}

body:has(.sf-family-ed) :is(.sf-site, #content, .site-content) {
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  body .sf-family-ed {
    --sf39-section-space: 40px;
    --sf39-heading-space: 22px;
    --sf39-card-space: 18px;
    --sf39-feature-space: 36px;
    --sf39-closing-space: 40px;
  }

}
