/* =========================================================
   FAN FOOTER
========================================================= */

.fan-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* negative overlap amount (desktop default) */
  --fan-overlap: -15vw;
  margin-top: var(--fan-overlap);
  z-index: 5;
}

/* ===============================
   上部：扇子ビジュアルエリア
================================ */

.fan-footer__hero {
  position: relative;
  width: 100%;
  height: 770px;
  overflow: hidden;
}

/* 背景（扇子） */
.fan-footer__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/フッター.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  animation: fan-footer-glow 24s ease-in-out infinite;
}

@keyframes fan-footer-glow {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.035);
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fan-footer__bg {
    animation: none;
    filter: none;
  }
}

/* ===============================
   中央コンテンツ
================================ */

.fan-footer__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 90px auto;
  height: 100%;
  padding: var(--fan-top-pad) 40px var(--fan-bottom-pad);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;

  text-align: center;
}

.fan-footer__headline {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: #1a1a1a;
  font-weight: 300;
}
.fan-footer__headline.js-reveal-h2 {
  transition-delay: 260ms;
}

.fan-footer__lead {
  margin: 0;
  font-size: 17px;
  line-height: 2;
  color: #1a1a1a;
  font-weight: 200;
}
.fan-footer__lead.js-reveal-content {
  transition-delay: 420ms;
}

/* ===============================
   下部：白帯
================================ */

.fan-footer__lower {
  background: #fff;
  padding: 0 32px;
}

.fan-footer__lower-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--lower-h);

  display: grid;
  grid-template-columns: 0.25fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}

/* ブランド */
.fan-footer__brandlogo {
  display: block;
  width: 187px;
  height: auto;
}

.fan-footer__tagline {
  margin-top: 8px;
  font-size: 15px;
  color: #ff6a01;
  line-height: 1.2;
}
.fan-footer__brandlogo {
  width: 100%;
  max-width: 187px;
}

/* 10周年表記 */
.fan-footer__anniv {
  position: relative;
  padding-left: 22px;
  margin-top: -20px;
}

.fan-footer__anniv::before {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: #999999;
}

.fan-footer__annivtext {
  font-size: 16px;
  color: #999999;
  font-weight: 400;
  white-space: nowrap;
  font-family:
    "Roboto",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* 右リンク */
.fan-footer__right {
  display: flex;
  justify-content: flex-end;
}

.fan-footer__company {
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;

  color: #333333;
  transition: opacity 0.35s ease;
}

.fan-footer__company:hover {
  opacity: 0.6;
}

.fan-footer__company:focus-visible {
  outline: 2px solid rgba(240, 122, 0, 0.55);
  outline-offset: 2px;
}

.fan-footer__ext {
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url("/assets/link.svg") no-repeat center / contain;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ===============================
   一番下：オレンジバー
================================ */
.fan-footer__bar {
  padding: 0 32px;
  background: #ff6a01;
}
.fan-footer__bar-inner {
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  max-width: var(--max);
  margin: 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

/* ===============================
   SP (<=767px)
   - keep visuals but improve readability
   - reduce excessive overlap
   - adjust hero height + background framing
================================ */
@media (max-width: 767px) {
  .fan-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    --fan-overlap: -75vw;
    margin-top: var(--fan-overlap);
    z-index: 5;
  }

  .fan-footer__hero {
    height: 560px;
  }

  .fan-footer__bg {
    background-position: center bottom;
    background-size: cover;
  }

  .fan-footer__content {
    /* center text stays, but tighten spacing */
    margin: 0 auto;
    padding: 110px 20px 56px;
    gap: 22px;
  }

  .fan-footer__headline {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.35;
  }

  .fan-footer__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .fan-footer__brandlogo {
    width: 156px;
    margin: 0 auto;
  }

  .fan-footer__tagline {
    font-size: 13px;
    margin-top: 2px;
  }
  .fan-footer__brandlogo {
    max-width: 156px;
  }

  .fan-footer__annivtext {
    font-size: 14px;
  }

  .fan-footer__company {
    font-size: 14px;
  }

  .fan-footer__bar-inner {
    height: 44px;
    font-size: 12px;
  }
}

/* ===============================
   モバイル対応
================================ */

@media (max-width: 900px) {
  .fan-footer__content {
    margin-top: 0;
    margin-bottom: 0;
  }
  .fan-footer__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .fan-footer__lower-inner {
    grid-template-columns: 1fr;
    height: auto;
    padding: 30px 20px;
    row-gap: 18px;
    text-align: center;
  }

  .fan-footer__right {
    justify-content: center;
  }

  .fan-footer__anniv {
    padding-left: 0;
  }

  .fan-footer__anniv::before {
    display: none;
  }

  .fan-footer__bar-inner {
    padding: 0 20px;
    justify-content: center;
    text-align: center;
  }
}
