/* =========================================
   index.html用のスタイル
   ========================================= */

/* フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

/* CSS変数の定義 */
:root {
  --primary-blue: #1E56A0;
  --primary-orange: #e94709;
  --text-dark: #333333;
  --text-medium: #666666;
  --bg-light: #f5f5f7;
  --border-light: #e5e5e5;
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius-md: 8px;
  --color-text-main: #1d1d1f;
  --color-text-sub: #86868b;
  --color-border: rgba(0, 0, 0, 0.1);
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
  background-color: #ffffff;
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px; /* 固定ヘッダーの高さ分 */
  margin: 0;
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header-logo {
  color: #1d1d1f;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  height: 100%;
  margin-left: auto;
}

.nav-link {
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-orange);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(233, 71, 9, 0.3);
}

.btn-primary:hover {
  background-color: #cf3f06;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(233, 71, 9, 0.4);
}

.btn-secondary {
  background-color: #e8e8ed;
  color: #1d1d1f !important;
}

.btn-secondary:hover {
  background-color: #d2d2d7;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.25rem;
}

.header-cta {
  margin-left: 16px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* セクション */
.section {
  padding: 80px 0;
}

.fade-in-section {
  opacity: 1;
  animation: fadeIn 0.6s ease-in;
}

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

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

.text-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.mt-xl {
  margin-top: 64px;
}

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

/* グリッド */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* カード */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-icon {
  margin-bottom: 24px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-sub);
}

/* ヒーローセクション */
.hero {
  position: relative;
}

.hero-text-wrapper {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-cta {
  margin-top: 32px;
}

.highlight-orange {
  color: var(--primary-orange);
}

/* 料金プラン */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card.recommended {
  border: 2px solid var(--primary-orange);
  box-shadow: 0 8px 32px rgba(233, 71, 9, 0.2);
}

.pricing-plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-price-unit {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-sub);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  text-align: left;
}

.pricing-feature {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-cta {
  margin-top: 32px;
  width: 100%;
  display: block;
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  padding: 20px 24px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

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

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

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

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
  color: var(--color-text-sub);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* フォーム */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 1rem;
  background: #f5f5f7;
  color: var(--color-text-main);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(233, 71, 9, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-checkbox a {
  text-decoration: underline;
  color: var(--primary-orange);
}

.form-submit {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.mb-xl {
  margin-bottom: 64px;
}

.mt-md {
  margin-top: 32px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-form {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* フッター */
.footer {
  background: #ffffff;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #86868b;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  margin-bottom: 12px;
}

.footer-link a {
  color: #515154;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link a:hover {
  color: var(--primary-orange);
}

.footer-social {
  margin-top: 20px;
}

.footer-social-icon {
  color: #515154;
  transition: color 0.2s ease;
}

.footer-social-icon:hover {
  color: var(--primary-orange);
}

.footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-orange);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  background-color: #cf3f06;
  transform: translateY(-3px);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-sub);
  font-size: 1.1rem;
}

/* テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  width: 25%;
  font-weight: 700;
  color: var(--color-text-main);
  text-align: left;
}

.info-table td {
  color: var(--color-text-sub);
  font-weight: 500;
}

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
  }

  .info-table th {
    padding-top: 20px;
    color: #888;
    font-size: 0.85rem;
  }

  .info-table tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

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

  .header.menu-open .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    padding: 40px 24px;
    gap: 24px;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .header.menu-open .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .header.menu-open .header-cta {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .header.menu-open .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 48px;
  }

  .footer-section {
    min-width: 100%;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .card {
    padding: 24px;
  }
}


