/* ==================================================
  共通変数
================================================== */
:root {
  --header-height: 60px;
  --green: #349f87;
  --green-dark: #2d7d68;
  --green-light: #e7f3ef;
  --cream: #f6f7f1;
  --orange: #ff6e00;
  --text: #333;
  --muted: #666;
  --line: #e7f3ef;
  --white: #fff;
  --shadow: 0 18px 25px rgba(31, 59, 45, 0.12);
  --page-bg: #f9f9f9;
}

/* ==================================================
  ベーススタイル
================================================== */
html {
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

@media (min-width: 768px) {
  h2 {
    font-size: 28px;
  }
}

/* ==================================================
  CTAボックス
================================================== */
.cta-box {
  width: min(680px, 90%);
  margin: 20px auto 20px;
  padding: 20px;
  background: var(--green);
  border-radius: 10px;
}

@media (min-width: 768px) {
  .cta-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: min(1120px, 90%);
    padding: 28px;
  }

  .cta-box:not(.cta-box--middle) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    align-items: center;
    column-gap: 18px;
    row-gap: 18px;
  }

  .cta-box:not(.cta-box--middle) > .cta-box__lead,
  .cta-box:not(.cta-box--middle) > .cta-box__lead-sub,
  .cta-box:not(.cta-box--middle) > .cta-box__note {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

.cta-box__lead {
  position: relative;
  color: var(--white);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta-box__lead::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.3em;
  width: 280px;
  height: 9px;
  background: url(../image/yellow-line.svg) no-repeat center / contain;
  pointer-events: none;
  display: block;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .cta-box__lead {
    font-size: 30px;
    text-align: center;
    margin-bottom: 0;
  }

  .cta-box__lead::after {
    width: 250px;
  }
}

.cta-box__lead span {
  font-size: 16px;
}

.cta-box__lead-sub {
  color: var(--white);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: -12px 0 20px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .cta-box__lead-sub {
    margin: -10px 0 0;
  }
}

.cta-box__lead .cta-box__lead-main {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 28px;
  line-height: 1.25;
}

.cta-box__lead .cta-box__lead-main::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: -0.08em;
  z-index: -1;
  height: 0.18em;
  background: #e7ef2a;
  border-radius: 999px;
}

.cta-box__note {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto -12px;
  color: var(--orange);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  background: #fffec1;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 6px 20px;
}

.cta-box__note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fffdf2;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  transform: translateX(-50%) rotate(45deg);
}

.cta-box__lead-sub-inner {
  margin-bottom: 10px;
}

.cta-box__lead-sub-inner:last-child {
  margin-bottom: 0;
}

/* ==================================================
  共通ボタン
================================================== */
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .button {
    min-height: 90px;
    font-size: 26px;
  }
}

.button + .button {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .button + .button {
    margin-top: 0;
  }
}

.button--orange {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(239, 91, 12, 0.2);
}

.button--orange::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("../image/icon-mail.svg") center / contain no-repeat;
  mask: url("../image/icon-mail.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.button--outline {
  flex-direction: column;
  gap: 0;
  color: var(--green);
  background: var(--white);
}

.button--outline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("../image/icon-phone.svg") center / contain no-repeat;
  mask: url("../image/icon-phone.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.button--outline span {
  font-size: 12px;
  line-height: 1.2;
  font-weight: normal;
}

.cta-box .button {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) {
  .cta-box .button:hover {
    transform: scale(1.04);
  }
}

@keyframes cta-button-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.cta-box .button.is-pop {
  animation: cta-button-pop 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .cta-box .button {
    transition: none;
  }

  .cta-box .button:hover,
  .cta-box .button.is-pop {
    transform: none;
    animation: none;
  }
}

@media (min-width: 768px) {
  .cta-box__buttons {
    display: grid;
    grid-template-columns: 1fr 310px 310px;
    align-items: center;
    gap: 18px;
  }

  .cta-box__lead-sub-inner {
    margin-bottom: 0;
  }

  .cta-box__lead-sub-inner:last-child {
    margin-bottom: 0;
  }
}

/* CTAボックス：中央配置バリエーション */
.cta-box--middle {
  margin-top: 0;
  padding: 48px 32px 32px;
  border-radius: 12px;
}

.cta-box--middle > .cta-box__note {
  display: none;
}

.cta-box--middle .cta-box__lead {
  margin-bottom: 8px;
}

.cta-box--middle .cta-box__lead-sub {
  margin: 0 0 28px;
}

.cta-box--middle .cta-box__buttons {
  display: grid;
  gap: 20px;
}

.cta-box--middle .button {
  min-height: 80px;
  font-size: 28px;
}

.cta-box--middle .button + .button {
  margin-top: 0;
}

.cta-box--middle .button--orange {
  border-radius: 999px;
  box-shadow: none;
}

.cta-box--middle .button--outline {
  min-height: 72px;
  border: 0;
}

.cta-box--middle .button--outline span {
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .cta-box--middle {
    width: min(680px, 90%);
    padding: 48px 32px 32px;
  }
}

@media (min-width: 768px) {
  .cta-box--middle {
    width: min(1120px, 90%);
  }

  .cta-box--middle .cta-box__lead,
  .cta-box--middle .cta-box__lead-sub {
    margin-bottom: 0;
  }

  .cta-box--middle .cta-box__buttons {
    position: relative;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
  }

  .cta-box--middle .cta-box__buttons .cta-box__note {
    position: absolute;
    left: 0;
    top: -18px;
    width: min(340px, 44%);
    margin: 0;
    transform: translateX(14%);
  }
}

/* ==================================================
  表示切り替え
================================================== */
.pc-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .sp-hidden {
    display: none !important;
  }
  .pc-hidden {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .pc-hidden {
    display: none !important;
  }
  .sp-hidden {
    display: block !important;
  }
}

/* ==================================================
  戻るリンク
================================================== */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(300px, 100%);
  min-height: 46px;
  margin-inline: auto;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  background: #fefefe;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 59, 45, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .back-link:hover,
  .back-link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(31, 59, 45, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-link {
    transition: none;
  }

  .back-link:hover,
  .back-link:focus-visible {
    transform: none;
  }
}

.back-link span {
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: rotate(45deg);
}

/* ==================================================
  サブページ：下部固定ナビ（privacy / thanks）※SPのみ
================================================== */
.contact-bottom-nav {
  display: none;
}

.contact-bottom-nav__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 4px 6px;
  color: var(--text);
  text-align: center;
}

.contact-bottom-nav__item + .contact-bottom-nav__item {
  border-left: 1px solid rgba(228, 228, 231, 0.2);
}

.contact-bottom-nav__item span {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
}

.contact-bottom-nav__item strong,
.contact-bottom-nav__item small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-bottom-nav__item--line span {
  background: url(../image/contact-bottom-line.png) center / contain no-repeat;
}

.contact-bottom-nav__item--phone span {
  background: url(../image/contact-bottom-tel.png) center / contain no-repeat;
}

.contact-bottom-nav__item--mail span {
  background: url(../image/contact-bottom-mail.png) center / contain no-repeat;
}

@media (max-width: 767px) {
  .contact-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    width: min(512px, 100%);
    min-height: 83px;
    margin-inline: auto;
    padding: 1px 16px max(0px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(228, 228, 231, 0.2);
    box-shadow: 0 -12px 32px rgba(26, 28, 28, 0.06);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .contact-bottom-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.has-contact-bottom-nav-visible {
    padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px));
  }

  @media (prefers-reduced-motion: reduce) {
    .contact-bottom-nav {
      transition: none;
    }
  }
}

/* ==================================================
  ヘッダー
================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 700;
  line-height: 1.25;
}

.header__logo {
  width: 31px;
  height: 27px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header__service {
  display: block;
  font-size: 12px;
}

.header__nav,
.header__contact {
  display: none;
}

/* ハンバーガーボタン */
.menu-toggle {
  display: grid;
  gap: 5px;
  width: 32px;
  height: 32px;
  place-content: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
}

/* ==================================================
  SPメニュー
================================================== */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  width: 100%;
  min-height: 100dvh;
  overflow-y: auto;
  background: linear-gradient(var(--green) 0 676px, var(--white) 676px 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-menu-open {
  overflow: hidden;
}

.is-menu-open .sp-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sp-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid #f5f6f0;
  backdrop-filter: blur(6px);
}

.sp-menu__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.sp-menu__logo {
  width: 31px;
  height: 27px;
  object-fit: contain;
  flex: 0 0 auto;
}

.sp-menu__close {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.sp-menu__close::before,
.sp-menu__close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 28px;
  height: 2px;
  background: var(--green);
}

.sp-menu__close::before {
  transform: rotate(45deg);
}

.sp-menu__close::after {
  transform: rotate(-45deg);
}

.sp-menu__body {
  display: grid;
  gap: 20px;
  width: min(350px, calc(100% - 40px));
  margin: 20px auto 0;
}

.sp-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  color: var(--green);
  font-size: 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 9px 48px 9px 16px;
}

.sp-menu__link::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: translateY(-50%) rotate(45deg);
}

.sp-menu__balloon {
  position: relative;
  justify-self: center;
  min-width: 250px;
  color: var(--orange);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #fffdf2;
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 10px 18px;
  margin-top: 18px;
  margin-bottom: -36px;
  z-index: 1;
}

.sp-menu__balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fffdf2;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  transform: translateX(-50%) rotate(45deg);
}

.sp-menu__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 700;
}

.sp-menu__button--orange {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(239, 91, 12, 0.2);
}

.sp-menu__button--orange::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("../image/icon-mail.svg") center / contain no-repeat;
  mask: url("../image/icon-mail.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.sp-menu__button--white {
  flex-direction: column;
  gap: 0;
  color: var(--green);
  background: var(--white);
}

.sp-menu__button--white::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("../image/icon-phone.svg") center / contain no-repeat;
  mask: url("../image/icon-phone.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.sp-menu__button--white span {
  font-size: 12px;
  line-height: 1.2;
  font-weight: normal;
}

/* ==================================================
  フッター
================================================== */
.footer {
  color: var(--white);
  background: var(--green);
  padding: 24px 20px 12px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.footer__lead {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
}

.footer__links a {
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 0.75;
}

.footer small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}

/* ==================================================
  タブレット以上
================================================== */
@media (min-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .header,
  .footer {
    width: 100%;
    margin-inline: auto;
  }

  .footer__inner {
    width: min(1440px, calc(100% - 40px));
    margin-inline: auto;
  }

  .header {
    height: 66px;
    background-color: var(--white);
    padding-inline: clamp(24px, 5vw, 72px);
    border-bottom: 1px solid #f3f3f3;
  }

  .header__brand {
    flex: 0 0 auto;
    gap: 10px;
  }

  .header__logo {
    width: 34px;
    height: 30px;
  }

  .header__service {
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 0.03em;
  }

  .footer {
    padding: 18px 68px 10px;
  }

  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer__lead {
    margin-top: 0;
  }

  .footer__links {
    justify-content: flex-end;
    padding-top: 3px;
  }

  .footer small {
    margin-top: 8px;
  }
}

/* ==================================================
  PCヘッダー
================================================== */
@media (min-width: 1024px) {
  .menu-toggle,
  .sp-menu {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.2vw, 26px);
    margin-left: auto;
    color: var(--green-dark);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 700;
    white-space: nowrap;
  }

  .header__nav a {
    transition: color 0.2s ease;
  }

  .header__nav a:hover {
    color: var(--green);
  }

  .header__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 184px;
    min-height: 48px;
    margin-left: clamp(18px, 3vw, 42px);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    background: var(--orange);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(239, 91, 12, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .header__contact:hover,
  .header__contact:focus-visible {
    box-shadow: 0 12px 24px rgba(239, 91, 12, 0.32);
    transform: translateY(-4px);
  }

  .header__contact::before {
    content: "";
    width: 28px;
    height: 28px;
    background: currentColor;
    -webkit-mask: url("../image/icon-mail.svg") center / contain no-repeat;
    mask: url("../image/icon-mail.svg") center / contain no-repeat;
    margin-right: 12px;
  }
}
