:root {
  color-scheme: light;
  --bg: #fff8e6;
  --text: #351b12;
  --muted: #765545;
  --line: #f3c86d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 160px, rgba(255, 195, 0, 0.34), transparent 24%),
    radial-gradient(circle at 90% 420px, rgba(255, 138, 0, 0.22), transparent 26%),
    linear-gradient(90deg, #fff0a8 0%, #fff8d5 13%, #fff 24%, #fff 76%, #fff8d5 87%, #fff0a8 100%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 10px clamp(10px, 3vw, 16px) 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 190, 28, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(112px, 22vw, 160px);
  overflow: hidden;
}

.brand img,
.site-footer img {
  aspect-ratio: 3 / 1;
  object-fit: contain;
}

.brand img {
  object-position: left center;
}

.header-note {
  margin: 0;
  padding: 4px 10px;
  border: 2px solid #ffb31a;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e95018;
}

main {
  width: min(960px, 100%);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 42px rgba(212, 127, 0, 0.1);
}

.visual-stack {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vw, 54px);
  padding: 0 0 40px;
  background: #fff;
}

.visual {
  width: 100%;
}

.visual-main {
  max-width: 960px;
}

.visual-wide {
  max-width: 960px;
}

.legal-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #f1d38b;
  border-radius: 8px;
  background: #fffdf7;
  color: #3a2418;
}

.legal-card h2 {
  margin: 0 0 18px;
  color: #d94b14;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.legal-card h3 {
  margin: 22px 0 8px;
  color: #5d3300;
  font-size: 1.02rem;
  line-height: 1.5;
}

.legal-card p,
.legal-card li {
  font-size: 0.92rem;
  line-height: 1.9;
}

.legal-card p {
  margin: 0 0 10px;
}

.legal-card ol,
.legal-card ul {
  margin: 8px 0 12px;
  padding-left: 1.35em;
}

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

.site-footer {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px 16px 34px;
  color: var(--muted);
  background: #ffc400;
}

.site-footer img {
  width: 170px;
  object-position: center center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #5d3300;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.floating-line {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 2px solid #23b947;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(57, 38, 10, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-line--hidden,
.modal-open .floating-line {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.floating-line__button {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #19d65a 0%, #08ad3f 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.floating-line__button:focus-visible,
.modal__close:focus-visible,
.modal__ok:focus-visible,
.footer-links button:focus-visible {
  outline: 3px solid #ffb31a;
  outline-offset: 3px;
}

.floating-line p {
  margin: 7px 0 0;
  color: #6b4b28;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  overscroll-behavior: contain;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(48, 27, 8, 0.55);
}

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 18px 18px;
  border: 3px solid #ffb31a;
  border-radius: 10px;
  background: #fffdf6;
  box-shadow: 0 20px 60px rgba(31, 18, 4, 0.32);
  text-align: center;
}

.legal-modal .modal__panel {
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  text-align: left;
  overflow: hidden;
}

.legal-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 4px 4px;
}

.legal-modal .legal-card {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff0c2;
  color: #8b3b0a;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.modal__image {
  width: min(230px, 72%);
  margin: 0 auto 8px;
}

.modal__panel h2 {
  margin: 0;
  color: #e95018;
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.modal__panel p {
  margin: 8px 0 16px;
  color: #6b4b28;
  font-weight: 800;
}

.modal__ok {
  display: inline-grid;
  min-width: 140px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffb31a;
  color: #4c2600;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 520px) {
  body {
    background: #fff;
  }

  .site-header {
    padding-inline: 8px;
  }

  .brand {
    width: 112px;
  }

  .header-note {
    font-size: 0.7rem;
  }

  .visual-stack {
    gap: 16px;
    padding-bottom: 24px;
  }

  .floating-line {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .modal__panel {
    padding-top: 24px;
  }

  .modal__image {
    width: min(210px, 76%);
  }
}
