/* ============================================================
   agameru — profile site
   ============================================================ */

:root {
  --navy:        #0d1c30;
  --navy-deep:   #071223;
  --navy-soft:   #17304d;
  --gold:        #b18f5a;
  --gold-light:  #d3b485;
  --ink:         #232d3a;
  --sub:         #5c6773;
  --line:        #e3e7ec;
  --bg-alt:      #f6f7f9;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --sans:  'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.95;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.55; margin: 0; }
p { margin: 0; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
}

/* ---------- reveal (progressive enhancement) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .card-grid .card.reveal:nth-child(2),
html.js .works-grid .works.reveal:nth-child(2),
html.js .strength-list .strength.reveal:nth-child(2) { transition-delay: .1s; }
html.js .card-grid .card.reveal:nth-child(3),
html.js .works-grid .works.reveal:nth-child(3),
html.js .strength-list .strength.reveal:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; }
  .hero-scroll span { animation: none; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  z-index: 100;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(13,28,48,.05);
}
.header-inner {
  max-width: 1140px; height: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-word {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: .2em; text-indent: .2em; color: var(--navy);
  line-height: 1;
}

.gnav { display: flex; align-items: center; gap: 30px; }
.gnav a {
  font-size: 13.5px; font-weight: 400; letter-spacing: .06em;
  color: var(--ink); position: relative; padding: 4px 0;
  transition: color .25s;
}
.gnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.16,.84,.44,1);
}
.gnav a:hover { color: var(--gold); }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav a.nav-cta {
  border: 1px solid var(--navy); border-radius: 2px;
  padding: 7px 18px; font-size: 13px;
  transition: background .25s, color .25s, border-color .25s;
}
.gnav a.nav-cta::after { display: none; }
.gnav a.nav-cta:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.nav-toggle {
  display: none; width: 34px; height: 34px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block; position: absolute; left: 5px;
  width: 24px; height: 1.5px; background: var(--ink);
  transition: transform .3s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 48px) 32px 96px;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  opacity: .46;
  will-change: transform;
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.16); }
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(7,18,35,.12) 0%, rgba(7,18,35,.76) 62%, rgba(7,18,35,.96) 100%),
    linear-gradient(to bottom, rgba(7,18,35,.55), rgba(7,18,35,.2) 40%, rgba(7,18,35,.9));
}
.hero-inner { position: relative; text-align: center; max-width: 860px; }
.hero-eyebrow {
  font-size: 11.5px; letter-spacing: .42em; text-indent: .42em;
  color: var(--gold-light); font-weight: 400; margin-bottom: 34px;
}
.hero h1 {
  font-size: clamp(26px, 4.2vw, 46px);
  color: #fff; line-height: 1.75; letter-spacing: .06em;
  font-weight: 600;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-lead {
  margin-top: 30px;
  font-size: 15px; line-height: 2.15;
  color: rgba(255,255,255,.78);
  letter-spacing: .05em;
}
.hero-actions { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px;
  font-size: 13.5px; letter-spacing: .1em; font-weight: 400;
  border-radius: 2px; border: 1px solid transparent;
  transition: background .28s, color .28s, border-color .28s, transform .28s;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: rgba(255,255,255,.2);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute; top: 0; left: 0; width: 1px; height: 20px;
  background: var(--gold-light);
  animation: scrollDot 2.2s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-24px); }
  60%, 100% { transform: translateY(56px); }
}

/* ---------- section frame ---------- */
.section { padding: 116px 32px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.section-title {
  text-align: center; margin-bottom: 18px;
  font-size: clamp(22px, 3vw, 30px); letter-spacing: .14em;
}
.section-title span { display: inline-block; padding-bottom: 22px; position: relative; }
.section-title span::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 40px; height: 1px; margin-left: -20px; background: var(--gold);
}
.section-title.on-dark { color: #fff; }

.section-lead {
  text-align: center; font-size: 15px; color: var(--sub);
  margin: 26px auto 56px; max-width: 640px;
}
.sub-title {
  font-size: 17px; letter-spacing: .12em; margin: 76px 0 28px;
  padding-left: 14px; border-left: 2px solid var(--gold);
  line-height: 1.4;
}

/* ---------- about ---------- */
.lead-body { margin-top: 40px; }
.lead-body p + p { margin-top: 26px; }
.lead-body p { font-size: 15.5px; }

.pillars {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); background: #fff;
}
.pillars li {
  padding: 30px 12px; text-align: center;
  border-right: 1px solid var(--line);
}
.pillars li:last-child { border-right: 0; }
.pillar-en {
  display: block; font-size: 10.5px; letter-spacing: .26em; text-indent: .26em;
  color: var(--gold); margin-bottom: 8px;
}
.pillar-ja { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .1em; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line);
  padding: 42px 32px 40px; position: relative;
  transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s, border-color .35s;
}
.card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,.84,.44,1);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13,28,48,.09); border-color: #d9dee5; }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--serif); font-size: 12px; letter-spacing: .2em;
  color: var(--gold); margin-bottom: 14px;
}
.card h3 { font-size: 17.5px; letter-spacing: .06em; margin-bottom: 18px; }
.card p { font-size: 14px; color: var(--sub); line-height: 2.05; }

/* ---------- profile ---------- */
.profile-head {
  margin-top: 46px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start;
}
.profile-summary p + p { margin-top: 22px; }
.profile-summary p { font-size: 15px; }
.profile-qual {
  display: inline-block; font-family: var(--serif); font-size: 15px;
  letter-spacing: .1em; color: var(--navy);
  border: 1px solid var(--gold); padding: 5px 18px; margin-bottom: 22px !important;
}
.profile-domains { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); }
.profile-domains li {
  padding: 20px 24px; font-size: 13.5px; color: var(--sub); line-height: 1.85;
  border-bottom: 1px solid var(--line);
}
.profile-domains li:last-child { border-bottom: 0; }
.profile-domains span {
  display: block; font-family: var(--serif); font-size: 14.5px;
  color: var(--ink); letter-spacing: .08em; margin-bottom: 4px;
}

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -31px; top: 11px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--gold);
}
.tl-period { font-size: 11.5px; letter-spacing: .16em; color: var(--gold); }
.tl-title { font-family: var(--serif); font-size: 16.5px; letter-spacing: .06em; margin: 2px 0 6px !important; }
.tl-note { font-size: 13.5px; color: var(--sub); line-height: 1.95; }

/* works */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.works { background: #fff; border: 1px solid var(--line); padding: 30px 26px 26px; }
.works h4 {
  font-size: 14.5px; letter-spacing: .08em; color: var(--navy);
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.works dl { margin: 0; }
.works dt {
  font-size: 12px; letter-spacing: .08em; color: var(--gold);
  margin-top: 18px; font-weight: 400;
}
.works dd { margin: 2px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.85; }

/* ---------- strength ---------- */
.strength-list { margin-top: 52px; display: grid; gap: 0; }
.strength {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.strength:last-child { border-bottom: 1px solid var(--line); }
.st-num {
  font-family: var(--serif); font-size: 34px; line-height: 1;
  color: var(--gold); opacity: .55; letter-spacing: .04em;
}
.strength h3 { font-size: 18px; letter-spacing: .06em; margin-bottom: 14px; }
.strength p { font-size: 14.5px; color: var(--sub); line-height: 2.1; }

/* ---------- contact ---------- */
.contact { background: var(--navy); position: relative; text-align: center; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(177,143,90,.14), transparent 60%);
}
.contact .section-inner { position: relative; }
.contact-lead { color: rgba(255,255,255,.74); font-size: 14.5px; margin-top: 30px; }
.contact-mail { margin-top: 40px; }
.contact-mail a {
  font-family: var(--serif); font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: .08em; color: #fff;
  border-bottom: 1px solid rgba(177,143,90,.7); padding-bottom: 8px;
  transition: color .28s, border-color .28s;
}
.contact-mail a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.contact-note { margin-top: 26px; font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .08em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); padding: 60px 32px 40px; text-align: center; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-logo { height: 44px; width: auto; margin: 0 auto; opacity: .9; }
.footer-tagline { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .06em; }
.footer-nav { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { font-size: 12.5px; color: rgba(255,255,255,.68); transition: color .25s; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { margin-top: 34px; font-size: 11.5px; color: rgba(255,255,255,.34); letter-spacing: .1em; }

/* ---------- responsive ---------- */
.sp-only { display: none; }

@media (max-width: 900px) {
  .card-grid, .works-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .sp-only { display: inline; }
  .header-inner { padding: 0 20px; }
  .logo-word { font-size: 16px; }
  .nav-toggle { display: block; }

  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 22px;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s, transform .28s;
  }
  .gnav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .gnav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .gnav a::after { display: none; }
  .gnav a.nav-cta {
    border: 0; border-radius: 0; padding: 15px 4px; font-size: 14.5px; color: var(--gold);
  }
  .gnav a.nav-cta:hover { background: none; color: var(--gold); }

  .hero { padding: calc(var(--header-h) + 40px) 20px 84px; min-height: 92svh; }
  .hero h1 { font-size: clamp(19px, 5.4vw, 26px); line-height: 1.85; letter-spacing: .03em; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 26px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { margin-top: 36px; }
  .btn { padding: 13px 26px; font-size: 13px; }

  .section { padding: 76px 20px; }
  .sub-title { margin-top: 54px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 12px; }
  .pillars li:last-child { border-bottom: 0; }

  .strength { grid-template-columns: 1fr; gap: 6px; padding: 32px 0; }
  .st-num { font-size: 26px; }

  .site-footer { padding: 48px 20px 34px; }
  .footer-nav { gap: 6px 18px; }
}
