/* 全ページ共通のテーマ(style.css / menu.css の後に読み込む) */
:root {
    --accent: #c4b9ab;
    --bg: #0d0d0d;
    --card: #181818;
    --ink: #f2f0eb;
    --muted: #9a978f;
    --line: rgba(255, 255, 255, 0.14);
    --en: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent);
    color: #0d0d0d;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--en), 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

/* フィルムグレイン */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main {
    max-width: 760px;
    padding: 0 18px 120px;
}

a {
    color: var(--accent);
}

/* ---------- ヘッダー(ロゴバー) ---------- */
#header {
    background: none;
    position: relative;
    z-index: 1;
}
.site-logo {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 22px 0;
    text-align: right;
    font-family: 'Caveat', cursive;
    font-size: 40px;
    line-height: 1;
    color: var(--ink);
    text-decoration: none;
}

/* ---------- ページタイトル ---------- */
.title {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 18px 8px;
    box-sizing: border-box;
}
.title h1 {
    margin: 0;
    padding: 0 0.12em 0.04em 0;
    background: none;
    text-shadow: none;
    font-family: 'Caveat', cursive;
    font-size: clamp(64px, 19vw, 104px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.9;
    text-transform: capitalize;
    text-shadow: 3px 4px 10px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: pageRise 0.9s cubic-bezier(.2, .7, .2, 1) 0.1s forwards;
}
.title h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 18px;
    background: var(--accent);
}
/* 日本語のサブラベル */
.title h1[data-sub]::before {
    content: attr(data-sub);
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: none;
    color: var(--accent);
}
@keyframes pageRise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ---------- メニュー ---------- */
nav {
    background: rgba(13, 13, 13, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--line);
}
nav .inner ul li {
    border-bottom: 1px solid var(--line);
}
nav .inner ul li a {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    color: var(--ink);
    padding: 0.35em 0.3em;
}
nav .inner ul li a:hover {
    background: none;
    color: var(--accent);
    padding-left: 0.9em;
    transition-duration: 0.3s;
}
#icontitle {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    color: var(--accent);
}
#iconlist a {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--line);
}
.toggle_btn span {
    background-color: var(--ink);
}

/* ---------- フッター ---------- */
footer {
    background: rgba(13, 13, 13, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    z-index: 5;
}
#footer-list a {
    border-radius: 8px;
    box-shadow: none;
}

/* ---------- 共通パーツ ---------- */
/* カード */
.news-list,
.disco-list {
    width: auto;
    margin: 0 0 22px;
    padding: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 45%), var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

iframe {
    border-radius: 14px;
}

/* スクロールバーを細く */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* スクロールで下から現れる(トップ・各ページ共通) */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .title h1 { opacity: 1; animation: none; }
    body::after { animation: none; }
}

/* ---------- ページ遷移(ブラウザ標準のクロスフェード) ---------- */
@view-transition {
    navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
::view-transition-old(root) {
    animation: vtOut 0.4s ease both;
}
::view-transition-new(root) {
    animation: vtIn 0.7s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes vtOut {
    to { opacity: 0; }
}
@keyframes vtIn {
    from { opacity: 0; transform: translateY(12px); }
}
/* 固定の部品は、遷移中も動かさない */
footer { view-transition-name: site-footer; }
.toggle_btn { view-transition-name: menu-btn; }

/* ---------- 光の漏れ(全ページ。ごく淡く、ゆっくり漂う) ---------- */
/* スマホなど描画が重くなりやすい端末では動かさない */
@media (max-width: 767px), (hover: none) {
    body::after { animation: none !important; }
}
body::after {
    content: "";
    position: fixed;
    inset: -10%;
    pointer-events: none;
    z-index: 49;
    background:
        radial-gradient(55% 38% at 100% 2%, rgba(255, 152, 72, 0.07), rgba(255, 152, 72, 0) 70%),
        radial-gradient(48% 34% at 0% 98%, rgba(255, 104, 122, 0.045), rgba(255, 104, 122, 0) 70%);
    animation: leakDrift 22s ease-in-out infinite alternate;
}
@keyframes leakDrift {
    from { transform: translate(-2%, 1%) scale(1); opacity: 0.7; }
    to { transform: translate(2%, -1.5%) scale(1.06); opacity: 1; }
}
