@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* Premium Color Palette */
  --primary: #5B4B8A;
  --primary-dark: #3F3366;
  --primary-light: #F2EFFF;
  --text-main: #1C1D21;
  --text-muted: #5E6278;
  --bg-main: #FFFFFF;
  --bg-sub: #F9FAFB;
  --border: #E4E6EF;
  
  /* Dimensions & Typo */
  --radius: 12px;
  --max-w: 1140px;
  --font-base: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 12px 28px rgba(91, 75, 138, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all 0.25s ease; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(91, 75, 138, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-light);
}

.btn-nav {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  box-shadow: var(--shadow-primary);
}

.btn-nav:hover {
  background: var(--primary-dark);
}

/* Utilities */
.section { padding: 96px 24px; }
.section-sub { background: var(--bg-sub); }
.container { max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.section-title {
  font-size: 38px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  padding: 140px 24px 120px;
  text-align: center;
  background: linear-gradient(145deg, var(--primary-light) 0%, var(--bg-main) 100%);
}

.hero h1 {
  font-size: 54px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero p.sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero p.note {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid System */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Cards */
.card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 75, 138, 0.2);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary);
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
  flex-grow: 1;
}

/* Footer */
.footer {
  background: #111111;
  padding: 80px 24px 40px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.footer-brand {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-legal a {
  margin-left: 24px;
  color: rgba(255,255,255,0.6);
}
.footer-legal a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 24px 80px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 64px 24px; }
  .section-title { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal a { margin: 0 12px; }
}
