/* =====================
   CSS Variables (theme.css)
   ===================== */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #111111;
  --primary: #0056b3;
  --primary-dark: #004494;
  --secondary: #5bc0de;
  --secondary-dark: #46a8c2;
  --accent-blue: #e3ecf6;
  --text-dark: #343a40;
  --text-muted: #4a5565;
  --text-gray: #6a7282;
  --border-color: #d1d5dc;
  --bg-light: #f8f9fa;
  --green: #62a06c;
  --green-dark: #4f8359;
  --orange: #f28851;
  --orange-dark: #d97642;
  --header-bg: #4a5565;
  --footer-bg: #343a40;
  --radius: 0.625rem;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
}

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

body.search {
  margin-top: 80px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

input, select {
  font-family: inherit;
  font-size: 1rem;
}

/* =====================
   Utilities
   ===================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { background-color: var(--secondary-dark); }

.btn-full { width: 100%; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-blue { background: var(--primary); color: #fff; }
.badge-cyan { background: var(--secondary); color: #fff; }
.badge-green { background: #28a745; color: #fff; }
.badge-orange { background: #f0ad4e; color: #fff; }
.badge-red { background: #dc3545; color: #fff; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--accent-blue);
  color: var(--primary);
}

.section-label {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  color: #fff;
  transition: all 0.5s;
}

.site-header_sub {
  background: rgba(74, 85, 101, 1);
}

.site-header.active {
  background-color: rgba(74, 85, 101, 1);
}
 
.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
 
.site-header .logo img {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
 
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
 
.site-header nav a {
  color: #e3ecf6;
  font-size: 1rem;
  transition: color 0.2s;
}

.site-header nav a:nth-last-child(1) {
  background-color: #fff;
  color: var(--primary);
}

.site-header nav a:hover { color: #fff; }
 
.site-header .btn-contact {
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}
.site-header .btn-contact:hover { background: var(--primary-dark); }
 
.mobile-menu-btn {
  display: none;
  background: none;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.4rem;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }
 
/* Scoped to .site-header to beat reset.css's nav { display: block } */
.site-header .mobile-nav {
  position: absolute;
  right: -200vh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #5a6575;
  background-color: rgba(74, 85, 101, 1);
  transition: all 0.5s;
  width: 100%;
  opacity: 0;
}
.site-header .mobile-nav a {
  color: #e3ecf6;
  padding: 0.5rem 3%;
  display: block;
  text-align: center;
}
.site-header .mobile-nav.open { 
  right: 0;
  transition: all 0.5s;
  opacity: 1;
}
 
@media (max-width: 1024px) {
  .site-header nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 4rem 1.5rem 2rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.9rem;
  color: #e0e0e0;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #ddd;
  transition: color 0.2s;
}

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

.footer-contact-btn {
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.footer-contact-btn:hover { background: var(--primary-dark); }

.footer-phone {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.7;
}

.footer-copy {
  border-top: 1px solid #555;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }