@charset "UTF-8";

:root {
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-green: #2fb3a6;
  --color-red: #ff7272;
  --color-yellow: #fff54e;
  --color-border: #bababa;
  --color-black: #000000;
  --header-height: 76px;
  --content-width: 1120px;
  --space-page-sp: 18px;
  --space-content-sp: 36px;
  --back-to-top-offset: 4px;
  --contact-decoration-height: 110px;
  --font-base: "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-gutter: auto;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-base);
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-text-link {
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-text-link:hover,
.inline-text-link:focus-visible {
  color: var(--color-green);
  text-decoration-color: var(--color-yellow);
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin-block: 0;
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ヘッダー */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-white);
}

.site-header__logo {
  flex: 0 0 auto;
}

.site-header__logo img {
  width: 158px;
  height: auto;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.menu-toggle__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.menu-toggle__icon span {
  position: absolute;
  right: 0;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: top 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle__icon span:first-child {
  top: 0.28rem;
}

.menu-toggle__icon span:last-child {
  top: 0.68rem;
}

.menu-toggle:hover .menu-toggle__label,
.menu-toggle[aria-expanded="true"] .menu-toggle__label {
  color: var(--color-green);
  text-shadow: 1.5px 1.5px 0 var(--color-yellow);
}

.menu-toggle:hover .menu-toggle__icon,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  color: var(--color-green);
}

.menu-toggle:hover .menu-toggle__icon span,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span {
  box-shadow: 1.5px 1.5px 0 var(--color-yellow);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  top: 0.5rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  transform: rotate(-45deg);
}

/* ハンバーガーメニュー */
.menu-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 900;
  visibility: hidden;
  background: rgb(0 0 0 / 48%);
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.menu-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.global-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  z-index: 950;
  width: min(calc(100vw - 5rem), 30rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-yellow);
  transform: translateX(102%);
  transition: transform 0.3s ease;
}

.global-menu.is-open {
  transform: translateX(0);
}

.global-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: clamp(4rem, 10vh, 6.5rem) 1.25rem 3rem;
}

.global-menu__list {
  display: grid;
  justify-items: end;
  gap: clamp(1.7rem, 4.5vh, 2.5rem);
  width: min(100%, 19rem);
}

.global-menu__list a {
  display: inline-block;
  font-size: clamp(1rem, 5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.global-menu__list a[aria-current="page"] {
  color: var(--color-red);
}

.global-menu__list a:hover,
.global-menu__list a:focus-visible,
.global-menu__list a[aria-current="page"]:hover,
.global-menu__list a[aria-current="page"]:focus-visible {
  color: var(--color-green);
}

.global-menu__social {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  transition: transform 0.2s ease;
}

.global-menu__social:hover {
  transform: rotate(-8deg) scale(1.08);
}

/* TOPページ本文を実装するまでの共通部品確認用領域 */
.site-main {
  padding-top: var(--header-height);
}

.common-preview-space {
  min-height: clamp(29rem, 58vh, 44rem);
}

/* お問い合わせ導線 */
.contact-cta {
  position: relative;
  overflow: hidden;
  padding: 80px var(--space-page-sp) calc(90px + var(--contact-decoration-height));
  background: var(--color-green);
  color: var(--color-white);
}

.contact-cta__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.contact-cta__title {
  color: var(--color-white);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact-cta__title span {
  color: var(--color-yellow);
}

.contact-cta__subtitle {
  margin-top: 0.35rem;
  color: var(--color-yellow);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.contact-cta__text {
  width: calc(100% - var(--space-content-sp));
  margin-top: 50px;
  margin-inline: auto;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

.contact-cta__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - var(--space-content-sp)), 33rem);
  min-height: 4rem;
  margin: clamp(3.5rem, 12vw, 5rem) auto 0;
  padding: 0.8rem 3.25rem;
  border: 3px solid var(--color-black);
  box-shadow: 5px 6px 0 var(--color-red);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-cta__button > span:first-child {
  min-width: 0;
}

.contact-cta__button:hover {
  box-shadow: 7px 8px 0 var(--color-red);
  transform: translate(-2px, -2px);
}

.contact-cta__arrow {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  color: var(--color-red);
  font-size: 1.4em;
  line-height: 1;
  transform: translateY(-50%);
}

.contact-cta__decoration {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  z-index: 0;
  height: calc(var(--contact-decoration-height) + 2px);
  background: var(--color-green);
  pointer-events: none;
}

.contact-cta__decoration::before,
.contact-cta__decoration::after,
.contact-cta__decoration-white {
  position: absolute;
  inset: 0;
  content: "";
}

.contact-cta__decoration::before {
  background: var(--color-yellow);
  clip-path: polygon(0 55%, 100% 0, 100% 30%, 0 72%);
}

.contact-cta__decoration-white {
  display: block;
  bottom: -3px;
  background: var(--color-white);
  clip-path: polygon(0 85%, 100% 31%, 100% 100%, 0 100%);
}

.contact-cta__decoration::after {
  background: var(--color-red);
  clip-path: polygon(0 72%, 100% 30%, 100% 35%, 0 89%);
}

/* フッター */
.site-footer {
  background: var(--color-white);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 1fr);
  gap: 2rem;
  width: min(calc(100% - var(--space-content-sp)), var(--content-width));
  min-height: 23rem;
  margin-inline: auto;
  padding: clamp(4.5rem, 14vw, 7rem) 0 4.5rem;
}

.site-footer__brand {
  align-self: end;
  container-type: inline-size;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
}

.site-footer__social span {
  white-space: nowrap;
}

.site-footer__social img {
  flex: 0 0 auto;
}

@container (max-width: 135px) {
  .site-footer__social span {
    display: none;
  }
}

.site-footer__logo {
  display: block;
  width: fit-content;
  margin-top: 1.2rem;
}

.site-footer__nav {
  justify-self: end;
  align-self: start;
}

.site-footer__nav ul {
  display: grid;
  justify-items: end;
  gap: 1rem;
}

.site-footer__nav a {
  font-size: clamp(0.85rem, 3.8vw, 1rem);
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible,
.site-footer__social:hover,
.site-footer__social:focus-visible {
  color: var(--color-green);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer__legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.site-footer__legal a {
  transition: color 0.2s ease;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--color-yellow);
}

.site-footer__legal small {
  flex-basis: 100%;
  font-size: inherit;
}

/* TOPへ戻るボタン */
.back-to-top {
  position: fixed;
  right: var(--back-to-top-offset);
  bottom: var(--back-to-top-offset);
  z-index: 800;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 50px;
  height: 50px;
  padding: 0.2rem 0.15rem 0.1rem;
  box-shadow: 2px 2px 0 var(--color-yellow);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.08s linear;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top__arrow {
  width: 0.8rem;
  height: 0.8rem;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.back-to-top:hover {
  background: var(--color-yellow);
  color: var(--color-text);
}

body.menu-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  html {
    scrollbar-gutter: stable;
  }

  :root {
    --contact-decoration-height: 140px;
  }

  .contact-cta__inner {
    padding-inline: 0;
  }

  .contact-cta__decoration::before {
    clip-path: polygon(0 60%, 100% 0, 100% 48%, 0 82%);
  }

  .contact-cta__decoration::after {
    clip-path: polygon(0 82%, 100% 48%, 100% 53%, 0 98%);
  }

  .contact-cta__decoration-white {
    clip-path: polygon(0 93%, 100% 49%, 100% 100%, 0 100%);
  }

  .site-footer__main {
    grid-template-columns: 1fr auto;
    min-height: 25rem;
  }

}

@media (max-width: 374px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-header__logo img {
    width: 142px;
  }

  .global-menu {
    width: calc(100vw - 4rem);
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 0.9fr) minmax(10rem, 1.1fr);
  }

  .site-footer__logo img {
    width: 140px;
  }

  .site-footer__legal-links {
    gap: 0.4rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 320px) {
  .site-footer__social span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not (scrollbar-gutter: stable) {
  @media (min-width: 768px) {
    html {
      overflow-y: scroll;
    }
  }
}
