:root {
  --orbit-radius: 10vmin;
  --animation-duration: 200s;
  --face-size: 15vmax;
  --item-size: 0vmin;
}

body {
  margin: 0;
  padding: 0;
  background: url('image/back.JPG') no-repeat left bottom / cover;
  font-family: 'Noto Sans JP', sans-serif;
  overflow: hidden;
  padding-bottom: 60px;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.face {
  position: absolute;
  top: 20px; /* ← ここを 0 → 20px に */
  left: 0;
  width: var(--face-size);
  height: var(--face-size);
  border-radius: 50%;
  background: url('image/fujita.png') center/cover no-repeat;
  z-index: 0;
}

.header-title {
  position: absolute;
  top: 40px; /* ← 顔写真より少し下げる（10px → 40px） */
  left: calc(var(--face-size) + 20px); /* 顔写真サイズ + 余白 */
  display: flex;
  align-items: baseline;
  z-index: 1;
}

.header-title .name {
  font-size: 3rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin-right: 0.5rem;
  color: #000;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.header-title .small-text {
  font-size: 1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.item-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--item-size);
  height: var(--item-size);
  transform: translate(-50%, -50%);
  animation: outer-rotate var(--animation-duration) linear infinite;
}

@keyframes outer-rotate {
  from {
    transform: translate(-50%, -50%) rotate(var(--initial-angle));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--initial-angle) + 360deg));
  }
}

.anchor-wrapper {
  transform: translateX(var(--orbit-radius));
}

.item-content {
  position: relative;
  width: 200px;
  height: 200px;
  transform: rotate(calc(-1 * var(--initial-angle)));
  animation: counter-rotate var(--animation-duration) linear infinite;
}

@keyframes counter-rotate {
  from {
    transform: rotate(calc(-1 * var(--initial-angle)));
  }
  to {
    transform: rotate(calc(-1 * var(--initial-angle) - 360deg));
  }
}

.item-content img {
  width: 100%;
  height: auto;
  display: block;
}

.orbit a {
  pointer-events: auto;
}

@media screen and (max-width: 600px) {
  .header-title {
    top: calc(var(--face-size) + 10px);
    left: 10px;
  }
  .header-title .name {
    font-size: 2rem;
  }
  .header-title .small-text {
    font-size: 0.8rem;
  }
}

/* === SNS フッター === */
.sns-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  padding: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sns-label {
  background-color: #359;
  color: #fff;
  padding: 5px 10px;
  font-size: 1rem;
  margin-right: 10px;
  border-radius: 3px;
}

.sns-icons {
  display: flex;
  align-items: center;
}

.sns-icons a {
  margin-right: 10px;
}

.sns-icons a img {
  width: 30px;
  height: 30px;
  display: block;
}

.sns-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}