/* ===== LiffCal Branding Site - Global Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #06c755;
  --green-dark: #00b900;
  --green-darker: #009d00;
  --green-light: #e8f9ee;
  --blue-light: #e8f0fe;
  --orange-light: #fef3e0;
  --purple-light: #f3e8fe;
  --text: #333;
  --text-light: #666;
  --text-muted: #888;
  --text-faint: #999;
  --bg: #f5f5f5;
  --bg-white: #fff;
  --border: #eee;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===== ナビゲーション ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-decoration: none;
}
.nav.scrolled .nav-logo { color: var(--green); }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--green); }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 50%, var(--green-darker) 100%);
  color: white;
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.tagline {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 12px;
}
.sub {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== ページヘッダー（サブページ用） ===== */
.page-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  padding: 100px 20px 48px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== CTA ===== */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
  align-items: stretch;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}
.cta-secondary {
  display: block;
  color: white;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  text-decoration: none;
}
.cta-note {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 8px;
  text-align: center;
}

/* ===== 数字バー ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  background: white;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== セクション ===== */
.section { padding: 64px 0; }
.section-alt { background: white; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}

/* ===== 課題→解決 ===== */
.problems { max-width: 600px; margin: 0 auto; }
.problem-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.section-alt .problem-card { background: var(--bg); }
.problem-arrow { font-size: 20px; flex-shrink: 0; padding-top: 2px; color: var(--green); }
.problem-text .before {
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.problem-text .after {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

/* ===== 特徴グリッド ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-alt .feature-card { background: var(--bg); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.feature-icon.green { background: var(--green-light); }
.feature-icon.blue { background: var(--blue-light); }
.feature-icon.orange { background: var(--orange-light); }
.feature-icon.purple { background: var(--purple-light); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== アーキテクチャ図 ===== */
.arch-diagram {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.arch-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.arch-box {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 140px;
}
.arch-box.arch-liff { border-color: var(--green); }
.arch-box.arch-gas { border-color: #4285f4; }
.arch-box.arch-line-api { border-color: var(--green); }
.arch-box.arch-mail { border-color: #ea4335; }
.arch-label { font-size: 14px; font-weight: 700; }
.arch-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.arch-arrow { font-size: 24px; color: var(--text-muted); }
.arch-plus { font-size: 20px; font-weight: 700; color: var(--text-muted); }
.arch-notify { margin-top: 8px; }

/* ===== 導入事例 ===== */
.cases-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 700px; margin: 0 auto; }
.case-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.section-alt .case-card { background: var(--bg); }
.case-header { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.case-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.case-badge-lg {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}
.case-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.case-body { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.case-result {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.case-result strong { color: var(--green); font-weight: 700; }

.center-link { text-align: center; margin-top: 24px; }
.text-link { color: var(--green); font-weight: 600; font-size: 15px; }

/* ===== 事例詳細（cases.html）===== */
.case-detail { max-width: 700px; margin: 0 auto; }
.case-detail-header { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.case-detail h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.case-table { margin-bottom: 24px; }
.case-table h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
.case-table table { width: 100%; border-collapse: collapse; }
.case-table th, .case-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.case-table th { width: 120px; font-weight: 600; color: var(--text-light); background: var(--bg); }
.section-alt .case-table th { background: var(--bg); }
.case-after { margin-bottom: 24px; }
.case-after h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--green); }
.case-after ul { list-style: none; }
.case-after li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.case-after li:last-child { border-bottom: none; }

.case-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.metric {
  flex: 1;
  min-width: 120px;
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.metric-num { font-size: 20px; font-weight: 800; color: var(--green); }
.metric-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.voice {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--green);
  margin-top: 16px;
}
.section-alt .voice { background: white; }
.voice p { font-size: 14px; line-height: 1.8; color: var(--text-light); font-style: italic; }
.voice cite { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); font-style: normal; }

/* ===== 比較テーブル ===== */
.comparison-table { max-width: 700px; margin: 0 auto; overflow-x: auto; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comparison-table thead th { background: var(--green); color: white; font-weight: 600; }
.comparison-table tbody td:last-child { color: var(--green); }

/* ===== FAQ ===== */
.faq-list { max-width: 600px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.section-alt .faq-item { background: var(--bg); }
.faq-q {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-a { font-size: 14px; color: var(--text-light); line-height: 1.7; padding-left: 32px; }

/* ===== 技術ページ ===== */
.tech-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.tech-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-alt .tech-card { background: var(--bg); }
.tech-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tech-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.tech-items { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tech-tag {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.tech-tag.accent { background: var(--green-light); color: var(--green); border-color: var(--green-light); }

/* ===== 実装ガイド ===== */
.guide-steps { max-width: 700px; margin: 0 auto; }
.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.step-content { flex: 1; }
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.code-block {
  background: #1e1e1e;
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
}
.code-block code {
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

/* ===== Tips ===== */
.tips-list { max-width: 700px; margin: 0 auto; }
.tip-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.tip-header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.tip-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.tip-header h3 { font-size: 16px; font-weight: 700; }
.tip-problem { font-size: 14px; color: var(--text-light); margin-bottom: 8px; padding: 10px 14px; background: #fff5f5; border-radius: 8px; }
.tip-solution { font-size: 14px; color: var(--text-light); padding: 10px 14px; background: var(--green-light); border-radius: 8px; }

/* ===== チャネル ===== */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 500px; margin: 0 auto 32px; }
.channel-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-alt .channel-card { background: var(--bg); }
.channel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.channel-icon { font-size: 32px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.channel-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.channel-card p { font-size: 13px; color: var(--text-muted); }

.hashtags { text-align: center; max-width: 500px; margin: 0 auto; }
.hashtags h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hashtag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ===== フッターCTA ===== */
.footer-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  padding: 56px 20px;
  text-align: center;
}
.footer-cta h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.footer-cta p { font-size: 15px; opacity: 0.9; margin-bottom: 24px; }

/* ===== フッター ===== */
.footer { background: white; padding: 40px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 32px; }
.footer-brand .footer-logo { font-size: 20px; font-weight: 800; color: var(--green); margin-bottom: 4px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { font-size: 14px; color: var(--text-light); text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { text-align: center; font-size: 13px; color: var(--text-faint); padding-top: 16px; border-top: 1px solid var(--border); }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .page-header h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
  .stats-bar { gap: 24px; }
  .stat-num { font-size: 22px; }
  .features-grid { grid-template-columns: 1fr; }
  .cases-preview { grid-template-columns: 1fr; }
  .tech-stack { grid-template-columns: 1fr; }
  .arch-row { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 32px; }
  .case-metrics { gap: 12px; }
  .metric { min-width: 90px; }
  .channels { grid-template-columns: 1fr; max-width: 300px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 48px; }
  .hero h1 { font-size: 28px; }
  .tagline { font-size: 17px; }
  .section { padding: 48px 0; }
  .guide-step { flex-direction: column; gap: 12px; }
}
