* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #1f1f1f;
}

.background {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('fintokei-hero.png') no-repeat;
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%);
  z-index: 0;
}

.background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
  pointer-events: none;
}

.content {
  position: absolute;
  top: 45%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  color: #f3f1df;
  text-align: left;
  max-width: 90%;
}

.text-wrapper {
  display: table;
  margin: 0 auto;
}

.headline,
.subheadline,
.cta-button {
  opacity: 0;
  transform: translateY(20px);
}

.headline {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.subheadline {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  background-color: #ffcc00;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  margin-left: calc((100% - 18rem) / 2 + 3rem);
}

.cta-button:hover {
  background-color: transparent;
  border-color: #ffcc00;
  color: #ffcc00;
}

.section-divider {
  border: none;
  height: 2px;
  background-color: #f3f1df;
  margin: 4rem auto;
  width: 90%;
}

.section-2 {
  background-color: #1f1f1f;
  color: #f3f1df;
  padding: 4rem 1.5rem;
  text-align: left;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.problem-list li {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.play-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #ffcc00;
  border-radius: 6px;
  position: relative;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
}

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

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.9s; }
.delay-4 { transition-delay: 1.2s; }
.delay-5 { transition-delay: 1.5s; }
.delay-6 { transition-delay: 1.8s; }
.delay-7 { transition-delay: 2.1s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-8 { transition-delay: 2.4s; }
.delay-9 { transition-delay: 2.7s; }
.delay-10 { transition-delay: 3.0s; }

.play-icon.custom {
  background-color: #4d4c49;
}

.play-icon.custom::before {
  border-left: 8px solid #f3f1df;
}


/* ホバー時は遅延させず即反応 */
.cta-button:hover {
  transition-delay: 0s !important;
}


/* ボタンホバー効果をファーストビューと完全統一（キビキビした動きに） */
.cta-button,
.cta-button:hover {
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
  transition-delay: 0s !important;
}


/* 修正版：fade-in-upのdelayはそのまま、ホバー時のみ遅延ゼロ */
.cta-button {
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}

.cta-button:hover {
  transition-delay: 0s;
}


/* セクション8専用中央寄せボタン */
.section-8-button-wrapper {
  text-align: left;
  margin-top: 5rem;
  margin-bottom: 7rem;
}

.section-8-button-wrapper .cta-button {
  margin-left: 14rem;
}

/* --- ポリシーボタンとモーダル表示スタイル --- */
.policy-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.policy-button {
  background-color: #4d4c49;
  color: #f3f1df;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  min-width: auto;
}

.policy-button:hover {
  opacity: 0.85;
}

.policy-modal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #f3f1df;
  color: #1f1f1f;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 9999;
}

.policy-modal h2 {
  font-size: 1.4em;
  margin-top: 0;
}

.policy-modal p, .policy-modal li {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 1em;
  color: #1f1f1f;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #1f1f1f;
}

/* --- レスポンシブ対応（スマホ用） --- */
@media screen and (max-width: 767px) {

  .section-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .headline {
    font-size: 1.8rem;
  }

  .subheadline {
    font-size: 1.1rem;
  }

  .cta-button {
    margin: 2rem auto 0 auto;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    width: 220px;
  }

  .section-8-button-wrapper {
    text-align: center;
    margin-left: 0;
  }

  .section-8-button-wrapper .cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .problem-list li {
    font-size: 1.1rem;
  }

  .policy-buttons {
    right: 10px;
    bottom: 10px;
    gap: 0.6rem;
  }

  .policy-button {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .sp-only {
    display: inline;
  }

   .pc-only {
    display: none;
  }

  .sp-indent {
    display: inline-block;
    margin-left: 2.0rem; 
  }
 
}

@media screen and (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .pc-only {
    display: inline;
  }

  .sp-indent {
    margin-left: 0;
  }

}