/* =========================================================
   終活カテゴリーの共通・旧レイアウト調整
========================================================= */

/* =========================================================
   Start From 39 | 終活カテゴリートップ
   対象: category-end-of-life-planning.php の .sf-end26 のみ
   配色: 明るいアイボリー / セージ / 淡い青緑 / シャンパンゴールド
   構成: ノート風HERO → 4テーマ → 記入の問い → 公開記事
========================================================= */

/* =========================================================
   01 | 基本色と文字
========================================================= */

.sf-end26 {
  --end-ink: #31564d;
  --end-sage: #718c7c;
  --end-sky: #e8f0ec;
  --end-gold: #b69763;
  --end-paper: #fbfbf5;
  --end-line: #d5dfd7;

  width: 100%;
  max-width: none;

  margin: 0;

  overflow: hidden;

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

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

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

.sf-end26 a {
  color: inherit;

  text-decoration: none;
}

.sf-end26 h1,
.sf-end26 h2,
.sf-end26 h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
}

.sf-end26__eyebrow {
  margin: 0;

  color: var(--end-gold);

  font: 600 10px/1.5 Georgia, serif;
  letter-spacing: 0.19em;
}

/* =========================================================
   02 | HERO: 写真の上にずらして置く「未来へのノート」
========================================================= */

.sf-end26__hero {
  position: relative;
  display: grid;

  grid-template-columns: 40% 60%;

  min-height: 720px;

  padding: 48px 5%;

  background: #e7efea;
}

.sf-end26__hero-photo {
  grid-column: 2;
  grid-row: 1;

  min-height: 620px;

  background: url("../../images/home/latest-planning.jpg") center / cover no-repeat;
}

.sf-end26__hero-copy {
  position: relative;
  z-index: 1;

  grid-column: 1 / 3;
  grid-row: 1;
  align-self: center;

  width: min(58%, 730px);
  min-height: 540px;

  padding: 60px clamp(35px, 5vw, 75px);

  border-top: 4px solid var(--end-gold);
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 17px 18px 0 rgba(63, 94, 75, 0.14);
}

.sf-end26__hero-copy::after {
  position: absolute;
  inset: 15px;

  border: 1px solid var(--end-line);

  content: "";

  pointer-events: none;
}

.sf-end26__handwriting {
  margin: 55px 0 14px;

  color: var(--end-gold);

  font: italic 24px Georgia, serif;
}

.sf-end26__hero h1 {
  margin: 0;

  font-size: clamp(37px, 4vw, 61px);
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.sf-end26__hero-lead {
  margin: 22px 0 0;

  color: #5f786b;

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

.sf-end26__hero-copy a {
  display: inline-flex;

  align-items: center;
  gap: 30px;

  margin-top: 34px;
  padding-bottom: 8px;

  border-bottom: 1px solid var(--end-gold);

  font-size: 12px;
  font-weight: 700;
}

.sf-end26__hero-copy a span {
  color: var(--end-gold);

  font-size: 20px;
}

.sf-end26__hero-folio {
  position: absolute;
  right: 5%;
  bottom: 18px;

  color: #607a6d;

  font: 10px Georgia, serif;
  letter-spacing: 0.16em;
}

/* =========================================================
   03 | 心を落ち着ける短い導入
========================================================= */

.sf-end26__statement {
  max-width: 800px;

  margin: 0 auto;
  padding: 118px 25px 126px;

  text-align: center;
}

.sf-end26__statement h2 {
  margin: 21px 0 23px;

  font-size: clamp(31px, 3.4vw, 45px);
  line-height: 1.67;
}

.sf-end26__statement > p:last-child {
  max-width: 610px;

  margin: 0 auto;

  color: #688073;

  font-size: 13px;
}

/* =========================================================
   04 | 4テーマ。カード自体はリンクにせず、未公開記事を装わない
========================================================= */

.sf-end26__themes {
  padding: 94px 35px 115px;

  background: var(--end-sky);

  scroll-margin-top: 70px;
}

.sf-end26__section-heading {
  display: flex;

  flex-wrap: wrap;
  align-items: end;
  gap: 8px 25px;

  max-width: 1120px;

  margin: 0 auto 42px;
}

.sf-end26__section-heading .sf-end26__eyebrow {
  flex-basis: 100%;
}

.sf-end26__section-heading h2 {
  margin: 0;

  font-size: clamp(30px, 3.2vw, 43px);
}

.sf-end26__section-heading > span {
  margin-left: auto;

  color: #738a7b;

  font-size: 11px;
}

.sf-end26__theme-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;

  max-width: 1120px;

  margin: 0 auto;
}

.sf-end26__theme-card {
  position: relative;

  min-height: 310px;

  padding: 28px 24px 55px;

  border: 1px solid var(--end-line);
  background: #fcfdf8;
  box-shadow: 0 13px 27px rgba(49, 86, 77, 0.06);
}

.sf-end26__theme-card:nth-child(even) {
  transform: translateY(20px);
}

.sf-end26__theme-card::after {
  position: absolute;
  bottom: 27px;
  left: 24px;

  width: 43px;
  height: 1px;

  background: var(--end-gold);

  content: "";
}

.sf-end26__theme-number {
  display: block;

  color: var(--end-gold);

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

.sf-end26__theme-card small {
  display: block;

  margin-top: 25px;

  color: var(--end-sage);

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

.sf-end26__theme-card h3 {
  margin: 9px 0;

  font-size: 22px;
}

.sf-end26__theme-card p {
  margin: 0;

  color: #6b8175;

  font-size: 12px;
}

/* =========================================================
   05 | 読者に向けた最初の問い
========================================================= */

.sf-end26__note {
  display: flex;

  align-items: flex-start;
  gap: 42px;

  max-width: 920px;

  margin: 0 auto;
  padding: 130px 35px 115px;
}

.sf-end26__note-mark {
  color: #c8d8cb;

  font: 170px/.8 Georgia, serif;
}

.sf-end26__note h2 {
  margin: 15px 0;

  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.6;
}

.sf-end26__note div:last-child > p:last-child {
  max-width: 560px;

  margin: 0;

  color: #687e72;

  font-size: 13px;
}

/* =========================================================
   06 | 公開中の最初の記事
========================================================= */

.sf-end26__first {
  display: grid;

  grid-template-columns: 32% 68%;

  max-width: 1050px;
  min-height: 340px;

  margin: 0 auto 100px;

  border: 1px solid var(--end-line);
  background: #fffefa;
}

.sf-end26__first-decoration {
  display: flex;

  flex-direction: column;
  justify-content: space-between;

  padding: 39px;

  color: #fefcf6;
  background: #70907e;
}

.sf-end26__first-decoration > span {
  font: italic 110px/1 Georgia, serif;
}

.sf-end26__first-decoration small {
  font: 10px/1.7 Georgia, serif;
  letter-spacing: 0.18em;
}

.sf-end26__first-copy {
  display: flex;

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

  padding: 45px clamp(35px, 5vw, 70px);
}

.sf-end26__first h2 {
  margin: 14px 0;

  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.67;
}

.sf-end26__first-copy > p:not(.sf-end26__eyebrow) {
  margin: 0;

  color: #6b8175;

  font-size: 13px;
}

.sf-end26__first-copy a {
  display: inline-flex;

  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  gap: 40px;

  margin-top: 24px;
  padding-bottom: 9px;

  border-bottom: 1px solid var(--end-gold);

  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   07 | 記事が増えたら表示される一覧
========================================================= */

.sf-end26__latest {
  padding: 96px 35px 105px;

  background: #f0f3ed;
}

.sf-end26__latest-inner {
  max-width: 1100px;

  margin: 0 auto;
}

.sf-end26__latest-list {
  border-top: 1px solid var(--end-line);
}

.sf-end26__latest-list a {
  display: grid;

  grid-template-columns: 70px minmax(0, 1fr) 30px;
  gap: 20px;
  align-items: center;

  min-height: 125px;

  padding: 22px 10px;

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

  transition: background 0.22s ease,
    padding 0.22s ease;
}

.sf-end26__latest-list a:hover,
.sf-end26__latest-list a:focus-visible {
  padding-right: 20px;
  padding-left: 20px;

  background: #fffefa;
}

.sf-end26__latest-list a > span:first-child {
  color: var(--end-gold);

  font: italic 34px Georgia, serif;
}

.sf-end26__latest-list time {
  color: #839387;

  font: 10px Georgia, serif;
}

.sf-end26__latest-list h3 {
  margin: 7px 0 0;

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

.sf-end26__latest-list b {
  color: var(--end-gold);

  font-size: 22px;
}

/* =========================================================
   08 | 全記事ページとエンディング
========================================================= */

.sf-end26__all-link-wrap {
  display: flex;

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

  padding: 66px 20px 80px;

  background: #f0f3ed;
}

.sf-end26__all-link-wrap a {
  display: flex;

  justify-content: space-between;
  align-items: center;
  gap: 45px;

  width: min(100%, 350px);

  padding: 15px 20px;

  border: 1px solid var(--end-ink);

  font-size: 12px;
  font-weight: 700;

  transition: background 0.22s ease,
    color 0.22s ease;
}

.sf-end26__all-link-wrap a:hover,
.sf-end26__all-link-wrap a:focus-visible {
  color: #fff;
  background: var(--end-ink);
}

.sf-end26__all-link-wrap a span {
  font-size: 21px;
}

.sf-end26__all-link-wrap small {
  color: #73897c;

  font-size: 10px;
}

.sf-end26__end {
  padding: 105px 20px 115px;

  color: #fff;
  background: #31564d;

  text-align: center;
}

.sf-end26__end p {
  color: #dcc69d;

  font: 10px Georgia, serif;
  letter-spacing: 0.2em;
}

.sf-end26__end h2 {
  margin: 20px 0 25px;

  font-size: clamp(32px, 3.9vw, 51px);
  line-height: 1.6;
}

.sf-end26__end a {
  display: inline-flex;

  align-items: center;
  gap: 30px;

  padding: 10px 0;

  border-bottom: 1px solid #dcc69d;

  font-size: 12px;
}

/* =========================================================
   09 | タブレット
========================================================= */

@media (max-width: 900px) {
  .sf-end26__hero {
    display: block;

    min-height: 0;

    padding: 285px 30px 65px;
  }

  .sf-end26__hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    min-height: 420px;
  }

  .sf-end26__hero-copy {
    position: relative;

    width: min(100%, 690px);
    min-height: 0;
  }

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

  .sf-end26__theme-card:nth-child(even) {
    transform: none;
  }

  .sf-end26__first {
    margin-right: 30px;
    margin-left: 30px;
  }
}

/* =========================================================
   10 | スマートフォン
========================================================= */

@media (max-width: 640px) {
  .sf-end26__hero {
    padding: 195px 16px 54px;
  }

  .sf-end26__hero-photo {
    min-height: 290px;
  }

  .sf-end26__hero-copy {
    padding: 43px 27px;

    box-shadow: 9px 10px 0 rgba(63, 94, 75, 0.14);
  }

  .sf-end26__hero-copy::after {
    inset: 9px;
  }

  .sf-end26__handwriting {
    margin-top: 45px;

    font-size: 18px;
  }

  .sf-end26__hero h1 {
    font-size: 33px;
  }

  .sf-end26__hero-lead {
    font-size: 12px;
  }

  .sf-end26__hero-lead br {
    display: none;
  }

  .sf-end26__statement {
    padding: 78px 20px 84px;
  }

  .sf-end26__statement h2 {
    font-size: 30px;
  }

  .sf-end26__statement > p:last-child {
    font-size: 12px;
  }

  .sf-end26__themes {
    padding: 75px 17px 82px;
  }

  .sf-end26__section-heading {
    display: block;
  }

  .sf-end26__section-heading h2 {
    margin-top: 8px;

    font-size: 27px;
  }

  .sf-end26__section-heading > span {
    display: block;

    margin-top: 8px;
  }

  .sf-end26__theme-grid {
    gap: 9px;
  }

  .sf-end26__theme-card {
    min-height: 245px;

    padding: 21px 13px 45px;
  }

  .sf-end26__theme-number {
    font-size: 28px;
  }

  .sf-end26__theme-card small {
    margin-top: 14px;

    font-size: 8px;
  }

  .sf-end26__theme-card h3 {
    font-size: 17px;
  }

  .sf-end26__theme-card p {
    font-size: 11px;
  }

  .sf-end26__theme-card::after {
    left: 13px;
  }

  .sf-end26__note {
    gap: 12px;

    padding: 85px 20px;
  }

  .sf-end26__note-mark {
    font-size: 85px;
  }

  .sf-end26__note h2 {
    font-size: 25px;
  }

  .sf-end26__note div:last-child > p:last-child {
    font-size: 11px;
  }

  .sf-end26__first {
    grid-template-columns: 1fr;

    margin: 0 18px 75px;
  }

  .sf-end26__first-decoration {
    flex-direction: row;
    align-items: center;

    min-height: 93px;

    padding: 15px 25px;
  }

  .sf-end26__first-decoration > span {
    font-size: 61px;
  }

  .sf-end26__first-copy {
    padding: 30px 23px 36px;
  }

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

  .sf-end26__latest {
    padding: 75px 19px;
  }

  .sf-end26__latest-list a {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 10px;

    min-height: 108px;
  }

  .sf-end26__latest-list a > span:first-child {
    font-size: 25px;
  }

  .sf-end26__latest-list h3 {
    font-size: 15px;
  }

  .sf-end26__end {
    padding: 80px 20px;
  }
}

/* =========================================================
   11 | 動きを抑える設定
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sf-end26 *,
  .sf-end26 *::before,
  .sf-end26 *::after {
    transition: none !important;

    scroll-behavior: auto !important;
  }
}
