/* ============================================================
   RESET & ROOT
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1d5097;
  --blue-dark:   #163d78;
  --blue-light:  #e8f0fb;
  --green:       #00a73c;
  --green-dark:  #008a30;
  --green-light: #e6f7ec;
  --white:       #ffffff;
  --bg:          #f4f7fc;
  --text:        #1a2a3a;
  --text-mid:    #4a5a6a;
  --text-light:  #8a9aaa;
  --border:      #d8e4f0;
  --w:           1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(40,55,70,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 48px; gap: 0;
}
.header-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.header-logo img { height: 32px; width: auto; display: block; }
.header-nav {
  display: flex; align-items: center; justify-content: center;
  height: 68px; flex: 1;
}
.header-nav a {
  display: flex; align-items: center;
  height: 68px; padding: 0 16px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.header-cta {
  margin-left: auto; flex-shrink: 0;
  background: #00a73c;
  color: var(--white);
  padding: 10px 26px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  border-radius: 2px;
}
.header-cta:hover { background: var(--green-dark); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: calc(100vh - 200px);
  position: relative;
  display: flex; align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero2.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg,
    rgba(29,80,151,0.82) 0%,
    rgba(29,80,151,0.72) 40%,
    rgba(0,120,200,0.45) 70%,
    rgba(0,80,160,0.30) 100%);
}
.hero-accent-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--green); z-index: 2;
}
.hero-inner {
  max-width: var(--w); margin: 0 auto;
  padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 400px;
  gap: 64px; align-items: center;
  width: 100%; position: relative; z-index: 3;
}
.hero h1 {
  font-size: 50px; font-weight: 700; color: var(--white);
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px;
}
.hero h1 strong { color: #ffffff; font-weight: 700; font-size: 52px; }
.hero-consult {
  background: rgba(255,255,255,0.12);
  border-left: 3px solid var(--green);
  backdrop-filter: blur(4px);
  padding: 18px 22px; margin-bottom: 36px;
  font-size: 20px; color: rgba(255,255,255,0.9); line-height: 1.9;
  border-radius: 0 4px 4px 0;
}
.hero-consult strong { color: var(--white); font-weight: 700; }

/* Hero右フォームカード */
.hero-form-card {
  background: rgba(255,255,255,0.97);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.hero-form-card-title {
  font-size: 18px; font-weight: 700; color: var(--blue);
  margin-bottom: 4px; line-height: 1.4;
}
.hero-form-card-sub {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hf-group { margin-bottom: 12px; }
.hf-group label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-mid); letter-spacing: 0.06em; margin-bottom: 4px;
}
.hf-req { color: var(--green); margin-left: 1px; }
.hf-group input, .hf-group textarea {
  width: 100%; border: 1px solid var(--border);
  background: var(--bg); border-radius: 3px;
  padding: 10px 12px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.hf-group input::placeholder, .hf-group textarea::placeholder { color: var(--text-light); }
.hf-group input:focus, .hf-group textarea:focus { border-color: var(--blue); background: var(--white); }
.hf-group textarea { resize: vertical; min-height: 72px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hf-submit {
  width: 100%; background: #00a73c; color: var(--white);
  border: none; border-radius: 3px;
  padding: 14px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.hf-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.hf-note {
  font-size: 10px; color: var(--text-light);
  text-align: center; margin-top: 10px; line-height: 1.7;
}
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success-icon { font-size: 36px; margin-bottom: 12px; }
.form-success h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.form-success p { font-size: 16px; color: var(--text-light); }

/* ============================================================
   SECTION BASE
============================================================ */
.section { padding: 88px 0; }
.section-inner { max-width: var(--w); margin: 0 auto; padding: 0 48px; }
.section-heading { margin-bottom: 48px; }
.section-heading-en {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500;
  color: var(--green); letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.section-heading-en::after { content: ''; display: block; flex: 1; max-width: 36px; height: 1px; background: var(--green); }
.section-heading h2 { font-size: 30px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em; line-height: 1.35; }
.section-heading p { margin-top: 10px; font-size: 14px; color: var(--text-mid); line-height: 1.9; }

/* ============================================================
   PAIN
============================================================ */
.pain { background: var(--bg); }
.pain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.pain-card {
  background: var(--white); padding: 32px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.15s; position: relative;
}
.pain-card:last-child { border-right: none; }
.pain-card:hover { background: var(--blue-light); }
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue); opacity: 0; transition: opacity 0.15s;
}
.pain-card:hover::before { opacity: 1; }
.pain-icon {
  display: block; margin: 0 auto 16px;
  width: 144px; height: 144px;
}
.pain-icon img { width: 100%; height: 100%; object-fit: contain; }
.pain-card h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 10px; line-height: 1.5; text-align: center; }
.pain-card p { font-size: 12px; color: var(--text-mid); line-height: 1.85; }

/* ============================================================
   WHY
============================================================ */
.why { background: var(--blue); }
.why .section-heading h2 { color: var(--white); }
.why .section-heading-en { color: rgba(255,255,255,0.7); }
.why .section-heading-en::after { background: rgba(255,255,255,0.4); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; padding: 40px 32px; transition: background 0.2s;
}
.why-item:hover { background: #f0f5ff; }
.why-num {
  font-family: 'Oswald', sans-serif; font-size: 48px; font-weight: 600;
  color: #1d5097; line-height: 1; margin-bottom: 14px;
}
.why-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--white); background: var(--green);
  padding: 3px 10px; letter-spacing: 0.1em; margin-bottom: 12px; border-radius: 2px;
}
.why-item h3 { font-size: 17px; font-weight: 700; color: #1d5097; margin-bottom: 10px; line-height: 1.45; }
.why-item p { font-size: 13px; color: #1d5097; line-height: 1.9; }

/* ============================================================
   WORKS
============================================================ */
.works { background: var(--white); }
.works-filter {
  display: flex; margin-bottom: 28px; gap: 0;
  border: 1px solid var(--border); border-radius: 3px; overflow: hidden; width: 100%;
}
.filter-btn {
  flex: 1; padding: 10px 4px; background: var(--white); border: none;
  border-right: 1px solid var(--border); color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap; text-align: center;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover { background: var(--blue-light); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: var(--white); }
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.work-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
}
.work-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(29,80,151,0.1); background: #d8e4f0; }
.work-body { padding: 22px 22px 24px; }
.work-cat { font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; }
.work-card h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 7px; line-height: 1.5; }
.work-card p { font-size: 12px; color: var(--text-mid); line-height: 1.8; }
.works-more-btn {
  background: var(--white); color: var(--blue);
  border: 2px solid var(--blue); border-radius: 4px;
  padding: 12px 40px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.05em; transition: background 0.2s, color 0.2s;
}
.works-more-btn:hover { background: var(--blue); color: var(--white); }

/* ============================================================
   PROCESS
============================================================ */
.process { background: var(--bg); }
.process-wrap { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-line {
  position: absolute; top: 44px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
}
.step { padding: 0 20px; text-align: center; }
.step-circle {
  width: 88px; height: 88px; border: 2px solid var(--border);
  background: var(--white); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 22px; position: relative; z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}
.step:hover .step-circle { border-color: var(--blue); background: var(--blue-light); }
.step-circle-num { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 600; color: var(--text-light); line-height: 1; }
.step-circle-en { font-size: 9px; color: var(--text-light); letter-spacing: 0.08em; }
.step:hover .step-circle-num, .step:hover .step-circle-en { color: var(--blue); }
.step h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--text-mid); line-height: 1.85; }
.step-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--green); background: var(--green-light);
  padding: 3px 10px; margin-top: 10px; letter-spacing: 0.05em; border-radius: 2px;
}

/* ============================================================
   COMPANY INFO
============================================================ */
.company { background: var(--bg); }
.company-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 200px; padding: 18px 24px;
  background: var(--blue-light);
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-align: left; vertical-align: top;
  white-space: nowrap; border-right: 1px solid var(--border);
}
.company-table td { padding: 18px 28px; font-size: 14px; color: var(--text-mid); line-height: 1.85; background: var(--white); }
.company-table td ul { list-style: none; padding: 0; margin: 0; }
.company-table td ul li { padding: 3px 0 3px 14px; position: relative; }
.company-table td ul li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}

/* ============================================================
   FAQ
============================================================ */
.faq { background: var(--white); }
.faq-list { border-top: 2px solid var(--blue); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 20px;
  padding: 22px 0; background: none; border: none;
  font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--text); text-align: left; cursor: pointer; transition: color 0.15s;
}
.faq-q:hover { color: var(--blue); }
.faq-q-label { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; color: var(--blue); min-width: 22px; }
.faq-icon {
  margin-left: auto; flex-shrink: 0; width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-light); line-height: 1; transition: all 0.2s;
}
.faq-q:hover .faq-icon { border-color: var(--blue); color: var(--blue); }
.faq-item.open .faq-icon { background: var(--blue); border-color: var(--blue); color: var(--white); transform: rotate(45deg); }
.faq-a { display: none; font-size: 14px; color: var(--text-mid); line-height: 1.9; padding: 4px 0 22px 42px; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   CTA BAR
============================================================ */
.cta-bar { background: var(--blue); padding: 72px 0; }
.cta-bar-inner { max-width: var(--w); margin: 0 auto; padding: 0 48px; }
.cta-bar-heading { font-size: 28px; font-weight: 700; color: var(--white); text-align: center; margin-bottom: 16px; }
.cta-bar-title {
  font-size: 28px; font-weight: 700; color: var(--white);
  line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.01em; text-align: center;
}
.cta-bar-title em { font-style: normal; color: #ffffff; }
.cta-bar-desc { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.9; text-align: center; }
.cta-form-wrap {
  max-width: 680px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 32px 36px;
}
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cta-form-group { display: flex; flex-direction: column; gap: 5px; }
.cta-form-group label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; }
.cta-form-req { color: #7ee8a2; margin-left: 2px; }
.cta-form-group input,
.cta-form-group textarea {
  width: 100%; background: #ffffff;
  border: 1px solid var(--border); border-radius: 3px;
  padding: 11px 13px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: var(--text); outline: none; transition: border-color 0.15s;
}
.cta-form-group input::placeholder,
.cta-form-group textarea::placeholder { color: var(--text-light); }
.cta-form-group input:focus,
.cta-form-group textarea:focus { border-color: var(--blue); }
.cta-form-group textarea { resize: vertical; min-height: 80px; }
.cta-form-submit {
  width: 100%; background: var(--green); color: var(--white);
  border: none; border-radius: 3px; padding: 15px; margin-top: 4px;
  font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.05em; transition: background 0.2s, transform 0.15s;
}
.cta-form-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.cta-form-note { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 12px; line-height: 1.8; }
.cta-form-success { display: none; text-align: center; padding: 36px 0; }
.cta-form-success-icon { font-size: 36px; margin-bottom: 12px; }
.cta-form-success h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-form-success p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--blue-dark);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo img { height: 28px; width: auto; opacity: 0.6; }
footer p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   HAMBURGER BUTTON
============================================================ */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 12px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
============================================================ */
@media (max-width: 1024px) {
  body { min-width: 0; }

  .header { padding: 0 24px; }
  .header-nav a { padding: 0 10px; font-size: 11px; }
  .header-cta { padding: 10px 16px; font-size: 12px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px; padding: 80px 32px 48px;
  }
  .hero-form-card { max-width: 560px; margin: 0 auto; width: 100%; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-card:nth-child(2) { border-right: none; }
  .pain-card:nth-child(3) { border-top: 1px solid var(--border); }
  .pain-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .process-wrap { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-line { display: none; }

  .section-inner { padding: 0 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
============================================================ */
@media (max-width: 768px) {
  body { min-width: 0; }

  /* ヘッダー */
  .header { padding: 0 16px; height: 60px; }
  .header-logo img { height: 26px; }
  .header-nav {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(22,40,70,0.98);
    flex-direction: column; align-items: stretch;
    height: auto; overflow-y: auto; z-index: 199;
    padding: 16px 0;
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    height: 52px; padding: 0 24px; font-size: 15px;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .header-nav a:first-child { border-left: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* ヒーロー */
  .hero { padding-top: 60px; }
  .hero-inner { padding: 40px 16px 40px; gap: 24px; }
  .hero h1 { font-size: 32px; }
  .hero h1 strong { font-size: 34px; }
  .hero-consult { font-size: 14px; padding: 14px 16px; }
  .hero-form-card { padding: 24px 16px; }

  /* セクション共通 */
  .section { padding: 56px 0; }
  .section-inner { padding: 0 16px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading { margin-bottom: 32px; }

  /* PAINカード */
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { border-right: none; border-bottom: 1px solid var(--border); }
  .pain-card:last-child { border-bottom: none; }
  .pain-card:nth-child(2),
  .pain-card:nth-child(3),
  .pain-card:nth-child(4) { border-top: none; }

  /* WHY */
  .why-grid { grid-template-columns: 1fr; }

  /* WORKS */
  .works-filter { flex-wrap: wrap; }
  .filter-btn { flex: none; width: calc(33.333% - 1px); font-size: 11px; padding: 10px 4px; }
  .works-grid { grid-template-columns: 1fr; }

  /* PROCESS */
  .process-wrap { grid-template-columns: 1fr; gap: 24px; }
  .process-line { display: none; }
  .step { padding: 0; text-align: left; display: flex; align-items: flex-start; gap: 16px; }
  .step-circle { margin: 0; flex-shrink: 0; width: 64px; height: 64px; }
  .step-circle-num { font-size: 18px; }

  /* COMPANY */
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { border-right: none; white-space: normal; }

  /* FAQ */
  .faq-q { font-size: 13px; }

  /* CTA */
  .cta-bar { padding: 48px 0; }
  .cta-bar-title { font-size: 20px; }
  .cta-form-wrap { padding: 24px 16px; }
  .cta-form-row { grid-template-columns: 1fr; }

  /* FOOTER */
  footer { flex-direction: column; gap: 12px; padding: 24px 16px; text-align: center; }
}
