:root {
  --bg1: #dff1fd;
  --bg2: #f7fbff;
  --card: rgba(255, 255, 255, .72);
  --text: #16324a;
  --sub: #5b7a93;
  --accent: #2f9be0;
  --line: rgba(191, 224, 245, .9);
  --glow: rgba(47, 155, 224, .22);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg1: #12293b;
    --bg2: #0b1620;
    --card: rgba(22, 42, 59, .76);
    --text: #e6f2fb;
    --sub: #9bb6cb;
    --accent: #5bb8f5;
    --line: rgba(39, 71, 95, .9);
    --glow: rgba(91, 184, 245, .2);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(255,255,255,.32), transparent 25%), linear-gradient(145deg, var(--bg1), var(--bg2));
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  transition: background .3s ease;
}
body::selection { background: var(--accent); color: #fff; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(47,155,224,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(47,155,224,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}
body::after, main::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(58px);
  pointer-events: none;
  animation: drift 13s ease-in-out infinite alternate;
}
body::after { top: -12vw; left: -14vw; width: 38vw; height: 38vw; }
main::after { right: -16vw; bottom: -12vw; width: 30vw; height: 30vw; animation-delay: -6s; }
main { max-width: 480px; margin: 0 auto; padding: 64px 20px 56px; text-align: center; }
.language-switcher { display: flex; justify-content: flex-end; margin-bottom: 12px; animation: fade-up .7s both; }
.language-switcher button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: var(--card); backdrop-filter: blur(10px); color: var(--sub); font: inherit; font-size: .75rem; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.language-switcher button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.language-switcher button:focus-visible, .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1 { margin: 0; font-size: 1.5rem; letter-spacing: .04em; animation: fade-up .7s .12s both; }
.aff { margin: 2px 0 18px; color: var(--sub); font-size: .9rem; animation: fade-up .7s .2s both; }
.bio { margin: 12px 0 28px; font-size: .95rem; animation: fade-up .7s .28s both; }
.links { display: flex; flex-direction: column; gap: 12px; }
.link { position: relative; display: block; overflow: hidden; padding: 14px 46px 14px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,50%), rgba(255,255,255,.28), transparent 30%), var(--card); backdrop-filter: blur(12px); color: var(--text); font-weight: 600; text-decoration: none; box-shadow: 0 5px 16px rgba(30,100,140,.06); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; animation: fade-up .7s both; }
.link::before { content: "↗"; position: absolute; top: 50%; right: 20px; color: var(--accent); font-size: 1.15rem; line-height: 1; opacity: .65; transform: translateY(-50%) translateX(-4px); transition: transform .25s, opacity .25s; }
.link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.35) 50%, transparent 75%); transform: translateX(-120%); transition: transform .6s; }
.link:nth-child(1) { animation-delay: .38s; } .link:nth-child(2) { animation-delay: .46s; } .link:nth-child(3) { animation-delay: .54s; } .link:nth-child(4) { animation-delay: .62s; }
.link:hover { border-color: var(--accent); box-shadow: 0 12px 25px var(--glow); transform: translateY(-4px) scale(1.015); }
.link:hover::before { opacity: 1; transform: translateY(-50%) translateX(2px); } .link:hover::after { transform: translateX(120%); }
.link[aria-disabled="true"] { cursor: default; opacity: .72; }
.link[aria-disabled="true"]:hover { border-color: var(--line); box-shadow: 0 5px 16px rgba(30,100,140,.06); transform: none; }
.link[aria-disabled="true"]::before { content: "・"; }
.link small { display: block; color: var(--sub); font-size: .8rem; font-weight: 400; }
footer { margin-top: 32px; color: var(--sub); font-size: .8rem; animation: fade-up .7s .7s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes drift { from { transform: translate3d(-2%, 2%, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.coming-soon-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; }
.coming-soon-main .language-switcher { position: fixed; top: 24px; right: 24px; }
.coming-label { margin: 0 0 14px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; animation: fade-up .7s both; }
.coming-soon-main h1 { font-size: clamp(2.8rem, 14vw, 5.2rem); line-height: 1; letter-spacing: .02em; }
.coming-soon-main .bio { max-width: 380px; margin: 18px auto 28px; color: var(--sub); }
.back-link { display: inline-flex; justify-content: center; width: auto; margin: 0 auto; padding: 14px 28px; }
.back-link::before { content: "←"; left: 18px; right: auto; transform: translateY(-50%) translateX(4px); }
.back-link:hover::before { transform: translateY(-50%) translateX(-2px); }
