/* ==================
 * Global
 * ================== */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Zen Old Mincho', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
}

/* ==================
 * Header
 * ================== */
.Header {
  background-color: #ffffff;
  padding: 16px 20px;
}

@media screen and (min-width: 768px) {
  .Header {
    padding: 16px 90px;
  }
}

.Header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.Header__logo {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.Header__logo-image {
  display: block;
  width: clamp(140px, 35vw, 320px);
  height: auto;
}

.Header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Header__cta-image {
  display: block;
  width: clamp(140px, 32vw, 300px);
  height: auto;
}

/* ==================
 * Section Images
 * ================== */
main > section > img,
main > section > picture,
main > section > picture > img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==================
 * CTA
 * ================== */
.CTA {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.CTA--primary {
  max-width: 600px;
}

.CTA--secondary {
  max-width: 800px;
}

.CTA--tertiary {
  max-width: 900px;
}

@media screen and (min-width: 768px) {
  .CTA--primary,
  .CTA--secondary,
  .CTA--tertiary {
    max-width: none;
  }
}

.CTA__background {
  display: block;
  width: 100%;
  height: auto;
}

.CTA > picture {
  display: block;
  width: 100%;
}

.CTA > picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.CTA__button {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 75%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .CTA__button {
    width: 60%;
  }
}

.CTA__button > picture {
  display: block;
  width: 100%;
}

.CTA__button > picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.CTA__phone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(16px, 6vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.CTA__phone:focus-visible {
  outline: 3px solid #006948;
  outline-offset: 4px;
  border-radius: 999px;
}

.CTA__phone-image {
  display: block;
  width: clamp(240px, 76vw, 520px);
  height: auto;
}

.CTA__stack {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(12px, 6vw, 56px));
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 6vw, 44px);
  width: min(100%, 640px);
  padding: 0 clamp(12px, 4vw, 48px);
  box-sizing: border-box;
}

.CTA__stack--secondary {
  top: auto;
  bottom: clamp(20px, 7vw, 44px);
  transform: translate(-50%, 0);
  gap: clamp(16px, 5vw, 32px);
}

@media screen and (min-width: 768px) {
  .CTA__phone {
    display: none;
  }

  .CTA__stack--secondary {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
    top: 72%;
    width: 100%;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 0 clamp(24px, 6vw, 120px);
    max-width: none;
  }

  .CTA__stack--secondary .CTA__primary-link,
  .CTA__stack--secondary .CTA__phone {
    flex: 0 0 auto;
    width: 50%;
    max-width: none;
    min-width: 300px;
  }

  .CTA__stack--secondary .CTA__primary-image,
  .CTA__stack--secondary .CTA__phone-image,
  .CTA__stack--secondary .CTA__phone > picture,
  .CTA__stack--secondary .CTA__phone > picture > img {
    width: 100%;
    height: auto;
  }

  .CTA__stack--tertiary {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
    width: 100%;
    transform: translate(-50%, -50%);
    padding: 0 clamp(24px, 6vw, 120px);
    max-width: none;
  }

  .CTA__stack--tertiary .CTA__primary-link,
  .CTA__stack--tertiary .CTA__phone {
    flex: 0 0 auto;
    width: 50%;
    max-width: none;
    min-width: 300px;
  }

  .CTA__stack--tertiary .CTA__primary-image,
  .CTA__stack--tertiary .CTA__phone-image,
  .CTA__stack--tertiary .CTA__phone > picture,
  .CTA__stack--tertiary .CTA__phone > picture > img {
    width: 100%;
    height: auto;
  }
}

.CTA__stack--secondary .CTA__phone {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
}

.CTA__stack .CTA__primary-link,
.CTA__stack .CTA__phone {
  width: 100%;
  max-width: clamp(260px, 78vw, 600px);
}

@media screen and (min-width: 768px) {
  .CTA__stack .CTA__primary-link,
  .CTA__stack .CTA__phone {
    width: 50%;
    max-width: none;
    min-width: 300px;
  }
}

.CTA__stack .CTA__primary-image,
.CTA__stack .CTA__phone-image {
  width: 100%;
  height: auto;
}

.CTA__stack--tertiary {
  top: calc(50% + clamp(36px, 11vw, 112px));
}

@media screen and (min-width: 768px) {
  .User-voice__slider{
    display:none;
  }

  .CTA__stack--tertiary {
    top: 57%;
  }
}

.CTA__primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.CTA__primary-link:focus-visible {
  outline: 3px solid #006948;
  outline-offset: 4px;
  border-radius: 999px;
}

.CTA__primary-image {
  display: block;
  width: clamp(280px, 80vw, 500px);
  height: auto;
}

@media screen and (min-width: 768px) {
  .CTA__primary-image {
    width: 100%;
  }
}

.CTA__phone--tertiary {
  position: static;
  transform: none;
}

.CTA__button:focus-visible {
  outline: 3px solid #006948;
  outline-offset: 4px;
  border-radius: 999px;
}

.CTA__button-image {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (min-width: 768px) {
  .CTA__button-image {
    width: 100%;
  }
}

@media screen and (min-width: 600px) and (max-width: 767px) {
  .CTA {
    width: min(100%, 720px);
  }

  .CTA--secondary {
    max-width: 880px;
  }

  .CTA--tertiary {
    max-width: 960px;
  }

  /* .CTA__buttonは親要素の相対値で統一されているため、調整不要 */

  .CTA__phone {
    bottom: clamp(24px, 4vw, 56px);
  }

  .CTA__phone-image {
    width: clamp(320px, 40vw, 600px);
  }

  .CTA__stack {
    top: calc(50% + clamp(16px, 4vw, 80px));
    gap: clamp(32px, 4vw, 56px);
    width: min(100%, 720px);
    padding-inline: clamp(24px, 5vw, 96px);
  }

  .CTA__stack--secondary {
    top: auto;
    bottom: clamp(28px, 5vw, 60px);
    transform: translate(-50%, 0);
    gap: clamp(20px, 4vw, 40px);
  }

  .CTA__stack .CTA__primary-link,
  .CTA__stack .CTA__phone {
    max-width: clamp(320px, 38vw, 600px);
  }

  .CTA__stack--tertiary {
    top: calc(50% + clamp(60px, 7vw, 152px));
  }

  .CTA__primary-image {
    width: clamp(360px, 28vw, 640px);
  }
}


@media screen and (max-width: 599px) {
  .Header {
    padding: 12px 16px;
  }

  .Header__inner {
    gap: 12px;
  }

  .Header__logo-image {
    width: clamp(120px, 45vw, 200px);
  }

  .Header__cta-image {
    width: clamp(120px, 40vw, 200px);
  }

  /* .CTA__buttonは親要素の相対値で統一されているため、調整不要 */
}

/* ==================
 * Footer
 * ================== */
.Footer {
  background-color: #d2bf9e;
  padding: clamp(24px, 6vw, 40px) 16px;
  text-align: center;
}

.Footer__text {
  display: block;
  margin: 0;
  color: #2f2410;
  font-size: 0.875rem;
  line-height: 1.6;
}
