:root {
  --orange: #ff6816;
  --pink: #fac1de;
  --hot: #ff45c0;
  --cream: #fff4d3;
  --paper: #f3efe7;
  --ink: #222;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pink);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}

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

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

/* Shared site header */
.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--orange);
}

.site-header--home {
  height: 78px;
  padding: 0 5vw;
  position: absolute;
  z-index: 10;
  gap: 40px;
}

.site-header--subpage {
  height: 84px;
  padding: 0 max(28px, 5vw);
  justify-content: space-between;
}

.site-header__logo {
  font:
    800 22px Outfit,
    sans-serif;
  letter-spacing: 0.12em;
}

.site-header__nav {
  display: flex;
  gap: 50px;
  margin-left: auto;
  font-family: Handjet, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-header__nav a {
  position: relative;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--ink);
  transition: right 0.25s;
}

.site-header__nav a:hover::after {
  right: 0;
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: 15px;
  font:
    700 12px/1 Outfit,
    sans-serif;
}

.site-header__social a {
  display: block;
  line-height: 0;
}

.site-header__social img {
  width: 28px;
  height: 28px;
  filter: brightness(0);
}

.site-header__menu {
  display: none;
  padding: 5px;
  border: 0;
  background: none;
}

.site-header__menu i {
  width: 25px;
  height: 2px;
  margin: 5px;
  display: block;
  background: var(--ink);
  transition: 0.3s;
}

.site-header__back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: transform 0.25s;
}

.site-header__back span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: 0.25s;
}

.site-header__back:hover {
  transform: translateX(-4px);
}

.site-header__back:hover span {
  background: var(--ink);
  color: var(--orange);
}

/* Shared site footer */
.site-footer {
  min-height: 316px;
  padding: 80px max(150px, calc(50% - 570px));
  position: relative;
  z-index: 2;
  display: flex;
  gap: 64px;
  align-items: center;
  background: var(--cream);
  font-size: 16px;
  text-align: left;
}

.footer-logo {
  width: 164px;
  height: 156px;
  flex: 0 0 164px;
  position: relative;
  overflow: hidden;
}

.footer-logo img {
  width: 163.88%;
  height: 214.78%;
  max-width: none;
  position: absolute;
  left: -20.49%;
  top: -24.89%;
}

.footer-content {
  height: 156px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer-contact {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footer-contact img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.footer-contact a:last-child img {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  margin: 1px;
}

.footer-divider {
  width: 2px;
  height: 156px;
  flex: 0 0 2px;
  object-fit: fill;
}

.footer-links {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy {
  width: 240px;
  white-space: nowrap;
}

.site-footer a {
  position: relative;
  font: inherit;
  letter-spacing: normal;
  transition:
    color 0.25s,
    transform 0.25s;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--orange);
  transition: right 0.3s;
}

.site-footer a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.site-footer a:hover::after {
  right: 0;
}

.footer-contact a img {
  transition:
    transform 0.3s,
    filter 0.3s;
}

.footer-contact a:hover img {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 5px 5px rgba(255, 104, 22, 0.22));
}

@media (max-width: 900px) {
  .site-header--home {
    height: 64px;
    padding: 0 20px;
    gap: 8px;
  }

  .site-header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--orange);
    font-size: 28px;
    transform: translateX(100%);
    transition: transform 0.35s;
  }

  .site-header__nav.open {
    transform: none;
  }

  .site-header__social {
    margin-left: auto;
    gap: 8px;
  }

  .site-header__menu {
    z-index: 2;
    display: block;
    margin-left: 2px;
    padding-left: 3px;
    padding-right: 3px;
  }

  .site-header__menu.active i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__menu.active i:nth-child(2) {
    opacity: 0;
  }

  .site-header__menu.active i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-footer {
    min-height: 0;
    padding: 55px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }

  .footer-logo {
    width: 145px;
    height: 138px;
  }

  .footer-content {
    width: 100%;
    height: auto;
    display: grid;
    gap: 28px;
  }

  .footer-contact,
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .footer-contact a {
    white-space: normal;
  }

  .footer-divider {
    display: none;
  }

  .footer-links,
  .privacy {
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--orange);
  }
}

@media (max-width: 700px) {
  .site-header--subpage {
    height: 70px;
    padding: 0 18px;
  }

  .site-header__logo {
    font-size: 18px;
  }

  .site-header__back {
    font-size: 13px;
  }

  .site-header__back span {
    width: 30px;
    height: 30px;
  }
}

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

  .site-header__nav,
  .site-header__menu i,
  .site-header__back,
  .site-header__back span,
  .site-footer a,
  .site-footer a::after,
  .footer-contact a img {
    transition: none;
  }
}
