*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 27px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  word-break: auto-phrase;
}

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

a {
  color: var(--pink-deep);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.wordmark img,
img.wordmark {
  display: block;
  height: 24px;
  width: auto;
}

@media (max-width: 599px) {
  .site-header .wordmark img {
    height: 20px;
  }
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #06C755;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #06C755;
  text-decoration: none;
}

/* ---- 共通の部品 ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--button-primary-start), var(--button-primary-end));
  color: var(--button-primary-text);
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--button-primary-end);
}

.btn-primary:focus-visible {
  border-radius: var(--radius-pill);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: #06C755;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-line:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #06C755;
}

.cta-notes {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.cta-notes li + li {
  margin-top: 2px;
}

@media (max-width: 599px) {
  .btn-primary,
  .btn-line {
    width: 100%;
  }
}

.section {
  padding: 40px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 48px 0;
  }
}

.section-head {
  max-width: 35em;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--pink-deep);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title {
  margin-top: 12px;
  font-size: 24px;
  line-height: 31px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-secondary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 28px;
    line-height: 35px;
  }
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 20px;
  background-color: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: -16px;
  background: url("images/spring.jpg") center 18% / cover no-repeat;
  filter: blur(7px);
  transform: scale(1.03);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 247, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-items: center;
}

@media (max-width: 959px) {
  .hero .container {
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "title title"
      "lead phone"
      "cta cta";
    justify-content: center;
    column-gap: clamp(6px, 1.6vw, 10px);
    row-gap: clamp(12px, 3.5vw, 18px);
  }

  .hero-title {
    grid-area: title;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
  }

  .hero-lead {
    grid-area: lead;
    margin-top: 0;
    max-width: none;
    align-self: center;
    justify-self: start;
  }

  .hero .phone {
    grid-area: phone;
    width: clamp(136px, 38vw, 204px);
    margin: 0;
    justify-self: start;
    align-self: center;
  }

  .hero .cta {
    grid-area: cta;
  }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: flex-start;
    padding: 64px 0 24px;
  }

  .hero .container {
    --hero-phone-width: 324px;
    width: 100%;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    column-gap: 96px;
    row-gap: 0;
    justify-content: center;
    align-items: start;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 1;
    max-width: 34rem;
    padding-top: calc(var(--hero-phone-width) * 1992 / 1084 * 0.25);
  }

  .hero-lead {
    grid-column: 1;
    grid-row: 2;
    max-width: 34rem;
  }

  .hero .cta {
    grid-column: 1;
    grid-row: 3;
    margin-top: 28px;
  }

  .hero .phone {
    grid-column: 2;
    grid-row: 1 / 4;
    width: var(--hero-phone-width);
    margin-inline: 0;
    align-self: start;
  }
}

.hero-title {
  font-size: 28px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-title .line {
  display: block;
}

.hero-title .line + .line {
  margin-top: 6px;
}

@media (min-width: 600px) {
  .hero-title {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -0.01em;
  }

  .hero-title .line + .line {
    margin-top: 10px;
  }
}

@media (min-width: 960px) {
  .hero-title {
    font-size: 44px;
    line-height: 50px;
  }

  .hero-title .line + .line {
    margin-top: 16px;
  }
}

.hero-lead {
  margin-top: 20px;
  max-width: 28em;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-lead img.wordmark {
  display: inline-block;
  height: 1.05em;
  width: auto;
  vertical-align: -0.14em;
}

@media (max-width: 959px) {
  .hero-lead {
    font-size: clamp(12px, 3.2vw, 18px);
    line-height: 1.46;
  }

  .hero-lead img.wordmark {
    height: 1em;
    vertical-align: -0.12em;
  }
}

@media (min-width: 960px) {
  .hero-lead {
    margin-top: 28px;
    font-size: 24px;
    line-height: 31px;
  }
}

.hero .cta {
  margin-top: 4px;
}

@media (max-width: 959px) {
  .hero .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .cta-notes {
    align-self: center;
    text-align: center;
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.57;
  }

  .hero .btn-line {
    width: min(100%, 280px);
    min-height: clamp(46px, 13vw, 52px);
    padding: clamp(10px, 2.8vw, 12px) clamp(20px, 6vw, 28px);
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.5;
  }
}

.hero .cta-notes {
  margin-top: 8px;
}

@media (min-width: 960px) {
  .hero .cta-notes {
    margin-top: 16px;
  }
}

.phone {
  display: block;
  width: 172px;
  height: auto;
  margin-inline: auto;
}

/* ---- 末尾 ---- */

.closing {
  max-width: 35em;
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
}

.closing .section-title {
  margin-top: 0;
}

.closing .cta {
  margin-top: 32px;
  display: grid;
  justify-items: center;
}

.closing .cta-notes {
  text-align: left;
}

/* ---- フッター ---- */

.site-footer {
  padding: 48px 0 40px;
  background: var(--bg-sunken);
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.site-footer .container {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-brand .wordmark img {
  height: 22px;
}

.footer-org {
  margin-top: 4px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--pink-on);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

/* ---- 規約ページ ---- */

.doc {
  padding: 56px 0 96px;
}

.doc .container {
  max-width: 800px;
}

.doc h1 {
  font-size: 24px;
  line-height: 31px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .doc h1 {
    font-size: 28px;
    line-height: 35px;
  }
}

.doc h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.doc p,
.doc ul {
  margin-top: 16px;
  max-width: 35em;
}

.doc ul {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 8px;
}

.doc .doc-lead {
  margin-top: 20px;
  color: var(--ink-secondary);
}

.doc .doc-date {
  margin-top: 56px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.doc .back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.doc a {
  word-break: break-all;
}

/* ---- 動き ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}
