/* ============================================
   Boxernet Theme - Minimal & Modern
   ============================================ */

:root {
  --color-primary: #0B5FFF;
  --color-primary-dark: #083FA8;
  --color-accent: #00C6A9;
  --color-text: #1a1a1a;
  --color-text-sub: #555;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fc;
  --max-width: 1040px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.site-logo:hover { text-decoration: none; color: var(--color-primary); }

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ============ Page Hero ============ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 {
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.page-hero .lead {
  font-size: 17px;
  opacity: 0.95;
  margin: 0;
  max-width: 720px;
}

/* ============ Page Content ============ */
.page-content {
  padding: 64px 24px;
}
.page-content h1 {
  font-size: 32px;
  margin: 0 0 24px;
  letter-spacing: 0.03em;
}
.page-content h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  padding-left: 16px;
  position: relative;
}
.page-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}
.page-content h3 {
  font-size: 19px;
  margin: 32px 0 12px;
  color: var(--color-primary);
}
.page-content p { margin: 0 0 16px; }
.page-content hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}
.page-content blockquote {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  margin: 24px 0;
  padding: 20px 28px;
  color: var(--color-text-sub);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-content blockquote p:last-child { margin-bottom: 0; }

/* ============ Table ============ */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 32px;
}
.page-content th,
.page-content td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 15px;
}
.page-content tr:last-child th,
.page-content tr:last-child td { border-bottom: none; }
.page-content th {
  width: 200px;
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
  font-weight: 600;
}

/* ============ Cards (for business section) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--color-primary);
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ============ Button ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ============ Home Hero ============ */
.home-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.home-hero h1 {
  font-size: 42px;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.home-hero .tagline {
  font-size: 18px;
  opacity: 0.95;
  margin: 0 0 32px;
}

/* ============ Footer ============ */
.site-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333;
}
.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-address {
  font-size: 13px;
  color: #888;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #bbb;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact a {
  color: var(--color-accent);
  font-size: 14px;
}
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-top: 24px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .page-hero { padding: 56px 0; }
  .page-hero h1 { font-size: 26px; }
  .page-hero .lead { font-size: 15px; }
  .home-hero { padding: 80px 0; }
  .home-hero h1 { font-size: 28px; }
  .page-content { padding: 48px 24px; }
  .page-content h1 { font-size: 26px; }
  .page-content h2 { font-size: 20px; }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    gap: 5px;
  }
  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
  }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-toggle:checked ~ ul { display: flex; }

  .footer-grid { grid-template-columns: 1fr; }
  .page-content th,
  .page-content td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .page-content th { padding-bottom: 4px; border-bottom: none; }
}

/* ============ HOME hero - City OS background (Override) ============ */
.home-hero {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(11, 95, 255, 0.55) 0%, rgba(0, 0, 0, 0.85) 100%),
    url('../img/hero-city.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/network-overlay.svg') center / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
}
.home-hero .container {
  position: relative;
  z-index: 2;
}
.home-hero h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.home-hero .tagline {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
  .home-hero {
    background-attachment: scroll;
  }
}



/* ============ Sub-page heroes - City variations ============ */
.hero-shinjuku,
.hero-yokohama,
.hero-marunouchi,
.hero-rainbow {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-shinjuku {
  background-image:
    linear-gradient(180deg, rgba(11, 95, 255, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%),
    url('../img/hero-shinjuku.jpg');
}

.hero-yokohama {
  background-image:
    linear-gradient(180deg, rgba(11, 95, 255, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%),
    url('../img/hero-yokohama.jpg');
}

.hero-marunouchi {
  background-image:
    linear-gradient(180deg, rgba(11, 95, 255, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%),
    url('../img/hero-marunouchi.jpg');
}

.hero-rainbow {
  background-image:
    linear-gradient(180deg, rgba(11, 95, 255, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%),
    url('../img/hero-rainbow.jpg');
}

.hero-shinjuku::before,
.hero-yokohama::before,
.hero-marunouchi::before,
.hero-rainbow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/network-overlay.svg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

.hero-shinjuku .container,
.hero-yokohama .container,
.hero-marunouchi .container,
.hero-rainbow .container {
  position: relative;
  z-index: 2;
}

.hero-shinjuku h1,
.hero-yokohama h1,
.hero-marunouchi h1,
.hero-rainbow h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-shinjuku .lead,
.hero-yokohama .lead,
.hero-marunouchi .lead,
.hero-rainbow .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
