:root {
  --navy: #0A2540;
  --steel: #2E5C8A;
  --paper: #F6F4EF;
  --ink: #1F2937;
  --warm-gray: #57534E;
  --line: #C4BFB3;
  --accent: #3B5998;
  --success: #0F766E;
  --warning: #B45309;
  --white: #FFFFFF;
  --radius: 6px;
  --radius-lg: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt" 1;
}

h1, h2, h3, h4 {
  font-family: 'Shippori Mincho', serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .container { padding: 0 28px; }
}

/* Header - Professional, restrained */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo-text {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

nav a {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.935rem;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.91rem;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--steel);
}

/* Mobile navigation */
.mobile-nav {
  display: none;
}

@media (max-width: 860px) {
  nav.desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-content { padding: 14px 0; }
  .logo-text { font-size: 1.15rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--steel);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--steel);
}

.btn-outline:hover {
  background: var(--steel);
  color: white;
}

/* Section headers */
.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--warm-gray);
  font-size: 1.01rem;
  max-width: 620px;
}

/* Ledger motif */
.ledger {
  border-left: 3px solid var(--steel);
  padding-left: 18px;
  margin: 18px 0;
}

.ledger-line {
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 4px,
    transparent 4px,
    transparent 12px
  );
  margin: 12px 0;
}

/* Knot motif for process */
.knot {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--steel);
  border-radius: 50%;
  position: relative;
}

.knot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
}

/* Cards - restrained, professional */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--warm-gray);
  font-size: 0.96rem;
}

/* Field note style */
.field-note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  line-height: 1.7;
}

.field-note h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 6px;
}

/* Table - ledger style */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ledger-table th,
.ledger-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ledger-table th {
  background: var(--paper);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Page header - understated authority */
.page-header {
  background: linear-gradient(rgba(10,37,64,0.92), rgba(10,37,64,0.88)), url('.grok/generated-media/image-2026-06-17T12-20-46-943Z.webp');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 92px 0 62px;
}

.page-header h1 {
  color: white;
  font-size: 2.35rem;
  max-width: 780px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 640px;
  margin-top: 12px;
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.45rem !important; }
  .section-header h2 { font-size: 1.45rem; }
  .page-header { padding: 68px 0 48px; }
  .page-header h1 { font-size: 1.75rem; }
  .container { padding: 0 16px; }
}

/* Footer */
footer {
  background: var(--navy);
  color: white;
  padding: 58px 0 28px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 42px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  margin-bottom: 7px;
  font-size: 0.91rem;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 44px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Subtle scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.5s cubic-bezier(0.23, 1.0, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--steel);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 4000;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

#mobile-menu.open { display: block; }

#mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

#mobile-menu a:last-child { border-bottom: none; }
