/* ===========================
   合同会社AMN 共通CSS
   =========================== */
:root {
  --navy: #0f1f3d;
  --navy-mid: #1a2b4c;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --blue-border: #bfdbfe;
  --accent: #0ea5e9;
  --gray-dark: #1e293b;
  --gray-mid: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --green: #06C755;
  --green-dark: #05a847;
  --orange: #f97316;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,31,61,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 16px;
  color: var(--white); letter-spacing: -1px;
}
.logo-text { color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.3; }
.logo-text span { display: block; font-size: 10px; font-weight: 300; opacity: 0.7; letter-spacing: 0.05em; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: rgba(255,255,255,0.75); font-size: 13px;
  padding: 6px 12px; border-radius: 6px; transition: all 0.2s; white-space: nowrap;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-tel {
  display: flex; align-items: center; gap: 6px;
  color: var(--white); font-size: 14px; font-weight: 700;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.btn-tel:hover { background: rgba(255,255,255,0.1); }
.btn-line-h {
  display: flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--white);
  font-size: 13px; font-weight: 700; padding: 8px 16px;
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.btn-line-h:hover { background: var(--green-dark); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--navy); z-index: 999; padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.8);
  font-size: 15px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* Page Hero */
.page-hero {
  background: var(--navy); padding: 120px 24px 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(37,99,235,0.18) 0%, transparent 60%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4);
  border-radius: 100px; padding: 5px 16px;
  color: #93c5fd; font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 5vw, 52px); font-weight: 700;
  color: var(--white); line-height: 1.3; margin-bottom: 16px;
}
.page-hero p {
  font-size: 15px; color: rgba(255,255,255,0.65);
  max-width: 560px; line-height: 1.9;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-light);
  padding: 12px 24px; border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-mid);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

/* Section */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 700;
  color: var(--navy); line-height: 1.4; margin-bottom: 14px;
}
.section-desc { font-size: 15px; color: var(--gray-mid); max-width: 600px; line-height: 1.9; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 700; padding: 14px 28px;
  border-radius: 10px; transition: all 0.25s; border: 2px solid var(--blue);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  font-size: 15px; font-weight: 700; padding: 14px 28px;
  border-radius: 10px; transition: all 0.25s;
}
.btn-line:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,199,85,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue);
  font-size: 15px; font-weight: 700; padding: 12px 24px;
  border-radius: 10px; border: 2px solid var(--blue); transition: all 0.25s;
}
.btn-outline:hover { background: var(--blue-pale); }

/* Worry grid */
.worry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; margin-top: 40px; }
.worry-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 12px; transition: all 0.2s;
}
.worry-item:hover { border-color: var(--blue-border); box-shadow: 0 4px 14px rgba(37,99,235,0.08); transform: translateY(-2px); }
.worry-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.worry-text { font-size: 14px; font-weight: 500; color: var(--gray-dark); line-height: 1.6; }

/* Merit grid */
.merit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-top: 40px; }
.merit-card {
  background: var(--white); border: 1px solid var(--blue-border);
  border-radius: 14px; padding: 24px 20px; text-align: center; transition: all 0.2s;
}
.merit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,99,235,0.1); }
.merit-icon { font-size: 32px; margin-bottom: 12px; }
.merit-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.merit-desc { font-size: 12px; color: var(--gray-mid); line-height: 1.6; }

/* Flow steps */
.flow-steps { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 20px; margin-top: 40px; }
.flow-step { display: flex; gap: 16px; align-items: flex-start; }
.flow-num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--blue); color: var(--white); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.flow-content h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.flow-content p { font-size: 13px; color: var(--gray-mid); line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; padding: 18px 20px;
  text-align: left; cursor: pointer; display: flex; align-items: flex-start;
  gap: 12px; font-size: 14px; font-weight: 700; color: var(--navy);
  font-family: 'Noto Sans JP',sans-serif; transition: background 0.2s;
}
.faq-q:hover { background: var(--blue-pale); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--blue); color: var(--white); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
}
.faq-toggle { margin-left: auto; flex-shrink: 0; font-size: 18px; color: var(--blue); transition: transform 0.3s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 16px 56px; font-size: 13px; color: var(--gray-mid); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
  padding: 80px 24px; text-align: center;
}
.cta-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(22px,4vw,34px); color: var(--white); margin-bottom: 14px;
}
.cta-section p { color: rgba(255,255,255,0.65); font-size: 15px; margin-bottom: 36px; line-height: 1.8; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-note { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* Footer */
.footer { background: #080f1e; color: rgba(255,255,255,0.6); padding: 56px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-link-small { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-link-small a { color: #60a5fa; text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .btn-tel { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  section { padding: 56px 16px; }
  .page-hero { padding: 100px 16px 56px; }
  .cta-btns { flex-direction: column; align-items: center; }
}
