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

:root {
  --primary: #0056d6;
  --primary-dark: #003fa0;
  --primary-light: #4f8dff;
  --secondary: #E63946;
  --secondary-dark: #c92836;
  --secondary-light: #ff6b75;
  --light-bg: #f8faff;
  --dark-text: #2c3e50;
  --light-text: #6c757d;
  --card-shadow: 0 8px 30px rgba(0, 86, 214, 0.1);
  --hover-transform: translateY(-8px);
  --transition-speed: 0.35s;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #4f8dff 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #ff6b75 100%);
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* -------------------- Layout & Components -------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 86, 214, 0.3);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-dark);
  transition: all var(--transition-speed);
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  box-shadow: 0 6px 20px rgba(0, 86, 214, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn.btn-glow {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientAnimation 5s ease infinite;
  box-shadow: 0 6px 25px rgba(0, 86, 214, 0.4);
}

.btn.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 86, 214, 0.5);
}

.btn-arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn.alt {
  background: var(--secondary);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn.alt:before {
  background-color: var(--secondary-dark);
}

.btn.alt:hover {
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* -------------------- Header -------------------- */
header {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(170deg, #ffffff 0%, var(--light-bg) 100%);
}

.kv-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.kv-shape-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 141, 255, 0.1) 0%, rgba(79, 141, 255, 0) 70%);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.kv-shape-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0) 70%);
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

.kv-shape-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 141, 255, 0.05) 0%, rgba(79, 141, 255, 0) 70%);
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.content {
  flex: 1 1 500px;
}

.highlight-badge {
  display: inline-block;
  background: var(--gradient-secondary);
  color: #fff;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 30px;
  margin-bottom: 25px;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.25);
  animation: fadeInUp 0.8s ease-out forwards;
}

header h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 15px;
  animation: fadeInUp 0.9s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.text-gradient {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientAnimation 5s ease infinite;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

header h1 span {
  position: relative;
  display: inline-block;
  color: var(--secondary);
}

header .subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.animated-text {
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: var(--light-text);
}

.text-line {
  display: block;
  position: relative;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  margin-bottom: 8px;
}

.text-line:nth-child(1) {
  animation-delay: 0.3s;
}

.text-line:nth-child(2) {
  animation-delay: 0.5s;
}

.text-line:nth-child(3) {
  animation-delay: 0.7s;
}

.text-line:nth-child(4) {
  animation-delay: 0.9s;
}

.action-buttons {
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 1.1s;
  opacity: 0;
}

.header-illus {
  flex: 1 1 450px;
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 10px;
  padding-right: 10px;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 86, 214, 0.15);
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.3s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
  transform-origin: center;
  transition: transform 0.5s ease-in-out;
}

.image-container:hover .main-image {
  transform: translateY(-10px);
}

.image-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 90%;
  border: 3px solid var(--primary);
  border-radius: 16px;
  z-index: 1;
  animation: fadeInUp 1.4s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

/* -------------------- Sections -------------------- */
section {
  padding: 100px 0;
}

section.alt {
  background: var(--light-bg);
}

section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 50px;
  text-align: center;
  line-height: 1.4;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

section .container h2 {
  display: block;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.two-col img {
  border-radius: 12px;
  width: 100%;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed);
}

.two-col img:hover {
  transform: var(--hover-transform);
}

/* Pain Points */
.pain-points {
  margin-bottom: 25px;
  list-style-type: none !important;
  padding-left: 0 !important;
}

.pain-points li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
}

.pain-points li:before {
  content: "✘";
  color: var(--secondary);
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
}

/* Features Content */
.features-content {
  max-width: 850px;
  margin: 0 auto;
}

.features-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 35px rgba(0, 86, 214, 0.2);
}

.card img {
  border-radius: 10px;
  margin-bottom: 20px;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 12px;
}

.card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 1.5px;
}

.card p {
  color: var(--light-text);
  line-height: 1.7;
  flex-grow: 1;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.price-card {
  border: none;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 15px 35px rgba(0, 86, 214, 0.2);
}

.price-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.price-card.popular {
  box-shadow: 0 15px 35px rgba(0, 86, 214, 0.25);
}

.price-card.popular:before {
  content: "人気";
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--secondary);
  color: white;
  padding: 5px 35px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.price-card ul {
  text-align: left;
  margin: 30px 0;
}

.price-card li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 28px;
  font-size: 1.05rem;
}

.price-card li:before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Steps */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
  justify-content: center;
}

.step {
  width: 180px;
  text-align: center;
  transition: all var(--transition-speed);
}

.step:hover {
  transform: translateY(-5px);
}

.num {
  background: var(--primary);
  color: #fff;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 5px 15px rgba(0, 86, 214, 0.25);
}

.step p {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.step small {
  display: block;
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.5;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(0, 86, 214, 0.15);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 86, 214, 0.05);
  transition: all var(--transition-speed);
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 86, 214, 0.1);
}

.faq-item input {
  display: none;
}

.faq-item label {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item input:checked ~ .answer {
  max-height: 600px;
  margin-top: 15px;
}

.faq-item .answer p {
  color: var(--light-text);
  line-height: 1.7;
}

/* Contact Form */
#contact .form-control {
  border: 1px solid rgba(0, 86, 214, 0.15);
  padding: 12px 15px;
  border-radius: 8px;
}

#contact .form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.1);
  border-color: var(--primary);
}

#contact .form-label {
  font-weight: 600;
  color: var(--dark-text);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--light-bg) 0%, #f1f5ff 100%);
  padding: 80px 0 40px;
}

footer h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

footer p {
  color: var(--light-text);
}

footer hr {
  margin: 40px 0 30px;
  border-color: rgba(0, 86, 214, 0.1);
}

/* -------------------- Media Queries -------------------- */
@media (max-width: 991px) {
  header {
    padding: 90px 0 80px;
  }

  header h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 70px 0 60px;
  }

  header h1 {
    font-size: 2.8rem;
  }

  header .subtitle {
    font-size: 1.5rem;
  }

  section {
    padding: 70px 0;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .step {
    width: 150px;
  }

  .price-card {
    padding: 30px 20px;
  }

  .price {
    font-size: 2.4rem;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2.5rem;
  }

  .highlight-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
  }

  .card h3 {
    font-size: 1.2rem;
  }
}
