/* Base Styles */
:root {
  --color-base: #000000;
  --color-dark: #111111;
  --color-accent: #B00020;
  --color-text: #FFFFFF;
  --color-muted: #DDDDDD;
  --max-width: 420px;
}
* { box-sizing: border-box; }
html,body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--color-base);
  color: var(--color-text);
}
body::before { /* radial gradient */
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #330000 0%, var(--color-base) 80%);
  z-index: -2;
}
body::after { /* optional noise overlay */
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/bg.jpg');
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  object-fit: cover;
}
h1 {
  font-family: 'M PLUS Rounded 1c', 'BIZ UDPゴシック', sans-serif;
  font-size: 1.6rem;
  margin: 0.3rem 0 0.5rem;
}
.catchcopy {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 1rem;
}
#links {
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 90%;
  max-width: var(--max-width);
  height: 56px;
  padding: 0 1rem;
  margin: 0 auto;
  text-decoration: none;
  background: var(--color-dark);
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(176,0,32,0.4);
  transition: background 0.2s;
}
.link-btn .icon {
  font-size: 1.3rem;
}
.link-btn .label {
  font-weight: 600;
}
.link-btn .sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.link-btn:not(.has-bg):hover {
  background: var(--color-accent);
  color: var(--color-text);
}
.link-btn:hover .icon {
  filter: invert(100%);
}
/* Background image support for each link item */
.link-btn.has-bg{
  position: relative;
  background: none;
  overflow: hidden;
}
.link-btn.has-bg::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6);
  z-index: -1;
}
.link-btn.has-bg:hover{
  background: none; /* keep original image */
  filter: brightness(0.85);
}

@media (hover:none) {
  .link-btn:not(.has-bg):hover {
    background: var(--color-dark); /* no hover on touch */
  }
}
