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

:root {
  --navy: #042C53;
  --navy-mid: #0C447C;
  --navy-light: #185FA5;
  --navy-pale: #E6F1FB;
  --green: #639922;
  --green-dark: #3B6D11;
  --green-light: #EAF3DE;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #dde8f0;
  --section-bg: #f7fafd;
  --nav-grad-start: #e8f2fa;
  --nav-grad-mid: #3a7eae;
  --nav-grad-end: #042c53;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

/* ナビ（ロゴと同色回避のため左から明るいグラデーション） */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(
    105deg,
    var(--nav-grad-start) 0%,
    #c5dce8 18%,
    var(--nav-grad-mid) 52%,
    var(--nav-grad-end) 100%
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 4px 12px rgba(4, 44, 83, 0.2);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav-logo:hover .nav-logo-img { opacity: 0.92; }

.nav-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(58vw, 280px);
  object-fit: contain;
}

.nav-cta {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }

/* ヒーロー */
#hero {
  background: var(--navy);
  padding: 128px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(4, 44, 83, 0.88) 0%,
    rgba(4, 44, 83, 0.72) 45%,
    rgba(4, 44, 83, 0.55) 100%
  );
  pointer-events: none;
}

#hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(99, 153, 34, 0.08);
  z-index: 2;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(24, 95, 165, 0.15);
  z-index: 2;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(99,153,34,0.2);
  color: #97C459;
  border: 1px solid rgba(99,153,34,0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 4px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.hero-main {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: #85B7EB;
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
}
.hero-btn:hover { background: var(--green-dark); transform: translateY(-2px); }

.hero-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #6a9ccc;
}

.hero-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 520px;
}

.hero-area-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c8dff5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 14px;
  letter-spacing: 0.04em;
}

.hero-area-tag.is-hub {
  color: #d4eaa8;
  background: rgba(99, 153, 34, 0.22);
  border-color: rgba(151, 196, 89, 0.45);
  font-weight: 700;
}

/* 対応エリア */
#area { background: var(--section-bg); }

.area-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.95;
  margin: -16px 0 28px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.area-card:hover {
  box-shadow: 0 6px 20px rgba(4, 44, 83, 0.08);
  transform: translateY(-2px);
}

.area-card.is-hub {
  border-color: rgba(99, 153, 34, 0.45);
  background: linear-gradient(180deg, var(--green-light) 0%, var(--white) 100%);
}

.area-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.area-card.is-hub .area-name { color: var(--green-dark); }

.area-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.area-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* セクション共通 */
section { padding: 80px 2rem; }
.section-inner { max-width: 860px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
  line-height: 1.5;
}

/* 悩みセクション */
#worries { background: var(--navy); }
#worries .section-label { background: rgba(99,153,34,0.2); color: #97C459; }
#worries .section-title { color: var(--white); }

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

.worry-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  color: #B5D4F4;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: background 0.2s;
}
.worry-item:hover { background: rgba(255,255,255,0.1); }

.worry-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(99,153,34,0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.worry-icon::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #97C459;
}

/* サービス */
#services { background: var(--white); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(4,44,83,0.1); transform: translateY(-3px); }

.service-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 料金 */
#pricing { background: var(--section-bg); }

.pricing-block { margin-bottom: 48px; }
.pricing-block:last-child { margin-bottom: 0; }

.pricing-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--green);
  padding-left: 12px;
  margin-bottom: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.plan-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-light);
  margin-bottom: 4px;
}

.plan-target {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plan-price {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.plan-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.pricing-note li { margin-left: 1.2em; list-style: disc; }

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.dev-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.dev-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dev-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* 選ばれる理由 */
#reasons { background: var(--navy); }
#reasons .section-label { background: rgba(99,153,34,0.2); color: #97C459; }
#reasons .section-title { color: var(--white); }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.reason-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 20px;
}

.reason-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
  opacity: 0.8;
}

.reason-text {
  font-size: 0.92rem;
  color: #B5D4F4;
  line-height: 1.8;
  font-weight: 500;
}

/* 語の途中改行を避ける（日本語の自動折り返し対策） */
.reason-keep {
  white-space: nowrap;
}

/* FAQ */
#faq { background: var(--white); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--section-bg); }

.faq-q-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-badge {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--navy);
  transition: transform 0.2s;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px 56px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }

/* お問い合わせ */
#contact { background: var(--navy); }
#contact .section-label { background: rgba(99,153,34,0.2); color: #97C459; }
#contact .section-title { color: var(--white); }

.contact-note {
  color: #85B7EB;
  font-size: 0.92rem;
  margin-bottom: 32px;
  line-height: 1.9;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #B5D4F4;
  margin-bottom: 6px;
}

.form-required {
  display: inline-block;
  background: #E24B4A;
  color: #fff;
  font-size: 0.68rem;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-optional {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #85B7EB;
  font-size: 0.68rem;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus, .form-textarea:focus { border-color: var(--green); }

.form-textarea { height: 140px; resize: vertical; }

.form-submit {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--green-dark); transform: translateY(-2px); }

.form-privacy {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #6a9ccc;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-alert--success {
  background: rgba(99, 153, 34, 0.15);
  border: 1px solid rgba(151, 196, 89, 0.5);
  color: #d4edc0;
}

.form-alert--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.form-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #fecaca;
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #f87171;
}

/* フッター（ヘッダーと同じグラデーション） */
footer {
  background: linear-gradient(
    105deg,
    var(--nav-grad-start) 0%,
    #c5dce8 18%,
    var(--nav-grad-mid) 52%,
    var(--nav-grad-end) 100%
  );
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -4px 14px rgba(4, 44, 83, 0.18);
  padding: 32px 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 8px;
  line-height: 0;
}

.footer-logo-img {
  display: inline-block;
  height: 38px;
  width: auto;
  max-width: min(78vw, 320px);
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(4, 44, 83, 0.45));
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(4, 44, 83, 0.35);
}

/* アニメーション */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* レスポンシブ */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-logo-img { height: 34px; max-width: 65vw; }
  .footer-logo-img { height: 32px; max-width: 82vw; }
  section { padding: 60px 1.2rem; }
  #hero { padding: 108px 1.2rem 60px; }
  .faq-a { padding-left: 20px; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
}
