/* =========================================================
   smp-factory-suzuka-hero.css
   ========================================================= */

/* =========================================================
   1. HERO Root
   ========================================================= */
:root {
  --smp--color2--smp-green: #007a4c;
  --smp--color2--smp-green2: #6fbfa1;
  --smp--color2--black: #2f3f3a;
  --smp--color2--white: #ffffff;
  --smp--color2--site-white: #f4fbf7;
  --smp--color2--site-glay: #d7ebe2;
  --smp--color2--silver: #dfe7ec;
  --smp--color2--gold: #f2e1b8;
  --smp--color2--olive-green: #bfe6d6;
  --smp--color2--bright-green: #e4f3e6;
  --smp--color2--light-blue: #b7d9f2;
  --smp--color2--medium-gray: #bfc1c3;
  --smp--color2--purple: #d7d6f0;
  --smp--color2--orange: #f6c28b;
  --smp--color2--pink: #f7b7c9;
  --smp--color2--light-yellow: #fff6d0;

  --fs-xs: clamp(12px, 0.8rem, 14px);
  --fs-sm: clamp(14px, 0.9rem, 16px);
  --fs-md: clamp(16px, 1rem, 18px);
  --fs-lg: clamp(18px, 1.2rem, 22px);
  --fs-xl: clamp(22px, 2vw, 32px);
  --fs-xxl: clamp(28px, 3vw, 42px);
  --fs-hero: clamp(32px, 4vw, 56px);

  --lh-base: 1.7;
  --lh-tight: 1.3;
}
.p-factory-suzuka-01 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-md);
  line-height: var(--lh-base);
}

.hs-main {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--factory-header-height));
  overflow: hidden;
  background-color: var(--smp--color2--light-yellow);
  background-image: radial-gradient(
    circle,
    var(--smp--color2--light-blue) 1.5px,
    transparent 1.5px
  );
  background-size: 28px 28px;
  isolation: isolate;
}

/* background decoration（現状はオフ：必要なら解除） */
/*
.hs-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  scale: 0.62;
  transition: opacity 0.3s ease, scale 0.3s ease;
  z-index: 1;
}
*/

@media (max-width: 767px) {
  .hs-main {
    min-height: calc(100svh - var(--factory-header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-bottom: 2.4rem; */
  }
}

/* =========================================================
   1.1 Hero Copy Wrapper
   ========================================================= */
.factory-hero__copy {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: clamp(8px, 1svh, 60px);
  padding-top: clamp(8px, 2svh, 20px);
}
.factory-hero__copy .factory-hero__brand {
  align-self: flex-start; /* brandだけ左寄せ */
  justify-self: flex-start;
}

.factory-hero__copy .hs-main-txt {
  align-self: center;
  justify-self: center;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .factory-hero__copy {
    align-items: center;
    row-gap: clamp(8px, 5svh, 90px);
    padding-top: clamp(8px, 2svh, 20px);
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .factory-hero__copy {
    align-items: center;
    row-gap: clamp(8px, 1.7svh, 24px);
  }

  .factory-hero__copy .factory-hero__brand {
    align-self: center; /* リセット */
  }

  .factory-hero__copy .hs-main-txt {
    align-self: center;
  }
}

/* =========================================================
   Header Height Variable
   ========================================================= */
:root {
  --factory-header-height: 70px; /* PC */
  --hero-scale: 1;
}

@media (max-width: 768px) {
  :root {
    --factory-header-height: 70px; /* SP */
  }
}

@media (max-width: 1399px) {
  .header-is-pc {
    display: none;
  }
}

@media (min-width: 1400px) {
  .header-is-sp {
    display: none;
  }
}

/* =========================================================
   Factory Header : Base
   ========================================================= */
.factory-header {
  position: relative;
  z-index: 10;
  background: var(--smp--color2--white);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--smp--color2--site-glay);
}

.factory-header__inner {
  margin-inline: auto;
  padding: 20px 40px 12px; /* PC */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .factory-header__inner {
    padding: 20px 20px 12px;
  }
}

/* Brand */
.factory-header__logo {
  font-weight: 800;
  text-decoration: none;
  color: var(--smp--color2--smp-green);
}

.factory-header__logo img {
  max-width: 80%;
}

/* =========================================================
   PC NAV
   ========================================================= */
.factory-header__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.factory-header__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--smp--color2--smp-green);
  font-weight: 500;
  /* font-size: 0.75rem; */
  font-size: var(--fs-xs);
  padding: 4px 12px 4px 20px; /* 後勝ち（enhancement側） */
  border: 1px solid var(--smp--color2--smp-green);
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.factory-header__list a.is-cta {
  padding: 6px 1px 6px 2.2em;
  border-radius: 999px;
  border: 2px solid var(--smp--color2--smp-green);
}

.factory-header__list a:hover {
  background-color: var(--smp--color2--smp-green);
  color: #ffffff;
}

.factory-header__list a:hover::before {
  color: #ffffff;
}

.factory-header__list a[aria-current] {
  box-shadow: 0 0 0 2px var(--smp--color2--smp-green);
}

/* =========================================================
   Hamburger Button
   ========================================================= */
.factory-header__toggle {
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.factory-header__toggle span {
  display: block;
  height: 2px;
  background: var(--smp--color2--smp-green);
  margin: 6px 0;
}

body.is-spmenu-open {
  overflow: hidden;
}

/* =========================================================
   SP Menu Panel（Base状態は非表示）
   ========================================================= */
.factory-header__spnav {
  position: fixed;
  inset: 0;
  height: var(--factory-vv-height, 100dvh);
  transform: translateY(var(--factory-vv-top, 0px));
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.factory-header__spnav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.factory-header__spnav-bg {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.factory-header__spnav-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: var(--factory-vv-height, 100dvh);
  overflow: auto;
  margin-top: 0;
  padding: 0;
  border-radius: 0 0 20px 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.factory-header__sphead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  margin-bottom: 8px;
}

.factory-header__spbrand img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.factory-header__close {
  position: static;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 42px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: var(--smp--color2--smp-green);
}

/* =========================================================
   SP Menu List
   ========================================================= */
.factory-header__splist {
  list-style: none;
  margin: 0;
  padding: 0 20px;
}

.factory-header__splist li {
  margin-bottom: 0;
  border-bottom: 1px solid #d7dcda;
}

.factory-header__splist a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 12px;
  /* font-size: 31px; */
  font-size: var(--fs-lg);
  font-weight: 500;
  text-decoration: none;
  color: #324540;
  border-radius: 0;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.factory-header__splist a.is-cta {
  font-weight: 700;
}

/* =========================================================
   SP Menu Banner（高校生向け装飾バナー）
   ========================================================= */
.factory-header__spbanner {
  position: relative;
  max-width: 300px;
  margin: 28px auto 20px;
  padding: 18px 20px 18px 20px;
  border-radius: 16px;
  background-color: rgb(255, 241, 184);
  background-image:
    linear-gradient(
      135deg,
      rgba(255, 241, 184, 0.6) 10%,
      rgba(0, 168, 102, 0.5) 80%
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 0 62%,
      rgba(255, 255, 255, 0) 63%
    ),
    radial-gradient(
      circle,
      rgba(173, 245, 219, 0.64) 0 64%,
      rgba(173, 245, 219, 0) 65%
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.16) 0 58%,
      rgba(255, 255, 255, 0) 59%
    );
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    38px 38px,
    64px 64px,
    54px 54px;
  background-position:
    0 0,
    14% 20%,
    56% 18%,
    76% 76%;
  overflow: hidden;
  animation: spbanner-bubbles-drift 14s ease-in-out infinite alternate;
}

.factory-header__spbanner::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 0;
  animation: spbanner-float-a 10s ease-in-out infinite alternate;
}

.factory-header__spbanner::after {
  content: "";
  position: absolute;
  bottom: -36px;
  left: -10px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(164, 241, 213, 0.18);
  pointer-events: none;
  z-index: 0;
  animation: spbanner-float-b 12s ease-in-out infinite alternate;
}

.factory-header__spbanner-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--smp--color2--smp-green);
  letter-spacing: 0.1em;
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(255, 255, 255, 0.65);
}

.factory-header__spbanner-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--smp--color2--smp-green);
  line-height: 1.6;
  -webkit-text-stroke: 0.45px rgba(255, 255, 255, 0.98);
  paint-order: stroke fill;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 1px 5px rgba(255, 255, 255, 0.72);
}

.factory-header__spbanner-lead strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--smp--color2--smp-green);
  -webkit-text-stroke: 0.55px rgba(255, 255, 255, 0.98);
  paint-order: stroke fill;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 1px 6px rgba(255, 255, 255, 0.75);
  letter-spacing: -0.01em;
}

.factory-header__spbanner-note {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--smp--color2--smp-green);
  line-height: 1.5;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(255, 255, 255, 0.68);
}

@keyframes spbanner-float-a {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-10px, 8px);
  }
}

@keyframes spbanner-float-b {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(12px, -6px);
  }
}

@keyframes spbanner-bubbles-drift {
  0% {
    background-position:
      0 0,
      14% 20%,
      56% 18%,
      76% 76%;
  }
  100% {
    background-position:
      0 0,
      22% 13%,
      48% 26%,
      70% 68%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .factory-header__spbanner,
  .factory-header__spbanner::before,
  .factory-header__spbanner::after {
    animation: none;
  }
}

/* =========================================================
   NAV ICONS
   ========================================================= */
.factory-header__list a::before {
  content: "▶";
  position: absolute;
  left: 0.6em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
  color: var(--smp--color2--smp-green);
}

.factory-header__list a.is-cta::before {
  content: "★";
}

.factory-header__splist a::after {
  content: "▼";
  margin-left: 16px;
  color: var(--smp--color2--smp-green);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 480px) {
  .factory-header__spnav-panel {
    width: 100%;
    max-height: var(--factory-vv-height, 100dvh);
    margin-top: 0;
    padding: 0;
    border-radius: 0;
  }

  .factory-header__spbrand img {
    width: 219px;
  }

  .factory-header__sphead {
    padding: 20px 20px 12px;
  }

  .factory-header__splist {
    padding: 0 20px;
  }

  .factory-header__splist a {
    min-height: 52px;
    font-size: 14px;
  }

  .factory-header__splist a::after {
    font-size: 14px;
  }

  .factory-header__spbanner-lead {
    font-size: 16px;
  }

  .factory-header__spbanner-lead strong {
    font-size: 18px;
  }
}

/* =========================================================
   HERO（Brand / Kicker）
   ========================================================= */
.factory-brand {
  display: inline-block;
  width: fit-content;
}

.factory-brand__mark {
  display: block;
  max-width: 100%;
  height: auto;
}

.factory-brand__name {
  display: block;
  margin-top: 3px;

  width: 100%;
  max-width: 100%;

  font-size: var(--fs-xxl);
  color: var(--smp--color2--smp-green);

  font-weight: 700;
  line-height: 1.1;

  white-space: nowrap;
  padding: 0.1rem 1rem 0 3rem;
}

.p-factory-suzuka-01 .factory-brand__name .factory-char {
  display: inline-block;
  will-change: transform, opacity;
}

.p-factory-suzuka-01 .factory-kicker {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}

@media (max-width: 768px) {
  .p-factory-suzuka-01 .factory-kicker {
    font-size: 14px;
    letter-spacing: 0.28em;
  }
}

.p-factory-suzuka-01 .u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Responsive（Brand）
   ========================================================= */
@media (max-width: 768px) {
  .p-factory-suzuka-01 .factory-brand {
    gap: 1px;
  }

  .p-factory-suzuka-01 .factory-brand__mark {
    width: 100%;
  }

}

/* ==========================================================
   Scroll Attention（SCROLL誘導）
   ========================================================== */
.scroll-attention {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 20;
  color: var(--smp--color2--smp-green);
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.scroll-attention span {
  display: block;
  position: relative;
  padding-bottom: 24px;
}

.scroll-attention span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 18px;
  background-color: var(--smp--color2--smp-green);
  transform: translateX(-50%);
  animation: boost-scroll-bar 1.4s ease-in-out infinite;
  opacity: 0;
}

@keyframes boost-scroll-bar {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .scroll-attention {
    bottom: 20px;
    font-size: 0.65rem;
  }

  .scroll-attention span {
    padding-bottom: 18px;
  }

  .scroll-attention span::after {
    height: 14px;
  }
}

/* =========================================================
   Brand Block
   ========================================================= */
.js-brand-mark,
.js-brand-name,
.js-brand-name .factory-char {
  opacity: 0;
  visibility: hidden;
}

.factory-hero__brand {
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0% 20px 8%;
}

@media (max-width: 768px) {
  .factory-hero__brand {
    align-items: center;
    padding: 0px 60px 24px;
    scale: 0.9;
  }
}

/* =========================================================
   Center Copy
   ========================================================= */
.hs-main-txt {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: clamp(12px, 30vw, 1600px);
  scale: 0.9;
}

@media (max-width: 768px) {
  .hs-main-txt {
    left: 50%;
    scale: 0.8;
    /* scale: var(--hero-scale); */
    width: 95%;
  }
}

.hero__label {
  display: inline-block;
  background: #fff;
  color: var(--smp--color2--smp-green);
  font-weight: 700;
  /* font-size: 1.2rem; */
  font-size: clamp(12px, 4vw, 18px);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 16px;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  width: clamp(12px, 60vw, 235px);
}

.hs-main img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* copy sizes */
.hs-main-txt__copy02 {
  width: min(80vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hs-main-txt__ttl {
  width: min(26vw, 360px);
  margin-top: clamp(20px, 2vw, 80px);
}

@media (min-width: 768px) and (max-width: 1024px) {

  .hs-main-txt__ttl {
  width: min(50vw, 600px);
  margin-top: clamp(20px, 2vw, 80px);
  }
}
@media (max-width: 767px) {
  .hs-main-txt__copy02 {
    width: auto;
  }
  .hs-main-txt__ttl {
    width: 17.8rem;
    margin-top: 1rem;
  }
}

/* =========================================================
   Illust (12 items)
   ========================================================= */
.hs-main-illust {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hs-main-illust__item {
  position: absolute;
  width: min(72px, 10.5vw);
  aspect-ratio: 1;
  opacity: 0;
  scale: 0;
}

/* PC positions */
.hs-main-illust__item:nth-of-type(1) {
  top: 25%;
  left: 10%;
}
.hs-main-illust__item:nth-of-type(2) {
  top: 35%;
  left: 5%;
}
.hs-main-illust__item:nth-of-type(3) {
  top: 60%;
  left: 10%;
}
.hs-main-illust__item:nth-of-type(4) {
  top: 75%;
  left: 18%;
}
.hs-main-illust__item:nth-of-type(5) {
  top: 86%;
  left: 12%;
}
.hs-main-illust__item:nth-of-type(6) {
  top: 40%;
  left: 13%;
}
.hs-main-illust__item:nth-of-type(7) {
  top: 10%;
  right: 10%;
}
.hs-main-illust__item:nth-of-type(8) {
  top: 30%;
  right: 16%;
}
.hs-main-illust__item:nth-of-type(9) {
  top: 52%;
  right: 10%;
}
.hs-main-illust__item:nth-of-type(10) {
  top: 66%;
  right: 18%;
}
.hs-main-illust__item:nth-of-type(11) {
  top: 84%;
  right: 12%;
}
.hs-main-illust__item:nth-of-type(12) {
  top: 42%;
  right: 13%;
}

