/* japan-warehouse-logistics.org — design system
   Navy + container-orange, system fonts, no dependencies. */

:root {
  --navy-900: #0d1f33;
  --navy-800: #12293f;
  --navy-700: #1b3a58;
  --navy-100: #dce6f0;
  --accent: #e8712e;
  --accent-dark: #c85a1b;
  --ink: #21313f;
  --ink-soft: #52667a;
  --line: #dde4ec;
  --bg: #f7f9fb;
  --card: #ffffff;
  --ok: #1d7a4f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(13, 31, 51, .06), 0 8px 24px -12px rgba(13, 31, 51, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.65; font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy-900); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: .98rem; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  color: #cfdcea; text-decoration: none; padding: 8px 12px; border-radius: 6px;
  font-size: .95rem; display: block; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: var(--navy-700); }
.site-nav a.active { color: #fff; background: var(--navy-700); }
.nav-toggle-box { display: none; }
.nav-toggle { display: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; right: 0; left: 0; top: 62px;
    background: var(--navy-800); flex-direction: column; padding: 8px 16px 16px;
  }
  .nav-toggle-box:checked ~ ul { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--navy-800);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero .wrap { position: relative; padding: 72px 20px; max-width: 900px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #e3ecf5; max-width: 46em; }
.hero .btn { margin-top: 8px; }

/* ---------- buttons / badges ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  background: var(--navy-700); color: #fff; text-decoration: none; font-weight: 600;
  border: 0; font-size: .97rem;
}
.btn:hover { background: var(--navy-800); color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 2px 9px; border-radius: 99px; background: var(--navy-100); color: var(--navy-700);
  margin: 0 4px 4px 0; white-space: nowrap;
}
.badge-en { background: #e3f3ea; color: var(--ok); }
.badge-sponsor { background: #fdf1e7; color: var(--accent-dark); }

/* ---------- sections / cards ---------- */
.section { padding: 44px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .more { font-weight: 600; text-decoration: none; }

/* ---------- directory ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 18px 0 26px;
}
.filters label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.filters select, .filters input[type="search"] {
  font: inherit; font-size: .93rem; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; color: var(--ink); min-width: 150px;
}
.filters .count { margin-left: auto; font-size: .9rem; color: var(--ink-soft); }

.company { display: flex; flex-direction: column; gap: 6px; }
.company-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.company-head h3 { margin: 0; font-size: 1.08rem; }
.company-head .jp { color: var(--ink-soft); font-size: .9rem; }
.company p { margin: 0; font-size: .95rem; }
.company .meta { color: var(--ink-soft); font-size: .88rem; }
.company .meta a { word-break: break-all; }
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .dir-grid { grid-template-columns: 1fr; } }

/* ---------- sponsor banner ---------- */
.sponsor {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #e8eef5; border-radius: var(--radius); padding: 24px 26px; margin: 32px 0;
  border-left: 4px solid var(--accent);
}
.sponsor-kicker { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.sponsor-title { margin: 6px 0 4px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.sponsor-text { margin: 0 0 14px; font-size: .95rem; }
.sponsor .btn { margin: 0; }

/* ---------- guides / articles ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-side { position: sticky; top: 80px; }
.article-side .sponsor { margin: 0 0 20px; padding: 20px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; font-size: .92rem; }
.toc p { margin: 0 0 6px; font-weight: 700; color: var(--navy-900); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; }

article.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow); }
@media (max-width: 640px) { article.guide { padding: 24px 20px; } }
article.guide p, article.guide li { font-size: 1.0rem; max-width: 72ch; }
article.guide .updated { color: var(--ink-soft); font-size: .88rem; margin-top: -6px; }

.note, .warn {
  border-radius: 8px; padding: 14px 18px; font-size: .95rem; margin: 18px 0;
}
.note { background: #eef4fb; border-left: 4px solid var(--navy-700); }
.warn { background: #fdf1e7; border-left: 4px solid var(--accent); }

table.data { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 16px 0; }
table.data th, table.data td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
table.data th { background: var(--navy-100); color: var(--navy-900); }
.table-scroll { overflow-x: auto; }

dl.faq dt { font-weight: 700; margin-top: 18px; color: var(--navy-900); }
dl.faq dd { margin: 6px 0 0; }

/* ---------- breadcrumbs / footer ---------- */
.crumbs { font-size: .87rem; color: var(--ink-soft); margin: 18px 0 6px; }
.crumbs a { text-decoration: none; }

.site-footer { background: var(--navy-900); color: #b9c8d8; margin-top: 60px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 44px 20px 20px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #dfe9f3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.footer-head { font-weight: 700; color: #fff; margin: 0 0 8px; }
.footer-brand { color: #fff; margin: 0 0 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; padding-bottom: 22px; font-size: .82rem; }
