/* ============================================
   TETOMA common.css
   全ページ共通スタイル
   ============================================ */

/* ─── Variables ─── */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #888888;
  --accent: #1a6ef8;
  --border: #e8e8e8;
  --section-gap: 100px;
  --container: 1100px;
  --font: 'Roboto', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
}

/* ─── Layout ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: var(--section-gap) 0; }

/* ─── Header ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.header-nav a:not(.btn-primary) {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.header-nav a:not(.btn-primary):hover { color: var(--accent); }
.header-nav a.current { color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #0f5de0;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(26,110,248,0.18);
  transform: translateY(-1px);
}

.btn-primary:visited,
.btn-primary:active { color: #ffffff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 28px;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ─── Section common ─── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

/* ─── Hero (subpage共通) ─── */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-note-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-note-bar::before {
  content: '';
  display: block;
  width: 3px;
  height: 36px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── CTA section ─── */
.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.8;
}

/* ─── Floating CTA ─── */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.float-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26,110,248,0.32);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.float-cta-btn:hover {
  background: #0f5de0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,110,248,0.38);
  color: #ffffff;
}

.float-cta-btn::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ─── Footer ─── */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  :root { --section-gap: 72px; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; height: 64px; }
  .header-nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .float-cta { bottom: 20px; right: 16px; left: 16px; }
  .float-cta-btn { width: 100%; justify-content: center; font-size: 14px; padding: 16px 24px; }
}
