/* Glareaのパイライト配色を使う、共通の静的ページスタイル。 */
:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --surface: #fffcf6;
  --ink: #302a20;
  --muted: #645d50;
  --accent: #75571f;
  --line: #d7cebd;
  --gold: #d3b36c;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.5;
  font-weight: 600;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: 0.025em;
}
p {
  margin-bottom: 1.15rem;
}
li + li {
  margin-top: 0.5rem;
}
ul,
ol {
  padding-left: 1.6rem;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  z-index: 5;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1.3rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  color: var(--accent);
  font-size: 1.8rem;
  margin-right: 0.2rem;
}
.site-header nav {
  display: flex;
  gap: 1.65rem;
  align-items: center;
}
.site-header nav a {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--ink);
  box-shadow: 0 1px var(--accent);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 3rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 650px;
  padding: 5rem 0;
}
.hero h1 {
  margin-bottom: 1.6rem;
}
.hero p:not(.eyebrow) {
  max-width: 31rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
}
.button {
  display: inline-flex;
  gap: 2.8rem;
  align-items: center;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--ink);
}
.button:hover {
  background: var(--accent);
}
.specimen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 390px;
  border: 1px solid var(--line);
  background: radial-gradient(
    ellipse at center,
    #eee5d2 0%,
    var(--surface) 65%
  );
  border-radius: 48% 48% 1px 1px;
  gap: 3rem;
  transform: rotate(3deg);
}
.specimen span {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.stone {
  width: 210px;
  height: 200px;
  position: relative;
  transform: rotate(-13deg);
  filter: drop-shadow(0 17px 17px #302a2022);
}
.stone i {
  position: absolute;
  display: block;
  inset: 0;
  clip-path: polygon(28% 4%, 75% 12%, 100% 48%, 74% 94%, 23% 100%, 0 60%);
  background: #b29459;
}
.stone i:nth-child(2) {
  clip-path: polygon(28% 4%, 75% 12%, 52% 52%, 0 60%);
  background: #d9c598;
}
.stone i:nth-child(3) {
  clip-path: polygon(52% 52%, 100% 48%, 74% 94%, 23% 100%);
  background: #8f7546;
}
.intro {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  max-width: 45rem;
}
.intro h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-family: var(--serif);
  margin-bottom: 1.5rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2rem 0 4.5rem;
}
.features > div {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.features h2 {
  font-size: 1.1rem;
  margin: 1rem 0 0.7rem;
}
.features p {
  font-size: 0.93rem;
  color: var(--muted);
}
.number {
  font-family: Georgia, serif;
  color: var(--accent);
  font-size: 1.1rem;
}
.directory {
  padding: 2rem 0 4rem;
}
.directory > h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.directory > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.45rem 0;
  text-decoration: none;
  color: var(--ink);
  gap: 1rem;
}
.directory > a:last-child {
  border-bottom: 1px solid var(--line);
}
.directory > a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.directory small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 0.2rem;
}
.notice {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 1.35rem 1.6rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.notice h2 {
  font-size: 1rem;
}
.notice p:last-child {
  margin-bottom: 0;
}
.document {
  max-width: 890px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.page-heading {
  margin-bottom: 2.4rem;
}
.page-heading h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
}
.meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.contents {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  margin: 2.5rem 0 3.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.7rem;
  font-size: 0.88rem;
}
.contents strong {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.document > section {
  margin-top: 3rem;
}
.document > section > h2 {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.document section p,
.document section li,
.document dd {
  font-size: 0.96rem;
}
.steps li {
  padding-left: 0.5rem;
  margin-bottom: 1.3rem;
}
.steps li::marker {
  color: var(--accent);
  font-family: Georgia, serif;
}
.steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
dt {
  font-weight: 600;
  margin-top: 1.6rem;
}
dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  min-height: 36px;
  font-weight: 600;
}
details p {
  margin: 1rem 0 0.3rem;
  color: var(--muted);
}
.not-found {
  padding: 2rem 0 5rem;
}
.not-found h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}
.actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.actions .button {
  margin: 0;
}
.site-footer {
  max-width: 1104px;
  margin: 2rem auto 0;
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
}
.site-footer p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-content: start;
  font-size: 0.8rem;
}
.site-footer nav a {
  color: var(--muted);
}
.site-footer .footer-note {
  grid-column: 1/-1;
  font-size: 0.73rem;
  margin-top: 1.6rem;
}
@media (max-width: 760px) {
  .header-inner {
    padding: 1rem 1.3rem;
    flex-wrap: wrap;
  }
  .site-header nav {
    gap: 1.2rem;
    width: 100%;
    justify-content: space-between;
  }
  .site-header nav a {
    font-size: 0.78rem;
  }
  .brand {
    font-size: 1.55rem;
  }
  main {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3.6rem);
  }
  .specimen {
    min-height: 280px;
    max-width: 350px;
    width: 90%;
    margin: 0 auto 1rem;
    gap: 1.3rem;
  }
  .stone {
    width: 150px;
    height: 140px;
  }
  .intro {
    padding-top: 2.6rem;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 2rem;
  }
  .features > div {
    padding-top: 1rem;
  }
  .features h2 {
    display: inline;
    margin-left: 1rem;
  }
  .features p {
    margin-top: 0.8rem;
  }
  .directory {
    padding-top: 1.5rem;
  }
  .document {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .document > section {
    margin-top: 2.6rem;
  }
  .notice {
    padding: 1.1rem 1.2rem;
  }
  .site-footer {
    margin: 2rem 1.4rem 0;
    padding-top: 2rem;
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .site-footer .footer-note {
    margin-top: 0.5rem;
  }
  .wide-only {
    display: none;
  }
  .not-found {
    padding: 1rem 0 2rem;
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .contents {
    display: none;
  }
  main,
  .document {
    max-width: none;
    padding: 0;
  }
  .notice {
    border: 1px solid #888;
    break-inside: avoid;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  a {
    color: inherit;
  }
  details {
    display: block;
  }
  details > p {
    display: block;
  }
}

@media (max-width: 360px) {
  .page-heading h1 {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2rem;
    letter-spacing: 0.02em;
  }
}
