/* ===================================
   Local Rank Landing Page Styles
   =================================== */

/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* カラーパレット - 青ベース */
  --primary-color: #387abc;
  --secondary-color: #5a9fd4;
  --accent-color: #2c5f8d;
  --dark-color: #1e3a5f;
  --light-gray: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);

  /* フォント */
  --font-primary: "Noto Sans JP", sans-serif;

  /* スペーシング */
  --section-padding: 80px 0;
  --container-width: 1200px;
}

/* 基本要素 */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 64px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* コンテナ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--light-gray);
}

/* ===================================
   グローバルナビゲーション
   =================================== */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.global-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  width: 200px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 10px 45px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 114, 204, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(56, 122, 188, 0.1) 0%,
    rgba(90, 159, 212, 0.1) 100%
  );
  overflow: hidden;
}

/* Particles.js Container */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(56, 122, 188, 0.03) 100px,
      rgba(56, 122, 188, 0.03) 200px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(90, 159, 212, 0.03) 100px,
      rgba(90, 159, 212, 0.03) 200px
    );
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark-color);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-left h1 span {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-title {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 114, 204, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ===================================
   フォーム
   =================================== */
.quick-contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.quick-contact-form h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--dark-color);
  text-align: center;
}

.quick-contact-form input,
.quick-contact-form select,
.quick-contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.quick-contact-form input:focus,
.quick-contact-form select:focus,
.quick-contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.btn-form {
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(46, 114, 204, 0.3);
}

/* ===================================
   セクションタイトル
   =================================== */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark-color);
}

/* ===================================
   課題提起セクション
   =================================== */
.problem-section {
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.problem-item {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.problem-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.problem-item i {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.problem-caption {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 40px;
  padding: 30px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.problem-caption span {
  color: var(--primary-color);
  font-weight: 700;
}

/* ===================================
   ソリューションセクション
   =================================== */
.solution-description {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 60px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.solution-item {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.solution-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon i {
  font-size: 36px;
  color: var(--white);
}

.solution-item h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* ===================================
   特徴セクション
   =================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 2rem;
  margin-right: 15px;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-color);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 25px;
}

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

/* ===================================
   Before/After比較
   =================================== */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.before,
.after {
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.before h3 {
  color: #e74c3c;
  margin-bottom: 25px;
}

.after h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.before ul,
.after ul {
  list-style: none;
}

.before li,
.after li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
}

.before li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: bold;
}

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

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

.arrow {
  font-size: 48px;
  color: var(--primary-color);
  animation: slideHorizontal 2s infinite;
}

@keyframes slideHorizontal {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* ===================================
   数値メリット
   =================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.metric-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.metric-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  margin-top: 10px;
  color: #666;
}

/* ===================================
   料金プラン
   =================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
  text-align: center;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 20px 0;
  text-align: center;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.plan-features {
  list-style: none;
  margin: 30px 0;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  color: #555;
  display: flex;
  align-items: center;
}

.plan-features li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.plan-cta {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 114, 204, 0.3);
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: #666;
}

/* ===================================
   導入の流れセクション
   =================================== */
.flow-section {
  text-align: center;
}

.flow-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.flow-item {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.flow-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.flow-number {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin-right: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.flow-number span {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

.flow-number strong {
  font-size: 32px;
  font-weight: 900;
}

.flow-content {
  flex: 1;
  text-align: left;
}

.flow-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.flow-content p {
  color: var(--text-light);
  line-height: 1.6;
}

.flow-arrow {
  text-align: center;
  margin: 20px 0;
  color: var(--primary-color);
  font-size: 24px;
}

.flow-note {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(
    135deg,
    rgba(56, 122, 188, 0.1),
    rgba(90, 159, 212, 0.1)
  );
  border-radius: 15px;
  display: inline-block;
}

.flow-note i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.flow-note p {
  font-size: 1.1rem;
  color: var(--dark-color);
}

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

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.faq-question {
  padding: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(56, 122, 188, 0.05);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 500px;
}

/* ===================================
   CTA セクション
   =================================== */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 30px;
}

.cta-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cta-form-container h3 {
  color: var(--dark-color);
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.cta-form-container input,
.cta-form-container select,
.cta-form-container textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.cta-form-container input:focus,
.cta-form-container select:focus,
.cta-form-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-note {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

/* ===================================
   フッター
   =================================== */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  opacity: 0.6;
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===================================
   アニメーション
   =================================== */
.fade-in {
  animation: fadeIn 0.8s ease;
}

.fade-in-delay {
  animation: fadeIn 1s ease 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease 0.4s both;
}

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

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .nav-wrapper {
    padding: 10px 0;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    max-height: calc(100vh - 60px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    display: block;
    position: absolute;
    height: auto;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 0;
  }

  .nav-menu.active .nav-list li {
    width: 100%;
  }

  .nav-menu.active .nav-list li a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    min-height: 36px;
    line-height: 1.4;
    border-radius: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    background: transparent;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-menu.active .nav-list li a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    min-height: 36px;
    line-height: 1.4;
    border-radius: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    background: transparent;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .arrow-container {
    transform: rotate(90deg);
  }

  .flow-item {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .flow-number {
    margin-right: 0;
    margin-bottom: 20px;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

  .cta-form-container {
    padding: 30px 20px;
  }

  .section-padding {
    padding: 60px 0;
  }
}

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

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

  .quick-contact-form {
    padding: 25px;
  }
}

.grecaptcha-badge {
  visibility: hidden !important;
}
