:root {
  --bg: #0b0c10;
  --fg: #eaeef2;
  --muted: #9aa3af;
  --card: #111218;
  --ring: #2b2f36;
  --header: #0f1117;
  --link: #c7d2fe;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  transition: opacity 0.3s ease;
  opacity: 1;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 50% -20%, #141622 0%, #0b0c10 60%, #0b0c10 100%);
  color: var(--fg);
}
body.fade-out {
  opacity: 0;
}

body.fade-in {
  opacity: 1;
}
/* ロード画面 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-content {
  text-align: center;
  color: var(--fg);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ring);
  border-top: 3px solid var(--link);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--card);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(17,18,24,.9), rgba(11,12,16,.85));
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ring);
  z-index: 0;
  height: 100px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand-link {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.primary-nav {
  display: flex;
  gap: 12px;
}
.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.primary-nav a[aria-current="page"],
.primary-nav a:hover {
  color: #fff;
  background: #151725;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--ring);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.name {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 0;
}
.bio {
  color: var(--muted);
  margin: 0 0 8px;
}

.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0 10px;
}

.link-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  background: rgba(255, 174, 82, 0.849); /* 少し暖かいオレンジがかった白の透過背景 */
  border: 1px solid #1f2230;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-button:active { 
  transform: translateY(0px); 
}

/* サイト全体の壁紙変更用のクラス */
body.wallpaper-default {
  transition: background 0.5s ease;
}

/* サイト全体の壁紙変更用のクラス */
body.wallpaper-main-site {
  background: #000;

}
body.wallpaper-vrchat {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  transition: background 0.3s ease;
}
body.wallpaper-youtube {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  transition: background 0.3s ease;
}

body.wallpaper-osu {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background 0.3s ease;
}



/* 大きな画面での背景表示を改善 */
@media (min-width: 1920px) {
  body.wallpaper-vrchat,
  body.wallpaper-youtube,
  body.wallpaper-osu {
    background-size: 100% 100%;
    background-position: center;
  }
}

/* 4K画面対応 */
@media (min-width: 3840px) {
  body.wallpaper-vrchat,
  body.wallpaper-youtube,
  body.wallpaper-osu {
    background-size: cover;
    background-position: center;
  }
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.social-icon {
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--ring);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.social-icon:hover {
  color: var(--fg);
  background: #151725;
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
}
.footer .powered { margin-top: 6px; }
.footer a { color: var(--link); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .links { gap: 16px; }
  .link-button { padding: 16px 20px; }
}
/* 既存CSSに追加・修正 */
#wallpaper {
  position: fixed;
  opacity: 0.75; /* 半透明 */
  filter: brightness(0.8) blur(1px); /* ほんのり暗く＆ぼかし */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: none;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none
}

#wallpaper.fade-out {
  opacity: 0;
}

#wallpaper.fade-in {
  opacity: 0;
}
