/* ===========================
   CSS VARIABLES - Notion Style
   =========================== */
:root {
  --bg: #ffffff;
  --bg-gray: #f7f6f3;
  --bg-dark: #191919;
  --text: #191919;
  --text-secondary: #6b6b6b;
  --text-light: #9b9b9b;
  --border: #e8e8e4;
  --accent: #2383e2;
  --accent-green: #0f9d68;
  --accent-dark: #12284c;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: 'Noto Sans JP', 'Inter', sans-serif;
  --nav-h: 60px;
  --max-w: 1100px;
  --transition: 0.2s ease;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* デスクトップ：ナビリンク横並び */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-gray);
  color: var(--text);
}
.btn-nav {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 7px 16px !important;
  border-radius: var(--radius) !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; }

/* ハンバーガー：デスクトップでは非表示 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  z-index: 201;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
/* ハンバーガー → ✕ アニメーション */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  gap: 60px;
}
.hero-badge {
  display: inline-block;
  background: #eef5ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}
.highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  border: 1px solid var(--border);
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: var(--radius-lg);
  opacity: 0.5;
}
.hero-card-float {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  animation: float 4s ease-in-out infinite;
}
.hero-card-float.card-1 { top: 10%; left: 5%; animation-delay: 0s; }
.hero-card-float.card-2 { top: 40%; right: 5%; animation-delay: 1.5s; }
.hero-card-float.card-3 { bottom: 10%; left: 15%; animation-delay: 3s; }
.hc-icon { font-size: 24px; }
.hc-text { font-size: 13px; line-height: 1.4; }
.hc-text strong { display: block; font-size: 14px; }
.hc-text small { color: var(--text-secondary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-gray); border-color: var(--text-secondary); }
.btn-white {
  background: white;
  color: var(--text);
  border-color: white;
}
.btn-white:hover { background: var(--bg-gray); }

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 90px 0; }
.section-gray { background: var(--bg-gray); }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===========================
   SERVICE CARDS
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer;
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  border-color: transparent;
}
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.card-cta {
  background: var(--bg-gray);
  border-style: dashed;
  border-color: var(--border);
}
.card-cta:hover { background: #eef5ff; border-color: var(--accent); }

/* ===========================
   STRENGTHS
   =========================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.strength-item {
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent);
}
.strength-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.strength-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.strength-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   RESULTS
   =========================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.result-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 6px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.result-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   FLOW
   =========================== */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 180px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.flow-step-num {
  width: 32px; height: 32px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.flow-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 13px;
  color: var(--text-secondary);
}
.flow-arrow {
  font-size: 20px;
  color: var(--text-light);
  margin-top: 36px;
  flex-shrink: 0;
}

/* ===========================
   BLOG
   =========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.blog-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #eef5ff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}
.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: var(--text);
  color: white;
  padding: 90px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 36px;
  line-height: 1.9;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo img {
  height: 32px !important;
  width: auto !important;
  display: block;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.footer-nav a:hover { background: var(--border); color: var(--text); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

/* PC：横並びへの変更と右寄せ */
@media (min-width: 768px) {
  .footer-nav ul {
    flex-direction: row; /* 横並びに変更 */
    gap: 8px;           /* メニュー間の余白 */
  }
  .footer-nav {
    margin-left: auto;   /* メニュー全体を右端に配置 */
  }
}

/* SP：自分の情報の下に配置し、タップしやすく調整 */
@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column; /* 縦並びにしてメニューを下に配置 */
    gap: 24px;
  }
  .footer-nav ul {
    gap: 8px; /* SP時のメニュー間の間隔 */
  }
  .footer-nav a {
    display: inline-block;
    padding: 8px 0; /* タップしやすいよう上下に余白 */
  }
}

/* SP：ブランド情報とメニューをすべてセンターに配置 */
@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;    /* 子要素を中央に寄せる */
    text-align: center;     /* テキストを中央揃えにする */
    gap: 32px;
  }

  .footer-brand {
    align-items: center;    /* ロゴや説明文を中央に寄せる */
  }

  .footer-nav ul {
    align-items: center;    /* メニュー項目を中央に寄せる */
    padding: 0;
  }

  .footer-nav a {
    display: block;
    padding: 10px 20px;
  }
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===========================
   SERVICE PAGE
   =========================== */
.service-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.service-section:last-child { border-bottom: none; }
.service-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.service-title-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.service-title-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.service-list h4, .service-effects h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.service-list ul { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.service-list li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}
.service-effects ul { display: flex; flex-direction: column; gap: 8px; }
.service-effects li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.service-effects li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
}
.price-badge strong { color: var(--accent); }

/* Results section on Service page */
.results-list { display: flex; flex-direction: column; gap: 20px; }
.result-item {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}
.result-item-num {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.result-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.result-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ===========================
   ABOUT PAGE
   =========================== */
.about-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  padding: 70px 0;
}
.profile-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.profile-content .section-label { text-align: left; display: block; }
.profile-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-content .name-en {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.profile-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 70px 0;
}
.vision-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.vision-card .section-label { display: block; text-align: left; margin-bottom: 12px; }
.vision-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.vision-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===========================
   COMPANY PAGE
   =========================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.company-table tr {
  border-bottom: 1px solid var(--border);
}
.company-table th {
  width: 200px;
  text-align: left;
  padding: 20px 24px 20px 0;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  vertical-align: top;
}
.company-table td {
  padding: 20px 0;
  color: var(--text);
  line-height: 1.7;
}
.company-table td ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.company-table td li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-table td li::before {
  content: '·';
  font-size: 20px;
  color: var(--accent);
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 70px 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group label span { color: #e03e3e; margin-left: 4px; font-size: 11px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,131,226,0.1);
}
.form-group textarea { height: 140px; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form-check a { color: var(--accent); text-decoration: underline; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--accent-dark); }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.contact-info-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.contact-info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.contact-info-card a { color: var(--accent); }
.line-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #06c755;
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: opacity var(--transition);
  margin-top: 10px;
}
.line-btn:hover { opacity: 0.88; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
  padding-top: 4px;
}
.faq-item.open .faq-a { display: block; }

/* ===========================
   GOOGLE FORM EMBED
   =========================== */
.gform-wrap {
  width: 100%;
  overflow: hidden;
}
.gform-wrap iframe {
  width: 100%;
  min-width: 100%;
  height: 1300px;
  border: none;
  display: block;
}

/* ===========================
   SUCCESS MESSAGE
   =========================== */
.success-msg {
  display: none;
  background: #f0faf4;
  border: 1px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--accent-green);
  margin-bottom: 20px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-btns { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-profile { grid-template-columns: 1fr; }
  .profile-img { width: 160px; }
  .vision-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-details { grid-template-columns: 1fr; }
  .flow-steps { gap: 12px; }
  .flow-arrow { display: none; }
  .flow-step { min-width: 100%; }
  .company-table th { width: 140px; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stat { padding: 0 12px; }
  .stat-num { font-size: 18px; }
  .hero-stats { padding: 14px 16px; }
}

/* ===========================
   MOBILE NAV (768px以下)
   =========================== */
@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .nav-toggle { display: flex; }

  /* ナビリンク：max-heightでスムーズに開閉 */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    z-index: 199;
  }
  .nav-links.open {
    max-height: 500px;
    padding: 10px 0 16px;
  }

  /* 各リンク：左ボーダーのアクティブ表示 */
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    border-radius: 0;
    color: var(--text);
    border-left: 3px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--bg-gray);
    border-left-color: var(--accent);
  }

  /* お問い合わせボタン */
  .btn-nav {
    margin: 10px 24px 0 !important;
    display: block !important;
    text-align: center !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    background: var(--text) !important;
    color: white !important;
    border-left: none !important;
  }
  .btn-nav:hover {
    background: var(--accent-dark) !important;
    border-left-color: transparent !important;
  }
}

/*form botton*/
/* 「#submit-btn」と指定することで、このフォームのボタンだけに限定して適用します */
#contact-form #submit-btn {
    /* 既存のボタンの枠線や背景をリセット */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    border: none;
    
    /* ここから新しいデザイン */
    background-color: #000;
    color: #fff;
    padding: 16px 80px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block; /* 中央寄せしやすくするため */
    margin: 0 auto;  /* ボタンを中央に配置 */
    min-width: 240px;
}

/* ホバー時の上書き防止と設定 */
#contact-form #submit-btn:hover {
    background-color: #333 !important; /* 強制的にこの色にする */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 送信中（disabled）のスタイルを固定 */
#contact-form #submit-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

/* ===========================
   追加修正：ハンバーガーメニューの中央揃え
   =========================== */
@media (max-width: 768px) {
  /* メニューリスト全体の配置を中央に */
  .nav-links {
    align-items: center !important;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

/* SP：ヘッダーロゴのセンター配置 */
@media (max-width: 768px) {
  .nav-inner {
    position: relative;
    justify-content: center; /* ロゴを中央へ */
  }

  .nav-logo {
    margin: 0 auto; /* 確実に中央に固定 */
  }

  .nav-toggle {
    position: absolute;
    right: 16px; /* ハンバーガーボタンだけを右端に配置 */
    top: 50%;
    transform: translateY(-50%);
  }
}

  /* お問い合わせボタン以外の4つのリンクを中央揃え */
  .nav-links a:not(.btn-nav) {
    border-left: none !important; /* 左の青線を消して中央配置を綺麗に見せる */
    padding: 15px 0;
    width: 100%;
    display: block;
  }

  /* お問い合わせボタンは元のデザインを維持しつつ調整 */
  .btn-nav {
    margin: 15px 24px !important;
    width: calc(100% - 48px) !important; /* 左右の余白を確保 */
  }
}

