/* 全ページ共通：基本設定・ヘッダー・フッター・共通パーツ。
ページ固有のCSSは、各HTMLの該当セクション内に記述する。 */
:root {
  --ink: #40534d;
  --muted: #667870;
  --green: #b9cec3;
  --pale: #f1f6f2;
  --line: #d7e2da;
  --pink: #f5e8e5;
  --width: 1120px;
  --header-height: 117px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.container {
  width: min(var(--width), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px;
  background: white;
  z-index: 110;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: white;
}

.header-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  text-align: center;
  font-size: 12px;
  white-space: nowrap;
}

.nav-list span {
  display: block;
  font-size: 9px;
  letter-spacing: .13em;
  color: var(--muted);
}

.brand {
  text-align: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 25px;
  white-space: nowrap;
}

.brand small {
  display: block;
  font: 10px/1.5 Georgia, serif;
  letter-spacing: .25em;
}

.mobile-menu {
  display: none;
}

.section-label {
  margin: 0 0 8px;
  font: 12px/1.6 Georgia, serif;
  letter-spacing: .2em;
  color: var(--muted);
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 28px;
  border: 1px dashed #a8beb0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.section {
  padding-block: 64px;
  scroll-margin-top: 24px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .08em;
}

.section-soft {
  background: var(--pale);
}

.section-pink {
  background: var(--pink);
}

.site-footer {
  padding: 44px 0 24px;
  background: var(--pale);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 26px 0;
  font-size: 12px;
}

.copyright {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 960px) {
  :root {
    --header-height: 89px;
  }

  .header-inner {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    font-size: 22px;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    cursor: pointer;
    padding: 10px 0 10px 16px;
    font-size: 12px;
  }

  .mobile-menu nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    max-height: calc(100vh - var(--header-height) - 24px);
    max-height: calc(100dvh - var(--header-height) - 24px);
    overflow-y: auto;
    background: white;
    border: 1px solid var(--line);
    padding: 12px 20px;
    z-index: 2;
    box-shadow: 0 8px 20px #40534d12;
  }

  .mobile-menu a {
    display: block;
    padding: 9px 0;
    font-size: 13px;
  }

  .section {
    padding-block: 44px;
  }

}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 32px);
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}
