:root {
  --sdf-green: #137255;
  --sdf-ink: #202428;
  --sdf-muted: #747b80;
  --sdf-line: #e5e9e7;
  --sdf-paper: #f5f7f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--sdf-paper);
  color: var(--sdf-ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a {
  color: var(--sdf-green);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #c4933a;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.55;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(28px, 4.5vw, 48px);
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 20px;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sdf-wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px 70px;
}
.sdf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--sdf-muted);
  margin: 24px 0;
}
.sdf-breadcrumb a {
  text-decoration: none;
}
.sdf-eyebrow {
  display: block;
  color: var(--sdf-green);
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 800;
  margin-bottom: 12px;
}
.sdf-hero {
  padding: 36px 0 40px;
  max-width: 960px;
}
.sdf-hero h1 {
  margin-bottom: 24px;
}
.sdf-hero-index {
  max-width: none;
  background: #e8efe6;
  border-radius: 18px;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
  margin-bottom: 54px;
  border: 1px solid #dce7da;
}
.sdf-hero-index:after {
  content: "";
  position: absolute;
  right: -95px;
  top: -50px;
  border: 1px solid #cbdcc8;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
}
.sdf-lead {
  max-width: 780px;
  font-size: 17px;
  line-height: 2;
  white-space: pre-line;
  margin-bottom: 0;
}
.sdf-meta {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--sdf-muted);
  margin-bottom: 26px;
}
.sdf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.sdf-section-head h2 {
  margin: 0;
}
.sdf-section-head > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.sdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.sdf-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sdf-line);
}
.sdf-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.sdf-card:hover {
  border-color: #94b6a2;
}
.sdf-cover {
  aspect-ratio: 1.6;
  background: linear-gradient(135deg, #255d49, #bed2bb);
  display: grid;
  place-items: center;
  color: white;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.sdf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sdf-card-body {
  padding: 24px;
}
.sdf-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.sdf-card p {
  font-size: 14px;
  color: var(--sdf-muted);
  line-height: 1.9;
}
.sdf-card-link {
  color: var(--sdf-green);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--sdf-line);
  padding-top: 16px;
  margin-top: 18px;
}
.sdf-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(200px, 1fr);
  gap: 40px;
  align-items: start;
}
.sdf-toc {
  background: #e9f0e8;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 42px;
}
.sdf-toc h2 {
  font-size: 18px;
}
.sdf-toc ol {
  padding-left: 24px;
  margin-bottom: 0;
}
.sdf-toc li {
  margin: 10px 0;
  font-size: 14px;
}
.sdf-toc a {
  text-decoration: none;
}
.sdf-event {
  scroll-margin-top: 110px;
  background: white;
  padding: 36px;
  border: 1px solid var(--sdf-line);
  border-radius: 14px;
  margin-bottom: 32px;
}
.sdf-event-number {
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  color: #89aa95;
  margin-bottom: 20px;
}
.sdf-event h2 {
  font-size: 26px;
  margin-bottom: 24px;
}
.sdf-event h3 {
  font-size: 20px;
}
.sdf-event-image {
  margin: 0 0 26px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.sdf-event-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}
.sdf-event-image figcaption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #193e2ecc;
  color: white;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 4px;
}
.sdf-description {
  white-space: pre-line;
  line-height: 2.05;
}
.sdf-facts {
  border-top: 1px solid var(--sdf-line);
  margin: 24px 0;
}
.sdf-facts > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--sdf-line);
  padding: 14px 0;
  font-size: 14px;
}
.sdf-facts dt {
  color: var(--sdf-muted);
}
.sdf-facts dd {
  margin: 0;
}
.sdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 23px;
  background: var(--sdf-green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}
.sdf-button:hover {
  background: #0c513b;
  color: white;
}
.sdf-aside {
  position: sticky;
  top: 110px;
  border-top: 3px solid var(--sdf-green);
  padding-top: 22px;
}
.sdf-aside h2 {
  font-size: 17px;
}
.sdf-aside a {
  display: block;
  border-bottom: 1px solid var(--sdf-line);
  padding: 18px 0;
  font-size: 13px;
  text-decoration: none;
}
.sdf-guide {
  padding: 32px;
  background: #e8efe6;
  border-radius: 14px;
}
.sdf-guide h2 {
  font-size: 20px;
}
.sdf-guide p {
  white-space: pre-line;
}
.sdf-muted {
  color: var(--sdf-muted);
  font-size: 13px;
}
.sdf-notice {
  padding: 18px;
  background: #fff4d9;
  border-radius: 8px;
  font-size: 14px;
}
.sdf-empty {
  padding: 45px 30px;
  background: white;
  border: 1px solid var(--sdf-line);
  border-radius: 14px;
  margin: 30px 0;
}
.sdf-empty h2 {
  font-size: 22px;
}
.sdf-more {
  margin-top: 56px;
}
.sdf-footer {
  padding: 45px 20px;
  background: #163d2f;
  text-align: center;
  color: #e8f0e9;
  font-size: 13px;
}
.sdf-footer > a {
  color: inherit;
}
.sdf-footer > a:first-child {
  font-size: 23px;
  font-weight: bold;
  text-decoration: none;
}
.sdf-archive-list {
  padding: 0;
  list-style: none;
}
.sdf-archive-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--sdf-line);
  padding: 16px 0;
}
.sdf-archive-list span {
  color: var(--sdf-muted);
  font-size: 12px;
  white-space: nowrap;
}
.sdf-admin-table-wrap {
  overflow-x: auto;
}
.sdf-admin-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  background: #fff;
  font-size: 14px;
}
.sdf-admin-table th,
.sdf-admin-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--sdf-line);
  vertical-align: top;
}
.sdf-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sdf-admin-actions button {
  padding: 7px 12px;
  font-size: 12px;
}
.sdf-error {
  color: #9e2727;
  background: #fff0f0;
  padding: 16px;
  border-radius: 8px;
}
.sdf-flash {
  padding: 16px;
  background: #e3f1df;
  border-radius: 8px;
}
.sdf-admin-title {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sdf-preview {
  background: white;
  padding: 30px;
  border: 1px solid var(--sdf-line);
  border-radius: 14px;
  margin-top: 24px;
}
@media (max-width: 960px) {
  .sdf-grid {
    gap: 18px;
  }
  .sdf-card-body {
    padding: 20px;
  }
  .sdf-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sdf-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .sdf-aside h2 {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .sdf-wrap {
    padding: 0 18px 45px;
  }
  .sdf-breadcrumb {
    margin: 18px 0;
  }
  .sdf-hero {
    padding: 25px 0 32px;
  }
  .sdf-hero-index {
    padding: 34px 26px;
    margin-bottom: 35px;
  }
  .sdf-hero-index:after {
    right: -300px;
  }
  .sdf-hero h1 {
    font-size: 30px;
  }
  .sdf-lead {
    font-size: 15px;
  }
  .sdf-grid {
    grid-template-columns: 1fr;
  }
  .sdf-card h3 {
    font-size: 21px;
  }
  .sdf-section-head h2 {
    font-size: 21px;
  }
  .sdf-event {
    padding: 24px 20px;
  }
  .sdf-event h2 {
    font-size: 23px;
  }
  .sdf-event h3 {
    font-size: 18px;
  }
  .sdf-toc {
    padding: 24px;
  }
  .sdf-facts > div {
    grid-template-columns: 72px minmax(0, 1fr);
    font-size: 13px;
    gap: 8px;
  }
  .sdf-button {
    font-size: 13px;
    padding: 12px 16px;
    gap: 8px;
  }
  .sdf-guide {
    padding: 25px;
  }
  .sdf-more {
    margin-top: 40px;
  }
  .sdf-archive-list li {
    display: block;
  }
  .sdf-archive-list span {
    display: block;
    margin-top: 6px;
  }
}

/* トップページと共通の色・写真バナー・左右余白。特集の表紙はテーマ別に選択。 */
.sdf-wrap {
  width: 100%;
  max-width: none;
  padding: 0 clamp(12px, 3vw, 46px) 64px;
}
.sdf-banner {
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(5, 32, 24, 0.74),
      rgba(5, 32, 24, 0.45) 45%,
      rgba(5, 32, 24, 0.03)
    ),
    var(--sdf-banner) center 48% / cover no-repeat;
  background-color: #137255;
}
.sdf-banner-inner {
  min-height: 280px;
  padding: 38px clamp(16px, 3vw, 46px) 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.sdf-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  background: #ffffff1a;
  padding: 5px 12px;
}
.sdf-banner h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 16px 0 14px;
}
.sdf-banner p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: #f2f7f4;
}
.sdf-quick-wrap {
  position: relative;
  margin-top: -24px;
  padding: 0 clamp(12px, 3vw, 46px);
}
.sdf-quick-nav {
  display: flex;
  background: #fff;
  border: 1px solid #e5e9e7;
  border-radius: 16px;
  box-shadow: 0 8px 24px #123c2f0f;
  overflow: hidden;
}
.sdf-quick-nav > a {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  color: var(--sdf-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.sdf-quick-nav > a + a {
  border-left: 1px solid #edf1ef;
}
.sdf-quick-nav > a:hover {
  background: #f0f8f4;
}
.sdf-quick-nav > a > .bi:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: #e9f6f1;
  border-radius: 50%;
  color: var(--sdf-green);
  font-size: 19px;
}
.sdf-quick-nav small {
  white-space: nowrap;
  display: block;
  color: var(--sdf-muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 1px;
}
.sdf-quick-nav > a > .bi:last-child {
  margin-left: auto;
  font-size: 11px;
  color: #87968d;
}
.sdf-breadcrumb {
  margin: 22px 0 26px;
  color: #737f78;
  line-height: 1.5;
}
.sdf-more {
  margin-top: 44px;
  scroll-margin-top: 105px;
}
.sdf-first-section {
  margin-top: 0;
}
.sdf-section-head {
  align-items: center;
  margin-bottom: 20px;
}
.sdf-section-head h2 {
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.sdf-section-head p {
  font-size: 13px;
  color: var(--sdf-muted);
  margin: 7px 0 0;
}
.sdf-section-head > span {
  background: #e7f2ed;
  color: #137255;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0;
}
.sdf-section-head > a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sdf-grid {
  gap: 24px;
}
.sdf-card {
  border-radius: 18px;
  border: 1px solid #e5e9e7;
  box-shadow: 0 5px 18px #1f47380a;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.sdf-card:hover {
  transform: translateY(-3px);
  border-color: #c6ddd1;
  box-shadow: 0 12px 30px #1f473814;
}
.sdf-card > a {
  display: flex;
  flex-direction: column;
}
.sdf-cover {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 300px;
  isolation: isolate;
  background: #e4eee8;
  letter-spacing: 0;
  color: #137255;
}
.sdf-cover > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sdf-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(120deg, #edf7f0, #d1e7dd);
  font-size: 21px;
}
.sdf-cover-fallback > .bi {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
}
.sdf-cover-fallback small {
  font-size: 12px;
  font-weight: 500;
}
.sdf-theme-kids .sdf-cover-fallback {
  background: linear-gradient(120deg, #fff1dc, #f8dbad);
  color: #91631b;
}
.sdf-theme-free .sdf-cover-fallback {
  background: linear-gradient(120deg, #e4f6f7, #c5e6e9);
  color: #226b77;
}
.sdf-theme-christmas .sdf-cover-fallback {
  background: linear-gradient(120deg, #285948, #123d2e);
  color: #fff0d0;
}
.sdf-theme-monthly .sdf-cover-fallback {
  background: linear-gradient(120deg, #edf0f6, #d5dfed);
  color: #415978;
}
.sdf-theme-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #fffffff5;
  color: #0c4736;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  box-shadow: 0 2px 10px #0000000d;
}
.sdf-cover-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: #122d25c9;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}
.sdf-cover:has(img[hidden]) .sdf-cover-credit {
  display: none;
}
.sdf-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 19px 22px 20px;
}
.sdf-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: #717d76;
  margin-bottom: 10px;
}
.sdf-card-meta > span:last-child {
  color: #137255;
  font-weight: 700;
  white-space: nowrap;
}
.sdf-card h3 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 10px;
}
.sdf-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7770;
  margin: 0 0 20px;
}
.sdf-card-link {
  margin-top: auto;
  border: 0;
  padding: 0;
  align-items: center;
  font-size: 13px;
  color: #137255;
}
.sdf-card-link > .bi {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf6f1;
  font-size: 15px;
}
.sdf-hero {
  max-width: 1050px;
  padding: 14px 0 32px;
}
.sdf-hero h1 {
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.sdf-hero .sdf-eyebrow {
  letter-spacing: 0;
  font-size: 13px;
}
.sdf-meta {
  margin-bottom: 18px;
}
.sdf-lead {
  font-size: 16px;
  line-height: 1.9;
  max-width: 920px;
  color: #59655e;
}
.sdf-article-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
  max-width: 1440px;
  gap: 36px;
}
.sdf-toc {
  background: #fff;
  border: 1px solid #e5e9e7;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.sdf-toc h2 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
}
.sdf-toc ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  margin-top: 0;
}
.sdf-toc li {
  margin: 7px 0;
  line-height: 1.6;
}
.sdf-event {
  padding: 28px 32px;
  border-radius: 18px;
  position: relative;
}
.sdf-event-number {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 27px;
  color: #c9dad0;
  font-weight: 800;
}
.sdf-event > .sdf-eyebrow {
  letter-spacing: 0;
  margin-bottom: 8px;
  padding-right: 50px;
}
.sdf-event h2 {
  font-size: 25px;
  margin-bottom: 20px;
  padding-right: 30px;
}
.sdf-event-image img {
  max-height: 440px;
}
.sdf-guide {
  background: #e9f6f1;
}
.sdf-aside {
  top: 110px;
}
.sdf-footer {
  background: #102c22;
  padding: 40px 20px;
}
@media (min-width: 1700px) {
  .sdf-card-body {
    padding: 22px 25px;
  }
  .sdf-card p {
    font-size: 14px;
  }
}
@media (max-width: 1000px) {
  .sdf-quick-nav > a {
    padding: 15px 14px;
    gap: 8px;
  }
  .sdf-quick-nav > a > .bi:first-child {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .sdf-quick-nav small {
    font-size: 10px;
  }
  .sdf-grid {
    gap: 18px;
  }
  .sdf-card-body {
    padding: 17px;
  }
  .sdf-card h3 {
    font-size: 18px;
  }
  .sdf-card-meta {
    font-size: 11px;
  }
  .sdf-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sdf-aside {
    position: static;
  }
}
@media (max-width: 767px) {
  .sdf-banner-inner {
    min-height: 242px;
    padding: 30px 18px 48px;
  }
  .sdf-banner h1 {
    font-size: 32px;
  }
  .sdf-banner p {
    font-size: 13px;
  }
  .sdf-banner {
    background-position:
      center,
      62% center;
  }
  .sdf-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }
  .sdf-quick-nav > a {
    padding: 13px 12px;
    font-size: 13px;
  }
  .sdf-quick-nav > a:nth-child(odd) {
    border-left: 0;
  }
  .sdf-quick-nav > a:nth-child(n + 3) {
    border-top: 1px solid #edf1ef;
  }
  .sdf-quick-nav small {
    font-size: 10px;
  }
  .sdf-breadcrumb {
    font-size: 11px;
    margin: 20px 0 24px;
  }
  .sdf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sdf-section-head h2 {
    font-size: 23px;
  }
  .sdf-section-head p {
    font-size: 12px;
  }
  .sdf-card h3 {
    font-size: 18px;
  }
  .sdf-theme-tag {
    left: 10px;
    top: 10px;
    font-size: 11px;
    padding: 4px 10px;
  }
  .sdf-more {
    margin-top: 32px;
  }
  .sdf-first-section {
    margin-top: 0;
  }
  .sdf-wrap {
    padding-bottom: 42px;
  }
  .sdf-hero {
    padding-top: 4px;
  }
  .sdf-hero h1 {
    font-size: 28px;
  }
  .sdf-lead {
    font-size: 14px;
  }
  .sdf-meta {
    font-size: 12px;
  }
  .sdf-event {
    padding: 24px 20px;
  }
  .sdf-event h2 {
    font-size: 22px;
  }
  .sdf-toc ol {
    grid-template-columns: 1fr;
  }
  .sdf-toc {
    padding: 22px;
  }
  .sdf-article-layout {
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .sdf-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sdf-cover {
    aspect-ratio: 1.8;
  }
  .sdf-card-body {
    padding: 18px 20px;
  }
  .sdf-card h3 {
    font-size: 20px;
  }
  .sdf-card-meta {
    font-size: 12px;
  }
  .sdf-card p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .sdf-section-head {
    margin-bottom: 16px;
  }
  .sdf-section-head p {
    max-width: 270px;
  }
  .sdf-banner h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sdf-card {
    transition: none;
  }
  .sdf-card:hover {
    transform: none;
  }
}

/* 詳細も index.php / 特集トップの .page-wrap と同じ可変幅・左右余白を使う。
   本文・カード内余白・見出しは event.php の既存指定に合わせる。 */
.sdf-detail .sdf-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(12px, 3vw, 46px) 64px;
}
.sdf-detail .sdf-breadcrumb {
  font-size: 0.82rem;
  margin: 24px 0 28px;
}
.sdf-detail .sdf-hero {
  max-width: none;
  padding: 0 0 32px;
}
.sdf-heading-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.sdf-heading-top .sdf-eyebrow {
  margin: 0;
  letter-spacing: 0;
}
.sdf-heading-top > a {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sdf-detail .sdf-hero h1 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.45;
  margin-bottom: 20px;
}
.sdf-detail .sdf-meta {
  font-size: 0.82rem;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.sdf-detail .sdf-item-count {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e5f3ec;
  color: #137255;
  font-size: 0.82rem;
  font-weight: 700;
}
.sdf-detail .sdf-lead {
  max-width: 850px;
  font-size: 1rem;
  line-height: 1.9;
}
.sdf-detail .sdf-article-layout {
  display: block;
  max-width: none;
  margin: 0;
}
.sdf-detail .sdf-article {
  min-width: 0;
}
.sdf-detail .sdf-toc {
  padding: clamp(22px, 3vw, 38px);
  background: #fff;
  border: 1px solid #e5e9e7;
  border-radius: 22px;
  margin: 0 0 24px;
}
.sdf-detail .sdf-toc summary {
  list-style: none;
  cursor: pointer;
  border-radius: 6px;
}
.sdf-detail .sdf-toc summary::-webkit-details-marker {
  display: none;
}
.sdf-detail .sdf-toc summary::marker {
  content: "";
}
.sdf-detail .sdf-toc summary:focus-visible {
  outline: 3px solid #c4933a;
  outline-offset: 5px;
}
.sdf-detail .sdf-toc summary h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 900;
  margin: 0;
}
.sdf-detail .sdf-toc summary h2 > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: #137255;
  font-size: 0.82rem;
  font-weight: 700;
}
.sdf-detail .sdf-toc summary .bi {
  color: #137255;
  font-size: 0.82rem;
}
.sdf-detail .sdf-toc[open] > summary {
  margin-bottom: 20px;
}
.sdf-detail .sdf-toc[open] > summary .bi {
  transform: rotate(180deg);
}
.sdf-detail .sdf-toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdf-detail .sdf-toc li {
  margin: 0;
  min-width: 0;
}
.sdf-detail .sdf-toc a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 14px;
  background: #f5f8f6;
  border-radius: 10px;
  color: #263d31;
  line-height: 1.7;
  font-size: 1rem;
}
.sdf-detail .sdf-toc a:hover {
  background: #e9f4ee;
}
.sdf-toc-number {
  font-size: 1rem;
  font-weight: 800;
  color: #137255;
  align-self: flex-start;
  line-height: 1.7;
}
.sdf-toc-label {
  min-width: 0;
  flex: 1;
}
.sdf-toc-label > .sdf-toc-title {
  display: block;
  font-weight: 700;
}
.sdf-toc-label > .sdf-toc-venue {
  display: block;
  color: #137255;
  font-weight: 800;
  margin-bottom: 6px;
}
.sdf-toc-label small {
  display: block;
  color: #748178;
  font-size: 0.82rem;
  margin-top: 6px;
}
.sdf-detail .sdf-toc a > .bi {
  font-size: 0.75rem;
  color: #8e9c93;
  flex: none;
  align-self: center;
}
.sdf-detail .sdf-event {
  padding: clamp(22px, 3vw, 38px);
  margin: 0 0 24px;
  border-radius: 22px;
  box-shadow: 0 8px 32px #00000008;
}
.sdf-event-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.sdf-event-heading > div {
  min-width: 0;
  flex: 1;
}
.sdf-detail .sdf-event-number {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e9f5ee;
  color: #137255;
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  line-height: 1;
}
.sdf-detail .sdf-event-heading .sdf-eyebrow {
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 5px;
}
.sdf-detail .sdf-event h2 {
  padding: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.5;
  margin: 0;
}
.sdf-event-venue {
  display: block;
  color: #137255;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 7px;
}
.sdf-event-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}
.sdf-detail .sdf-event-image {
  width: 100%;
  aspect-ratio: 8/5;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #edf2ee;
  align-self: start;
}
.sdf-detail .sdf-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.sdf-detail .sdf-event-image figcaption {
  font-size: 0.75rem;
}
.sdf-event-content {
  min-width: 0;
}
.sdf-detail .sdf-event h3 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}
.sdf-detail .sdf-description {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 22px;
}
.sdf-detail .sdf-facts {
  margin: 0 0 22px;
}
.sdf-detail .sdf-facts > div {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  font-size: 0.95rem;
  line-height: 1.8;
}
.sdf-detail .sdf-facts dt {
  font-size: 0.82rem;
  font-weight: 800;
  color: #6d7b72;
}
.sdf-detail .sdf-button {
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 19px;
  border-radius: 14px;
  font-weight: 900;
  text-align: left;
}
.sdf-detail .sdf-button > span {
  flex: none;
}
.sdf-detail .sdf-event--no-image .sdf-event-body {
  grid-template-columns: minmax(0, 1fr);
}
.sdf-detail .sdf-guide {
  padding: clamp(22px, 3vw, 38px);
  margin-top: 4px;
  border-radius: 22px;
}
.sdf-detail .sdf-guide h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.sdf-detail .sdf-guide p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.sdf-detail .sdf-guide .sdf-muted {
  font-size: 0.875rem;
}
.sdf-detail .sdf-guide p:last-child {
  margin-bottom: 0;
}
.sdf-detail-explore {
  margin-top: 32px;
}
.sdf-detail-explore h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.sdf-detail-explore > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sdf-detail-explore a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.sdf-detail-explore a:hover {
  background: #eaf5ef;
}
.sdf-detail .sdf-more {
  margin-top: 40px;
}
@media (max-width: 1100px) {
  .sdf-detail .sdf-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .sdf-event-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sdf-detail .sdf-event-image {
    max-width: none;
    aspect-ratio: 16/9;
  }
  .sdf-detail-explore > div {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767.98px) {
  .sdf-detail .sdf-wrap {
    padding-bottom: 42px;
  }
  .sdf-detail .sdf-breadcrumb {
    margin: 20px 0 24px;
  }
  .sdf-detail .sdf-hero {
    padding-bottom: 24px;
  }
  .sdf-detail .sdf-hero h1 {
    font-size: 28px;
    margin-bottom: 18px;
  }
  .sdf-detail .sdf-toc,
  .sdf-detail .sdf-event,
  .sdf-detail .sdf-guide {
    padding: 21px;
    border-radius: 17px;
  }
  .sdf-detail .sdf-toc {
    margin-bottom: 24px;
  }
  .sdf-detail .sdf-toc summary h2 {
    font-size: 1rem;
  }
  .sdf-detail .sdf-event {
    margin-bottom: 24px;
  }
  .sdf-detail .sdf-event-image {
    border-radius: 12px;
  }
  .sdf-detail .sdf-facts > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .sdf-detail .sdf-button {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .sdf-heading-top {
    gap: 12px;
    margin-bottom: 14px;
  }
  .sdf-detail .sdf-toc ol {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sdf-detail .sdf-toc a {
    padding: 12px;
  }
  .sdf-detail-explore > div {
    gap: 10px;
  }
  .sdf-detail-explore a {
    padding: 12px;
    font-size: 0.875rem;
  }
}

/* Weekly guide / additional themes — 2026-11-14 */
.sdf-quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sdf-quick-nav > a {
  border: 0;
  border-right: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
}
.sdf-quick-nav > a + a {
  border-left: 0;
}
.sdf-quick-nav > a:nth-child(4n) {
  border-right: 0;
}
.sdf-quick-nav small {
  white-space: normal;
}
.sdf-weekly-section {
  scroll-margin-top: 100px;
}
.sdf-weekly-section .sdf-eyebrow {
  margin-bottom: 6px;
}
.sdf-weekly-grid .sdf-card > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
}
.sdf-weekly-grid .sdf-cover {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
}
.sdf-weekly-grid .sdf-card-body {
  padding: 28px 32px;
}
.sdf-weekly-grid .sdf-card h3 {
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.6;
}
.sdf-theme-weekly .sdf-cover-fallback {
  background: linear-gradient(125deg, #123e31, #34785c);
  color: #fff6d7;
}
.sdf-theme-indoor .sdf-cover-fallback {
  background: linear-gradient(125deg, #e9e5fa, #d8daf2);
  color: #544880;
}
.sdf-theme-ending-soon .sdf-cover-fallback {
  background: linear-gradient(125deg, #fff1df, #f5d9b3);
  color: #82521d;
}
.sdf-selection-reason {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf5ef;
  border: 1px solid #d6e6da;
  color: #205a3d;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.sdf-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sdf-detail .sdf-button-secondary {
  background: #f1f7f3;
  color: #185a3c;
  border: 1px solid #cadfcf;
}
.sdf-detail .sdf-button-secondary:hover {
  background: #e2efe6;
}
@media (max-width: 1000px) {
  .sdf-quick-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sdf-quick-nav > a:nth-child(4n) {
    border-right: 1px solid #edf1ef;
  }
  .sdf-quick-nav > a:nth-child(3n) {
    border-right: 0;
  }
}
@media (max-width: 767px) {
  .sdf-quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sdf-quick-nav > a:nth-child(3n) {
    border-right: 1px solid #edf1ef;
  }
  .sdf-quick-nav > a:nth-child(2n) {
    border-right: 0;
  }
  .sdf-weekly-grid .sdf-card > a {
    grid-template-columns: 1fr;
  }
  .sdf-weekly-grid .sdf-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.8;
  }
  .sdf-weekly-grid .sdf-card-body {
    padding: 22px;
  }
  .sdf-weekly-grid .sdf-card h3 {
    font-size: 22px;
  }
  .sdf-event-actions {
    flex-direction: column;
  }
}

.sdf-title-chunk,
.sdf-weekly-title-dates > span {
  display: inline-block;
  white-space: nowrap;
}
.sdf-weekly-title-dates {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.72em;
  line-height: 1.7;
  color: #51695c;
  letter-spacing: 0;
}
