/* =============================================
   Plus500 LP - Style Sheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1a1a2e;
  background-color: #f8f9fb;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0B3D91;
  background: rgba(11, 61, 145, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  max-width: 640px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: #0B3D91;
  color: #fff;
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(11, 61, 145, 0.25);
}

.btn-primary:hover {
  background: #092f73;
  box-shadow: 0 6px 28px rgba(11, 61, 145, 0.35);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: transparent;
  color: #0B3D91;
  padding: 16px 36px;
  border: 2px solid #0B3D91;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #0B3D91;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #0B3D91;
  padding: 18px 40px;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0B3D91;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: #0B3D91;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #0B3D91;
}

.header-cta {
  padding: 10px 24px !important;
  font-size: 0.88rem !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.88) 0%, rgba(11, 61, 145, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.hero-note span {
  display: block;
}

/* ---------- Worry / Empathy ---------- */
.worry {
  padding: 100px 0;
  background: #fff;
}

.worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.worry-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.worry-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.worry-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.worry-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #eef0f5;
  transition: all 0.3s ease;
}

.worry-item:hover {
  border-color: #0B3D91;
  box-shadow: 0 4px 16px rgba(11, 61, 145, 0.08);
}

.worry-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 61, 145, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.worry-icon svg {
  width: 22px;
  height: 22px;
  color: #0B3D91;
}

.worry-item p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

.worry-item span {
  display: block;
  font-size: 0.82rem;
  color: #777;
  font-weight: 400;
  margin-top: 4px;
}

.worry-conclusion {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: rgba(11, 61, 145, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(11, 61, 145, 0.08);
}

.worry-conclusion p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0B3D91;
}

.worry-conclusion span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  margin-top: 8px;
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
  background: #f8f9fb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid #eef0f5;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: #0B3D91;
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.1);
  transform: translateY(-4px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0B3D91;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(11, 61, 145, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #0B3D91;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* Feature with Image */
.feature-image-section {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-image-section .feature-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feature-image-section .feature-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.4;
}

.feature-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ---------- Steps ---------- */
.steps {
  padding: 100px 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 36px 20px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0B3D91;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: #dde2ea;
  z-index: 1;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.steps-image {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.steps-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.steps-notice {
  margin-top: 40px;
  padding: 24px 28px;
  background: #fef9ee;
  border: 1px solid #f5e6c0;
  border-radius: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.steps-notice h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps-notice ul li {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.steps-notice ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dab56b;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: #f8f9fb;
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0f5;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: #0B3D91;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #0B3D91;
}

.faq-question .faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.faq-item.active .faq-toggle {
  background: #0B3D91;
  transform: rotate(180deg);
}

.faq-toggle svg {
  width: 14px;
  height: 14px;
  color: #666;
  transition: color 0.3s;
}

.faq-item.active .faq-toggle svg {
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

.faq-answer-inner .note {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #999;
}

/* ---------- Fit / Not Fit ---------- */
.fit {
  padding: 100px 0;
  background: #fff;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.fit-card {
  border-radius: 16px;
  padding: 40px 36px;
  border: 1px solid #eef0f5;
}

.fit-card.good {
  background: rgba(11, 61, 145, 0.03);
  border-color: rgba(11, 61, 145, 0.12);
}

.fit-card.bad {
  background: rgba(180, 60, 60, 0.02);
  border-color: rgba(180, 60, 60, 0.1);
}

.fit-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fit-card.good h3 {
  color: #0B3D91;
}

.fit-card.bad h3 {
  color: #b43c3c;
}

.fit-card ul li {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.fit-card ul li:last-child {
  border-bottom: none;
}

.fit-card ul li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.fit-card.good ul li::before {
  content: "\2713";
  color: #0B3D91;
}

.fit-card.bad ul li::before {
  content: "\2717";
  color: #b43c3c;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.92) 0%, rgba(11, 61, 145, 0.78) 100%);
  z-index: 1;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.35;
}

.final-cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.7;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.final-cta-notice {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

.final-cta-notice span {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0e1b33;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 800px;
}

.footer-disclaimer span {
  display: block;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Scroll Animations ---------- */
/* Default: content is always visible (fallback for no-JS) */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Only apply hidden state when JS is available */
.js-enabled .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Animated visible state (triggered by IntersectionObserver) */
.js-enabled .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 48px 0;
  }

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

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .worry-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .worry-image {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-image-section {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .final-cta-content h2 {
    font-size: 1.6rem;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile menu */
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .header-nav.open .header-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 16px;
  }

  .btn-primary,
  .btn-white {
    padding: 16px 28px;
    font-size: 0.95rem;
    width: 100%;
  }
}
