@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;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-light) 0%, var(--bg-main) 100%);
}

.hero-bg {
  padding: 140px 24px 120px;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-top.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-bg h1 {
  font-size: 54px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

.hero-bg p.sub {
  font-size: 20px;
  font-weight: 700;
  color: #F2EFFF;
  margin-bottom: 16px;
}

.hero-bg .badge-item {
  color: #1C1D21;
}

.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;
}

.image-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.image-grid-3 img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.image-grid-3 img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Service Zigzag */
.service-feature {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 80px;
}

.service-feature:last-child {
  margin-bottom: 0;
}

.service-feature.reverse {
  flex-direction: row-reverse;
}

.service-feature-img {
  flex: 1;
}

.service-feature-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.service-feature-content {
  flex: 1;
  text-align: left;
}

/* 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;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
  text-align: center;
}

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

/* 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: 96px 20px 80px;
  }

  .hero-bg {
    padding: 96px 20px 80px;
  }

  .hero h1,
  .hero-bg h1 {
    font-size: 36px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 30px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .image-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-feature,
  .service-feature.reverse {
    flex-direction: column;
    gap: 32px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header .inner {
    position: relative;
  }

  .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;
  }
}