:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --text: #1c1c1a;
  --body-text: #292925;
  --muted: #686862;
  --line: #e2dfd8;
  --hover: #eae7e0;
  --footer: #20201e;
  --header-height: 72px;
  --anchor-gap: 22px;
  --anchor-offset: 54px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; overflow-x: clip; background: var(--bg); scroll-behavior: smooth; }
body {
  width: 100%;
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html.menu-open, body.menu-open { overflow: hidden; overscroll-behavior: none; }
body.menu-open { position: fixed; top: var(--menu-scroll-offset, 0); right: 0; left: 0; }
a { color: inherit; overflow-wrap: anywhere; text-decoration-thickness: 0.055em; text-underline-offset: 0.2em; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  background: rgba(248, 247, 244, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1150px, calc(100% - 64px));
  margin: 0 auto;
}
.header-inner { height: 100%; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.header-links { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); margin-left: auto; }
.header-links a {
  padding: 8px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}
.header-links a:hover, .header-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.menu-toggle, .menu-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle { width: 36px; height: 36px; gap: 4px; padding: 9px; }
.menu-toggle-line { display: block; width: 18px; height: 1.5px; background: currentColor; }
.menu-toggle:hover, .menu-close:hover { background: var(--hover); }
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  touch-action: none;
  transition: opacity 180ms ease;
}
.menu-backdrop.is-open { opacity: 1; }
.menu-backdrop[hidden], .site-menu[hidden] { display: none; }
.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100% - 44px));
  height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 220ms ease;
}
.site-menu.is-open { transform: translateX(0); }
.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.site-menu-header p { margin: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.04em; }
.menu-close { width: 34px; height: 34px; font-size: 1.5rem; line-height: 1; }
.site-menu a {
  padding: 16px 3px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.site-menu a:hover, .site-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.24em; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 36px;
  width: min(1150px, calc(100% - 64px));
  margin: 0 auto;
  padding: 94px 0 0;
}
h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2 { margin: 0; line-height: 1.13; }
h1 { grid-column: 1; font-size: clamp(2.6rem, 4.6vw, 4.25rem); font-weight: 720; letter-spacing: -0.065em; }
.lead {
  grid-column: 2;
  max-width: 570px;
  margin: 0;
  color: var(--body-text);
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.15rem, 1.55vw, 1.52rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.meta-list { grid-column: 2; justify-self: start; margin: 28px 0 0; }
.meta-list div { display: flex; gap: 16px; align-items: baseline; }
.meta-list dt, .meta-list dd { margin: 0; font-size: 0.82rem; line-height: 1.5; }
.meta-list dt { color: var(--muted); }
.meta-list dd { color: var(--text); font-weight: 650; }
.home-page h1 { font-size: clamp(3.7rem, 6vw, 5.35rem); }
.home-page .lead { max-width: 560px; }

.summary-panel {
  grid-column: 1 / -1;
  margin-top: 92px;
  padding: 37px 0 81px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-panel > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 56px; }
.home-page .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-grid article { min-width: 0; }
.summary-grid h3 { margin: 0; font-size: 1.05rem; font-weight: 690; line-height: 1.38; letter-spacing: -0.025em; }
.summary-grid h3 a { text-decoration: none; }
.summary-grid h3 a:hover { text-decoration: underline; }
.summary-grid h3 a::after { content: " →"; display: inline; font-size: 0.8em; font-weight: 400; }
.summary-grid p {
  margin: 12px 0 0;
  color: var(--body-text);
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.layout, .home-layout { width: min(1150px, calc(100% - 64px)); margin: 0 auto 125px; }
.toc {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.toc::before { content: "目次"; font-size: 0.84rem; font-weight: 680; }
.toc ol { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.toc li { min-width: 0; }
.toc a { color: var(--muted); font-size: 0.84rem; line-height: 1.5; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--text); text-decoration: underline; }
.terms-card { min-width: 0; }
.terms-section {
  position: relative;
  min-height: 120px;
  padding: 39px 0 51px 34%;
  border-bottom: 1px solid var(--line);
  color: var(--body-text);
  overflow-wrap: anywhere;
  scroll-margin-top: var(--anchor-offset);
}
.terms-section > h2 {
  position: absolute;
  top: 39px;
  left: 0;
  width: 29%;
  color: var(--text);
  font-size: clamp(1.38rem, 2.1vw, 1.82rem);
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.28;
}
.terms-section p, .terms-section ol, .terms-section ul {
  margin: 0 0 22px;
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.045rem;
  line-height: 1.9;
}
.terms-section p:last-child, .terms-section ol:last-child, .terms-section ul:last-child { margin-bottom: 0; }
.terms-section ol, .terms-section ul { padding-left: 1.45rem; }
.terms-section li + li { margin-top: 11px; }
.subsection-title { margin: 31px 0 10px; color: var(--text); font-size: 1.06rem; font-weight: 680; line-height: 1.5; }
.terms-section > .subsection-title:first-of-type { margin-top: 0; }
.table-wrap { max-width: 100%; margin: 27px 0; overflow-x: auto; border-top: 1px solid var(--line); }
.policy-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.88rem; line-height: 1.65; }
.policy-table th, .policy-table td { padding: 16px 13px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table thead th, .policy-table tbody th { color: var(--text); font-weight: 700; }
.policy-table tbody th { width: 24%; }
.check-list { display: grid; gap: 7px; }
.note { padding: 4px 0 4px 18px; border-left: 2px solid var(--text); }
.contact-box {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--body-text);
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.8;
}
.template-note { padding: 36px 0 0 34%; }
.template-note h2 { font-size: 1.1rem; }
.template-note p { margin: 10px 0 0; font-size: 0.95rem; }
.effective-note { margin: 28px 0 0; color: var(--muted); font-size: 0.82rem; text-align: right; }

/* Long legal documents use a quiet, single-column reading layout. */
.document-page .hero-inner,
.document-page .layout {
  display: block;
  width: min(632px, calc(100% - 48px));
}
.document-page .hero-inner { padding-top: 88px; }
.document-page h1 {
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  line-height: 1.15;
  text-align: center;
}
.document-page .meta-list {
  width: 100%;
  margin: 94px 0 0;
  padding: 0 0 29px;
  border-bottom: 1px solid var(--text);
}
.document-page .meta-list div { gap: 10px; }
.document-page .meta-list dt,
.document-page .meta-list dd { color: var(--text); font-size: 0.91rem; font-weight: 650; }
.document-page .lead {
  max-width: none;
  margin: 25px 0 0;
  font-size: 1.12rem;
  line-height: 1.72;
  letter-spacing: 0;
}
.document-page .layout { margin-top: 25px; }
.document-page .terms-section {
  min-height: 0;
  padding: 32px 0 18px;
  border: 0;
}
.document-page .terms-section > h2 {
  position: static;
  width: auto;
  margin-bottom: 21px;
  font-size: 1.55rem;
  line-height: 1.35;
}
.document-page .terms-section p,
.document-page .terms-section ol,
.document-page .terms-section ul { font-size: 1.075rem; line-height: 1.75; }
.document-page .terms-section li + li { margin-top: 14px; }
.document-page .effective-note { margin-top: 58px; text-align: left; }
.terms-page .lead { font-weight: 700; }
.terms-page #overview { padding-top: 0; }
.terms-page #overview > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.guidelines-page .hero-inner { width: min(900px, calc(100% - 48px)); }
.guidelines-page h1 span { display: inline-block; }
.guidelines-page .document-divider {
  width: min(632px, 100%);
  margin: 132px auto 0;
  border-bottom: 1px solid var(--text);
}
.guidelines-page .lead {
  width: min(632px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.site-footer { background: var(--footer); color: #f8f7f4; }
.footer-inner { min-height: 112px; color: #f8f7f4; font-size: 0.86rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #f8f7f4; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

@media (min-width: 981px) { .menu-toggle { display: none; } }
@media (max-width: 980px) {
  .header-links { display: none; }
  .home-page .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --header-height: 62px; --anchor-offset: 76px; }
  .header-inner, .footer-inner, .hero-inner, .layout, .home-layout { width: min(100% - 40px, 1150px); }
  .brand { font-size: 1.25rem; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .menu-toggle:hover { background: transparent; }
  .menu-toggle-line { transition: transform 180ms ease; }
  .menu-toggle-line:last-child { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-backdrop { top: var(--header-height); background: var(--bg); }
  .site-menu {
    inset: var(--header-height) 0 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    padding: 0 20px max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .site-menu.is-open { opacity: 1; transform: translateY(0); }
  .site-menu-header { display: none; }
  .site-menu a {
    padding: 21px 8px;
    font-size: clamp(1.2rem, 5.4vw, 1.45rem);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -0.035em;
  }
  .site-menu a:hover, .site-menu a[aria-current="page"] { text-decoration: none; }
  .site-menu a:last-child {
    margin-top: auto;
    padding: 13px 16px;
    border: 1px solid var(--text);
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
  }
  .site-menu a:last-child:hover { background: #393934; color: var(--bg); }
  .hero-inner { display: block; padding: 67px 0 0; }
  h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .home-page h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .lead { margin-top: 20px; font-size: 1.23rem; line-height: 1.53; }
  .meta-list { margin-top: 26px; }
  .summary-panel { margin-top: 70px; padding: 28px 0 49px; }
  .summary-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-page .summary-grid { grid-template-columns: 1fr; }
  .summary-grid h3 { font-size: 1.02rem; }
  .summary-grid p { margin-top: 8px; font-size: 1rem; }
  .layout, .home-layout { margin-bottom: 75px; }
  .toc { display: block; padding: 19px 0; }
  .toc::before { display: block; margin-bottom: 11px; }
  .toc ol { flex-wrap: nowrap; gap: 17px; padding-bottom: 6px; overflow-x: auto; }
  .toc li { flex: none; }
  .toc a { white-space: nowrap; }
  .terms-section { min-height: 0; padding: 31px 0 39px; }
  .terms-section > h2 { position: static; width: auto; margin-bottom: 18px; font-size: 1.45rem; }
  .terms-section p, .terms-section ol, .terms-section ul { font-size: 1rem; }
  .template-note { padding: 28px 0; }
  .policy-table { min-width: 610px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 28px 0; }
  .document-page .hero-inner,
  .document-page .layout { width: min(100% - 40px, 632px); }
  .document-page .hero-inner { padding-top: 58px; }
  .document-page h1 { font-size: clamp(2.25rem, 9vw, 3.2rem); text-align: left; }
  .document-page .meta-list { margin-top: 65px; padding-bottom: 22px; }
  .document-page .lead { margin-top: 21px; font-size: 1.05rem; }
  .document-page .layout { margin-top: 13px; }
  .document-page .terms-section { padding: 29px 0 16px; }
  .document-page .terms-section > h2 { margin-bottom: 17px; font-size: 1.32rem; }
  .document-page .terms-section p,
  .document-page .terms-section ol,
  .document-page .terms-section ul { font-size: 1rem; }
  .guidelines-page .document-divider { margin-top: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-backdrop, .site-menu, .menu-toggle-line { transition: none; }
}
@media print {
  :root { --bg: #fff; --text: #000; --body-text: #000; --line: #bbb; }
  body { padding: 0; background: #fff; }
  .site-header, .toc, .site-footer { display: none; }
  .hero-inner, .layout, .home-layout { display: block; width: 100%; margin: 0; padding: 0; }
  .lead { margin-top: 16px; }
  .summary-panel { margin-top: 32px; padding: 24px 0; }
  .terms-section { break-inside: avoid; }
  .document-page .hero-inner,
  .document-page .layout { width: 100%; }
  .document-page .hero-inner { padding-top: 0; }
  .document-page .meta-list { margin-top: 30px; }
  .guidelines-page .document-divider { margin-top: 40px; }
}
