/* =============================================
   TAIZEN AMEMIYA — PORTFOLIO v6
   Full redesign — clean, no overflow bar
   ============================================= */

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

:root {
  --bg:        #060608;
  --bg-2:      #0d0d12;
  --bg-3:      #13131a;
  --bg-4:      #1a1a24;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #f0f0f5;
  --text-2:    rgba(240,240,245,0.5);
  --text-3:    rgba(240,240,245,0.22);
  --accent:    #4F8EF7;
  --accent-2:  #7C3AED;
  --accent-g:  linear-gradient(135deg, #4F8EF7, #7C3AED);
  --sidebar-w: 288px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  overflow-x: hidden;
  /* スクロールバー常時表示で右端ズレ防止 */
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,142,247,0.2) transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* スクロールバースタイル (webkit) */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79,142,247,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79,142,247,0.4); }

a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(79,142,247,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

body.cursor-hover #cursor-dot { width: 12px; height: 12px; }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: rgba(79,142,247,0.3); }

/* =============================================
   PAGE LOADER
   ============================================= */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content { text-align: center; }

.loader-letters {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 32px;
}

.loader-char {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(40px);
  animation: charIn 0.6s var(--ease) forwards;
}
.loader-char:nth-child(1) { animation-delay: 0.1s; }
.loader-char:nth-child(2) { animation-delay: 0.2s; color: var(--accent); }

@keyframes charIn { to { opacity: 1; transform: translateY(0); } }

.loader-progress {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-progress-fill {
  height: 100%;
  background: var(--accent-g);
  width: 0%;
  animation: progFill 1.6s var(--ease) 0.3s forwards;
}
@keyframes progFill { to { width: 100%; } }

.loader-label {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  animation: charIn 0.4s ease 0.5s forwards;
}

/* =============================================
   LAYOUT
   ============================================= */
#sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 500;
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
}

#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
  width: calc(100% - var(--sidebar-w));
}

/* =============================================
   SIDEBAR CONTENT
   ============================================= */
.sidebar-top {
  padding: 40px 24px 28px;
  border-bottom: 1px solid var(--border);
}

.profile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.profile-ring {
  position: relative;
  width: 100px; height: 100px;
  flex-shrink: 0;
}

.profile-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: rotateSVG 8s linear infinite;
}
@keyframes rotateSVG { to { transform: rotate(360deg); } }

.profile-img {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-3);
  overflow: hidden;
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.profile-name span {
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-role {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Nav */
.sidebar-nav { flex: 1; padding: 20px 14px; }
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 22px;
  background: var(--accent-g);
  border-radius: 0 3px 3px 0;
  transition: transform 0.3s var(--ease);
}
.nav-link i { width: 18px; font-size: 13px; text-align: center; transition: color 0.25s; }
.nav-link .nav-num { margin-left: auto; font-size: 10px; color: var(--text-3); font-weight: 600; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--accent); background: rgba(79,142,247,0.08); }
.nav-link.active::before { transform: translateY(-50%) scaleY(1); }
.nav-link.active i { color: var(--accent); }

/* Sidebar Bottom */
.sidebar-bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.lang-btn:hover { color: var(--text-2); }
.lang-btn.active { background: var(--accent); color: #fff; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.social-links a:hover {
  color: var(--accent);
  border-color: rgba(79,142,247,0.4);
  background: rgba(79,142,247,0.08);
  transform: translateY(-3px);
}

.copyright { font-size: 11px; color: var(--text-3); }

/* =============================================
   MOBILE HEADER
   ============================================= */
#mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(6,6,8,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 600;
}
.mobile-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
#menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}
#menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
#menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 490;
}
#overlay.show { display: block; }

/* =============================================
   PAGES
   ============================================= */
.page {
  display: none;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.page.active {
  display: block;
  animation: pageFadeIn 0.5s var(--ease) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
  padding: 64px 60px;
  max-width: 980px;
}

.section-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 52px; }
.section-num {
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  opacity: 0.6;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.section-title .accent {
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   HOME / HERO — 全画面動画背景
   ============================================= */
#home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,6,8,0.55) 0%,
    rgba(6,6,8,0.45) 50%,
    rgba(6,6,8,0.75) 100%
  );
}

.hero-center {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 60px 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
  animation: slideUp 0.8s var(--ease) 2s both;
}
.eyebrow-line { width: 40px; height: 1px; background: var(--accent); display: block; }
.eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-title {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  text-align: center;
}
.hero-title .word { display: block; overflow: hidden; }
.hero-title .word-inner {
  display: block;
  transform: translateY(110%);
  animation: wordReveal 0.9s var(--ease) both;
}
.hero-title .word:nth-child(1) .word-inner { animation-delay: 2.1s; }
.hero-title .word:nth-child(2) .word-inner { animation-delay: 2.3s; }
.hero-title .word:nth-child(3) .word-inner { animation-delay: 2.5s; }
@keyframes wordReveal { to { transform: translateY(0); } }

.hero-title .outline-text {
  -webkit-text-stroke: 2px rgba(255,255,255,0.35);
  color: transparent;
}
.hero-title .grad-text {
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 44px;
  opacity: 0;
  animation: slideUp 0.7s var(--ease) 2.8s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
  opacity: 0;
  animation: slideUp 0.7s var(--ease) 3.0s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-g);
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(79,142,247,0.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-2);
  transition: all 0.3s var(--ease);
}
.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 0;
  opacity: 0;
  animation: slideUp 0.7s var(--ease) 3.2s both;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13,13,18,0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 28px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: slideUp 0.6s ease 3.5s both;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(8px);opacity:0} }
.scroll-hint span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* =============================================
   ABOUT — 縦1列レイアウト
   ============================================= */

/* プロフィールブロック（写真 + 基本情報 横並び） */
.about-profile {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-profile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-2);
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-profile-info {
  flex: 1;
  min-width: 0;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.about-role-text {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.about-meta-item i {
  width: 16px;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.about-meta-item a { color: var(--accent); transition: opacity 0.2s; }
.about-meta-item a:hover { opacity: 0.7; }

/* バイオセクション */
.about-bio-section {
  margin-bottom: 48px;
}

.about-bio { font-size: 15px; color: var(--text-2); line-height: 1.9; margin-bottom: 16px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tech-tag {
  font-size: 12px; font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.25s;
}
.tech-tag:hover { border-color: rgba(79,142,247,0.4); color: var(--accent); background: rgba(79,142,247,0.06); }

/* Services */
.services-wrap { margin-top: 4px; }
.services-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
}
.services-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

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

.svc-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(28px);
}
.svc-card.in { opacity: 1; transform: translateY(0); }
.svc-card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(79,142,247,0.1); }

.svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
  margin-bottom: 16px;
}
.svc-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.svc-card p  { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* =============================================
   RESUME
   ============================================= */
.resume-section { margin-bottom: 56px; }
.resume-section-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.resume-section-title i { color: var(--accent); font-size: 14px; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-2) 60%, transparent 100%);
}

.tl-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s var(--ease);
}
.tl-item.in { opacity: 1; transform: translateX(0); }

.tl-dot {
  position: absolute;
  left: -38px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: all 0.3s;
  z-index: 1;
}
.tl-item:hover .tl-dot { background: var(--accent); box-shadow: 0 0 12px rgba(79,142,247,0.6); }

.tl-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-year {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tl-company-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-3);
  flex-shrink: 0;
}
.tl-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.tl-sub { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.tl-desc { font-size: 13px; color: var(--text-2); line-height: 1.75; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-tag {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(79,142,247,0.07);
  border: 1px solid rgba(79,142,247,0.18);
  color: var(--accent);
}

/* スキル（タグ形式・バーなし） */
.skill-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.skill-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.25s;
}
.skill-tag-item:hover {
  border-color: rgba(79,142,247,0.3);
  background: rgba(79,142,247,0.06);
  color: var(--accent);
}
.skill-tag-level {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

/* 資格リスト */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.25s var(--ease);
}
.cert-item:hover {
  border-color: rgba(79,142,247,0.25);
  background: rgba(79,142,247,0.04);
  transform: translateX(4px);
}

.cert-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.cert-body { flex: 1; min-width: 0; }
.cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.cert-date {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* =============================================
   PORTFOLIO — サムネイルカード
   ============================================= */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  transition: all 0.25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-2); }
.filter-btn.active { background: var(--accent-g); border-color: transparent; color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portfolio-item { transition: opacity 0.4s, transform 0.4s var(--ease); }
.portfolio-item.hidden { display: none; }

.p-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.p-card:hover { border-color: rgba(79,142,247,0.25); transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* サムネイル（カラーグラデーション + アイコン） */
.p-thumb {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p-thumb-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.15);
  transition: transform 0.4s var(--ease), color 0.4s;
}
.p-card:hover .p-thumb-icon {
  color: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.p-thumb-tag {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.p-info { padding: 20px 22px; }
.p-cat { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.p-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.p-info p  { font-size: 12px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }

.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* =============================================
   CONTACT — センタリング
   ============================================= */
.contact-page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-page-inner .section-header {
  justify-content: center;
}

.contact-center {
  width: 100%;
  max-width: 640px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s var(--ease);
  text-align: center;
}
.contact-card:not(.no-link):hover {
  border-color: rgba(79,142,247,0.3);
  background: rgba(79,142,247,0.05);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(79,142,247,0.12);
}

.contact-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
}
.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-card-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  word-break: break-all;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  #sidebar {
    transform: translateX(-100%);
    z-index: 600;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 32px 0 80px rgba(0,0,0,0.6);
  }
  #main {
    margin-left: 0;
    padding-top: 60px;
    width: 100%;
  }
  #mobile-header { display: flex; }
  .hero-wrap { padding: 40px 28px 60px; }
  .page-inner { padding: 40px 28px; }
  .services-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  body { cursor: auto; }
  html { overflow-y: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  .hero-title { font-size: 40px; }
  .hero-stats { flex-direction: column; gap: 0; width: 100%; }
  .stat + .stat::before {
    left: 20%; right: 20%;
    top: 0; bottom: auto;
    width: auto; height: 1px;
  }
  .about-profile { flex-direction: column; align-items: center; text-align: center; }
  .about-meta-item { justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
}
