@charset "utf-8";

:root {
  --primary-color: #0f172a;
  --secondary-color: #22d1ee;
  --accent-color: #ff6b6b;
  --muted-color: #8ca3c2;
  --text-strong: #e8eef9;
  --text-body: #d6e3f8;
  --text-muted: #b7c6df;
  --surface-color: #0b1020;
  --panel-color: #0f172a;
  --card-color: #111a30;
  --light-bg: #f5f7fb;
  --gradient-1: linear-gradient(135deg, rgba(34, 209, 238, 0.16), rgba(255, 107, 107, 0.16));
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #12203a 50%, #0b1020 100%);
  --shadow-soft: 0 15px 50px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: radial-gradient(circle at 20% 20%, rgba(34, 209, 238, 0.08), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(255, 107, 107, 0.09), transparent 28%),
              #070c16;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

p, li { color: var(--text-body); }
small, .stat-label, .meta-label { color: var(--text-muted); }
a { color: inherit; }
.text-muted { color: var(--text-muted) !important; }

section {
  padding: 4.5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
}

.section-title .accent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 6px rgba(34, 209, 238, 0.25), 0 0 20px rgba(34, 209, 238, 0.4);
  flex-shrink: 0;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 70vh;
  background-image: url('../img/myimage.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #f9fbff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 12, 22, 0.45) 0%, rgba(10, 18, 32, 0.25) 50%, rgba(7, 12, 22, 0.1) 100%);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3rem;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #f0f6ff;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag-pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 237, 247, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #f0f6ff;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag-pill:hover {
  border-color: rgba(34, 209, 238, 0.5);
  background: rgba(34, 209, 238, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 209, 238, 0.2);
}

.tag-pill a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary-ghost {
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(34, 209, 238, 0.28), rgba(255, 107, 107, 0.25));
  color: #0c172a;
  font-weight: 700;
  border: 0;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-outline-light {
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 237, 247, 0.4);
  color: #f0f6ff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.meta-card {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(231, 237, 247, 0.2);
  color: #f0f6ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.meta-label { font-size: 0.85rem; color: #9fb0cc; }
.meta-value { font-weight: 700; font-size: 1.1rem; }

/* Panels */
.panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  color: var(--text-body);
}

.section-muted { background: #0d1627; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(140deg, rgba(34, 209, 238, 0.12), rgba(17, 26, 48, 0.9));
  color: var(--text-strong);
  box-shadow: var(--shadow-card);
}

.stat-number { font-size: 2rem; font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline */
.timeline {
  position: relative;
  padding: 1rem 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 0 6px rgba(34, 209, 238, 0.25);
}

.timeline-item.active .timeline-marker { background: var(--accent-color); box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.28); }
.timeline-item.parallel .timeline-marker { background: #eab308; box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.28); }

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  color: var(--text-body);
}

.timeline-period { color: var(--text-muted); font-size: 0.95rem; }
.timeline-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-strong); }

/* Cards */
.skill-card,
.info-card,
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--text-body);
}

.skill-card:hover,
.info-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 209, 238, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.skill-icon {
  font-size: 2.6rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.service-card .badge {
  background: rgba(34, 209, 238, 0.15);
  border: 1px solid rgba(34, 209, 238, 0.35);
  color: #b6ecf8;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-body);
  font-size: 0.9rem;
}

/* Intersection */
.intersection-section {
  background: linear-gradient(135deg, #101a2f 0%, #0e1b31 50%, #0b1425 100%);
  padding: 5rem 0;
  color: var(--text-strong);
}

.intersection-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.circle {
  border-radius: 18px;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-strong);
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* Contact */
.contact-section { background: #0a1324; }
.contact-item { 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--text-body);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.contact-item:hover { 
  transform: translateX(8px); 
  border-color: rgba(34, 209, 238, 0.35);
  background: rgba(34, 209, 238, 0.08);
  box-shadow: 0 0 20px rgba(34, 209, 238, 0.15);
}
.contact-item i { color: var(--secondary-color); flex-shrink: 0; }
.contact-item svg.icon-bluesky { color: var(--secondary-color); flex-shrink: 0; }
.contact-item a { color: var(--text-strong); text-decoration: none; }

footer {
  background: #050912;
  color: #9fb0cc;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Utility Classes */
.text-light { color: #e7edf7; }
.text-primary-light { color: #cbd9f0; }
.text-secondary-light { color: #9fb0cc; }
.text-strong-color { color: var(--text-strong); }
.text-body-color { color: var(--text-body); }
.text-muted-color { color: var(--text-muted); }

.archived-card { opacity: 0.85; }
.small-muted { opacity: 0.6; }

.text-uppercase-spaced {
  color: #9fb0cc;
  letter-spacing: 0.08em;
}

.stat-grid-top { margin-top: 1.25rem; }
.chip-row-spaced { margin-bottom: 2rem; }

.certification-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.certification-detail {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.certification-detail-label {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.link-no-decoration {
  text-decoration: none;
}

/* External links indicator */
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L14.293 1.207V5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: -0.125em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

a[target="_blank"]:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-section { min-height: 75vh; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
