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

:root {
  --primary: #00ADEF;
  --primary-dark: #0090CC;
  --accent: #FFD700;
  --text: #333;
  --text-light: #666;
  --bg: #f5f5f5;
  --white: #fff;
  --border: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 4px;
}

body { font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
#site-header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo a {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}

.logo-en {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-ja {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ===== NAV ===== */
#primary-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

#primary-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s;
  line-height: 1.3;
}

#primary-nav ul li a .nav-sub {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 400;
}

#primary-nav ul li a:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0090CC 0%, #00ADEF 50%, #87CEEB 100%);
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,100,160,0.6) 0%, rgba(0,100,160,0.1) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--white);
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  font-weight: 400;
}

/* ===== 4大CTAナビ ===== */
.nav-4col {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-4col-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-4col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  text-align: center;
  gap: 6px;
}

.nav-4col-item:last-child { border-right: none; }
.nav-4col-item:hover { background: #f0f8ff; color: var(--primary); }

.nav-4col-icon { font-size: 28px; }
.nav-4col-label { font-size: 13px; font-weight: 700; color: var(--primary); }
.nav-4col-desc { font-size: 11px; color: var(--text-light); }

/* ===== MAIN LAYOUT ===== */
#main {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #87CEEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
}

.card-body { padding: 12px; }

.card-cat {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.card-title { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--text); }
.card-date { font-size: 11px; color: var(--text-light); margin-top: 6px; }

/* ===== NEWS LIST ===== */
.news-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }

.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.news-date { font-size: 12px; color: var(--text-light); white-space: nowrap; min-width: 80px; padding-top: 2px; }
.news-badge { font-size: 10px; background: var(--primary); color: var(--white); padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.news-title { font-size: 13px; line-height: 1.6; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--primary); }

/* ===== SIDEBAR ===== */
#sidebar .widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 20px; margin-bottom: 24px; }
#sidebar .widget-title { font-size: 14px; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 12px; }

/* ===== FOOTER ===== */
#site-footer {
  background: #222;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo { font-size: 22px; font-weight: 900; color: var(--accent); margin-bottom: 8px; }
.footer-desc { font-size: 12px; margin-bottom: 24px; }
.footer-copy { font-size: 11px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { height: 52px; }
  .logo-en { font-size: 20px; }
  #primary-nav { display: none; }
  #hero { height: 220px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .nav-4col-inner { grid-template-columns: repeat(2, 1fr); }
  #main { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-4col-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ===== HERO BACKGROUND IMAGE ===== */
#hero {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
