/* =========================================================
   タツヲ — Personal Profile Site
   共通スタイルシート
   ========================================================= */

:root {
  --bg: #ff8fc4;
  --bg-soft: #ffa6d1;
  --surface: #1a1c26;
  --surface-2: #21232f;
  --border: #2b2e3d;
  --text: #e8e9f0;
  --text-dim: #a0a3b5;
  --text-faint: #6c6f82;
  --accent: #7c6cff;
  --accent-2: #2dd4bf;
  --accent-3: #ff7eb6;
  --gradient: linear-gradient(120deg, #7c6cff 0%, #2dd4bf 100%);
  --gradient-soft: linear-gradient(120deg, rgba(124,108,255,0.18), rgba(45,212,191,0.18));
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景の装飾グロー */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 12% 8%, rgba(124,108,255,0.16), transparent 45%),
    radial-gradient(700px circle at 88% 18%, rgba(45,212,191,0.12), transparent 45%),
    radial-gradient(500px circle at 70% 90%, rgba(255,126,182,0.10), transparent 45%);
  pointer-events: none;
}

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

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

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }

/* ---------- ナビゲーション ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12,13,18,0.72);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(124,108,255,0.8);
}

.nav__links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__links a.is-active {
  color: var(--text);
  background: var(--gradient-soft);
  border: 1px solid rgba(124,108,255,0.3);
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero__photo {
  position: relative;
}

.hero__photo img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--gradient);
  z-index: -1;
  filter: blur(26px);
  opacity: 0.45;
}

/* ---------- ボタン ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #0c0d12;
  box-shadow: 0 10px 30px rgba(124,108,255,0.35);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124,108,255,0.5); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- セクション見出し ---------- */
.section-head { margin-bottom: 48px; }

.section-head .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 60ch;
}

/* ---------- 統計バッジ ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- カードグリッド ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,108,255,0.4);
  box-shadow: var(--shadow);
}

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }

.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.card:hover .card__media img { transform: scale(1.06); }

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(12,13,18,0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.card__body { padding: 22px; }

.card__body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }

.card__body p { font-size: 0.92rem; color: var(--text-dim); }

.card__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.74rem;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

/* ---------- 趣味リスト ---------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.hobby {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.hobby .ico {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hobby h3 { font-size: 1.1rem; margin-bottom: 8px; }

.hobby p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- About / プロフィール詳細 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }

.about-grid p { color: var(--text-dim); margin-bottom: 16px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- コンタクト ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.4); }

.contact-card .ico {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.contact-card p { font-size: 0.9rem; color: var(--text-dim); word-break: break-all; }

/* ---------- フォーム ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form .field { margin-bottom: 20px; }

.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,108,255,0.2);
}

.form textarea { resize: vertical; min-height: 130px; }

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer__social { display: flex; gap: 16px; }

.footer__social a { color: var(--text-dim); transition: color 0.2s ease; }

.footer__social a:hover { color: var(--accent-2); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { order: -1; max-width: 360px; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 8px 11px; font-size: 0.85rem; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .nav__brand { font-size: 1.05rem; }
}
