@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --primary-color: #ff4757;
  --secondary-color: #2ed573;
  --accent-color: #3742fa;
  --text-dark: #2f3542;
  --text-light: #57606f;
  --bg-gradient: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-hover: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2rem; /* Reduced padding for mobile default */
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  background: -webkit-linear-gradient(45deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
}

.grid-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nav-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--card-hover);
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* Specific styling for item without link */
.nav-item-static {
  cursor: default;
}
.nav-item-static:hover {
  transform: none;
  background: var(--card-bg);
}

@media (min-width: 768px) {
  .container {
    padding: 3rem;
  }
  
  h1 {
    font-size: 3rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  animation: fadeIn 0.6s ease-out;
}

.nav-card {
  animation: fadeIn 0.6s ease-out backwards;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.15s; }
.nav-card:nth-child(3) { animation-delay: 0.2s; }
.nav-card:nth-child(4) { animation-delay: 0.25s; }
.nav-card:nth-child(5) { animation-delay: 0.3s; }
.nav-card:nth-child(6) { animation-delay: 0.35s; }
.nav-card:nth-child(7) { animation-delay: 0.4s; }
.nav-card:nth-child(8) { animation-delay: 0.45s; }
.nav-card:nth-child(9) { animation-delay: 0.5s; }
.nav-card:nth-child(10) { animation-delay: 0.55s; }
