:root {
  --ink: #2f3638;
  --blue: #2f7196;
  --cream: #fbf5ea;
  --line: #d9cdbd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #eee7dc;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

main { width: min(100%, 390px); margin: 0 auto; background: var(--cream); }

.section-frame, .content-section { position: relative; overflow: hidden; }
.section-image { display: block; width: 100%; height: auto; }

.hero { background: var(--cream); }

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
}

h1, h2, p { margin-top: 0; }

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px #2d51632b; }
.button-primary { color: #fff; background: var(--blue); }
.button-secondary { color: var(--blue); background: #fffdf9e8; border-color: var(--blue); }

.section-action { display: flex; justify-content: center; padding: 1.1rem 1.25rem 1.4rem; background: var(--cream); }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.final-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 2.2rem 1.25rem 2.8rem;
  background: var(--cream);
  text-align: center;
}

.final-action p { margin: 0; color: #687073; font-size: .9rem; }

.modal[aria-hidden="true"] { display: none; }
.modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 1.25rem; }
.modal-backdrop { position: absolute; inset: 0; background: #202c2dcc; }
.modal-card { position: relative; width: min(100%, 28rem); padding: 2rem 1.5rem 1.5rem; border-radius: 1.2rem; background: var(--cream); box-shadow: 0 24px 80px #182b3580; }
.modal-card h2 { margin-bottom: .8rem; color: var(--blue); font-size: 1.7rem; }
.modal-card p:not(.eyebrow) { margin-bottom: 1.5rem; line-height: 1.9; }
.modal-close { position: absolute; top: .6rem; right: .85rem; border: 0; background: transparent; color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; }

.site-footer { width: min(100%, 390px); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; color: #687073; background: #e9e0d4; font-size: .75rem; line-height: 1.7; text-align: center; }

@media (min-width: 431px) {
  body { padding: 2rem 0; }
  main { box-shadow: 0 18px 60px #514c421f; }
}
