/* ===== Design Tokens ===== */
:root {
  --navy: #1E3A5F;
  --navy-dark: #0C2440;
  --navy-mid: #2E5A8F;
  --sky: #4A9EC4;
  --sky-light: #A8D4EA;
  --orange: #E07B3A;
  --orange-dark: #B85F22;
  --bg: #F0F6FC;
  --bg-white: #FFFFFF;
  --text: #1A1A2E;
  --text-mid: #3D4A5C;
  --text-light: #6B7A8D;
  --border: #C0D8EE;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: var(--text); background: var(--bg-white); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
p { margin-bottom: 0; }

/* ===== Skip Link ===== */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 9999; font-size: 13px; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 2px solid var(--navy); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 64px; }
.header-logo img { height: 44px; width: auto; object-fit: contain; }
.header-logo-text { color: var(--navy); font-size: 20px; font-weight: bold; letter-spacing: 0.05em; text-decoration: none; }
.header-logo-sub { color: var(--text-mid); font-size: 11px; display: block; }

/* ===== Global Nav ===== */
.global-nav { flex: 1; margin-left: 10px; }
.global-nav ul { display: flex; list-style: none; padding: 0; margin: 0; align-items: center; height: 64px; }
.global-nav ul li a { display: flex; align-items: center; height: 64px; padding: 0 14px; color: var(--navy); font-size: 13px; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.global-nav ul li a:hover,
.global-nav ul li a[aria-current="page"] { background: var(--bg); }
.global-nav ul li.nav-sub { margin-left: auto; }
.global-nav ul li.nav-sub + li.nav-sub { margin-left: 0; }
.global-nav ul li.nav-sub a { font-size: 11px; color: var(--text-light); padding: 0 10px; border-left: 1px solid var(--border); }
.global-nav ul li.nav-sub a:hover { background: var(--bg); color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 16px; flex-direction: row; align-items: center; gap: 10px; color: var(--navy); font-size: 14px; font-weight: bold; margin-left: auto; }
.nav-toggle-icon { display: inline-flex; flex-direction: column; gap: 5px; }
.nav-toggle-icon span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all 0.3s; }
.nav-toggle.is-open .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; background: var(--navy); min-height: 340px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%); }
.hero-overlay { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.hero-catch { font-size: 30px; font-weight: bold; color: #fff; line-height: 1.5; margin-bottom: 12px; letter-spacing: 0.03em; }
.hero-sub { font-size: 15px; color: var(--sky-light); margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 11px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: bold; text-decoration: none; transition: background 0.2s, opacity 0.2s; }
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ===== Page Header ===== */
.page-header { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); padding: 0 24px; height: 64px; display: flex; align-items: center; }
.page-header-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 50px; }
.page-title-en { font-size: 11px; color: var(--sky-light); letter-spacing: 0.2em; }
.page-title { font-size: 22px; font-weight: bold; color: #fff; }

/* ===== Main Wrap ===== */
.main-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; }
.page-content { max-width: 900px; margin: 0 auto; padding: 48px 24px 64px; }

/* ===== Section Title ===== */
.section-ttl { font-size: 20px; font-weight: bold; color: var(--navy); margin-bottom: 24px; padding-bottom: 10px; border-bottom: 3px solid var(--sky); }
.section-divider { font-size: 17px; font-weight: bold; color: var(--navy); margin: 36px 0 16px; padding: 10px 16px; background: var(--bg); border-left: 4px solid var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ===== Business Cards ===== */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.biz-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.biz-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.biz-card:hover { box-shadow: 0 6px 24px rgba(30,58,95,0.12); transform: translateY(-2px); }
.biz-card-img { height: 200px; overflow: hidden; background: var(--bg); position: relative; }
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.biz-card-tag { font-size: 11px; color: var(--sky); font-weight: bold; letter-spacing: 0.05em; margin-bottom: 6px; display: block; }
.biz-card-name { font-size: 20px; font-weight: bold; color: var(--navy); margin-bottom: 8px; }
.biz-card-desc { font-size: 13px; color: var(--text-mid); line-height: 1.75; flex: 1; margin-bottom: 16px; }
.biz-card-link { display: inline-block; font-size: 13px; font-weight: bold; color: var(--sky); text-decoration: none; }
.biz-card-link:hover { text-decoration: underline; }
.biz-card-ext { border-top: 1px solid var(--border); }
.biz-card-ext .biz-card-body { position: relative; }

/* ===== Tokiwa Banner ===== */
.tokiwa-banner { background: var(--navy); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; align-items: center; gap: 24px; margin-bottom: 0; text-decoration: none; transition: background 0.2s; }
.tokiwa-banner:hover { background: var(--navy-mid); }
.tokiwa-banner-text { flex: 1; }
.tokiwa-banner-label { font-size: 11px; color: var(--sky-light); letter-spacing: 0.1em; margin-bottom: 4px; }
.tokiwa-banner-name { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.tokiwa-banner-desc { font-size: 13px; color: rgba(255,255,255,0.75); }
.tokiwa-banner-arrow { font-size: 24px; color: var(--sky-light); flex-shrink: 0; }

/* ===== Data Table ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { background: var(--bg); color: var(--navy); font-weight: bold; width: 30%; white-space: nowrap; }
.company-info-table th { width: 5em; text-align: justify; text-align-last: justify; }
.data-table td { color: var(--text-mid); }

/* ===== Info Box ===== */
.info-box { display: flex; gap: 28px; margin-bottom: 32px; align-items: flex-start; }
.info-text-area { flex: 1; }
.info-lead { font-size: 15px; color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }
.info-detail { font-size: 13px; color: var(--text-mid); line-height: 2.2; background: var(--bg); padding: 16px; border-radius: var(--radius-md); }

/* ===== Concept Text ===== */
.concept-text { font-size: 15px; color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 24px; margin-top: 64px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 20px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 12px; text-decoration: none; padding: 2px 12px 2px 0; border-right: 1px solid rgba(255,255,255,0.2); margin-right: 12px; line-height: 2; }
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: #fff; }
.footer-tokiwa { margin-bottom: 16px; }
.footer-tokiwa a { color: var(--sky-light); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-tokiwa a:hover { color: #fff; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner { height: auto; padding: 10px 16px; }
  .header-logo img { height: 36px; }
  .nav-toggle { display: flex; }
  .global-nav { position: static; flex: none; overflow: hidden; width: 0; }
  .global-nav ul { flex-direction: column; display: none; padding: 0; position: absolute; top: 100%; right: 0; left: auto; width: auto; min-width: 220px; height: auto; background: var(--navy); border-bottom: 2px solid var(--navy-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 200; overflow: visible; }
  .global-nav ul.is-open { display: flex; }
  .global-nav ul li a { padding: 8px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; height: auto; }
  .global-nav ul li a:hover,
  .global-nav ul li a[aria-current="page"] { background: var(--navy-mid); color: #fff; }
  .global-nav ul li.nav-sub { margin-left: 0; }
  .global-nav ul li.nav-sub a { border-left: none; font-size: 13px; color: rgba(255,255,255,0.7); padding: 8px 20px; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-grid-3 { grid-template-columns: 1fr; }
  .info-box { flex-direction: column; }
  .hero-catch { font-size: 22px; }
  .tokiwa-banner { flex-direction: column; gap: 12px; }
}

@media (max-width: 540px) {
  .hero-overlay { padding: 40px 16px; }
  .main-wrap { padding: 28px 16px 48px; }
  .page-content { padding: 28px 16px 48px; }
  .hero-catch { font-size: 18px; }
  .btn { width: 100%; text-align: center; }
  .hero-btns { flex-direction: column; }
  .biz-card-img { height: 160px; }
  .page-title { font-size: 20px; }
}
