/* ==========================================================
   KT Labs — Portfolio Hub
   SoundLogケーススタディのダークトーンを踏襲した
   採用向けハブページ。各プロダクトカードは各作品の
   アクセントカラー（teal / green / warm）を引き継ぐ。
   ========================================================== */

:root {
  --bg: #08090b;
  --page: #0e0f12;
  --card: #16181d;
  --card-hi: #1b1e24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef2;
  --dim: #b4b9c4;
  --mute: #7c818c;
  --gold: #ffd89a;
  --gold-deep: #e0a94f;
  --teal: #4ecdc4;
  --green: #7dc9a6;
  --warm: #f2b56b;
  --info: #afa9ec;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-sans: "Inter Tight", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    Meiryo, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "palt";
  line-height: 1.85;
  overflow-x: hidden;
}

/* 背景グロウ（SoundLogページと同系のブランド演出） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(224, 169, 79, 0.14), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(78, 205, 196, 0.10), transparent 32rem),
    radial-gradient(circle at 14% 90%, rgba(175, 169, 236, 0.06), transparent 28rem);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b1e24, #101216);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: 0.02em; }
.brand-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.header-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.header-cta:hover { border-color: var(--gold-deep); background: rgba(255, 216, 154, 0.08); }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(64px, 10vw, 120px) 24px clamp(40px, 6vw, 72px);
  max-width: 980px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
}
.label.gold { color: #10120f; background: var(--gold); border-color: var(--gold); font-weight: 600; }

.hero h1 {
  font-size: clamp(29px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero h1 .u { display: inline-block; } /* 文節単位でのみ折り返す */
.nw { white-space: nowrap; }

.gold { color: var(--gold); }

.hero .lead {
  margin-top: 26px;
  max-width: 46em;
  color: var(--dim);
  font-size: clamp(15px, 1.6vw, 16.5px);
}
.hero .lead b { color: var(--text); }

/* 実績ストリップ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 44px;
}

.stat {
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
  white-space: nowrap;
}
.stat b i { font-style: normal; font-size: 0.62em; color: var(--gold-deep); }
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------------- Buttons ---------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.button.solid {
  background: var(--gold);
  color: #14120c;
  box-shadow: 0 10px 28px rgba(224, 169, 79, 0.22);
}
.button.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(224, 169, 79, 0.3); }
.button.ghost {
  border: 1px solid var(--line-strong);
  color: var(--dim);
}
.button.ghost:hover { border-color: var(--gold-deep); color: var(--text); transform: translateY(-2px); }
.button.sm { padding: 9px 16px; font-size: 12.5px; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(48px, 7vw, 88px) 24px 0; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.section-lead {
  margin-top: 14px;
  max-width: 46em;
  color: var(--dim);
  font-size: 15px;
}

/* ---------------- Profile ---------------- */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.profile-card {
  background: linear-gradient(165deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}

.profile-card p + p { margin-top: 16px; }
.profile-card p { color: var(--dim); font-size: 15px; }
.profile-card p b { color: var(--text); }

.profile-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px !important;
}
.profile-name b {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
}
.profile-name span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}

.profile-meta {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12.5px !important;
  color: var(--mute) !important;
  letter-spacing: 0.02em;
}

.value-cards { display: grid; gap: 14px; align-content: start; }

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.value-card h3 { font-size: 15.5px; font-weight: 700; color: var(--gold); }
.value-card p { margin-top: 6px; font-size: 13px; color: var(--dim); line-height: 1.75; }

/* ---------------- Career timeline ---------------- */

.timeline {
  margin-top: 40px;
  position: relative;
  display: grid;
  gap: 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--line-strong), rgba(224, 169, 79, 0.55));
}

.timeline li {
  display: grid;
  grid-template-columns: 60px 28px minmax(0, 1fr);
  align-items: start;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
  text-align: right;
  padding-top: 22px;
  letter-spacing: 0.06em;
}

.timeline li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 28px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid var(--mute);
}

.timeline li.tl-highlight::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 216, 154, 0.12); }

.tl-body {
  grid-column: 3;
  grid-row: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin: 6px 0;
  transition: border-color 0.2s, background 0.2s;
}
.timeline li:hover .tl-body { border-color: var(--line-strong); background: var(--card-hi); }
.timeline li.tl-highlight .tl-body { border-color: rgba(224, 169, 79, 0.45); background: linear-gradient(160deg, rgba(224, 169, 79, 0.09), var(--card)); }

.tl-body h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.tl-body p { margin-top: 6px; font-size: 13.5px; color: var(--dim); }

.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cert {
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------- Products ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.product-card {
  --accent: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  border-top-color: var(--accent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.product-card.soundlog { --accent: var(--teal); }
.product-card.matomeru { --accent: var(--green); }
.product-card.asobi { --accent: var(--warm); }

.product-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 19px;
  color: #0c0d10;
  background: var(--accent);
}

.product-head h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.product-sub { font-size: 12px; color: var(--mute); margin-top: 2px; }

.status {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}
.status.live { color: #9ff0e8; background: rgba(78, 205, 196, 0.12); border: 1px solid rgba(78, 205, 196, 0.35); }
.status.wip { color: #ffd9a8; background: rgba(242, 181, 107, 0.10); border: 1px solid rgba(242, 181, 107, 0.35); }

.product-desc { font-size: 13.5px; color: var(--dim); line-height: 1.8; }

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.product-stats li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.product-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.product-stats span { font-size: 10.5px; color: var(--mute); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ---------------- Writing ---------------- */

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
a.article-card:hover { transform: translateY(-3px); border-color: rgba(224, 169, 79, 0.4); }

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.article-card h3 { font-size: 18px; font-weight: 700; line-height: 1.55; }
.article-card p { font-size: 13.5px; color: var(--dim); }
.article-card ul { display: grid; gap: 8px; }
.article-card ul li {
  font-size: 13.5px;
  color: var(--dim);
  padding-left: 18px;
  position: relative;
}
.article-card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.article-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.article-card.planned { border-style: dashed; }

/* ---------------- Skills ---------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.skill-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.skill-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 18px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.teal { background: var(--teal); box-shadow: 0 0 12px rgba(78, 205, 196, 0.6); }
.dot.gold { background: var(--gold); box-shadow: 0 0 12px rgba(255, 216, 154, 0.6); }

.skill-col dl { display: grid; gap: 14px; }
.skill-col dl > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.skill-col dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.skill-col dt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.03em;
  padding-top: 2px;
}
.skill-col dd { font-size: 13.5px; color: var(--dim); line-height: 1.75; }

/* ---------------- Contact / Footer ---------------- */

.contact { padding-bottom: 24px; }

.contact-card {
  text-align: center;
  background:
    radial-gradient(circle at 50% -40%, rgba(224, 169, 79, 0.16), transparent 60%),
    linear-gradient(170deg, var(--card-hi), var(--card));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px) 28px;
}
.contact-card h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.contact-card p {
  margin: 14px auto 0;
  max-width: 36em;
  color: var(--dim);
  font-size: 14.5px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute);
}
.footer-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* ---------------- Reveal animation ---------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1020px) {
  .product-grid { grid-template-columns: 1fr; max-width: 640px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; } /* モバイルはアンカー少なめ・縦読み前提 */
  .profile-grid { grid-template-columns: 1fr; }
  .writing-grid,
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .section { padding-left: 18px; padding-right: 18px; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 14px 12px; }

  .timeline::before { left: 14px; }
  .timeline li { grid-template-columns: 28px minmax(0, 1fr); }
  .tl-year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 14px 0 0 24px;
    color: var(--gold-deep);
  }
  .timeline li::after { grid-column: 1; margin-top: 20px; }
  .tl-body { grid-column: 2; grid-row: 2; margin-top: 2px; padding: 16px 18px; }

  .skill-col dl > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .button { flex: 1 1 100%; }
  .product-links .button { flex: 1 1 auto; }
}
