:root {
  --ink: #162938;
  --white: #fff;
  --light-gray: #eee;
  --gray: #b6babe;
  --offwhite: #f1f1f3;
  --indigo-blue: #1c43c9;
  --link-blue: #3c8ac4;
  --nav-active: #5c98c7;
  --design-width: 1440px;
  --page-max: 1340px;
  --side: 50px;
  --subpage-sidebar: 362px;
  --subpage-gap: 60px;
  --sans: "A-OTF Gothic MB101 Pr6", "a-otf-gothic-mb101-pr6", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --latin: "Inter", sans-serif;
}

/* ---- リセット・基底 ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html {
  background: var(--white);
}

body {
  font-family: var(--sans);
  font-feature-settings: "palt";
  font-synthesis-weight: none;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--indigo-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible {
  outline-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.u-sp-break {
  display: none;
}

/* ============================================================
   ヒーロー（下層用：青グラデ＋下端カーブ）
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  height: 600px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- パンくず・タイトル ---- */
.hero__copy {
  position: absolute;
  top: 202px;
  left: 50px;
  z-index: 2;
  margin: 0;
  color: var(--white);
}

.hero__crumb {
  margin: 0 0 62px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero__crumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

.hero__crumb a {
  color: inherit;
}

.hero__crumb a:hover {
  text-decoration: underline;
}

.hero__title {
  font-family: var(--sans);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero__latin {
  font-family: var(--latin);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
}

/* ============================================================
   ページ本体
   ============================================================ */
main.page {
  position: relative;
  z-index: 10;
  width: var(--design-width);
  margin: 0 auto;
  padding: 0 var(--side) 120px;
}

/* ---- リード ---- */
.lead {
  max-width: 790px;
  padding: 0 0 80px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--ink);
}

.lead p {
  margin: 0 0 0.3em;
}

.lead p:last-child {
  margin-bottom: 0;
}

/* ---- 2カラム（サイドナビ＋本文） ---- */
.body-wrap {
  display: grid;
  grid-template-columns: var(--subpage-sidebar) minmax(0, 1fr);
  gap: var(--subpage-gap);
  align-items: start;
  margin-bottom: 200px;
}

/* ---- サイドナビ ---- */
.side-nav {
  position: sticky;
  top: 136px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 24px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav__item:hover {
  background: var(--offwhite);
}

.side-nav__item.is-current {
  background: var(--nav-active);
  color: var(--white);
  box-shadow: none;
}

.side-nav__arrow {
  font-family: var(--latin);
  font-size: 22px;
  font-weight: 700;
  display: inline-block;
  transform: rotate(180deg);
  color: inherit;
  line-height: 1;
}

/* ============================================================
   本文ブロック
   ============================================================ */
.body {
  min-width: 0;
  max-width: 790px;
}

.block {
  position: relative;
  padding: 70px 0 0;
}

.block + .block {
  margin-top: 70px;
}

.block:not(.block--intro)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--light-gray);
}

.block:not(.block--intro)::after {
  display: none;
}

.block__title {
  position: relative;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 32px;
  padding-left: 41px;
}

.block__title::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted-blue);
  content: "";
}

.block__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink);
}

.block__text p {
  margin: 0 0 1.4em;
}

.block__text p:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  text-decoration: none;
}

/* ---- 1ブロック目（イントロ：写真＋導入文・タイトル無し） ---- */
.block--intro {
  padding-top: 70px;
}

.block--intro::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--light-gray);
  content: "";
}

.block--intro .block__visual {
  margin: 0 0 40px;
  overflow: hidden;
}

.block--intro .block__visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ---- 箇条書き ---- */
.block__bullets {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
}

.block__bullets li {
  position: relative;
  padding-left: 1em;
  margin: 0 0 0.4em;
  font-size: 18px;
  line-height: 1.9;
}

.block__bullets li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: inherit;
}

/* Typekit 読込中はチラつき防止 */
.wf-loading .hero__title,
.wf-loading .block__title {
  opacity: 0;
}

@media (max-width: 1023px) {
  :root {
    --side: clamp(20px, 6vw, 28px);
    --subpage-gap: 32px;
  }

  html,
  body {
    overscroll-behavior: none;
  }

  .hero {
    width: 100%;
    margin-inline: 0;
    height: clamp(340px, 48svh, 390px);
  }

  .hero__copy {
    top: clamp(136px, 18svh, 156px);
    right: 22px;
    bottom: auto;
    left: 22px;
    margin: 0;
  }

  .hero__crumb {
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.6;
  }

  .hero__title {
    font-size: clamp(30px, 8.4vw, 38px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .hero__latin {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  main.page {
    width: 100%;
    max-width: var(--page-max);
    padding: 42px var(--side) 80px;
  }

  .body-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 96px;
  }

  .side-nav {
    position: static;
    order: 2;
    gap: 10px;
  }

  .body {
    order: 1;
  }

  .side-nav__item {
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .block__title {
    font-size: 22px;
    padding-left: 0;
  }

  .block__title::before {
    display: none;
  }

  .block:not(.block--intro)::after {
    top: -10px;
  }
}

@media (max-width: 640px) {
  .hero {
    height: min(390px, 52svh);
    min-height: 340px;
  }

  .hero__bg {
    width: 100%;
    min-width: 0;
  }

  .hero__arch {
    transform: translateY(26px);
  }

  .hero__crumb {
    margin-bottom: 18px;
  }

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

  .lead,
  .page-summary {
    max-width: 100%;
    padding-bottom: 54px;
    font-size: 16px;
    line-height: 1.85;
  }

  .body,
  .block__text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.9;
  }

  .block__bullets li {
    font-size: 16px;
  }

  .block {
    padding-top: 46px;
  }

  .block + .block {
    margin-top: 46px;
  }

  .block--intro {
    padding-top: 46px;
  }

  .block--intro .block__visual {
    margin-bottom: 28px;
    border-radius: 4px;
  }

  .block--intro .block__visual img {
    height: auto;
    aspect-ratio: 1.22;
  }
}
