/* GoodCycle LP - Custom Styles */

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* オープニングアニメーション */
@keyframes opening-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.opening-overlay {
  transform-origin: 50% 50%;
  transition: opacity 0.5s ease-out;
}

.opening-overlay.opening-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

/* 中央から外に向かって拡大（穴が広がってページを露出） */
@property --opening-hole {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

.opening-overlay.opening-overlay--spread {
  --opening-hole: 0%;
  mask-image: radial-gradient(circle at 50% 50%, transparent 0%, transparent var(--opening-hole), black var(--opening-hole));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0%, transparent var(--opening-hole), black var(--opening-hole));
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  animation: opening-spread 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes opening-spread {
  to {
    --opening-hole: 150%;
  }
}

.opening-overlay__logo {
  animation: opening-logo-in 0.6s ease-out forwards;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee-track {
  animation: logo-scroll 25s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes goodcycle-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.goodcycle-marquee-track {
  animation: goodcycle-scroll 20s linear infinite;
}

.goodcycle-marquee-track:hover {
  animation-play-state: paused;
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.faq-content {
  transition: max-height 0.3s ease-out;
}

#mobile-menu {
  background-color: #ffffff !important;
}

.section-heading {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(17 24 39);
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.section-heading--navy {
  color: #1A3266;
}

/* 見出し下の線が伸びるアニメーション（テキスト表示後に動作） */
.heading-line {
  display: inline-block;
  position: relative;
}

.heading-line::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #5CC64C, #359795);
  transform: translateX(-50%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.heading-line.is-animated::after {
  width: 100%;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

/* 縦書き見出し分のコンテンツ余白（重なり防止） */
.section-content--left-heading {
  padding-left: 6rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .section-content--left-heading {
    padding-left: 7.5rem;
    padding-right: 2.5rem;
  }
}
.section-content--right-heading {
  padding-left: 1.5rem;
  padding-right: 6rem;
}
@media (min-width: 768px) {
  .section-content--right-heading {
    padding-left: 2.5rem;
    padding-right: 7.5rem;
  }
}

/* セクション英語見出し（縦書き）：上下中央配置・追従なし */
.section-heading-en-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5rem;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 768px) {
  .section-heading-en-wrapper {
    width: 6rem;
    padding-left: 1.5rem;
  }
}

.section-heading-en-wrapper--right {
  left: auto;
  right: 0;
  padding-left: 0;
  padding-right: 1rem;
  justify-content: flex-end;
}

.section-heading-en-wrapper--right .section-heading-en {
  transform-origin: right center;
}

@media (min-width: 768px) {
  .section-heading-en-wrapper--right {
    padding-right: 1.5rem;
  }
}

.section-heading-en {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  pointer-events: none;
  z-index: 10;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (min-width: 768px) {
  .section-heading-en {
    font-size: 3rem;
  }
}

/* 日本語見出しの上に表示する英語見出し（横書き） - サービス概要PDFトンマナ */
.section-heading-en-above {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #359795;
}

.section-heading-en--light {
  color: rgba(209, 250, 229, 0.5);
}

.section-heading-en--gray {
  color: rgba(107, 114, 128, 0.35);
}

.section-heading-en--white {
  color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 1.875rem;
  }
}

.section-subheading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1A3266;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-subheading {
    font-size: 1.25rem;
  }
}

.card-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(53, 151, 149, 0.4);
}


@media (min-width: 768px) {
  .card-heading {
    font-size: 1.25rem;
  }
}

/* ヒーロースクロールダウンボタン（CodePen: hana4525/MWxYRVw ベース） */
.scroll-down {
  width: 2px;
  height: 90px;
  animation: scroll-down-bounce 1.5s ease-in-out infinite;
}

.scroll-down__link {
  position: absolute;
  left: -24px;
  bottom: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.scroll-down__link:hover {
  color: #fff;
}

.scroll-down--navy .scroll-down__link {
  color: rgba(26, 50, 102, 0.7);
}

.scroll-down--navy .scroll-down__link:hover {
  color: #1A3266;
}

.scroll-down--navy::before,
.scroll-down--navy::after {
  background: rgba(26, 50, 102, 0.7);
}

.scroll-down::before {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -6px;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.9);
  transform: skewX(-31deg);
}

.scroll-down::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 2px;
  height: 85px;
  background: rgba(255, 255, 255, 0.9);
}

@keyframes scroll-down-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* GoodCycleなら解決！上の矢印：上下バウンスアニメーション */
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.arrow-bounce {
  animation: arrow-bounce 1.5s ease-in-out infinite;
}

/* 日本語見出し：1文字ずつ出現エフェクト */
@keyframes char-reveal {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heading-char-reveal span.char {
  display: inline-block;
  opacity: 0;
  animation: char-reveal 0.35s ease-out forwards;
  animation-play-state: paused;
}

.heading-char-reveal.char-reveal-active span.char {
  animation-play-state: running;
}
