/* Auralis 公式サイト  開発・運営 Nexus DEV / Developer @yjpuk */
:root {
  --black: #000;
  --ink: #e8ebf4;
  --ink-2: #b9bfd2;
  --muted: #8b91a7;
  --line: #1a1e2b;
  --line-2: #2a3042;
  --raise: #0c0e15;
  --accent: #4d7cff;
  --accent-ink: #9db4ff;
  --discord: #313338;
  --discord-2: #2b2d31;
  --discord-ink: #dbdee1;
  --blurple: #5865f2;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Exo 2", var(--jp);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
html, body { margin: 0; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ヘッダー */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; font-family: var(--jp);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: #000; }
.btn-solid:hover { background: #fff; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* ヒーロー: 背景の波形が主役 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; animation: bgin 2.2s ease both; }
@keyframes bgin { from { opacity: 0; } to { opacity: 1; } }
main, footer { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.25) 58%, transparent 72%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 640px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(52px, 9vw, 112px); line-height: .92; letter-spacing: -.015em;
}
.hero h1 span { display: block; }
.hero .ja { margin: 22px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: .04em; }
.hero .lead { margin: 18px 0 0; color: var(--ink-2); max-width: 30em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--line-2); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* セクション */
.sec { padding: 120px 0 0; }
.sec h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; font-weight: 700; letter-spacing: .02em; }
.sec .intro { margin: 14px 0 0; color: var(--ink-2); max-width: 34em; }

/* Discord の見本 + 動く歌詞 */
.demo { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: center; }
.discord { background: var(--discord); border-radius: 10px; overflow: hidden; color: var(--discord-ink); font-family: "Noto Sans JP", var(--jp); font-size: 15px; line-height: 1.5; border: 1px solid #1f2023; }
.discord-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; background: var(--discord-2); border-bottom: 1px solid #1f2023; font-weight: 600; color: #f2f3f5; }
.discord-bar .hash { color: #80848e; font-size: 22px; font-weight: 400; }
.msg { display: flex; gap: 14px; padding: 14px 16px 4px; }
.msg:last-child { padding-bottom: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #000; }
.avatar.user { background: #c97bd8; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 6px; }
.msg-head b { color: #f2f3f5; font-weight: 600; }
.msg-head b.bot { color: #8fb0ff; }
.app-badge { font-size: 10px; font-weight: 700; background: var(--blurple); color: #fff; padding: 1px 5px; border-radius: 3px; }
.msg-head time { color: #949ba4; font-size: 12px; }
.slash { color: #b5bac1; font-size: 14px; }
.slash code { background: rgba(88, 101, 242, .3); color: #c9cdfb; padding: 0 4px; border-radius: 3px; font-family: inherit; }
.card-img { margin-top: 6px; border-radius: 8px; width: 100%; height: auto; max-width: 600px; }
.dbtns { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.dbtn { font: 500 13px/1 "Noto Sans JP", var(--jp); padding: 8px 13px; border-radius: 3px; background: #4e5058; color: #fff; border: 0; }
.dbtn.blurple { background: var(--blurple); }
.dbtn.red { background: #da373c; }
.embed { margin-top: 6px; max-width: 520px; background: var(--discord-2); border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px 12px; }
.embed-title { font-weight: 700; color: #f2f3f5; font-size: 14px; }
.lyrics { position: relative; height: 130px; overflow: hidden; margin-top: 6px; }
.lyrics ol { list-style: none; margin: 0; padding: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lyrics li { height: 26px; line-height: 26px; color: #80848e; font-size: 14.5px; transition: color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics li.now { color: #fff; font-weight: 700; }
.lyrics li.done { color: #6d717a; }
.demo-text h2 { font-size: clamp(24px, 2.8vw, 32px); }
.demo-text p { color: var(--ink-2); margin: 16px 0 0; }

/* できること */
.does { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.does div { padding: 22px 0; border-top: 1px solid var(--line); }
.does dt { font-weight: 700; font-size: 17px; }
.does dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.does a { color: var(--accent-ink); }
.links-line { margin: 36px 0 0; color: var(--muted); font-size: 14.5px; }
.links-line b { color: var(--ink-2); font-weight: 500; }

/* 使い方 */
.start { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; padding: 0 0 28px; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent); }
.steps h3 { margin: 0; font-size: 18px; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
code { font-family: var(--mono); font-size: .9em; color: var(--accent-ink); }

.profile { background: #232428; border-radius: 12px; overflow: hidden; font-family: "Noto Sans JP", var(--jp); color: var(--discord-ink); line-height: 1.5; border: 1px solid #1f2023; }
.profile .banner { height: 120px; background: #000 url("banner.webp") center / cover; }
.profile .body { position: relative; padding: 0 16px 16px; }
.profile .pav { width: 86px; height: 86px; border-radius: 50%; border: 6px solid #232428; margin-top: -44px; background: #000; overflow: hidden; }
.profile .online { position: absolute; left: 80px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: #23a55a; border: 4px solid #232428; }
.profile .name { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: #f2f3f5; }
.profile .tag { font-size: 14px; color: #b5bac1; }
.profile .pbtns { display: flex; gap: 8px; margin-top: 14px; }
.profile .pbtns a { flex: 1; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 0; border-radius: 4px; text-decoration: none; color: #fff; background: #4e5058; }
.profile .pbtns a.add { background: var(--blurple); }
.profile .box { background: #111214; border-radius: 8px; padding: 12px 14px; margin-top: 10px; font-size: 13.5px; }
.profile .box h4 { margin: 0 0 4px; font-size: 12px; color: #f2f3f5; }
.profile .box p { margin: 0; }

/* コマンド */
.cmd-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 36px 0 8px; }
.tabs { display: flex; gap: 22px; flex-wrap: wrap; }
.tab { position: relative; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; padding: 6px 0; cursor: pointer; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.tab small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.search { position: relative; flex: 0 1 280px; }
.search input { width: 100%; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); padding: 0 14px 0 38px; font: inherit; font-size: 14.5px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--muted); }
.cmd-list { border-top: 1px solid var(--line); }
.cmd { display: grid; grid-template-columns: 230px 1fr; gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmd code { font-size: 15px; font-weight: 600; color: var(--ink); }
.cmd .args { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cmd p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cmd .admin { display: inline-block; margin-left: 8px; font-size: 12px; color: #e8b75c; }
.cmd-empty { padding: 28px 0; color: var(--muted); }

/* 最後の案内 */
.closing { padding: 140px 0 0; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.closing h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.closing p { margin: 10px 0 0; color: var(--ink-2); }
.closing .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* フッター */
footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 14px; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .tagline { margin: 10px 0 0; color: var(--muted); }
.team img { width: 170px; height: auto; margin: 2px 0 8px; }
.team p { margin: 0; color: var(--muted); }
.copy { margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }

/* 規約ページ */
.doc { max-width: 760px; margin: 0 auto; padding: 130px 28px 0; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); margin: 0; line-height: 1.3; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 8px 0 40px; }
.doc h2 { font-size: 19px; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc a { color: var(--accent-ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc td { color: var(--ink-2); }

@media (max-width: 920px) {
  .demo, .start { grid-template-columns: 1fr; gap: 40px; }
  .demo .discord { order: 2; }
  .start .profile { max-width: 380px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 28px 18px; background: #000; border-bottom: 1px solid var(--line); }
  .nav.open { background: #000; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .invite { display: none; }
  .does { grid-template-columns: 1fr; }
  .cmd { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero::before { background: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0,0,0,.85) 62%, #000 100%); }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .sec { padding-top: 96px; }
  .msg { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .avatar { width: 34px; height: 34px; }
  .dbtn { font-size: 12px; padding: 7px 10px; }
  .foot { grid-template-columns: 1fr; }
  .closing { padding-top: 110px; }
  .doc { padding-top: 110px; }
  .doc th { white-space: normal; }
}

/* ===== 動き ===== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(42px) skewY(3deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.intro h1 span, .intro .ja, .intro .lead, .intro .ctas { animation: rise 1.1s var(--ease) both; }
.intro h1 span:nth-child(1) { animation-delay: .15s; }
.intro h1 span:nth-child(2) { animation-delay: .27s; }
.intro h1 span:nth-child(3) { animation-delay: .39s; }
.intro .ja { animation-delay: .6s; }
.intro .lead { animation-delay: .72s; }
.intro .ctas { animation-delay: .84s; }
.scroll-hint { animation: fade 1s 1.4s both; }

[data-reveal], [data-reveal-group] > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in, [data-reveal-group].in > * { opacity: 1; transform: none; }

/* Discord の見本: メッセージが順に届く */
.discord .msg { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.discord.in .msg { opacity: 1; transform: none; }
.discord.in .msg { transition-delay: var(--d, 0s); }
.typing { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 16px 10px 70px; color: #b5bac1; font-size: 12.5px; opacity: 0; }
.typing { height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.discord.in .typing { animation: typing 1.5s .5s both; }
@keyframes typing { 0% { opacity: 0; height: 0; padding-bottom: 0; } 15%, 80% { opacity: 1; height: 22px; padding-bottom: 10px; } 100% { opacity: 0; height: 0; padding-bottom: 0; } }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }

/* プロフィールの再生中 */
.profile .activity { display: flex; align-items: center; gap: 10px; color: #dbdee1; }
.profile .activity b { color: #f2f3f5; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: #23a55a; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; animation-duration: 1.1s; }
.eq i:nth-child(3) { animation-delay: -.6s; animation-duration: .8s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: 1.2s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ボタン */
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* コマンドの切り替え */
.cmd { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }

/* 動きを減らす設定の人には、移動を控えてゆっくりした変化だけにする */
@media (prefers-reduced-motion: reduce) {
  .intro h1 span, .intro .ja, .intro .lead, .intro .ctas, .cmd { animation-name: fade; }
  [data-reveal], [data-reveal-group] > *, .discord .msg { transform: none; }
  .btn:hover { transform: none; }
}
