/* CoalNeko 共享样式 */
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #fdf8f2;
    font-family: "Segoe UI", "Microsoft YaHei", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: #4a3226;
    line-height: 1.7;
}
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}
img.logo { width: min(360px, 75vw); height: auto; }
.tagline {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #a4785c;
    margin: 8px 0 0;
}
header { text-align: center; margin-bottom: 40px; }
nav {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px 32px;
    flex-wrap: wrap;
}
nav a {
    color: #4a3226;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
nav a:hover { color: #b3845c; border-bottom-color: #b3845c; }
section { margin-bottom: 48px; }
h2 {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-align: center;
    margin: 0 0 8px;
}
h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: #d9c4a8;
    margin: 12px auto 24px;
}
/* 语言切换按钮（右上角） */
.lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background: rgba(253, 248, 242, 0.9);
    border: 1px solid #d9c4a8;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.lang-switch a {
    padding: 6px 14px;
    color: #a4785c;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.lang-switch a:hover { background: #f0e4d5; color: #4a3226; }
.lang-switch a.current {
    background: #4a3226;
    color: #fdf8f2;
}
/* 圆角按钮 */
.btn {
    display: inline-block;
    padding: 12px 56px;
    background: #4a3226;
    color: #fdf8f2;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
    background: #8a6547;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 50, 38, 0.25);
}
.btn.small {
    padding: 8px 24px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
}
.btn.outline {
    background: transparent;
    color: #4a3226;
    border: 2px solid #4a3226;
}
.btn.outline:hover { background: #4a3226; color: #fdf8f2; }
.btn.disabled, .btn[href="#"], .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
/* 禁用按钮也要压掉 hover 动效 */
.btn:disabled:hover {
    background: #4a3226;
    transform: none;
    box-shadow: none;
}
/* 左图右文卡片 */
.card-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8dcc8;
}
.card-row img {
    width: 220px;
    max-width: 42vw;
    height: auto;
    border: 1px solid #d9c4a8;
    flex-shrink: 0;
}
.card-row h3 { margin: 0 0 6px; font-size: 1rem; }
.card-row p { margin: 0 0 10px; font-size: 0.85rem; color: #8a6f5a; }
.card-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.goods-item { text-align: center; }
.goods-item img {
    width: 100%;
    height: auto;
    border: 1px solid #d9c4a8;
}
.goods-item h3 { margin: 10px 0 4px; font-size: 0.95rem; }
.goods-item p { margin: 0 0 10px; font-size: 0.8rem; color: #8a6f5a; }
/* 动态列表 */
.news-list { max-width: 520px; margin: 0 auto; }
.news-item {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #e8dcc8;
    font-size: 0.9rem;
}
.news-item time { color: #a4785c; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.center-text { text-align: center; color: #6b5343; font-size: 0.9rem; }
.center-text a { color: #4a3226; border-bottom: 1px solid #d9c4a8; text-decoration: none; }
.center-text a:hover { color: #b3845c; }
/* お問い合わせ表单 */
.inquiry-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.9rem;
}
.inquiry-form label {
    display: block;
    margin: 0 0 6px;
    letter-spacing: 0.1em;
    color: #6b5343;
}
.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1px solid #d9c4a8;
    border-radius: 8px;
    background: #fffdf9;
    color: #4a3226;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #a4785c;
    box-shadow: 0 0 0 3px rgba(164, 120, 92, 0.15);
}
.inquiry-form textarea { resize: vertical; min-height: 120px; }
.inquiry-form .submit-row { text-align: center; margin-top: 4px; }
footer {
    text-align: center;
    font-size: 0.75rem;
    color: #b8a48c;
    border-top: 1px solid #e8dcc8;
    padding-top: 24px;
}
/* 年龄确认弹窗 */
.age-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(44, 30, 22, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* 未确认年龄时：背后内容全程模糊、不可点、不可选，弹窗本身除外 */
.age-locked body > :not(.age-overlay) {
    filter: blur(14px);
    pointer-events: none;
    user-select: none;
}
/* 回顶按钮（右下角，滚动后淡入；样式与主按钮 .btn 同一体系） */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #4a3226;
    color: #fdf8f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s,
                background 0.25s, box-shadow 0.25s;
}
/* !important 用于覆盖 JS 写入的内联安全网样式 */
.back-to-top.show { opacity: 1 !important; visibility: visible !important; transform: none; }
.back-to-top:hover {
    background: #8a6547;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 50, 38, 0.25);
}
.age-card {
    background: #fdf8f2;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.age-card img { width: 96px; height: 96px; }
.age-card h3 { margin: 12px 0 6px; font-size: 1.1rem; letter-spacing: 0.2em; }
.age-card p { margin: 0 0 24px; font-size: 0.85rem; color: #8a6f5a; }
.age-card .actions { display: flex; gap: 12px; justify-content: center; }
@media (max-width: 560px) {
    .card-row { flex-direction: column; text-align: center; }
    .card-row img { max-width: 100%; }
    .card-row .actions { justify-content: center; }
}

/* ===== 门户版式（游戏区，あざらしそふと式分区） ===== */
.container.wide { max-width: 960px; }
/* 顶栏：左 logo + 双语菜单 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 4px;
    border-bottom: 1px solid #e8dcc8;
    margin-bottom: 40px;
}
.topbar .logo { width: 200px; height: auto; }
nav.portal-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.portal-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 12px;
    border-bottom: none;
    letter-spacing: normal;
    transition: background 0.2s;
}
nav.portal-nav a .nav-ja { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; }
nav.portal-nav a .nav-en {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: #a4785c;
    text-transform: uppercase;
}
nav.portal-nav a:hover { background: #f0e4d5; border-bottom: none; }
nav.portal-nav a.current { background: #4a3226; }
nav.portal-nav a.current, nav.portal-nav a.current .nav-en { color: #fdf8f2; }
/* 主视觉横幅 */
.hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #4a3226 0%, #8a6547 60%, #b3845c 100%);
    color: #fdf8f2;
    padding: 72px 40px;
    text-align: center;
    margin-bottom: 48px;
}
.hero .hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    border: 1px solid rgba(253, 248, 242, 0.6);
    border-radius: 999px;
    padding: 4px 18px;
    margin-bottom: 20px;
}
.hero h1 { margin: 0 0 10px; font-size: 2rem; letter-spacing: 0.15em; font-weight: 700; }
.hero p { margin: 0 0 28px; font-size: 0.9rem; opacity: 0.85; letter-spacing: 0.1em; }
.hero .btn { background: #fdf8f2; color: #4a3226; }
.hero .btn:hover { background: #f0e4d5; }
/* NEWS：日期 + 分类标签 + 标题 */
.portal-news { max-width: 760px; margin: 0 auto; }
.portal-news .news-item { align-items: baseline; padding: 12px 0; }
.news-cat {
    flex-shrink: 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #a4785c;
    border: 1px solid #d9c4a8;
    border-radius: 4px;
    padding: 1px 8px;
    white-space: nowrap;
}
.news-item .news-title { color: #4a3226; }
/* 作品封面网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.work-item { text-align: center; }
.work-item .jacket {
    position: relative;
    border: 1px solid #d9c4a8;
    border-radius: 12px;
    overflow: hidden;
    background: #f0e4d5;
}
.work-item .jacket img { width: 100%; height: auto; display: block; }
.work-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(74, 50, 38, 0.88);
    color: #fdf8f2;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 3px 12px;
    border-radius: 999px;
}
.work-item h3 { margin: 12px 0 2px; font-size: 1rem; letter-spacing: 0.05em; }
.work-item .work-date { margin: 0 0 10px; font-size: 0.8rem; color: #a4785c; letter-spacing: 0.1em; }
/* 商店通栏横幅 */
.shop-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shop-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 20px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #d9c4a8;
    background: #fffdf9;
    color: #4a3226;
    transition: transform 0.25s, box-shadow 0.25s;
}
.shop-banner:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74, 50, 38, 0.15); }
.shop-banner .shop-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.2em; }
.shop-banner .shop-desc { font-size: 0.78rem; color: #a4785c; letter-spacing: 0.08em; }
.shop-banner.coming { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
@media (max-width: 640px) {
    .hero { padding: 52px 22px; }
    .hero h1 { font-size: 1.4rem; }
    .shop-banners { grid-template-columns: 1fr; }
    .topbar { flex-direction: column; gap: 12px; }
    .topbar .logo { width: 170px; }
    nav.portal-nav { justify-content: center; }
    nav.portal-nav a { padding: 6px 12px; }
    .portal-news .news-item { flex-wrap: wrap; row-gap: 4px; }
}

/* ===== 主视觉轮播（大封面 + 左右箭头 + 定时滑动） ===== */
.carousel { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 48px; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.slide { min-width: 100%; padding: 88px 60px; text-align: center; color: #fdf8f2; }
.slide-1 { background: linear-gradient(135deg, #4a3226 0%, #8a6547 60%, #b3845c 100%); }
.slide-2 { background: linear-gradient(135deg, #2c1e16 0%, #4a3226 55%, #8a6547 100%); }
.slide-3 { background: linear-gradient(135deg, #8a6547 0%, #b3845c 55%, #d9c4a8 100%); }
.slide .hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    border: 1px solid rgba(253, 248, 242, 0.6);
    border-radius: 999px;
    padding: 4px 18px;
    margin-bottom: 20px;
}
.slide h1 { margin: 0 0 10px; font-size: 2rem; letter-spacing: 0.15em; font-weight: 700; }
.slide p { margin: 0 0 28px; font-size: 0.9rem; opacity: 0.85; letter-spacing: 0.1em; }
.slide .btn { background: #fdf8f2; color: #4a3226; }
.slide .btn:hover { background: #f0e4d5; }
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(253, 248, 242, 0.25);
    color: #fdf8f2;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(253, 248, 242, 0.5); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(253, 248, 242, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active { background: #fdf8f2; transform: scale(1.25); }
@media (max-width: 640px) {
    .slide { padding: 60px 28px; }
    .slide h1 { font-size: 1.4rem; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
}
