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

:root {
  /* Color Palette */
  --color-primary: #2B6CB0;
  --color-primary-light: #2A4365;
  --color-secondary: #2B6CB0;
  --color-accent: #ED8936;
  --color-accent-hover: #DD6B20;
  
  --color-text-main: #2D3748;
  --color-text-light: #4A5568;
  --color-text-muted: #718096;
  --color-white: #FFFFFF;
  
  --color-bg-body: #F7FAFC;
  --color-bg-section: #EDF2F7;
  
  /* Typography */
  --font-family-base: 'Noto Sans JP', sans-serif;
  --font-family-en: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-xl) 0;
}

.section-bg-light {
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-title-en {
  display: block;
  font-family: var(--font-family-en);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1.1rem;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-tel {
  font-family: var(--font-family-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Hero Section */
.hero {
  padding-top: 80px; /* Offset for fixed header */
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('hero-bg.jpg') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title span {
  color: #E53E3E;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-bg-section);
  padding-bottom: 0.5rem;
}

.news-icon {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.news-list {
  list-style: none;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--color-bg-section);
  transition: transform var(--transition-fast);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  transform: translateX(5px);
}

.news-date {
  font-family: var(--font-family-en);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.news-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
  text-decoration: none;
}

.news-title:hover {
  color: var(--color-secondary);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border-top: 4px solid var(--color-secondary);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-accent);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--color-bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--color-secondary);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Courses Section */
.courses-container {
  max-width: 900px;
  margin: 0 auto;
}

.course-target {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  display: flex;
  align-items: center;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-secondary);
}

.course-item h4 {
  width: 250px;
  flex-shrink: 0;
  margin: 0;
  font-size: 1.2rem;
}

.course-item p {
  margin: 0;
  color: var(--color-text-light);
}

.course-notes {
  margin-top: var(--space-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.course-notes ul {
  padding-left: 1.5rem;
  color: var(--color-text-light);
}

.course-notes li {
  margin-bottom: 0.5rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-main {
  grid-column: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img-sub {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img-main img, .about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.about-img-main:hover img, .about-img-sub:hover img {
  transform: scale(1.05);
}

.manager-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.manager-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-bg-section);
  padding-bottom: 1rem;
}

.manager-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-bg-body);
  box-shadow: var(--shadow-sm);
}

.manager-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-info h4 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.manager-info p {
  color: var(--color-accent);
  font-weight: 700;
}

.manager-message {
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Access Section */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
}

.access-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.access-info h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.info-text p {
  margin: 0;
  opacity: 0.9;
}

.info-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Section */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-label span {
  color: #E53E3E;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E0;
  border-radius: var(--radius-md);
  font-family: var(--font-family-base);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-info {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .about-grid, .access-grid {
    grid-template-columns: 1fr;
  }
  .course-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .course-item h4 {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .header-time {
    display: none;
  }
  .header-container {
    height: auto;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
  }
  .header-right {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }
  .header-tel {
    font-size: 1.1rem;
  }
  .header-right .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .hero {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section {
    padding: var(--space-lg) 0;
  }
}
