:root {
  --bg-color: #F7F4ED;
  --surface-color: #FFFDF8;
  --text-main: #1D2736;
  --text-muted: #515C6E;
  --primary: #123C69;
  --primary-deep: #0B2746;
  --accent-green: #1F8A70;
  --accent-orange: #F28C45;
  --soft-blue: #DCEAF7;
  
  --border-light: rgba(29, 39, 54, 0.06);
  --border-strong: rgba(29, 39, 54, 0.12);
  --glass-bg: rgba(255, 253, 248, 0.85);

  --shadow-sm: 0 4px 12px rgba(11, 39, 70, 0.03);
  --shadow-md: 0 12px 32px rgba(11, 39, 70, 0.06);
  --shadow-lg: 0 24px 48px rgba(11, 39, 70, 0.1);
  --shadow-colored: 0 16px 32px rgba(18, 60, 105, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-deep);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Effects & Advanced AI Aesthetics */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 25s infinite ease-in-out alternate;
  z-index: -2;
  pointer-events: none;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--soft-blue);
  top: -10%; left: -10%;
  animation-duration: 22s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: rgba(31, 138, 112, 0.4);
  bottom: 0%; right: -5%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: 800px; height: 800px;
  background: rgba(242, 140, 69, 0.2);
  top: 30%; left: 30%;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 15%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.95); }
}

.bg-grid {
  position: fixed;
  top: -50%; left: -50%;
  width: 200vw; height: 200vh;
  z-index: -3;
  background-image: 
    linear-gradient(rgba(18, 60, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 60, 105, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: gridMove 20s linear infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(1000px) rotateX(60deg) translateY(60px) translateZ(-200px); }
}

.float-img {
  animation: floatImg 8s ease-in-out infinite alternate;
}
@keyframes floatImg {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(1.5deg); }
}

.card-3d-active {
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out !important;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1150px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.header-logo-icon {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(18, 60, 105, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-color);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-line {
  background: #06C755;
  color: white;
  box-shadow: 0 16px 32px rgba(6, 199, 85, 0.2);
}

.btn-line:hover {
  background: #05A346;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(6, 199, 85, 0.25);
}

.btn-accent {
  background: var(--accent-orange);
  color: white;
}

.btn-accent:hover {
  background: #E57A32;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(242, 140, 69, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p.subtitle {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tag {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.tag.tag-accent {
  color: var(--accent-green);
  background: rgba(31, 138, 112, 0.05);
  border-color: rgba(31, 138, 112, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-tags, .hero-buttons {
    justify-content: center;
  }
}

/* Hero Image/Card */
.hero-visual {
  position: relative;
}

.visual-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid white;
  position: relative;
  z-index: 10;
}

.visual-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.visual-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-text h4 {
  margin-bottom: 0.25rem;
}

.step-text p {
  font-size: 0.85rem;
  margin: 0;
}

/* Section specific layouts */
.header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
}

.card:hover:not(.card-3d-active) {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft-blue);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--soft-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* Alternating Sections */
.bg-dark {
  background-color: var(--primary-deep);
  color: white;
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: white;
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.bg-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-dark .card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Event Info */
.info-panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-item {
  border-left: 2px solid var(--soft-blue);
  padding-left: 1rem;
}

.info-item dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-item dd {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-deep);
}

@media (max-width: 768px) {
  .info-panel {
    padding: 2.5rem;
  }
}

/* Profile */
.profile-card {
  display: flex;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  align-items: center;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  background: var(--soft-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  color: var(--accent-green);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-a {
  padding-bottom: 1.5rem;
  max-height: 300px;
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(31, 138, 112, 0.2) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
