/* Okayama Connect - Shared CSS */

:root {
  --primary: #1a5276;
  --accent: #e67e22;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #ecf0f1;
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Header & Navigation */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border-radius: 4px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-contact {
  background-color: var(--accent);
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background-color var(--transition);
}

.nav-contact:hover {
  background-color: #d35400;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-white);
  flex-direction: column;
  padding: 40px 20px;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
}

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

.mobile-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  display: block;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

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

  .hamburger {
    display: flex;
  }

  .header-inner {
    height: 60px;
  }
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 20px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 16px;
  }
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--bg-light);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-inner a:hover {
  color: var(--accent);
}

.breadcrumb-inner span {
  margin: 0 8px;
}

/* Sections */
.section {
  padding: 80px 20px;
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 20px;
  }

  .section-header h2 {
    font-size: 28px;
  }
}

/* Buttons */
.btn-primary,
.btn-white {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

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

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  margin: 60px auto;
  border-radius: 8px;
  max-width: 900px;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Footer */
.footer {
  background-color: #1a2332;
  color: #ecf0f1;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #bdc3c7;
  font-size: 14px;
  max-width: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color var(--transition);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-col p {
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  color: #95a5a6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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