/* ===================================
   LPガス保安コンサルタント LP - スタイル
   =================================== */

/* ── CSS変数 ── */
:root {
  --primary:      #1a56a0;
  --primary-dark: #0f3d7a;
  --primary-light:#3a7ec8;
  --accent:       #e8a020;
  --accent-dark:  #c47a00;
  --success:      #0e7c57;
  --bg-light:     #f4f7fb;
  --bg-white:     #ffffff;
  --text-main:    #1a2234;
  --text-sub:     #4a5568;
  --text-muted:   #8a9bb5;
  --border:       #d8e3f0;
  --shadow-sm:    0 2px 8px rgba(26,86,160,0.08);
  --shadow-md:    0 8px 32px rgba(26,86,160,0.12);
  --shadow-lg:    0 20px 60px rgba(26,86,160,0.16);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --font-sans:    'Noto Sans JP', sans-serif;
  --font-serif:   'Noto Serif JP', serif;
}

/* ── リセット・基本 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px; /* fixedヘッダー分の余白 */
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

/* ===================================
   ヘッダー
   =================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-box {
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-left: 10px;
}
.logo-main {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
}
.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.55); }

/* グローバルナビ */
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.global-nav a:hover { background: var(--bg-light); color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   共通 - ボタン
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,86,160,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,86,160,0.4);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-large { padding: 16px 40px; font-size: 16px; }

/* ===================================
   共通 - セクションヘッダー
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-transform: uppercase;
  background: rgba(26,86,160,0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.light .section-label {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
}
.section-header.light .section-title { color: #fff; }

/* ===================================
   ヒーロー
   =================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a2550 0%, #1a56a0 50%, #0e3d7a 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(58,126,200,0.25) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  50%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.2);
  border: 1px solid rgba(232,160,32,0.4);
  color: #f4c053;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}
.hero-title .highlight {
  color: #f4c053;
  position: relative;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.15em;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===================================
   課題訴求
   =================================== */
/* ===================================
   課題訴求
   =================================== */
.problems {
  padding: 80px 0;
  background: var(--bg-light);
}
.problems-header {
  text-align: center;
  margin-bottom: 40px;
}
.problems-header .section-label {
  font-size: 17px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  padding: 0;
}

/* 左右レイアウト */
.problems-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

/* 左：お悩みカード縦並び */
.problems-left .problems-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.problem-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.problem-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #fff3cd, #ffe5a0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.problem-card p {
  font-size: 14px; font-weight: 500;
  color: var(--text-sub);
  line-height: 1.65;
  text-align: left;
}

/* 中央：矢印 */
.problems-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #c0392b;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0 8px;
}
.problems-arrow i {
  font-size: 28px;
  opacity: 0.8;
  animation: pulseArrow 1.6s ease-in-out infinite;
}
@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%       { transform: translateX(4px); opacity: 1; }
}

/* 右：リスクカード */
.problems-right {
  display: flex;
  flex-direction: column;
}
.risk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c0392b;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.risk-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.risk-card {
  background: #fff5f5;
  border: 1.5px solid rgba(192,57,43,0.22);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.risk-card:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.12);
  border-color: rgba(192,57,43,0.45);
}
.risk-icon {
  width: 48px; height: 48px;
  background: rgba(192,57,43,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #c0392b;
  flex-shrink: 0;
}
.risk-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
  text-align: left;
}
.risk-card strong {
  color: #c0392b;
  font-weight: 700;
}

.problems-solution {
  text-align: center;
}
.problems-solution p {
  font-size: 20px;
  color: var(--text-sub);
  font-weight: 500;
}
.problems-solution strong {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

/* ===================================
   サービス
   =================================== */
.services {
  padding: 100px 0;
  background: var(--bg-light);
}
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* カード本体 */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 左端カラーライン */
.service-card-accent {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--svc-color);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* 内側レイアウト */
.service-card-inner {
  display: flex;
  align-items: stretch;
  padding: 36px 36px 36px 52px;
  gap: 36px;
}

/* 左カラム：番号＋アイコン */
.service-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 80px;
}
.service-num-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--svc-color);
  background: var(--svc-color-light);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
.service-icon-wrap {
  width: 68px; height: 68px;
  background: var(--svc-color-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--svc-color);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
}

/* 右カラム：テキスト */
.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-title {
  font-size: 21px; font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.service-sub {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  display: inline;
}
.service-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 18px;
  border-left: 3px solid var(--svc-color-light);
  padding-left: 12px;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--text-sub);
}
.service-list i {
  color: var(--svc-color);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--svc-color);
  border: 1.5px solid var(--svc-color);
  border-radius: 30px;
  padding: 7px 20px;
  align-self: flex-start;
  transition: all var(--transition);
}
.service-link:hover {
  background: var(--svc-color);
  color: #fff;
  gap: 10px;
}

/* ===================================
   サービスの流れ
   =================================== */
.flow {
  padding: 100px 0;
  background: var(--bg-light);
}
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.flow-step {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.flow-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.flow-step-num {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(26,86,160,0.08);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 16px;
}
.flow-step-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(26,86,160,0.3);
}
.flow-step-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.flow-step-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding-top: 80px;
  color: var(--primary-light);
  font-size: 18px;
  flex-shrink: 0;
}

/* ===================================
   選ばれる理由
   =================================== */
.why {
  padding: 100px 0;
  background: var(--bg-white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.why-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-card:hover::after { transform: scaleX(1); }
.why-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,86,160,0.28);
}
.why-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: var(--font-serif);
}
.why-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ===================================
   その他事業
   =================================== */
.other-services {
  padding: 100px 0;
  background: var(--bg-light);
}
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 0;
}

/* カード */
.other-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, opacity 0.7s ease, transform 0.7s ease;
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.other-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) !important;
}
/* fade-inアニメーションがother-cardに適用されても常に表示 */
.other-card.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* カードヘッダー */
.other-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #1a56a0;
  color: #fff;
}
.other-card-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.other-card-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.other-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  font-family: var(--font-serif);
}

/* カードボディ */
.other-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.other-card-catch {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.65;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid #1a56a0;
  margin: 0;
}

/* リスト */
.other-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.other-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.other-card-list li > i {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}
.other-card-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.other-card-list li strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.other-card-list li span {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* リンクボタン */
.other-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a56a0;
  padding: 10px 18px;
  border: 1.5px solid #1a56a0;
  text-decoration: none;
  border-radius: 50px;
  align-self: flex-start;
  transition: all 0.2s;
}
.other-card-link--line:hover {
  background: #06C755 !important;
  border-color: #06C755 !important;
  color: #fff !important;
}
.other-card-link--ai:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .other-services-grid {
    grid-template-columns: 1fr !important;
  }
  .other-card {
    width: 100% !important;
  }
}

/* ===================================
   FAQ
   =================================== */
.faq {
  padding: 100px 0;
  background: var(--bg-light);
}

/* FAQタブ */
.faq-tabs {
  display: flex;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}
.faq-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  background: #fff;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.faq-tab i { font-size: 12px; }
.faq-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,86,160,0.25);
}

/* FAQパネル */
.faq-panel {
  display: none;
}
.faq-panel.active {
  display: block;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 15px; font-weight: 600;
  color: var(--text-main);
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question[aria-expanded="true"] { color: var(--primary); }
.faq-icon {
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 28px 22px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===================================
   事業概要
   =================================== */
.company {
  padding: 100px 0;
  background: var(--bg-white);
}
.company-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* 基本情報テーブル */
.company-info {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}
.company-table th {
  width: 38%;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(26,86,160,0.04);
  white-space: nowrap;
}
.company-table th i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  margin-right: 7px;
  vertical-align: middle;
}
.company-table td {
  font-size: 14px;
  color: var(--text-main);
}
.company-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* 右カラム */
.company-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.company-block {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(26,86,160,0.06);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-block-title i { color: var(--primary); }

/* 事業内容リスト */
.company-service-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.company-service-item {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.company-service-item.primary {
  border-color: rgba(26,86,160,0.3);
  background: rgba(26,86,160,0.03);
}
.company-service-item.sub {
  border-color: var(--border);
  background: #fafafa;
}
.company-service-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.company-service-item:not(:has(ul)) .company-service-label {
  margin-bottom: 0;
}
.company-service-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26,86,160,0.1);
  border-radius: 20px;
  padding: 2px 10px;
}
.company-service-item ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.company-service-item li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-sub);
}
.company-service-item li i {
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}

/* 資格リスト */
.company-license-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-license-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.company-license-item > i {
  font-size: 22px;
  color: var(--primary);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.company-license-item.preparing > i {
  color: var(--text-muted);
}
.license-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}
.license-num {
  font-size: 12px;
  color: var(--text-muted);
}
.company-license-item.preparing .license-num {
  color: var(--accent-dark);
  font-weight: 600;
}

@media (max-width: 900px) {
  .company-layout { grid-template-columns: 1fr; }
}

/* ===================================
   CTAセクション（お問い合わせ）
   =================================== */
.cta {
  padding: 100px 0;
  background: var(--bg-white);
}
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,160,0.08);
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.cta-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 48px;
}

/* フォーム */
.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: left;
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.form-group + .form-group:not(.form-row .form-group) {
  margin-top: 20px;
}
.contact-form > .form-group {
  margin-bottom: 20px;
}
.form-group label {
  font-size: 14px; font-weight: 600;
  color: var(--text-main);
  display: flex; align-items: center; gap: 8px;
}
.required {
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: #e53e3e;
  padding: 2px 7px;
  border-radius: 4px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,160,0.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-group textarea { resize: vertical; }

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.checkbox-item:hover {
  border-color: var(--primary);
  background: rgba(26,86,160,0.04);
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.checkbox-item span { line-height: 1.3; }

.form-submit {
  text-align: center;
  margin-top: 28px;
}
.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* 送信完了 */
.form-success {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-success i {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 20px;
  display: block;
}
.form-success h3 {
  font-size: 22px; font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}
.form-success p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ===================================
   LINE バナー
   =================================== */
.line-banner {
  margin-top: 32px;
}
.line-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #04a33a 0%, #06C755 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: 0 6px 24px rgba(6,199,85,0.28);
  position: relative;
  overflow: hidden;
}
.line-banner-inner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.line-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -50px; right: 160px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* 左：アイコン＋テキスト */
.line-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.line-banner-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.line-banner-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}
.line-banner-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* 右：QR＋ボタン */
.line-banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.line-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.line-qr-img {
  width: 100px; height: 100px;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  object-fit: cover;
  background: #fff;
}
.line-qr-label {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.line-add-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #06C755;
  font-size: 14px;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: all 0.25s;
  letter-spacing: 0.03em;
}
.line-add-btn svg {
  display: block;
}
.line-add-btn:hover {
  background: #f0fff5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .line-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
  }
  .line-banner-right {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .line-banner-right {
    flex-direction: column;
    gap: 14px;
  }
  .line-qr-img {
    width: 120px; height: 120px;
  }
  .line-add-btn {
    width: 100%;
    justify-content: center;
    flex-direction: row;
    padding: 14px 20px;
  }
}

/* ===================================
   フッター
   =================================== */
.site-footer {
  background: var(--text-main);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-top: 16px;
}
.footer-nav h4 {
  font-size: 14px; font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

/* おすすめ公式LINEツール バナー */
.footer-recommend {
  padding: 24px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-recommend-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.footer-recommend-label i {
  color: #f4c053;
  font-size: 11px;
}
.footer-external-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.footer-recommend-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}
.footer-recommend-banner:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-recommend-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.footer-recommend-external {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.footer-recommend-external i {
  font-size: 10px;
}

@media (max-width: 600px) {
  .footer-recommend {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.copyright { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ===================================
   TOPへ戻る
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(26,86,160,0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,160,0.45);
}

/* ===================================
   スクロールアニメーション
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
  .service-list { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { display: none; }
  .flow-step { width: 100%; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .problems-layout {
    grid-template-columns: 1fr;
  }
  .problems-arrow {
    flex-direction: row;
    justify-content: center;
    padding: 4px 0;
  }
  .problems-arrow i {
    transform: rotate(90deg);
  }
  @keyframes pulseArrow {
    0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.7; }
    50%       { transform: rotate(90deg) translateX(4px); opacity: 1; }
  }
  .problem-card:hover { transform: translateY(-2px); }
  .risk-card:hover    { transform: translateY(-2px); }

  /* ヘッダー */
  .hamburger { display: flex; }
  .global-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .global-nav.open {
    max-height: 400px;
    padding: 16px 24px 24px;
  }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { font-size: 15px; padding: 12px 16px; }

  /* ヒーロー */
  .hero { padding: 40px 0 60px; min-height: auto; }
  .hero-title { font-size: 28px; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: 100%;
  }
  .stat-divider { width: 80%; height: 1px; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }

  /* 課題 */
  .problems-grid { grid-template-columns: repeat(2, 1fr); }

  /* サービス */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px; }

  /* サービス */
  .service-card-inner { flex-direction: column; padding: 28px 24px 28px 32px; gap: 20px; }
  .service-card-left { flex-direction: row; width: 100%; }
  .service-list { grid-template-columns: 1fr; }

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

  /* フォーム */
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .checkbox-group { grid-template-columns: 1fr; }

  /* フッター */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* FAQ */
  .faq-question { padding: 18px 20px; }
  .faq-answer p { padding: 12px 20px 18px; }
}

@media (max-width: 480px) {
  .problems-grid { grid-template-columns: 1fr; }
}
