/* =========================================
   Front Page Styles
   FVヒーロー / Philosophy / Vision / スクロールアニメーション
========================================= */

/* front-pageここから */
.home {
  overflow-x: hidden;
}

.home .site-main {
  margin: 0;
  padding: 0;
}

/* =========================
   FV HERO
========================= */
.home .fv-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: #eef4f7;
}

.home .fv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home .fv-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.05);
  opacity: 0;
  transition: transform 2s ease-out, opacity 1.4s ease-out;
}

.home .fv-hero__bg img.is-visible {
  transform: scale(1);
  opacity: 1;
}

.home .fv-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0 6%;
}

.home .fv-hero__content {
  position: absolute;
  left: 16%;
  top: 50%;
  transform: translateY(-50%);
  width: min(840px, 52vw);
  color: #2f3440;
}

.home .fv-hero__title {
  margin: 0;
  font-family: serif;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home .fv-hero__title span {
  display: block;
}

.home .fv-hero__subtitle {
  margin: 22px 0 0;
  font-size: clamp(14px, 1.15vw, 22px);
  line-height: 1.7;
  color: #66707c;
}

/* タイトル 文字ごとアニメーション */
.home .fv-hero__title .char {
  display: inline-block;
  opacity: 0;
  animation: charFadeIn 1.1s ease forwards;
}

@keyframes charFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* サブタイトル 初期状態（JSで is-visible を付与） */
.home .fv-hero__subtitle {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.home .fv-hero__subtitle.is-visible {
  opacity: 1;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .home .fv-hero {
    min-height: 620px;
  }

  .home .fv-hero__bg img {
    object-position: 68% center;
  }

  .home .fv-hero__content {
    left: 12%;
    width: min(640px, 56vw);
  }

  .home .fv-hero__title {
    font-size: clamp(26px, 4vw, 44px);
  }

  .home .fv-hero__subtitle {
    font-size: 16px;
  }
}

/* =========================
   Smartphone
========================= */
@media (max-width: 767px) {
  /* flexレイアウトでabsolute配置を廃止 → 下セクションへの侵入を防ぐ */
  .home .fv-hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .home .fv-hero__inner {
    flex: 1 0 auto; /* flex:1 だとSafariで高さ0になるバグ防止 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    height: auto;
  }

  .home .fv-hero__bg img {
    object-position: center top;
    transform: none !important;
    transition: opacity 1.4s ease-out !important;
  }

  .home .fv-hero__bg img.is-visible {
    transform: none !important;
  }

  .home .fv-hero__content {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    transform: none !important;
    text-align: left;
    padding: 0 20px 40px;
  }

  .home .fv-hero__title {
    font-size: clamp(22px, 8vw, 42px);
    line-height: 1.18;
    letter-spacing: 0;
  }

  .home .fv-hero__subtitle {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.75;
  }
}

/* =========================
   Small Smartphone
========================= */
@media (max-width: 480px) {
  .home .fv-hero {
    min-height: 100svh;
  }

  .home .fv-hero__bg img {
    object-position: center center;
  }

  .home .fv-hero__title {
    font-size: 22px;
    line-height: 1.2;
  }

  .home .fv-hero__subtitle {
    font-size: 12px;
  }
}

/* =========================
   PHILOSOPHY SECTION
========================= */
.philosophy-section {
  padding: 128px 0;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.philosophy-section__inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 6%;
}

/* Section header (共通) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.section-header__line {
  width: 24px;
  height: 1px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.section-header__label {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Dark variant (Vision用) */
.section-header__line--dark {
  background: rgba(255,255,255,0.4);
}

.section-header__label--dark {
  color: rgba(255,255,255,0.7);
}

/* Philosophy テキスト */
.philosophy-section__text {
  text-align: center;
}

.philosophy-section__text p {
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: #475569;
  margin: 0;
  font-weight: 300;
  cursor: default;
  user-select: none;
}


/* =========================
   VISION SECTION
========================= */
.vision-section {
  padding: 128px 0;
  background: #6B9AAE;
  color: #ffffff;
}

.vision-section__inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 6%;
}

/* Vision テキスト */
.vision-section__text {
  text-align: center;
}

.vision-section__text p {
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-weight: 300;
  cursor: default;
  user-select: none;
}

/* CTA ボタン */
.vision-section__cta {
  margin-top: 80px;
  text-align: center;
}

.vision-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.vision-section__btn:hover {
  background: #ffffff;
  color: #1e293b;
  border-color: #ffffff;
}

.vision-section__btn svg {
  transition: transform 0.3s ease;
}

.vision-section__btn:hover svg {
  transform: translateX(4px);
}

/* =========================
   スクロール フェードイン
========================= */
.js-scroll-fadeup {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js-scroll-fadeup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .philosophy-section,
  .vision-section {
    padding: 96px 0;
  }
}

/* =========================
   Smartphone
========================= */
@media (max-width: 767px) {
  .philosophy-section,
  .vision-section {
    padding: 72px 0;
  }

  .philosophy-section__inner,
  .vision-section__inner {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .philosophy-section__text p,
  .vision-section__text p {
    font-size: 17px;
  }

  .vision-section__cta {
    margin-top: 52px;
  }
}

/* =========================
   Small Smartphone
========================= */
@media (max-width: 480px) {
  .philosophy-section,
  .vision-section {
    padding: 56px 0;
  }

  .philosophy-section__text p,
  .vision-section__text p {
    font-size: 15px;
  }

  .vision-section__btn {
    padding: 14px 24px;
    font-size: 12px;
  }
}
