:root {
  --site-heading-font: "Hiragino Mincho ProN", "YuMincho", serif;
  --site-body-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

body {
  font-family: var(--site-body-font);
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 {
  font-family: var(--site-heading-font);
}

.home-page h2, .home-page h3 {
  font-weight: 600;
}

.home-page .hero p,
.home-page #site-nav > a:not(.button),
.home-page .button {
  font-family: var(--site-body-font);
}

html {
  scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.floating-line {
  position: fixed;
  z-index: 4;
  right: calc(clamp(12px, 2.5vw, 32px) + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: calc(100vw - 36px);
  padding: 10px 18px;
  border: 1px solid #f5f5fc;
  border-radius: 999px;
  background: #4e6084;
  color: #fff;
  box-shadow: 0 3px 14px #18284540;
  font: 700 .875rem/1.5 var(--site-body-font);
  text-decoration: none;
}

.floating-line:hover, .floating-line:focus-visible {
  background: #35486f;
  color: #fff;
  text-decoration: none;
}

.floating-line:focus-visible {
  outline: 2px solid #35486f;
  outline-offset: 3px;
}

:root {
  --cobalt-ink: #223b66;
  --cobalt: #34558b;
  --cobalt-light: #e5eefb;
}

body > header, .home-page .site-header {
  color: var(--cobalt-ink);
  background: #f5f8fe;
  border-bottom: 1px solid #cfdbef;
}

body > header .brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cobalt-ink);
  font: 400 clamp(1.75rem, 3vw, 2.25rem)/1 Georgia, serif;
  letter-spacing: .025em;
  text-decoration: none;
}

.brand-moon {
  display: inline-block;
  flex: 0 0 22px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 4px 0 currentColor;
  transform: rotate(11deg);
}

body > header #site-nav :is(.button, .btn) {
  color: #fff;
  background: var(--cobalt);
  border-color: var(--cobalt);
}

body > header :focus-visible { outline-color: var(--cobalt); }

.floating-line { background: var(--cobalt); }

.home-page .hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.home-page .hero p { max-width: 25em; line-height: 1.8; }
.home-page .contact-content .button { margin-top: 4px; }

@media (max-width: 1120px) {
  .home-page .site-header #site-nav { background: #f5f8fe; }
  .home-page .site-header .menu-toggle {
    color: var(--cobalt-ink);
    border-color: #a4b6d6;
  }
}

@media (max-width: 760px) {
  .floating-line {
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    justify-content: center;
    max-width: none;
    min-height: 52px;
    padding-inline: 44px;
    font-size: 1rem;
    text-align: center;
  }
  .floating-line > span { position: absolute; right: 20px; }
  h1, h2, h3, p, blockquote { line-break: strict; }
  h1, h2, h3 { text-wrap: balance; }
  .hero-copy p { text-wrap: pretty; }
  .home-page h2 { font-size: clamp(1.375rem, 5.8vw, 1.75rem); }
  .home-page .hero h1 {
    font-size: clamp(1.875rem, 8.3vw, 2.75rem);
    letter-spacing: .04em;
  }
  .home-page .hero p { max-width: 26em; letter-spacing: .025em; }
  .home-page .section-title { display: block; }
  .home-page .section-title .moon { display: block; margin-bottom: 6px; }
  .home-page .section-title::before, .home-page .section-title::after { content: none; }
  .home-page .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-page .faq summary::after { top: 12px; }
}
