* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
  background-color: #99CCEE;
  color: #222;
  overflow-x: hidden;
}

.profile {
  position: relative;
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 2rem 1rem;
}

.profile .card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
}

.profile .hero {
  position: relative;
}

.profile h1.site-title {
  margin: 5rem 0 5rem;
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.75rem, 10vw, 4rem);
  font-weight: 400;
  color: #5399D5;
}

.profile .handle {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #333;
}

.profile .role {
  margin: 0 0 1rem;
  color: #555;
}

.profile .eyes {
  position: relative;
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 8rem;
}

.profile .eye {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #ddd;
}

.profile .eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background-color: #222;
  transform: translate(12px, -12px);
  transition: transform 0.05s linear;
}

.profile .info {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: #444;
  line-height: 1.8;
}

.profile .links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.profile .x-link,
.profile .zenn-link,
.profile .connpass-link {
  text-decoration: none;
  font-weight: 500;
}

.profile .x-link,
.profile .zenn-link,
.profile .connpass-link {
  color: #3ea8ff;
}

.profile .x-link:hover,
.profile .zenn-link:hover,
.profile .connpass-link:hover {
  text-decoration: underline;
}

.profile .content-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.profile .content-links a {
  color: #555;
  font-size: 0.9rem;
}

/* 下層ページ */

.page {
  width: 100%;
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem 1.5rem 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
  color: #222;
  background-color: #fff;
  border-radius: 16px;
}

.page .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.page .back-link:hover {
  text-decoration: underline;
}

.page h1 {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ddd;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 84px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #3ea8ff;
  z-index: 1;
}

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

.timeline-item--job,
.timeline--tight .timeline-item {
  padding-left: 32px;
}

.timeline-item--talk {
  padding-left: 54px;
}

.timeline-item--talk::after,
.timeline-item--minor::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 9px;
  height: 14px;
  border-left: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  border-bottom-left-radius: 10px;
}

.timeline-item--talk::after {
  width: 24px;
}

.timeline-item--minor::after {
  width: 48px;
}

.timeline-body p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.timeline-title {
  font-weight: 600;
  color: #3ea8ff;
}

.timeline-item--job::before {
  background-color: #1d6fd1;
}

.timeline-title--job {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d6fd1;
}

.timeline-title--job .fa-building {
  margin-right: 0.3rem;
}

.timeline-item--talk::before {
  width: 10px;
  height: 10px;
  left: 29px;
  top: 0.5rem;
  background-color: #3ea8ff;
}

.timeline-title--talk {
  font-weight: 600;
  font-size: 0.95rem;
  color: #3ea8ff;
}

.timeline-title--talk a {
  color: inherit;
}

.timeline-title--talk .fa-microphone-lines {
  margin-right: 0.3rem;
}

.timeline-item--minor::before {
  width: 8px;
  height: 8px;
  left: 54px;
  top: 0.55rem;
  background-color: #ccc;
}

.timeline-item--minor {
  padding-bottom: 1.5rem;
}

.timeline-title--minor {
  font-weight: 500;
  font-size: 0.9rem;
  color: #888;
}

.timeline-title--minor a {
  color: #3ea8ff;
}

.timeline-link-icon {
  margin-left: 0.4rem;
  font-size: 0.85em;
}

.talk-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

.talk-subtitle a {
  color: inherit;
}

.timeline-body code {
  background-color: #f0f0f0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.timeline-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
}

.timeline-image-group {
  display: flex;
  gap: 0.5rem;
}

.timeline-image-group .timeline-image {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 100px;
  aspect-ratio: 1 / 1;
}
