/* ========================================
   Variables
======================================== */
:root {
  /* Colors */
  --color-primary: #f08300;
  --color-navy: #1a2c5b;
  --color-brown: #5c4720;
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-white: #ffffff;

  /* Typography */
  --font-base: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Layout */
  --content-width: 41.25rem;
  --side-padding: clamp(1.25rem, 4vw, 2rem);

  /* Motion */
  --transition-base: 0.25s ease;
  --cta-pulse-scale: 1.03;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: calc(clamp(2.8rem, 12vw, 5rem) + env(safe-area-inset-bottom));
  color: var(--color-text);
  font-family: var(--font-base);
  background-image: url("images/body-bg.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 0;
  }
}

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

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

/* ========================================
   Layout
======================================== */
.page-layout {
  width: 100%;
}

.site-shell {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  background: var(--color-bg);
}

.side-panel {
  display: none;
}

@media (min-width: 1100px) {
  .page-layout {
    display: grid;
    grid-template-columns: minmax(clamp(22rem, 32vw, 42rem), 1fr) minmax(0, var(--content-width)) minmax(clamp(17rem, 24vw, 30rem), 1fr);
    align-items: start;
    margin-inline: auto;
  }

  .side-panel {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .side-info__image,
  .side-info__logo {
    width: clamp(18rem, 30vw, 26rem);
  }

  .side-info__logo {
    margin-top: var(--space-sm);
  }

  .side-nav {
    width: clamp(15rem, 22vw, 19rem);
  }

  .side-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(92, 71, 32, 0.2);
  }

  .side-nav__item {
    border-bottom: 1px solid rgba(92, 71, 32, 0.2);
  }

  .side-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem var(--space-xs);
    color: var(--color-brown);
    font-weight: 600;
    transition: opacity 0.25s ease;
  }

  .side-nav__link:hover {
    opacity: 0.7;
  }

  .side-nav__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .side-nav__text {
    flex: 1;
    font-size: clamp(1rem, 1.8vw, 1.9375rem);
  }

  .side-nav__arrow {
    width: 1.75rem;
    height: 1.75rem;
    margin-left: auto;
  }

  .side-cta {
    display: grid;
    gap: var(--space-md);
    width: clamp(15rem, 22vw, 19rem);
    margin-top: var(--space-lg);
  }

  .side-cta__link {
    display: block;
    transition: opacity 0.25s ease;
  }

  .side-cta__link:hover {
    opacity: 0.85;
  }
}

/* ========================================
   SP Header
======================================== */
.sp-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(0.5rem, 3vw, 0.75rem) var(--side-padding);
  background: var(--color-bg);
}

.sp-header__logo-link {
  display: block;
}

.sp-header__logo {
  width: clamp(7rem, 30vw, 9rem);
}

.sp-header__contact {
  display: none;
}

@media (min-width: 1100px) {
  .sp-header {
    display: none;
  }
}

/* ========================================
   SP Fixed Nav
======================================== */
.sp-fixed-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.16);
}

.sp-fixed-nav__link {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.sp-fixed-nav__image {
  width: 100%;
  height: auto;
}

@media (min-width: 1100px) {
  .sp-fixed-nav {
    display: none;
  }
}

@media (max-width: 660px) {
  body {
    padding-bottom: calc(clamp(3.2rem, 13vw, 3.6rem) + env(safe-area-inset-bottom));
  }

  .sp-header {
    justify-content: space-between;
    gap: 0.45rem;
    max-width: 100vw;
    overflow: hidden;
    padding: 0.5rem clamp(0.55rem, 2.8vw, 0.85rem);
    box-shadow: 0 1px 0 rgba(92, 71, 32, 0.12);
  }

  .sp-header__logo-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sp-header__logo {
    width: min(100%, 8.8rem);
  }

  .sp-header__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(2.15rem, 1fr));
    flex: 0 0 clamp(4.9rem, 24vw, 6.1rem);
    align-items: center;
    gap: clamp(0.18rem, 1vw, 0.4rem);
  }

  .sp-header__contact-link {
    display: grid;
    justify-items: center;
    gap: 0.18rem;
    min-width: 0;
    color: #1f2b35;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .sp-header__contact .sp-header__contact-link--mail {
    display: none;
  }

  .sp-header__contact-icon {
    width: clamp(1.65rem, 7.2vw, 2.05rem);
    height: clamp(1.65rem, 7.2vw, 2.05rem);
    object-fit: contain;
  }

  .sp-fixed-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sp-fixed-nav__image {
    height: clamp(3.2rem, 13vw, 3.6rem);
    object-fit: cover;
    object-position: center;
  }
}

/* ========================================
   Hero
======================================== */
.hero__image {
  width: 100%;
}

/* ========================================
   CTA
======================================== */
.cta {
  padding: var(--space-md) var(--side-padding);
  background: #fffdee;
}

@keyframes cta-button-animation {
  0% { transform: scale(1); }
  15% { transform: scale(var(--cta-pulse-scale)); }
  30% { transform: scale(1); }
  45% { transform: scale(var(--cta-pulse-scale)); }
  70% { transform: scale(1); }
  90% { transform: scale(var(--cta-pulse-scale)); }
}

.cta__link {
  display: block;
  animation: 1.5s ease 0s infinite cta-button-animation;
  transition: transform var(--transition-base);
}

.cta__link:hover {
  transform: scale(1.05);
}

.cta__image {
  width: 100%;
}

/* ========================================
   Worry
======================================== */
.worry {
  position: relative;
  z-index: 9;
}

.worry__image {
  width: 100%;
}

/* ========================================
   Solution
======================================== */
.solution {
  position: relative;
  z-index: 8;
  margin-top: -8.5%;
}

.solution__image {
  width: 100%;
}

/* ========================================
   Cause
======================================== */
.cause {
  position: relative;
  z-index: 7;
  margin-top: -8.5%;
}

.cause__image {
  width: 100%;
}

/* ========================================
   Service
======================================== */
.service {
  position: relative;
  z-index: 6;
  margin-top: -11%;
}

.service__image {
  width: 100%;
}

/* ========================================
   Video
======================================== */
.video {
  position: relative;
  z-index: 5;
  margin-top: -8.5%;
  background: #fffdee;
}

.video__image {
  width: 100%;
}

.video__embed {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 45%;
  aspect-ratio: 16 / 9;
}

.video__embed iframe,
.video__embed video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Voice
======================================== */
.voice {
  position: relative;
  z-index: 4;
}

.voice__image {
  width: 100%;
}

/* ========================================
   Step
======================================== */
.step {
  position: relative;
  z-index: 3;
  margin-top: -11.5%;
}

.step__image {
  width: 100%;
}

/* ========================================
   Reason
======================================== */
.reason {
  position: relative;
  z-index: 2;
  margin-top: -8.5%;
}

.reason__image {
  width: 100%;
}

/* ========================================
   Recruit
======================================== */
.recruit {
  position: relative;
  z-index: 1;
  margin-top: -8.5%;
}

.recruit__image {
  width: 100%;
}

/* ========================================
   Footer
======================================== */
.footer {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: clamp(1.25rem, 4vw, 2rem);
  padding: 2.75rem clamp(1.25rem, 5vw, 3rem) 2rem;
  background: var(--color-navy);
  text-align: center;
}

.footer__brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.footer__logo {
  width: clamp(5rem, 16vw, 6.5rem);
}

.footer__title {
  width: clamp(8.75rem, 26vw, 10.5rem);
}

.footer__hp-link {
  width: clamp(9.5rem, 30vw, 11.5rem);
  transition: opacity var(--transition-base);
}

.footer__hp-link:hover {
  opacity: 0.8;
}

.footer__hp-button {
  width: 100%;
}

.footer__content {
  display: grid;
  gap: 3rem;
  min-width: 0;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: clamp(0.85rem, 2.2vw, 1.25rem);
  row-gap: 1.5rem;
  justify-content: center;
  color: var(--color-white);
  font-size: clamp(0.95rem, 2.45vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.footer__nav-link {
  position: relative;
  padding-left: 0.8rem;
  white-space: nowrap;
  transition: opacity var(--transition-base);
}

.footer__nav-link::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 0.25rem;
  height: 0.85em;
  background: var(--color-white);
}

.footer__nav-link:hover {
  opacity: 0.8;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.footer__sns-link {
  display: block;
  width: clamp(3rem, 7vw, 3.4rem);
  transition: opacity var(--transition-base);
}

.footer__sns-link:hover {
  opacity: 0.8;
}

.footer__sns-icon {
  width: 100%;
}

@media (min-width: 41.25rem) {
  .footer {
    grid-template-columns: minmax(8rem, 9rem) 1fr;
    width: 100%;
    gap: 2.5rem;
    align-items: stretch;
    padding: 2.75rem var(--side-padding) 2rem;
    text-align: left;
  }

  .footer__brand {
    justify-items: start;
  }

  .footer__logo {
    width: 5.5rem;
  }

  .footer__title {
    width: 9.5rem;
  }

  .footer__hp-link {
    width: 10.5rem;
  }

  .footer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer__nav {
    grid-template-columns: repeat(3, max-content);
    column-gap: 1rem;
    row-gap: 1rem;
    justify-content: start;
    font-size: 0.95rem;
  }

  .footer__sns {
    justify-content: flex-end;
  }
}
