/* ========== Scanroll - Shared Styles ========== */
/* Light base + Dark hero/footer */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 18px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #00796B; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00BFA5; }
img { max-width: 100%; height: auto; }

/* ========== Layout ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Animations ========== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== Header (dark) ========== */
.header {
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.02em; display: flex; align-items: center; line-height: 1; }
.header .logo a { color: #fff; display: flex; align-items: center; line-height: 1; }
.header .logo a:hover { color: #fff; }
.header .logo i { margin-right: 8px; color: #00BFA5; }
.header .logo img { height: 28px; width: auto; display: block; }
.header nav { display: flex; gap: 24px; }
.header nav a { color: #aaa; font-size: 15px; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.header nav a:hover { color: #fff; }
.header nav a.active { color: #fff; border-bottom-color: #00BFA5; }
.hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 24px; cursor: pointer;
}

/* ========== Footer (dark) ========== */
.footer {
  background: #0D1117;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0; text-align: center;
}
.footer .links { margin-bottom: 16px; }
.footer .links a { color: #888; margin: 0 16px; font-size: 14px; }
.footer .links a:hover { color: #ccc; }
.footer .copy { color: #555; font-size: 13px; }

/* ========== Page Hero (dark) ========== */
.page-hero {
  background: radial-gradient(ellipse at 30% 20%, rgba(0,191,165,0.08) 0%, transparent 60%),
              linear-gradient(180deg, #0D1117 0%, #0D1B2A 100%);
  padding: 60px 0 40px; text-align: center;
}
.page-hero h1 {
  font-size: 36px; font-weight: 900; color: #fff;
  letter-spacing: -0.01em;
}
.page-hero h1 i { margin-right: 10px; color: #00BFA5; }
.page-hero .lead { color: #aaa; font-size: 16px; margin-top: 12px; }

/* ========== Content (light) ========== */
.content {
  padding: 60px 0; min-height: 50vh;
  background: #fff;
}
.content .inner { max-width: 820px; margin: 0 auto; }
.content h2 {
  font-size: 22px; font-weight: 700; color: #1a1a2e;
  margin: 40px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}
.content h2 i { margin-right: 8px; color: #00BFA5; }
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 16px; color: #555; font-size: 17px; }
.content ul { margin: 8px 0 20px 20px; }
.content ol { margin: 8px 0 20px 0; padding-left: 1.6em; }
.content ol ol { margin: 12px 0 12px 0; padding-left: 1.8em; }
.content li { margin-bottom: 8px; color: #555; font-size: 17px; }
.content strong { color: #1a1a2e; }

/* ========== Buttons ========== */
.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #00BFA5 0%, #00796B 100%);
  color: #fff; padding: 18px 48px; border-radius: 8px;
  font-size: 18px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,191,165,0.3);
  border: none; cursor: pointer;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,191,165,0.4);
  color: #fff;
}
.cta-micro { display: block; margin-top: 12px; font-size: 13px; color: #999; }
.btn-secondary {
  display: inline-block;
  padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 700;
  color: #00796B; background: #fff;
  border: 2px solid #00BFA5;
  transition: transform 0.2s, background 0.2s;
}
.btn-secondary:hover { background: #f0faf8; transform: translateY(-2px); color: #00796B; }

/* ========== Cards (light) ========== */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px; padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ========== Table (light) ========== */
.dark-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.dark-table td, .dark-table th {
  padding: 14px 16px; border-bottom: 1px solid #e8e8e8;
  text-align: left;
}
.dark-table td:first-child { font-weight: 500; color: #666; width: 30%; background: #f8f9fa; }
.dark-table td:last-child { color: #333; }

/* ========== Code block ========== */
.code-block {
  background: #1a1a2e;
  border: 1px solid #2a2a4e;
  padding: 16px 20px; border-radius: 8px;
  font-family: "Consolas", "SF Mono", monospace;
  font-size: 14px; color: #ccc;
  margin: 12px 0 20px; overflow-x: auto;
  line-height: 1.6;
}

/* ========== Form (light) ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; font-size: 15px;
  color: #444; margin-bottom: 6px;
}
.form-group label i { margin-right: 6px; color: #00BFA5; }
.form-input {
  width: 100%; padding: 14px 16px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px; color: #333; font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none; border-color: #00BFA5;
  box-shadow: 0 0 0 3px rgba(0,191,165,0.15);
}
.form-input::placeholder { color: #aaa; }
select.form-input { appearance: auto; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ========== FAQ Accordion (light) ========== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  font-size: 16px; font-weight: 700; color: #333;
  transition: color 0.2s; list-style: none;
  /* button のブラウザデフォルトを抑制 */
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit; line-height: inherit;
}
.faq-q:hover { color: #00796B; }
.faq-q i.arrow { color: #aaa; transition: transform 0.3s; font-size: 14px; }
.faq-item.open .faq-q i.arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #666; font-size: 15px; line-height: 1.9;
}
.faq-item.open .faq-a { max-height: 1000px; padding-bottom: 20px; }

/* ========== A11y: keyboard focus (Teal) ========== */
a:focus-visible,
button:focus-visible,
.cta-primary:focus-visible,
.btn-secondary:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid #00BFA5;
  outline-offset: 2px;
}

/* ========== Section helpers (light) ========== */
.section { padding: 80px 0; }
.section-alt {
  background: #f8f9fa;
}
.section-title {
  font-size: 36px; font-weight: 900; text-align: center;
  color: #1a1a2e; margin-bottom: 16px;
}
.section-title i { margin-right: 10px; color: #00BFA5; }
.section-lead { text-align: center; color: #777; font-size: 16px; margin-bottom: 48px; }

/* Section Hero (強調リードブロック) */
.section-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #e0f2f1 0%, #f0fdfb 100%);
  border-left: 6px solid #00BFA5;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 16px 0 40px;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.08);
}
.section-hero-icon {
  font-size: 48px;
  color: #00BFA5;
  flex-shrink: 0;
}
.section-hero-text { flex: 1; }
.section-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #00796B;
  margin: 0 0 8px;
  line-height: 1.4;
}
.section-hero-desc {
  font-size: 15px;
  color: #444;
  margin: 0;
  line-height: 1.7;
}

/* ========== Pricing (light) ========== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 36px 28px; border-radius: 16px;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.plan.popular { border: 2px solid #00BFA5; background: #f0faf8; }
.plan.popular::before {
  content: "おすすめ"; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00BFA5, #00796B);
  color: #fff; padding: 4px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}
.plan h3 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.plan .price { font-size: 44px; font-weight: 900; color: #00BFA5; line-height: 1.2; }
.plan .price span { font-size: 16px; color: #999; font-weight: 400; }
.plan ul { list-style: none; text-align: left; margin: 24px 0; }
.plan ul li {
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 15px; color: #555;
}
.plan ul li i { margin-right: 8px; }
.plan ul li i.fa-check { color: #00BFA5; }
.plan ul li i.fa-times { color: #ccc; }
.plan ul li.disabled { color: #ccc; }
.btn-plan {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 16px; font-weight: 700; margin-top: 16px;
  transition: transform 0.2s, box-shadow 0.2s; color: #fff;
}
.btn-plan:hover { transform: translateY(-2px); color: #fff; }
.btn-plan.primary {
  background: linear-gradient(135deg, #00BFA5, #00796B);
  box-shadow: 0 4px 16px rgba(0,191,165,0.3);
}
.btn-plan.secondary {
  background: #fff; color: #00796B;
  border: 2px solid #00BFA5;
}
.btn-plan.secondary:hover { background: #f0faf8; color: #00796B; }

/* ========== Note box (light) ========== */
.note-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px; padding: 28px; margin-top: 40px;
}
.note-box h3 { color: #1a1a2e; font-size: 18px; margin-bottom: 12px; }
.note-box h3 i { margin-right: 8px; color: #00796B; }
.note-box ul { margin-left: 20px; }
.note-box li { color: #666; font-size: 14px; margin-bottom: 6px; }

/* ========== Warning ========== */
.warning {
  color: #e74c3c; font-weight: 700; font-size: 14px;
  padding: 10px 0;
}
.warning i { margin-right: 6px; }

/* ========== Steps (light) ========== */
.step {
  display: flex; align-items: flex-start; margin-bottom: 40px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #00BFA5, #00796B);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  flex-shrink: 0; margin-right: 24px;
}
.step-body { flex: 1; }
.step-body h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.step-body p { color: #666; font-size: 15px; }

/* ========== Checkbox ========== */
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0; font-size: 14px; color: #666;
}
.checkbox-row input[type="checkbox"] { width: auto; accent-color: #00BFA5; }
.checkbox-row a { font-size: 14px; }

/* ========== Success ========== */
.success-icon { font-size: 64px; color: #00BFA5; margin-bottom: 20px; }

/* ========== Nav Contact (icon on desktop, text on mobile) ========== */
.nav-contact-text { display: none; }

/* ========== Nav CTA (Teal accent) ========== */
.header nav a.nav-cta {
  color: #fff;
  background: #00BFA5;
  padding: 6px 14px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  transition: background 0.2s;
}
.header nav a.nav-cta:hover { background: #00A693; color: #fff; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
  .pricing { grid-template-columns: 1fr; }
  .header nav { display: none; }
  .header nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,17,23,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hamburger { display: block; }
  .dark-table td:first-child { width: 40%; }
  .nav-contact-text { display: inline; }
  .section-hero {
    flex-direction: column;
    padding: 20px 18px;
    gap: 12px;
    text-align: center;
  }
  .section-hero-icon { font-size: 40px; }
  .section-hero-title { font-size: 18px; }
}
