
@font-face {
    font-family: 'NosutaruDot';
    src: url('fonts/NosutaruDot-subset.woff2') format('woff2'),
         url('fonts/NosutaruDot.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --pink: #f8a5c2;
    --pink-light: #fce4ec;
    --pink-dark: #e91e63;
    --bg: #fff5f8;
    --text: #4a3040;
    --text-light: #8a6a7a;
    --shadow: 0 2px 12px rgba(200,100,150,0.15);
    --radius: 12px;
}

body {
    font-family: 'NosutaruDot', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
    padding-top: 52px;
}

a { color: var(--pink-dark); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: none; height: auto; }


.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,245,248,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--pink-light);
    padding: 8px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.header-logo img { width: 36px; height: 36px; border-radius: 50%; }
.header-logo span { font-size: 14px; font-weight: 700; }


.nav-icons { display: flex; gap: 6px; }
.nav-icons a img { width: 28px; height: 28px; border-radius: 6px; transition: transform 0.2s; }
.nav-icons a:hover img { transform: scale(1.15); }


.top-page { padding-top: 0; }

.top-hero {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    overflow: hidden;
}
.top-hero-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/bg.png');
    background-size: 50vw 50vw;
    background-repeat: repeat;
    background-attachment: fixed;
    z-index: 0;
}
.top-hero-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,200,220,0.5);
    z-index: 0;
}

.top-hero-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 24px 24px;
}


.top-logo {
    width: clamp(60%, 40% + 20vw, 85%);
    max-width: 100%;
    filter: drop-shadow(0 4px 24px rgba(200,100,150,0.4));
    margin-bottom: 24px;
}


.top-title-area {
    position: relative;
    width: 80vw; max-width: 500px;
    margin-bottom: 24px;
}


.top-title-box {
    position: relative;
    z-index: 1;
    background: #ffe0ec;
    border: 3px solid #ffd600;
    border-radius: 12px;
    padding: 16px 28px;
    box-shadow: 0 2px 12px rgba(255,214,0,0.3);
    text-align: center;
}


.chara-back, .chara-front {
    position: absolute;
    width: 200px;
    right: -30px;
    top: 70%;
    transform: translateY(-85%);
}
.chara-back { z-index: 0; }
.chara-front { z-index: 2; pointer-events: none; }


.chara-left {
    position: absolute;
    right: 80%;
    top: -55%;
    width: 120px;
    margin: 0; padding: 0;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .chara-left {
        top: -50%;
    }
}

@media (max-width: 360px) {
    .chara-left {
        top: -60%;
    }
}

@media (max-width: 767px) {
    .chara-back, .chara-front {
        top: clamp(70%, 45% + 10vw, 70%);
        width: clamp(140px, 10vw + 110px, 200px);
    }
    .chara-left {
        right: clamp(60%, 40% + 20vw, 80%);
    }
}

.top-title-ruby {
    display: block;
    font-size: clamp(16px, 5vw, 30px); font-weight: 700;
    color: #e65100;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}
.top-title-name {
    display: block;
    font-size: clamp(16px, 5vw, 30px); font-weight: 700;
    color: var(--text);
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}


.top-sumika {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0;
    flex-wrap: nowrap; justify-content: center;
    width: 80vw; max-width: 500px;
}
.top-sumika-label {
    font-size: clamp(16px, 5vw, 30px); font-weight: 700; color: var(--text);
    white-space: nowrap;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}
.top-sumika-icons { display: flex; gap: 12px; flex-wrap: nowrap; flex: 1; }
.top-sumika-icons a { flex: 1; }
.top-sumika-icons a img {
    width: 100%; height: auto; border-radius: 50%;
    transition: transform 0.2s;
}
.top-sumika-icons a:hover img { transform: scale(1.15); }


.top-anata {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    width: 100%;
    padding: 8px 0;
    position: relative; z-index: 1;
}
.top-anata-label {
    display: flex; align-items: center; gap: 6px;
}
.top-anata-label img {
    width: clamp(24px, 5vw, 36px); height: auto; border-radius: 6px;
}
.top-anata-label span {
    font-size: clamp(16px, 5vw, 30px); font-weight: 700; color: var(--text);
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}
.top-anata-icons {
    display: flex; gap: 0; width: 100%; flex-wrap: nowrap;
    margin: 0; padding: 0;
}
.top-anata-icons img {
    flex: 1;
    width: 100%; max-width: 100%; height: auto;
    min-width: 0; margin: 0; padding: 0;
    display: block;
}


.counter-icon {
    flex: 1; min-width: 0;
    position: relative;
}
.counter-icon img {
    width: 100%; height: auto; display: block;
}
.counter-num {
    position: absolute;
    top: 40%; left: 35%;
    transform: translate(-50%, -50%);
    font-size: clamp(20px, 8vw, 60px);
    font-weight: 700;
    color: #000;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    pointer-events: none;
}

@media (max-width: 767px) {
    .top-anata { align-items: center; }
}


.top-news-section {
    position: relative; z-index: 1;
    width: 90%; max-width: 500px; margin: 12px auto;
}
.top-news-header {
    display: block; text-align: center;
    font-size: clamp(16px, 5vw, 24px); font-weight: 700;
    color: var(--text); text-decoration: none;
    margin-bottom: 8px;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
                 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}
.top-news-item {
    display: flex; gap: 10px; align-items: baseline;
    padding: 8px 14px; margin-bottom: 4px;
    background: #fff; border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
    text-decoration: none; color: var(--text);
    font-size: clamp(12px, 3.5vw, 15px);
    transition: transform 0.2s;
}
.top-news-item:hover { transform: translate(-1px,-1px); opacity: 1; }
.top-news-date { font-size: 11px; color: var(--pink-dark); font-weight: 700; white-space: nowrap; }
.top-news-title { font-weight: 700; }


.top-menu {
    display: flex; gap: 12px;
    width: 100%; max-width: 90%;
    padding: 12px 16px;
    margin: 0 auto;
    position: relative; z-index: 3;
}
.top-menu-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex; flex-direction: column; align-items: center;
    gap: 4px;
    text-decoration: none; color: var(--text);
    transition: transform 0.2s;
}
.top-menu-item:hover { transform: translateY(-3px); opacity: 1; }
.top-menu-item img {
    width: 100%; max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    min-width: 0;
}
.top-menu-item span {
    font-size: clamp(10px, 5vw, 30px); font-weight: 700;
    color: #000;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
                 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .top-sumika {
        flex-wrap: wrap;
    }
    .top-sumika-label {
        width: 100%; text-align: center;
    }
    .top-sumika-icons { justify-content: center; width: 100%; }
}


.top-tags {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 8px 16px;
    position: relative; z-index: 1;
    flex-wrap: wrap;
}
.top-tags-label {
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.top-tags-label img {
    width: clamp(24px, 5vw, 36px); height: auto; border-radius: 6px;
}
.top-tags-label span {
    font-size: clamp(16px, 5vw, 30px); font-weight: 700; color: var(--text);
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}
.top-tags-list {
    display: flex; gap: 16px; flex-wrap: wrap;
}
.tag-item {
    font-size: clamp(14px, 4vw, 24px); font-weight: 700; color: var(--pink-dark);
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
                 -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
                 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000;
}
@media (max-width: 767px) {
    .top-tags { flex-direction: column; align-items: center; }
    .top-tags-list { justify-content: center; }
    .top-menu { max-width: 100%; padding: 12px 0; }
}


.top-unopedia-link {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px;
    margin: 8px 5%;
    width: 90%;
    text-decoration: none;
    position: relative; z-index: 1;
    transition: transform 0.2s;
    background: #ffe0ec;
    border: 3px solid rgba(0,0,0,0.15);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    image-rendering: pixelated;
}
.top-unopedia-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.15); opacity: 1; }
.top-unopedia-link img {
    width: clamp(24px, 5vw, 36px); height: auto; border-radius: 6px;
}
.top-unopedia-link span {
    font-size: clamp(16px, 5vw, 30px); font-weight: 700; color: var(--text);
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}


.top-oilking-link {
    display: flex; align-items: center; justify-content: center;
    width: 90%; margin: 8px 5%;
    padding: 12px 20px;
    background: #fff9c4;
    border: 3px solid rgba(0,0,0,0.15);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    text-decoration: none;
    position: relative; z-index: 1;
    transition: transform 0.2s;
}
.top-oilking-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.15); opacity: 1; }
.top-oilking-link span {
    font-size: clamp(14px, 4vw, 24px); font-weight: 700; color: #000;
    text-align: center;
    text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
                 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff;
}


.top-contact-box {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-wrap: wrap;
    width: 90%; margin: 8px 5%;
    padding: 12px 20px;
    background: #9c27b0;
    border: 3px solid rgba(0,0,0,0.15);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    position: relative; z-index: 1;
}
.top-contact-icon {
    font-size: clamp(18px, 5vw, 30px);
    color: #fff;
}
.top-contact-label {
    font-size: clamp(16px, 5vw, 30px); font-weight: 700; color: #fff;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
                 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000;
}
.top-contact-text {
    font-size: clamp(12px, 3.5vw, 20px); font-weight: 700; color: #fff;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
                 -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000,
                 0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000;
}


.top-discord-link {
    display: flex; align-items: center; justify-content: center;
    width: 90%; margin: 8px 5%;
    padding: 12px 20px;
    background: #5865F2;
    border: 3px solid rgba(0,0,0,0.15);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    text-decoration: none;
    position: relative; z-index: 1;
    transition: transform 0.2s;
}
.top-discord-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.15); opacity: 1; }
.top-discord-link span {
    font-size: clamp(12px, 3.5vw, 20px); font-weight: 700; color: #fff;
    text-align: center;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
                 -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000,
                 0 -3px 0 #000, 0 3px 0 #000, -3px 0 0 #000, 3px 0 0 #000;
}
.discord-sp { display: none; }

@media (max-width: 767px) {
    .discord-pc { display: none; }
    .discord-sp { display: inline; }
}


.menu-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 0 20px; max-width: 400px; margin: 0 auto 32px;
}
.menu-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 16px 8px;
    background: #fff;
    border: 1px solid var(--pink-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: var(--text);
}
.menu-item:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(200,100,150,0.25); opacity: 1; }
.menu-item img { width: 48px; height: 48px; border-radius: 8px; }
.menu-item span { font-size: 12px; font-weight: 700; }


.sns-row {
    display: flex; justify-content: center; gap: 16px;
    padding: 16px 0; margin-bottom: 24px;
}
.sns-row a img { width: 44px; height: 44px; border-radius: 50%; transition: transform 0.2s; }
.sns-row a:hover img { transform: scale(1.15); }


.page-container { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
.page-title {
    font-size: 20px; font-weight: 700; text-align: center;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--pink-light);
}
.page-title img { width: 32px; height: 32px; vertical-align: middle; margin-right: 8px; border-radius: 6px; }


.card {
    background: #fff; border: 1px solid var(--pink-light);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 16px; overflow: hidden;
}
.card-header {
    background: linear-gradient(135deg, var(--pink), #ce93d8);
    padding: 10px 16px; font-size: 14px; font-weight: 700; color: #fff;
}
.card-body { padding: 16px; font-size: 14px; line-height: 1.8; }
.card-body p { margin-bottom: 12px; }
.card-body p:last-child { margin-bottom: 0; }


.profile-header {
    text-align: center; padding: 24px 16px;
    background: linear-gradient(180deg, var(--pink-light), var(--bg));
}
.profile-avatar {
    width: 120px; height: 120px; border-radius: 50%;
    border: 3px solid var(--pink);
    box-shadow: 0 4px 16px rgba(200,100,150,0.2);
    margin-bottom: 12px;
}
.profile-name { font-size: 22px; font-weight: 700; }
.profile-ruby { font-size: 12px; color: var(--text-light); }
.profile-table { width: 100%; }
.profile-table tr { border-bottom: 1px solid var(--pink-light); }
.profile-table tr:last-child { border-bottom: none; }
.profile-table th {
    width: 90px; padding: 10px 12px; font-size: 13px;
    color: var(--pink-dark); font-weight: 700; text-align: left; vertical-align: top;
}
.profile-table td { padding: 10px 12px; font-size: 13px; }


.activity-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--pink-light); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.activity-text h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.activity-text p { font-size: 13px; color: var(--text-light); }


.link-list { padding: 8px 0; }
.link-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--pink-light);
    text-decoration: none; color: var(--text); transition: background 0.2s;
}
.link-item:last-child { border-bottom: none; }
.link-item:hover { background: var(--pink-light); opacity: 1; }
.link-item img { width: 40px; height: 40px; border-radius: 50%; }
.link-item .link-info { flex: 1; }
.link-item .link-info h3 { font-size: 14px; font-weight: 700; }
.link-item .link-info p { font-size: 12px; color: var(--text-light); }
.link-item .link-arrow { font-size: 18px; color: var(--pink); }


.site-footer {
    text-align: center; padding: 24px 16px;
    font-size: 11px; color: var(--text-light);
    border-top: 1px solid var(--pink-light);
    margin-top: 32px;
}


.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
.gallery-grid img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; transition: transform 0.2s; }
.gallery-grid img:hover { transform: scale(1.03); }


.news-item { padding: 12px 16px; border-bottom: 1px solid var(--pink-light); }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 11px; color: var(--pink-dark); font-weight: 700; margin-bottom: 2px; }
.news-text { font-size: 13px; }


@media (min-width: 768px) {
    .top-title-area { max-width: 560px; }
    .page-container { padding: 32px 24px; }
    .menu-grid { grid-template-columns: repeat(4, 1fr); max-width: 600px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
