/* ==========================================================
   Base
========================================================== */
:root {
  --color-blue: #5E9BD6;
  --color-blue-dark: #15396B;
  --color-navy: #2c3e55;
  --color-text: #4a4f57;
  --color-text-light: #9EC6EE;
  --color-bg-section: #F3F8FD;
  --color-placeholder: #d9dde2;
  --color-placeholder-border: #c7ccd2;
  --step-indent: 66px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", var(--font-jp);
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
}


/* ==========================================================
   Section: メリット
========================================================== */
.merits {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.merits__title {
  font-family: "Zen Maru Gothic", var(--font-jp);
  font-size: 45px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 40px;
}

.merits__title-num {
  font-size: 90px;
  color: var(--color-blue);
  font-weight: 800;
  padding: 0 2px;
  vertical-align: -4px;
}

.merits__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
}

.merit-card {
  flex: 1 1 0;
  max-width: 380px;
  background: var(--color-bg-section);
  padding: 28px 32px 36px;
  text-align: center;
}

.merit-card__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}

.merit-card__title {
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  margin: 0 0 20px;
}

.merit-card__img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 28px;
}

.merit-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-blue-dark);
  text-align: left;
  margin: 0;
}

/* ==========================================================
  ご利用の流れ
========================================================== */
.flow {
  background: var(--color-bg-section);
  padding: 56px 24px 80px;
}

.flow__inner {
  max-width: 620px;
  margin: 0 auto;
}

.flow__heading {
  position: relative;
  text-align: center;
  margin-bottom: 45px;
}

.flow__heading-bg {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 100px;
  letter-spacing: 2px;
  color: var(--color-text-light);
  opacity: 0.4;
  line-height: 1;
}

.flow__heading-title {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-jp);
  font-size: 31px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.flow__step {
  width: fit-content;
  max-width: 100%;
  margin: 0 50px;
  padding: 30px 4px;
}

.flow__step-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.flow__step-num {
  flex-shrink: 0;
  width: var(--step-indent);
  font-family: "Inter", sans-serif;
  font-size: 50px;
  font-weight: 800;
  color: var(--color-text-light);
  opacity: 0.4;
  line-height: 1;
}

.flow__step-title {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.flow__download-box {
  border: 1px solid var(--color-blue);
  border-radius: 4px;
  padding: 24px 32px;
  text-align: center;
  margin: 20px auto 0;
}

.flow__download-box__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin: 0 0 16px;
}

.flow__download-box__arrow {
  font-size: 14px;
  margin-left: 4px;
}

.flow__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  margin: 0 auto;
}

.flow__badge-link {
  display: block;
  line-height: 0;
}

.flow__badge-img {
  height: 40px;
  width: auto;
}

.flow__step-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-blue-dark);
  max-width: 550px;
  margin: 14px;
}

.flow__step-text small {
  font-size: 13px;
}

.flow__step-img {
  background-color: var(--color-placeholder);
  border: 1px solid var(--color-placeholder-border);
  margin: 24px auto 0;
}


img.flow__step-img {
  display: block;
  background-color: transparent;
  border: none;
  object-fit: contain;
}

.flow__step-img--card {
  width: 430px;
  height: 270px;
}

.flow__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  justify-content: center;
}

.flow__notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #E8A33D;
  color: #E8A33D;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.flow__notice-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-blue-dark);
  margin: 0;
}

.flow__heading--pickup {
  margin-top: 90px;
}

.flow__heading-bg--pickup {
  font-size: 64px;
}

.flow__heading-title--pickup {
  font-size: 26px;
  bottom: -2px;
}

.flow__pickup-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-blue-dark);
  max-width: 630px;
  margin: 24px auto 0;
}

.flow__pickup-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-blue-dark);
  max-width: 630px;
  margin: 12px auto 0;
}

.flow__arrow {
  position: relative;
  height: 2px;
  background: #cdd9e6;
  margin: 32px 0;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 15px solid var(--color-blue);
}

/* ==========================================================
   Footer
========================================================== */
.footer {
  background: var(--color-blue-dark);
  padding-top: 56px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo nav"
    "copy nav";
  align-items: end;
  row-gap: 12px;
  column-gap: 24px;
}

.footer__logo-link {
  grid-area: logo;
  display: block;
  line-height: 0;
}

.footer__logo {
  height: 40px;
  width: auto;
}

.footer__copyright {
  grid-area: copy;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer__nav {
  grid-area: nav;
  display: flex;
  justify-self: end;
  gap: 28px;
}

.footer__nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer__nav-link:hover {
  color: #fff;
}

/* ==========================================================
   SP (smartphone)
========================================================== */
.merits__title-break {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --step-indent: 42px;
  }

  .merits__title-break {
    display: block;
  }

  /* メリット */
  .merits {
    padding: 56px 20px 48px;
  }

  .merits__title {
    font-size: 32px;
    line-height: 1.5;
  }

  .merits__title-num {
    font-size: 50px;
    vertical-align: -3px;
  }

  .merits__list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .merit-card {
    width: 100%;
    max-width: 335px;
    padding: 24px 20px 28px;
  }

  .merit-card__num {
    width: 46px;
    height: 46px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .merit-card__title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .merit-card__img {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .merit-card__text {
    font-size: 13px;
  }

  /* ご利用の流れ */
  .flow {
    padding: 48px 20px 64px;
  }

  .flow__inner {
    max-width: 335px;
  }

  .flow__heading {
    margin-bottom: 36px;
  }

  .flow__heading-bg {
    font-size: 56px;
  }

  .flow__heading-title {
    font-size: 20px;
    bottom: -4px;
  }

  .flow__step {
    width: auto;
    margin: 0;
    padding: 20px 0;
  }

  .flow__step-head {
    gap: 10px;
  }

  .flow__step-num {
    font-size: 32px;
  }

  .flow__step-title {
    font-size: 16px;
  }

  .flow__badges {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    gap: 8px;
    justify-content: center;
  }

  .flow__badge-img {
    height: 34px;
    width: auto;
  }

  .flow__step-text {
    font-size: 13px;
  }

  .flow__step-img {
    margin-top: 20px;
  }

  .flow__step-img--card {
    width: 100%;
    max-width: 320px;
    height: 200px;
  }

  .flow__notice {
    margin-top: 28px;
  }

  .flow__notice-text {
    font-size: 13px;
  }

  .flow__heading--pickup {
    margin-top: 56px;
  }

  .flow__heading-bg--pickup {
    font-size: 40px;
  }

  .flow__heading-title--pickup {
    font-size: 18px;
  }

  .flow__pickup-text {
    font-size: 13px;
    padding: 0 10px;
  }

  .flow__pickup-note {
    font-size: 10px;
    padding: 0 10px;
  }

  .flow__arrow {
    margin: 24px 0;
  }

  .flow__download-box__text {
    font-size: 12px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "copy"
      "nav";
    justify-items: start;
    row-gap: 10px;
    padding: 14px 24px 16px;
  }

  .footer__nav {
    justify-self: start;
  }

  .footer__copyright {
    font-size: 8px;
  }

  .footer__nav-link {
    font-size: 8px;
  }

  .footer {
    padding-top: 27px;
  }
}

@media (max-width: 500px) {
  .flow__step-text-break {
    display: none;
  }

  .footer__inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo logo"
      "copy nav";
    align-items: baseline;
    column-gap: 27px;
    row-gap: 8px;
  }

  .footer__nav {
    justify-self: start;
    gap: 16px;
  }
}
