/* ============================================
   barbara.co.jp - 共通CSS
   カラー: ネイビー + 白 + アクセント青
   モバイルファースト・レスポンシブ
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #1a2a4a;
  --navy-light: #2a3f6a;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --bg-warm: #fafbfc;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1080px;
  --font: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.4;
  font-weight: 700;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.375rem; }
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--bg-light);
  color: var(--navy);
}

/* --- Header --- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.header-logo a {
  color: var(--navy);
}

.header-logo a:hover {
  color: var(--accent);
}

.header-nav {
  display: none;
}

.header-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  gap: 16px;
  box-shadow: var(--shadow);
}

.header-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
  line-height: 1;
}

@media (min-width: 768px) {
  .header-logo {
    font-size: 1.1rem;
  }

  .header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }
}

/* --- Header (LP simple version) --- */
.header-simple .header-nav {
  display: none;
}

.header-simple .menu-toggle {
  display: none;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0;
  }

  .hero p {
    font-size: 1.15rem;
  }
}

/* --- Section --- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Steps (3-step flow) --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -18px;
    top: 20px;
    font-size: 1.5rem;
    color: var(--accent);
  }
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .comparison-table {
    display: table;
    font-size: 0.95rem;
  }
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.comparison-table thead th:last-child {
  background: var(--accent);
}

.comparison-table tbody tr:hover {
  background: var(--bg-light);
}

.comparison-table .check {
  color: var(--accent);
  font-weight: 700;
}

.comparison-table .cross {
  color: #ccc;
}

/* --- Profile --- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .profile {
    flex-direction: row;
    align-items: flex-start;
  }
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 3px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.profile-text h3 {
  margin-bottom: 8px;
}

.profile-text .profile-title {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile-text p {
  font-size: 0.95rem;
}

/* --- Company Info --- */
.company-table {
  max-width: 640px;
  margin: 0 auto;
}

.company-table dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.company-table dt,
.company-table dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.company-table dt {
  font-weight: 600;
  color: var(--navy);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- LP specific --- */
.lp-benefits {
  max-width: 640px;
  margin: 0 auto;
}

.lp-benefit-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.lp-benefit-item:last-child {
  border-bottom: none;
}

.lp-benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.lp-benefit-text h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.lp-benefit-text p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Form placeholder --- */
.form-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-light);
}

.form-placeholder p {
  font-size: 0.9rem;
}

/* --- Trust badges --- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- FAQ --- */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1rem;
}

.faq-q::before {
  content: "Q. ";
  color: var(--accent);
}

.faq-a {
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 24px;
}

.faq-a::before {
  content: "A. ";
  color: var(--navy);
  font-weight: 600;
  margin-left: -24px;
}

/* --- Process flow --- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.process-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.process-text {
  font-size: 0.95rem;
}

/* --- Checklist --- */
.checklist {
  max-width: 560px;
  margin: 0 auto;
}

.checklist li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
