/* The homepage uses its own document template. All presentation stays within it. */
body.svh-page {
  --svh-paper: #faf9f6;
  --svh-ink: #182b28;
  --svh-accent: #a7411b;
  --svh-line: #c1c9c2;
  --svh-sage: #e6eeea;
  --svh-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --svh-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "MS PMincho", serif;
  --svh-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--svh-ink);
  background: var(--svh-paper);
}

.svh-shell,
.svh-shell *,
.svh-shell *::before,
.svh-shell *::after { box-sizing: border-box; }

.svh-shell {
  width: 100%;
  font: 1rem/1.65 var(--svh-serif);
  letter-spacing: .015em;
  line-break: strict;
  -webkit-text-size-adjust: 100%;
}

.svh-shell :is(h1, h2, h3, p, nav, figure, aside) { margin: 0; }
.svh-shell img { display: block; max-width: 100%; }
.svh-shell a { color: inherit; text-decoration: none; }
.svh-shell :is(a, summary):focus-visible,
.svh-skip:focus-visible { outline: 3px solid #a5421d; outline-offset: 4px; }
.svh-shell a:hover :is(.svh-article-title, strong),
.svh-shell :is(a.svh-topic, a.svh-guide-link, .svh-nav a, .svh-mobile-nav a, .svh-footer a):hover {
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .23em;
}

.svh-page .svh-skip {
  position: absolute; inset: .75rem auto auto .75rem; z-index: 100001;
  width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
}
.svh-page .svh-skip:focus {
  width: auto; height: auto; padding: .6rem 1rem; overflow: visible; clip-path: none;
  color: white; background: #153a34;
}
.svh-header { position: relative; z-index: 3; background: var(--svh-paper); }
.svh-header-inner,
.svh-container,
.svh-footer-inner {
  width: min(calc(100% - 2 * var(--svh-gutter)), 78rem);
  margin-inline: auto;
}
.svh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: clamp(4.5rem, 6.4vw, 6rem); }
.svh-brand-heading { min-width: 0; font: inherit; }
.svh-brand {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 650 clamp(1.25rem, 2vw, 1.95rem)/1.4 var(--svh-serif);
  letter-spacing: .035em;
}
.svh-mark { width: 2.65rem; height: 1.85rem; display: inline-block; position: relative; flex: none; }
.svh-mark i { position: absolute; top: 53%; left: 0; width: 2.3rem; height: .21rem; background: #1e3933; border-radius: .05rem; transform: rotate(-38deg); }
.svh-mark i + i { left: .77rem; top: 49%; width: 2.16rem; background: var(--svh-accent); }
.svh-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 2.6vw, 2.5rem); font-size: clamp(.87rem, 1.15vw, 1.06rem); font-weight: 600; }
.svh-menu { display: none; }

.svh-hero {
  position: relative; isolation: isolate; display: grid; align-content: center;
  min-height: clamp(22rem, 40vw, 60rem); color: white; background: #3c3830;
}
.svh-hero-media { position: absolute; inset: 0; z-index: -2; }
.svh-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 60% 56%; }
.svh-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(11 21 18 / 65%), rgb(17 23 21 / 32%) 38%, transparent 70%);
}
.svh-hero-copy { width: min(calc(100% - 2 * var(--svh-gutter)), 78rem); margin: 0 auto; padding: 3.5rem 0; }
.svh-hero .svh-hero-title {
  max-width: 14em; font: 550 clamp(2.6rem, 4.6vw, 4.75rem)/1.3 var(--svh-serif);
  letter-spacing: .045em; color: white; text-shadow: 0 1px 4px #12181350;
}
.svh-hero .svh-hero-desc { max-width: 30em; margin-top: 1.45rem; font-size: clamp(.93rem, 1.23vw, 1.18rem); color: white; text-shadow: 0 1px 3px #15201b80; }

.svh-topics {
  display: flex; align-items: center; margin-block: clamp(1.8rem, 3.3vw, 3.4rem) 0;
  padding-block: .6rem; border-block: 1px solid #9aa8a0;
}
.svh-topics-title { flex: none; padding-inline: clamp(.65rem, 2.5vw, 2.5rem); border-inline-end: 2px solid var(--svh-accent); font: 650 clamp(1.05rem, 1.65vw, 1.4rem)/1.5 var(--svh-serif); }
.svh-topic-list { flex: 1; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
.svh-topic { min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .4rem; font-size: clamp(1rem, 1.55vw, 1.36rem); font-weight: 600; }
.svh-articles, .svh-resources { margin-top: clamp(3.4rem, 6.1vw, 6.3rem); }
.svh-section-title {
  display: flex; align-items: baseline; gap: .6em;
  font: 650 clamp(1.63rem, 2.65vw, 2.55rem)/1.45 var(--svh-serif); letter-spacing: .025em;
}
.svh-section-title::before { content: ""; width: .17em; height: .96em; align-self: center; flex: none; background: var(--svh-accent); }
.svh-article-grid {
  margin-top: clamp(1.25rem, 2.4vw, 2rem); display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(1.15rem, 2.25vw, 2.2rem);
}
.svh-article { min-width: 0; }
.svh-article-link { display: grid; align-items: center; gap: .8rem; width: 100%; }
.svh-article-photo, .svh-resource-photo { width: 100%; height: auto; object-fit: cover; border-radius: .22rem; }
.svh-article-photo { aspect-ratio: 1.65; }
.svh-article-title { font: 650 clamp(1.08rem, 1.8vw, 1.65rem)/1.55 var(--svh-serif); overflow-wrap: anywhere; }
.svh-lead { grid-row: 1 / span 2; }
.svh-lead .svh-article-title { font-size: clamp(1.33rem, 2.3vw, 2.05rem); }
.svh-secondary .svh-article-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.8rem, 1.7vw, 1.6rem); }
.svh-secondary .svh-article-photo { aspect-ratio: 1.52; }
.svh-article-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.svh-article-grid[data-count="1"] .svh-lead { grid-row: auto; }
.svh-article-grid[data-count="1"] .svh-article-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); }
.svh-article-grid[data-count="2"] { align-items: start; }
.svh-article-grid[data-count="2"] .svh-lead { grid-row: auto; }
.svh-article-grid[data-count="2"] .svh-secondary .svh-article-link { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.svh-article-grid[data-count="2"] .svh-secondary .svh-article-photo { aspect-ratio: 1.65; }

.svh-resources {
  padding: clamp(1.5rem, 3vw, 3rem); background: var(--svh-sage);
  border-radius: .28rem;
}
.svh-resource-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start;
  margin-top: clamp(1.1rem, 1.9vw, 1.7rem); gap: clamp(1.5rem, 3.3vw, 3.2rem);
}
.svh-resource-photo { aspect-ratio: 2.1; }
.svh-resource-list { display: flex; flex-direction: column; }
.svh-resource-link { display: block; padding: .78rem .1rem; border-bottom: 1px solid #b5c3bb; }
.svh-resource-link:first-child { padding-top: 0; }
.svh-resource-link strong { display: block; font-size: clamp(1.06rem, 1.68vw, 1.5rem); line-height: 1.45; }
.svh-resource-link span { display: block; margin-top: .16rem; font: 400 clamp(.78rem, 1vw, .94rem)/1.65 var(--svh-sans); }
.svh-shell .svh-guide-link { align-self: flex-start; margin-block-start: .9rem; padding-block: .3rem; color: var(--svh-accent); font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.svh-shell .svh-guide-standalone { padding-block: clamp(2.25rem, 4.8vw, 4.25rem) 1.2rem; }
.svh-shell .svh-ad { margin-top: clamp(3.5rem, 6.2vw, 6.5rem); }
.svh-ad-label { margin-bottom: .3rem; font: 500 .85rem/1.5 var(--svh-sans); color: #49554f; }
.svh-ad-slot { max-width: 100%; }
.svh-ad-slot:empty, .svh-ad-placeholder { min-height: clamp(4.5rem, 6.5vw, 6.5rem); border: 1px solid #b6bcb6; }
.svh-ad-slot img, .svh-ad-slot iframe { max-width: 100%; }
.svh-footer { margin-top: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--svh-line); }
.svh-footer-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.svh-footer-inner nav { display: flex; justify-content: center; flex-wrap: wrap; }
.svh-footer-inner :is(a, .svh-preview-link) { padding: 1rem; }

@media (max-width: 48rem) {
  .svh-header-inner { min-height: 4.15rem; gap: .8rem; }
  .svh-brand { gap: .54rem; font-size: clamp(1.03rem, 4.25vw, 1.35rem); }
  .svh-mark { width: 1.9rem; height: 1.35rem; }
  .svh-mark i { width: 1.65rem; height: .16rem; }
  .svh-mark i + i { left: .55rem; width: 1.55rem; }
  .svh-nav { display: none; }
  .svh-menu { display: block; position: relative; }
  .svh-menu-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; list-style: none;
  }
  .svh-menu-toggle::-webkit-details-marker { display: none; }
  .svh-menu-icon { position: relative; display: block; width: 1.45rem; height: 1rem; border-block: 1.5px solid; }
  .svh-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .75px); border-top: 1.5px solid; }
  .svh-mobile-nav { position: absolute; inset: calc(100% + .25rem) 0 auto auto; min-width: 12rem; padding: .45rem .9rem; background: var(--svh-paper); color: var(--svh-ink); border: 1px solid var(--svh-line); }
  .svh-mobile-nav :is(a, .svh-preview-link) { display: block; padding: .7rem .35rem; font-size: .92rem; }
  .svh-hero { grid-template-rows: clamp(18.75rem, 85vw, 29rem) auto; min-height: 0; align-content: initial; color: var(--svh-ink); background: var(--svh-paper); }
  .svh-hero-media, .svh-hero::after { position: relative; inset: auto; grid-area: 1 / 1; }
  .svh-hero-media { z-index: 0; min-height: 0; }
  .svh-hero-photo { object-position: 74% 62%; }
  .svh-hero::after { z-index: 1; background: linear-gradient(158deg, rgb(12 18 16 / 74%), rgb(12 18 16 / 28%) 37%, transparent 62%); }
  .svh-hero-copy { display: contents; }
  .svh-hero .svh-hero-title { grid-area: 1 / 1; z-index: 2; align-self: start; margin: clamp(1.65rem, 7vw, 2.8rem) var(--svh-gutter); font-size: clamp(2rem, 7.7vw, 3.4rem); line-height: 1.38; }
  .svh-hero .svh-hero-desc { grid-area: 2 / 1; max-width: none; margin: 0; padding: 1rem var(--svh-gutter) 0; color: var(--svh-ink); text-shadow: none; font-size: .92rem; }
  .svh-topics { display: block; margin-top: 2.75rem; padding: 0; border: 0; }
  .svh-topics-title { display: flex; align-items: center; gap: .6em; padding: 0; border: 0; font: 650 clamp(1.5rem, 5.3vw, 1.85rem)/1.45 var(--svh-serif); }
  .svh-topics-title::before { content: ""; width: .17em; height: .96em; background: var(--svh-accent); }
  .svh-topic-list { margin-top: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; border-top: 1px solid #9aa8a0; }
  .svh-topic { justify-content: space-between; gap: .5rem; min-height: 3.45rem; padding: .55rem .75rem; border-bottom: 1px solid var(--svh-line); }
  .svh-topic:nth-child(odd) { border-inline-end: 1px solid var(--svh-line); }
  .svh-topic::after { content: ""; display: inline-block; flex: none; width: .45rem; height: .45rem; border-block-start: 1.5px solid var(--svh-accent); border-inline-end: 1.5px solid var(--svh-accent); transform: rotate(45deg); }
  .svh-articles, .svh-resources { margin-top: 3.65rem; }
  .svh-section-title { font-size: clamp(1.48rem, 5.3vw, 1.85rem); }
  .svh-article-grid { display: flex; flex-direction: column; gap: 1.3rem; }
  .svh-article-grid .svh-lead .svh-article-link { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .svh-lead .svh-article-title { font-size: 1.34rem; }
  .svh-article-grid[data-count] .svh-secondary .svh-article-link { grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr); gap: 1rem; }
  .svh-article-grid[data-count] .svh-secondary .svh-article-photo { aspect-ratio: 1.3; }
  .svh-secondary .svh-article-title { font-size: 1.02rem; }
  .svh-resources { padding: 1.45rem clamp(1rem, 4.2vw, 1.65rem); }
  .svh-resource-grid { display: block; }
  .svh-resource-photo { aspect-ratio: 2.15; margin-bottom: 1.35rem; }
  .svh-resource-link { padding: .8rem 0; }
  .svh-resource-link strong { font-size: 1.12rem; }
  .svh-resource-link span { font-size: .81rem; }
  .svh-shell .svh-guide-link { margin-block-start: 1.1rem; }
  .svh-shell .svh-ad { margin-top: 3.4rem; }
  .svh-ad-slot:empty, .svh-ad-placeholder { min-height: 4.75rem; }
  .svh-footer { margin-top: 2.65rem; padding-block: .6rem; }
  .svh-footer-inner { font-size: .78rem; }
  .svh-footer-inner :is(a, .svh-preview-link) { padding: .65rem .6rem; }
}

@media (forced-colors: active) {
  .svh-hero .svh-hero-title, .svh-hero .svh-hero-desc { background: Canvas; color: CanvasText; text-shadow: none; }
  .svh-topics-title::before, .svh-section-title::before, .svh-mark i { background: CanvasText; }
}
