@charset "UTF-8";

/* =========================================================
   Footer
========================================================= */

.site-footer {
  color: var(--color-gray0);
}

/* =========================================================
   Entry area
========================================================= */

.site-footer__entry {
  background-color: var(--color-brown);
}

.site-footer__entry-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas:
    "title links"
    ". recruit";
  column-gap: 80px;
  row-gap: 24px;
  align-content: center;

  width: min(var(--content-width), calc(100% - (var(--page-gutter-pc) * 2)));
  min-height: 260px;
  margin: 0 auto;
}

.site-footer__entry-title {
  grid-area: title;
  align-self: start;

  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Internship links
--------------------------------------------------------- */

.site-footer__entry-links {
  grid-area: links;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer__entry-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 50px;
  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;

  color: var(--color-gray0);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;

  transition:
    opacity 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.site-footer__entry-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ---------------------------------------------------------
   Recruit links
--------------------------------------------------------- */

.site-footer__entry-recruit {
  grid-area: recruit;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__entry-recruit > span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__entry-recruit-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer__entry-recruit-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 50px;
  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;

  color: var(--color-gray0);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;

  transition:
    opacity 0.3s ease,
    background-color 0.25s ease;
}

.site-footer__entry-recruit-links a:nth-child(1),
.site-footer__entry-recruit-links a:nth-child(2) {
  background-color: var(--color-accent);
}

.site-footer__entry-recruit-links a:nth-child(3) {
  background-color: transparent;
}

.site-footer__entry-recruit-links a:nth-child(3):hover,
.site-footer__entry-recruit-links a:nth-child(3):focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
}

.site-footer__entry-recruit-links a:hover {
  opacity: 0.75;
}

/* =========================================================
   Visual area
========================================================= */

.site-footer__visual {
  position: relative;
  aspect-ratio: 1440 / 956;
  min-height: 0;

  background-image: url("/recruit/assets/img/footer-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.site-footer__visual-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(var(--content-width), calc(100% - (var(--page-gutter-pc) * 2)));
  height: 100%;
  margin: 0 auto;
  padding-top: clamp(72px, 6.4vw, 92px);
  padding-bottom: 0;
}

/* ---------------------------------------------------------
   Footer navigation
--------------------------------------------------------- */

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav-child {
  padding-left: 0;
}

.site-footer__nav a {
  color: var(--color-gray0);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;

  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);

  transition: opacity 0.3s ease;
}

.site-footer__nav a:hover {
  opacity: 0.7;
}

.site-footer__nav li:nth-last-child(-n + 2) a {
  font-size: 15px;
}

/* ---------------------------------------------------------
   Instagram
--------------------------------------------------------- */

.site-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 46px;
  color: var(--color-gray0);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease;
}

.site-footer__instagram:hover {
  opacity: 0.7;
}

.site-footer__instagram img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Utility
--------------------------------------------------------- */

.site-footer__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 42px;
}

.site-footer__utility a {
  color: var(--color-gray0);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.site-footer__copyright {
  margin-top: 36px;
  color: var(--color-gray0);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

/* Figma reference: 1440px footer */
@media (min-width: 1400px) {
  .site-footer__entry {
    min-height: 314px;
    padding: 60px 100px;
  }

  .site-footer__entry-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 811px;
    min-height: 194px;
    gap: 0;
  }

  .site-footer__entry-title,
  .site-footer__entry-recruit > span {
    align-self: center;
    margin: 0 0 16px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .site-footer__entry-links {
    grid-template-columns: 248px 266px 265px;
    width: 811px;
  }

  .site-footer__entry-recruit {
    width: 740px;
    margin-top: 24px;
    gap: 0;
  }

  .site-footer__entry-recruit-links {
    grid-template-columns: 255px 255px 198px;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    min-height: 53px;
    border-radius: 4px;
  }

  .site-footer__visual-inner {
    width: 100%;
    padding: 100px 200px 300px;
  }

  .site-footer__nav ul {
    gap: 0;
  }

  .site-footer__nav a {
    font-size: 24px;
    line-height: 2.2;
    letter-spacing: 0.2em;
  }

  .site-footer__instagram {
    margin-top: 15px;
  }

  .site-footer__utility {
    margin-top: 42px;
  }

  .site-footer__copyright {
    margin-top: 36px;
  }
}

/* =========================================================
   Tablet : 768px - 1199px
   PC / SP hybrid
========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {
  /* ---------------------------------------------------------
     Entry area
     Keep the same stacked / centered composition as PC,
     scaled down for tablet widths only.
  --------------------------------------------------------- */
  .site-footer__entry {
    min-height: 0;
    padding: 40px var(--page-gutter-tablet);
  }

  .site-footer__entry-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(704px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    gap: 0;
  }

  .site-footer__entry-title {
    align-self: center;
    width: 100%;
    margin: 0 0 18px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .site-footer__entry-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .site-footer__entry-recruit {
    width: 91%;
    margin-top: 22px;
    gap: 0;
  }

  .site-footer__entry-recruit > span {
    align-self: center;
    margin: 0 0 12px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .site-footer__entry-recruit-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    min-width: 0;
    min-height: 48px;
    padding: 10px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.35;
  }


  .site-footer__visual {
    aspect-ratio: auto;
    min-height: clamp(560px, 68vw, 620px);
  }

  .site-footer__visual-inner {
    justify-content: flex-start;
    width: min(
      calc(100% - (var(--page-gutter-tablet) * 2)),
      var(--content-width)
    );
    min-height: clamp(560px, 68vw, 620px);
    padding-top: 56px;
    padding-bottom: 120px;
    box-sizing: border-box;
  }

  .site-footer__nav ul {
    gap: 12px;
  }

  .site-footer__nav a {
    font-size: 15px;
    line-height: 1.8;
  }

  .site-footer__instagram {
    margin-top: 24px;
  }

  .site-footer__utility {
    margin-top: 28px;
  }

  .site-footer__copyright {
    margin-top: 24px;
  }
}


/* =========================================================
   SP
========================================================= */

@media (max-width: 767px) {
  .site-footer__entry-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "links"
      "recruit";
    gap: 20px;
    width: calc(100% - (var(--page-gutter-sp) * 2));
    min-height: 0;
    padding: 32px 0;
  }

  .site-footer__entry-title {
    font-size: 32px;
  }

  .site-footer__entry-links,
  .site-footer__entry-recruit-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    width: 100%;
    min-width: 0;
  }

  .site-footer__visual {
    aspect-ratio: auto;
    min-height: 680px;
    background-position: center center;
  }

  .site-footer__visual-inner {
    width: calc(100% - (var(--page-gutter-sp) * 2));
    height: auto;
    min-height: 680px;
    padding: 48px 0;
  }

  .site-footer__nav a {
    font-size: 13px;
  }

  .site-footer__instagram {
    margin-top: 62px;
    font-size: 14px;
  }

  .site-footer__instagram img {
    width: 22px;
    height: 22px;
  }

  .site-footer__utility {
    flex-direction: column;
    gap: 8px;
    margin-top: 62px;
  }

  .site-footer__copyright {
    margin-top: 62px;
    font-size: 10px;
  }
}

/* ==========================================================
   SP footer tuning
   Figma reference: 390px wide
   ENTRY: 390 x 636
   VISUAL: 390 x 719
   ========================================================== */
@media screen and (max-width: 767px) {
  .site-footer__entry {
    min-height: 636px;
  }

  .site-footer__entry-inner {
    width: min(300px, calc(100% - 90px));
    min-height: 636px;
    margin: 0 auto;
    padding: 80px 0;
    box-sizing: border-box;
    align-content: start;
    gap: 0;
  }

  .site-footer__entry-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .site-footer__entry-links {
    width: 100%;
  }

  .site-footer__entry-recruit {
    width: 100%;
    margin-top: 48px;
  }

  .site-footer__entry-links,
  .site-footer__entry-recruit-links {
    gap: 12px;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    font-size: 14px;
  }

  .site-footer__visual {
    min-height: 719px;
  }

  .site-footer__visual-inner {
    width: calc(100% - 64px);
    min-height: 519px;
    margin: 0 auto;
    padding-top: 80px;
    box-sizing: border-box;
  }
}

/* Figma reference: 390px footer */
@media screen and (max-width: 767px) {
  .site-footer__entry {
    min-height: 604px;
  }

  .site-footer__entry-inner {
    width: min(300px, calc(100% - 80px));
    min-height: 604px;
    padding: 80px 0;
  }

  .site-footer__entry-title {
    align-self: center;
    width: 100%;
    margin-bottom: 16px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    min-height: 48px;
    border-radius: 8px;
  }

  .site-footer__entry-recruit-links a:nth-child(-n + 2) {
    min-height: 46px;
  }

  .site-footer__entry-recruit {
    margin-top: 48px;
    gap: 16px;
  }

  .site-footer__entry-recruit > span {
    align-self: center;
    margin: 0;
    font-size: 16px;
    line-height: 1;
  }

  .site-footer__visual {
    min-height: 861px;
  }

  .site-footer__visual-inner {
    width: calc(100% - 64px);
    min-height: 861px;
    padding: 80px 0 120px;
  }

  .site-footer__nav ul {
    gap: 0;
  }

  .site-footer__nav a {
    font-size: 16px;
    line-height: 2.4;
    letter-spacing: 0.12em;
  }

  .site-footer__instagram {
    margin-top: 48px;
  }

  .site-footer__utility {
    margin-top: 48px;
  }

  .site-footer__copyright {
    margin-top: 48px;
  }
}

/* Final footer typography adjustments */
.site-footer__nav li:nth-child(2),
.site-footer__nav li:nth-child(5),
.site-footer__nav li:nth-child(10) {
  margin-top: 8px;
}

.site-footer__nav .site-footer__nav-child > a {
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .site-footer__nav a {
    font-size: 24px;
  }
}

/* ==========================================================
   SP footer final tuning
   Figma reference: 390px wide
   ========================================================== */
@media screen and (max-width: 767px) {
  .site-footer__utility {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    column-gap: 18px;
    row-gap: 8px;
  }

  .site-footer__utility a {
    font-size: 12px;
    letter-spacing: 0.08em; /* ← デザインとの差分 */
    white-space: nowrap;
  }

  .site-footer__utility a:last-child {
    flex-basis: 100%;
  }

  .site-footer__copyright {
    font-size: 10px;
  }

  .site-footer__visual {
    min-height: 861px;
    background-position: 79% center;
  }

  .site-footer__visual-inner {
    width: calc(100% - 64px);
    min-height: 861px;
    margin: 0 auto;
    padding: 80px 0 120px;
    box-sizing: border-box;
  }
}


/* Shared button hover
   Keep the transition itself unconditional so it also remains active when
   DevTools/device emulation changes the reported pointer capability. */
.site-footer__entry-links a,
.site-footer__entry-recruit-links a,
.site-footer__nav a,
.site-footer__instagram {
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.site-footer__entry-links a:hover,
.site-footer__entry-links a:focus-visible,
.site-footer__entry-recruit-links a:hover,
.site-footer__entry-recruit-links a:focus-visible,
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible,
.site-footer__instagram:hover,
.site-footer__instagram:focus-visible {
  opacity: 0.8;
}

/* ---------------------------------------------------------
   PC : 1200px - 1399px
   Keep the entry area centered instead of falling back to
   the wide two-column title / links layout.
--------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-footer__entry {
    min-height: 260px;
    padding: 40px var(--page-gutter-pc);
  }

  .site-footer__entry-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(811px, 100%);
    min-height: 0;
    gap: 0;
  }

  .site-footer__entry-title,
  .site-footer__entry-recruit > span {
    align-self: center;
    margin: 0 0 16px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .site-footer__entry-links {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__entry-recruit {
    width: min(740px, 100%);
    margin-top: 24px;
    gap: 0;
  }

  .site-footer__entry-recruit-links {
    grid-template-columns: 255fr 255fr 198fr;
  }

  .site-footer__entry-links a,
  .site-footer__entry-recruit-links a {
    min-height: 53px;
    border-radius: 4px;
  }
}
