﻿:root {
  --red: #E60027;
  --red-dark: #B3001D;
  --blue: #1D4A9E;
  --blue-dark: #123576;
  --ink: #1a1a1a;
  --paper: #fff;
  --cream: #faf8f3;
  --gray: #6b6b6b;
  --line-c: #eae7de;
  --line-green: #06c755;
  --yellow: #fff385;
  --maxw: 1200px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', -apple-system, sans-serif; color: var(--ink); background: #fff; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar { background: var(--red); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; letter-spacing: 0.04em; }
.topbar strong { font-weight: 700; margin-right: 8px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-c); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; gap: 16px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color 0.2s; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a.active { border-bottom: 2px solid var(--red); }
.nav-cta { background: var(--line-green); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.2s; white-space: nowrap; }
.nav-cta:hover { transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Tricolore */
.tricolore { display: flex; height: 6px; }
.tricolore .r { flex: 1; background: var(--red); }
.tricolore .w { flex: 1; background: #fff; border-top: 1px solid var(--line-c); border-bottom: 1px solid var(--line-c); }
.tricolore .b { flex: 1; background: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230,0,39,0.3); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a847; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,199,85,0.3); }

/* Section base */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow.blue { color: var(--blue); }
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
.section-sub { color: var(--gray); margin-top: 14px; font-size: 15px; }
.section-sub a { color: var(--line-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.section-sub a:hover { opacity: 0.8; }

/* Page hero (inner pages) */
.page-hero { background: var(--cream); padding: 60px 0; border-bottom: 1px solid var(--line-c); }
.page-hero .eyebrow { display: block; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; line-height: 1.2; }
.page-hero p { color: var(--gray); margin-top: 12px; font-size: 16px; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }

/* FAB */
.fab { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 64px; height: 64px; border-radius: 50%; background: var(--line-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 10px 30px rgba(6,199,85,0.4); transition: transform 0.2s; }
.fab:hover { transform: scale(1.08); }

/* Footer */
footer { background: var(--ink); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: #999; font-size: 13px; line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.1em; }
.footer-col a { display: block; color: #999; font-size: 13px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; }
.footer-tricolore { display: flex; gap: 4px; }
.footer-tricolore span { display: block; width: 24px; height: 4px; }
.footer-tricolore .r { background: var(--red); }
.footer-tricolore .w { background: #fff; }
.footer-tricolore .b { background: var(--blue); }

/* Footer legal links */
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: #777; font-size: 12px; transition: color 0.2s; }
.footer-legal-links a:hover { color: #fff; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13px; color: #ccc; line-height: 1.6; flex: 1; min-width: 200px; margin: 0; }
.cookie-banner p a { color: var(--red); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 700;
  font-family: inherit;
}
.cookie-btn-decline {
  background: transparent; color: #999; border: 1px solid #555; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font-size: 13px;
  font-family: inherit;
}

/* Mobile */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); gap: 16px; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-legal-links { flex-direction: column; gap: 8px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}
