:root {
  --navy: #10233f;
  --navy-deep: #0a1830;
  --gold: #a9895b;
  --ink: #26313f;
  --sub: #5b6774;
  --line: #e2e6ea;
  --bg-alt: #f6f7f9;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.9;
  font-weight: 300;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  transition: transform 0.1s linear;
}

/* Scroll reveal (progressive enhancement: only hidden once JS is confirmed active) */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js .card-grid .card.reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .card-grid .card.reveal:nth-child(3) { transition-delay: 0.2s; }
html.js .card-grid .card.reveal:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transition: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(10, 24, 48, 0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo span { font-family: var(--sans); font-weight: 500; }
.gnav { display: flex; gap: 28px; }
.gnav a {
  font-size: 13.5px;
  color: var(--sub);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gnav a:hover { color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #1c3358 100%);
  color: #fff;
  padding: 110px 24px 100px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
html.js .hero-inner {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.15s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-inner { animation: none; opacity: 1; transform: none; }
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 24px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.7;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}
.hero-lead {
  font-size: 15px;
  color: #cfd8e6;
  font-weight: 300;
  line-height: 2;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.section { padding: 90px 24px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-title {
  text-align: center;
  margin: 0 0 50px;
}
.section-title span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  position: relative;
  padding-bottom: 18px;
  letter-spacing: 0.06em;
}
.section-title span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.section-lead {
  text-align: center;
  color: var(--sub);
  font-size: 14.5px;
  margin: -20px auto 44px;
  max-width: 560px;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}
.info-table th, .info-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 160px;
  color: var(--navy);
  font-weight: 500;
  background: #fbfbfc;
}
.info-table td { color: var(--ink); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-top: 3px solid var(--navy);
}
.section-alt .card { background: #fff; }
.card h3 {
  font-size: 15.5px;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.card p {
  font-size: 13.8px;
  color: var(--sub);
  margin: 0;
  line-height: 1.9;
}

/* Profile */
.profile-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.profile-photo img {
  width: 100%;
  border: 1px solid var(--line);
}
.profile-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}
.profile-name-en {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--sub);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.profile-summary {
  font-size: 14px;
  color: var(--ink);
  line-height: 2;
  margin: 0 0 32px;
}
.profile-subhead {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 0 0 16px;
  font-weight: 500;
}
.timeline, .achv-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  font-size: 13.8px;
  color: var(--sub);
}
.timeline li, .achv-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 16px;
}
.timeline li:last-child, .achv-list li:last-child { border-bottom: none; }
.timeline-date {
  flex: 0 0 auto;
  color: var(--navy);
  font-weight: 500;
  min-width: 150px;
}
.achv-list li { display: list-item; padding-left: 18px; position: relative; }
.achv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 12.5px;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 8px 14px;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}
.form-row {
  margin-bottom: 22px;
}
.form-row label {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-row .required {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #fff;
  background: var(--gold);
  padding: 2px 8px;
  letter-spacing: 0.04em;
  font-weight: 400;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row textarea { resize: vertical; line-height: 1.8; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--navy);
  border: none;
  padding: 15px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.form-submit:hover { background: var(--navy-deep); }
.form-submit:active { transform: scale(0.99); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin: 16px 0 0;
  font-size: 13.5px;
  text-align: center;
  min-height: 1.4em;
}
.form-status.is-success { color: #2e7d4f; }
.form-status.is-error { color: #b3372c; }

@media (max-width: 720px) {
  .contact-form { padding: 28px 22px; }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #9fabbd;
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 12px; padding: 14px 18px; }
  .gnav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 80px 20px 70px; }
  .hero h1 { font-size: 24px; }
  .section { padding: 64px 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .profile-block { grid-template-columns: 1fr; }
  .profile-photo { max-width: 220px; margin: 0 auto; }
  .info-table th { width: 110px; font-size: 13px; }
  .br-none br { display: none; }
  .sp-only { }
}
