:root{
  --bg:#0b1220;
  --panel:#111b2e;
  --panel2:#16243b;
  --panel3:#0f1a2c;
  --text:#f6f8ff;
  --muted:#b8c3d9;
  --line:#2c3f5c;
  --accent:#38bdf8;
  --accent-strong:#7dd3fc;
  --accent2:#fbbf24;
  --shadow: 0 14px 34px rgba(3, 8, 22, .5);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(56,189,248,.18), transparent),
              radial-gradient(900px 500px at 80% 20%, rgba(251,191,36,.10), transparent),
              var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.container{
  width:min(1080px, 92vw);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(10,16,30,.84);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  font-weight:700;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  gap:12px;
  font-size:14px;
  color:var(--muted);
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{
  background:var(--panel2);
  color:var(--text);
}

.hero{
  padding:56px 0 36px;
}
.hero-inner{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap:28px;
  align-items:start;
}

.badge{
  display:inline-block;
  padding:8px 12px;
  border:1px solid rgba(56,189,248,.5);
  color:var(--accent);
  border-radius:999px;
  background: rgba(56,189,248,.14);
  font-size:13px;
}

h1{
  margin:14px 0 12px;
  font-size:44px;
  line-height:1.08;
}
h1 .sub{
  display:inline-block;
  margin-left:10px;
  font-size:18px;
  color:var(--muted);
  font-weight:600;
}

.lead{
  color:var(--muted);
  font-size:16px;
  line-height:1.9;
  margin:0 0 20px;
  max-width: 62ch;
}

.summary-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-bottom:18px;
}
.summary-card{
  padding:16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(21,38,64,.86), rgba(13,24,40,.92));
}
.summary-card.emphasis{
  border-color: rgba(56,189,248,.5);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.12);
}
.summary-label,
.detail-label,
.eyebrow{
  display:block;
  margin-bottom:8px;
  color:var(--accent-strong);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.summary-card strong{
  display:block;
  line-height:1.55;
  font-size:15px;
}
.summary-card p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.7;
  font-size:14px;
}

.cta-row{
  display:flex;
  gap:12px;
  margin:14px 0 12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--panel);
  color:var(--text);
  font-weight:650;
  font-size:14px;
}
.btn.primary{
  border-color: rgba(56,189,248,.45);
  background: linear-gradient(180deg, rgba(56,189,248,.35), rgba(56,189,248,.14));
}
.btn.ghost{
  background: var(--panel2);
}

.links-row{
  display:flex;
  gap:14px;
  color:var(--muted);
  font-size:14px;
  flex-wrap:wrap;
}
.links-row a{
  border-bottom:1px dashed var(--line);
}
.links-row a:hover{
  color:var(--text);
}

.hero-card .card,
.panel,
.proj,
.highlight-card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, #152640, #111b2e);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel,
.proj,
.highlight-card{
  padding:18px;
}

.card h2,
.panel h3,
.highlight-card h3{
  margin:0 0 10px;
}

.meta{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}
.meta li span{
  display:inline-block;
  min-width:64px;
  color:var(--text);
  font-weight:650;
}

.mini-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-top:14px;
}
.mini{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel2);
}
.mini-num{
  font-weight:800;
  letter-spacing:.2px;
}
.mini-label{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.note,
.panel-note,
.section-copy,
.muted{
  color:var(--muted);
}
.note,
.panel-note{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.7;
}

.section{
  padding:52px 0;
}
.section.alt{
  background: linear-gradient(180deg, rgba(22,36,59,.82), rgba(15,25,43,.64) 58%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:18px;
}

.section h2{
  margin:0 0 8px;
  font-size:26px;
  letter-spacing:.2px;
}

.section-copy{
  margin:0;
  line-height:1.7;
  max-width: 68ch;
}

.priority-list{
  margin:0 0 16px;
  padding-left:20px;
  color:var(--text);
  line-height:1.9;
}
.priority-list li::marker{
  color:var(--accent-strong);
  font-weight:700;
}

.grid-2,
.skill-grid,
.cards,
.highlight-grid{
  display:grid;
  gap:16px;
}
.grid-2{
  grid-template-columns: 1fr 1fr;
}
.skill-grid{
  grid-template-columns: repeat(3, 1fr);
}
.cards{
  grid-template-columns: 1fr 1fr;
}
.highlight-grid{
  grid-template-columns: repeat(3, 1fr);
}

.panel p,
.highlight-card p,
.project-summary,
.project-detail p,
.detail-block p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.bullets{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.9;
}

.timeline{
  display:grid;
  gap:14px;
}
.item{
  display:grid;
  grid-template-columns: 130px 1fr;
  gap:16px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,30,48,.96), rgba(15,25,43,.96));
}
.when{
  color:var(--muted);
  font-size:13px;
  padding-top:2px;
}
.what h3{
  margin:0 0 6px;
  font-size:18px;
}
.item-head,
.proj-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.chips,
.tags{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chips li,
.tags li,
.status{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--panel2);
  font-size:12px;
  color:var(--text);
}

.detail-grid,
.project-detail-list{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
.detail-block,
.project-detail,
.github-note{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel3);
}
.accent-block{
  border-color: rgba(56,189,248,.35);
  background: linear-gradient(180deg, rgba(19,40,66,.95), rgba(14,28,46,.95));
}

.doc-links,
.proj-links,
.contact-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.doc-links{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}

.proj{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.project-images{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.project-images img{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--panel);
  display:block;
}

.github-note strong{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}
.github-note p{
  margin:0;
}

.footer{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

@media (max-width: 980px){
  .hero-inner,
  .grid-2,
  .cards,
  .skill-grid,
  .highlight-grid,
  .detail-grid,
  .project-detail-list{
    grid-template-columns: 1fr;
  }

  .item{
    grid-template-columns: 1fr;
  }

  .nav{
    display:none;
  }

  .summary-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .hero{
    padding-top:44px;
  }

  h1{
    font-size:34px;
  }

  h1 .sub{
    display:block;
    margin:8px 0 0;
  }

  .container{
    width:min(1120px, 94vw);
  }

  .mini-grid,
  .project-images{
    grid-template-columns: 1fr;
  }

  .card,
  .panel,
  .proj,
  .highlight-card,
  .item{
    padding:16px;
  }
}
