@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #8b0000);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    animation: pulse-shadow 2s infinite;
}

/* フッタースタイル */
footer {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.95) 20%,
            rgba(20, 0, 0, 1) 100%);
    padding: 60px 20px 40px;
    margin-top: 100px;
    text-align: center;
    position: relative;
    border-top: 3px solid rgba(220, 38, 38, 0.3);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(220, 38, 38, 0.8),
            transparent);
    animation: slideGlow 3s ease-in-out infinite;
}

@keyframes slideGlow {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    color: #dc2626;
    text-shadow:
        0 0 10px rgba(220, 38, 38, 0.5),
        0 0 20px rgba(220, 38, 38, 0.3);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.3em;
}

.footer-subtitle {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #dc2626;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #dc2626;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(220, 38, 38, 0.5),
            transparent);
    margin: 30px auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 14px; height: 14px; }

.copyright {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 20px;
    letter-spacing: 0.05em;
}

.blood-symbol {
    color: #dc2626;
    font-size: 1.2rem;
    margin: 0 10px;
    display: inline-block;
    animation: bloodPulse 2s ease-in-out infinite;
}

@keyframes bloodPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 15px 30px;
    }

    .footer-title {
        font-size: 2rem;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@keyframes pulse-shadow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(220, 38, 38, 0.6);
    }
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* スマホでのトップに戻るボタン */
@media (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* 火の粉エフェクト */
.ember-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.ember {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ff6b35, #ff4500, #ff0000);
    border-radius: 50%;
    box-shadow: 0 0 6px #ff4500, 0 0 10px #ff6b35;
    opacity: 0;
    animation: floatEmber 10s infinite linear;
}

@keyframes floatEmber {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(var(--sway, 100px)) scale(1.5);
        opacity: 0;
    }
}

.ember:nth-child(odd) {
    animation-duration: 12s;
    width: 2px;
    height: 2px;
}

.ember:nth-child(even) {
    animation-duration: 8s;
    animation-delay: 1s;
}

.ember:nth-child(3n) {
    animation-duration: 15s;
    animation-delay: 2s;
    width: 4px;
    height: 4px;
}

.ember:nth-child(4n) {
    animation-delay: 3s;
}

.ember:nth-child(5n) {
    animation-delay: 4s;
    animation-duration: 11s;
}

/* コンテナ設定 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 情報セクション共通スタイル */
.info-section {
    margin: 100px 0;
    /* autoを削除 */
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
}

/* 求人情報セクションの特別設定 */
#recruit.info-section {
    padding: 80px 20px;
    /* セクション内にパディング */
    max-width: 100%;
    margin: 0;
    /* マージンを0に */
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#recruit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(139, 0, 0, 0.03) 35px,
            rgba(139, 0, 0, 0.03) 70px);
    pointer-events: none;
}

/* 求人情報のグリッド - 統一スタイルで縦並び */
#recruit .info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

#recruit .info-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 40px;
    width: 100%;
}

#recruit .info-card h3 {
    color: #dc2626;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    border-bottom: 3px solid rgba(220, 38, 38, 0.3);
    padding-bottom: 15px;
}

#recruit .info-card p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

#recruit .info-card strong {
    color: #ef4444;
    font-weight: 700;
}



.info-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.info-card h3 {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    padding-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* サポートセクションのカードを中央配置 */
#support .info-card {
    max-width: 600px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 40px;
    text-align: center;
}

#support .info-card h3 {
    font-family: 'Noto Serif JP', serif;
    color: #dc2626;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

#support .info-card p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

#support .info-card a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#support .info-card a:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* 更新情報 */
.news-list {
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item dt {
    color: #dc2626;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 90px;
    font-weight: 700;
}

.news-item dd {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.news-item dd a {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item dd a:hover {
    color: #dc2626;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
        gap: 4px;
    }
}

/* 更新情報 - 折りたたみ */
.news-item.is-hidden {
    display: none;
}
.news-toggle-wrap {
    text-align: center;
    margin-top: 18px;
}
.news-toggle-btn {
    background: rgba(220, 38, 38, 0.08);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 8px 22px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}
.news-toggle-btn:hover {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.55);
}

/* 作品一覧セクション */
.works-section {
    padding: 80px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



::selection {
    background: #dc2626;
    color: #ffffff;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    /* 全体を明朝体に統一 */
    background: #050505;
    /* 完全な黒ではなく、深みのある黒 */
    color: #e0e0e0;
    /* 真っ白ではなく銀色がかった白 */
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: default;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3f0000, #8b0000, #3f0000);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* テクスチャオーバーレイ */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ヴィネット効果 - 株式会社闇っぽく濃く */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8999;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
    animation: vignettePulse 5s ease-in-out infinite;
}

@keyframes vignettePulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

/* マウスストーカー */
.cursor-stalker {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #dc2626;
}

.cursor-stalker.active {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

/* 彼岸花背景を右下に固定 */
.higan-bg {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 450px;
    height: 450px;
    background-image: url('../img/bg_higan.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.6;
    /* さらに濃く */
    z-index: 0;
    pointer-events: none;
    /* 風で揺れるアニメーション */
    animation: swayFlower 8s ease-in-out infinite;
    transform-origin: bottom right;
}

/* 彼岸花の揺れアニメーション */
@keyframes swayFlower {

    0%,
    100% {
        transform: rotate(-2deg) translateX(0px);
    }

    25% {
        transform: rotate(1deg) translateX(-5px);
    }

    50% {
        transform: rotate(-1.5deg) translateX(3px);
    }

    75% {
        transform: rotate(2deg) translateX(-3px);
    }
}

@media (max-width: 768px) {
    .higan-bg {
        width: 280px;
        height: 280px;
        opacity: 0.5 !important;
        z-index: 1;
        animation: swayFlower 10s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .higan-bg {
        width: 220px;
        height: 220px;
        opacity: 0.45 !important;
        z-index: 1;
    }
}

/* 年齢確認モーダル */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.age-modal-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.age-modal-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 30px;
    font-style: italic;
}

.age-modal-warning {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #e5e7eb;
}

.age-modal-question {
    font-size: 1.4rem;
    color: #fafafa;
    margin-bottom: 40px;
    font-weight: 600;
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-btn {
    padding: 14px 35px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.age-btn.enter {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.age-btn.enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.age-btn.leave {
    background: #27272a;
    border: 1px solid #3f3f46;
}

.age-btn.leave:hover {
    background: #3f3f46;
}

.age-modal-footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #52525b;
}

/* メインコンテンツ */
.main-content {
    display: none;
}

.main-content.show {
    display: block;
}

/* 蛆虫エフェクト */
.maggot-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    /* 最前面に */
    opacity: 0.9;
}

/* 背景の蛆虫画像 */
.bg-maggot {
    position: fixed;
    width: 8px;
    /* さらに小さく */
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 9997;
    opacity: 0.7;
}

/* ロゴの蛆虫画像 */
.logo-maggot {
    position: absolute;
    width: 5px;
    /* 半分サイズ */
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: 11;
}

.maggot {
    position: absolute;
    background: linear-gradient(90deg,
            #f0e6d2 0%,
            #fff8e7 40%,
            #f5e6d3 60%,
            #e8d4b0 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    filter: blur(0.5px);
    animation: squirm 3s infinite ease-in-out;
    transform-origin: center;
}

.maggot::before {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: #2a2622;
    border-radius: 50%;
    top: 15%;
    left: 20%;
    opacity: 0.4;
}

.maggot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(139, 69, 19, 0.2) 50%,
            transparent 100%);
    border-radius: inherit;
    animation: pulse 1.5s infinite ease-in-out;
}

/* スクロール出現アニメーション */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ナビゲーションのGlassmorphism */
nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* タイトルの文字詰め強化 */
.site-title {
    font-family: 'Shippori Mincho B1', serif;
    letter-spacing: 0.5em;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.section-title {
    font-family: 'Shippori Mincho B1', serif;
    letter-spacing: 0.2em;
}

@keyframes squirm {

    0%,
    100% {
        transform: scaleX(1) scaleY(1);
    }

    25% {
        transform: scaleX(0.9) scaleY(1.1);
    }

    50% {
        transform: scaleX(1.1) scaleY(0.9);
    }

    75% {
        transform: scaleX(0.95) scaleY(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* 背景のダークオーバーレイを追加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%),
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: breathe 15s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.8;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 50px,
            rgba(139, 0, 0, 0.2) 50px,
            rgba(139, 0, 0, 0.2) 51px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 50px,
            rgba(139, 0, 0, 0.2) 50px,
            rgba(139, 0, 0, 0.2) 51px);
    pointer-events: none;
    z-index: 1;
}

/* ノイズエフェクト */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    z-index: 1000;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    animation: noise 0.2s infinite;
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-1%, -1%);
    }

    40% {
        transform: translate(1%, 1%);
    }

    60% {
        transform: translate(-1%, 1%);
    }

    80% {
        transform: translate(1%, -1%);
    }
}

/* 血のしずくアニメーション */
.blood-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
}

.blood-drop {
    position: absolute;
    background: radial-gradient(circle,
            #dc2626 0%,
            #991b1b 30%,
            #7f1d1d 60%,
            #450a0a 100%);
    border-radius: 50%;
    animation: bloodDripFall linear infinite;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.blood-drop::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 150%;
    top: 80%;
    left: 0;
    background: linear-gradient(to bottom,
            #991b1b 0%,
            #7f1d1d 30%,
            transparent 100%);
    border-radius: 50%;
    opacity: 0.8;
}

@keyframes bloodDripFall {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    70% {
        transform: translateY(70vh) scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: translateY(105vh) scale(0.8);
        line-height: 1.8;
        /* 行間を広げる */
        letter-spacing: 0.05em;
        /* 文字間隔を少し広げる */
        opacity: 0;
    }
}

.container {
    width: 90%;
    max-width: 1000px;
    /* 少し狭めて没入感を出す */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

section {
    margin-bottom: 150px;
    /* セクション間を大幅に広げる */
    position: relative;
}

/* スマホでロゴを大きく */
@media (max-width: 768px) {
    .site-title {
        font-size: 4.5rem !important;
        max-width: 280px !important;
    }

    /* スマホでも蛆虫を見やすく */
    .logo-maggot {
        width: 4px !important;
        height: 16px !important;
    }

    .bg-maggot {
        width: 6px !important;
        height: 24px !important;
    }
}



/* ロゴの色調整 */
header {
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    /* 背景を少し暗くしてコントラストを上げる */
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
}

header::before,
header::after {
    content: '〇';
    position: absolute;
    width: 80px;
    height: 80px;
    font-size: 4em;
    color: #8b0000;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
}

header::before {
    top: 20px;
    left: 20px;
    transform: rotate(15deg);
}

header::after {
    top: 20px;
    right: 20px;
    transform: rotate(-15deg);
}

.site-title {
    margin-bottom: 10px;
    position: relative;
    display: block;
    /* ブロック要素にして改行を強制 */
    margin-left: auto;
    margin-right: auto;
    /* SVGフィルタ適用 - 液状化 */
    filter: url(#liquid-distortion);
    transition: filter 0.3s ease;
    width: 100%;
    max-width: 400px;
    /* 画像の最大幅 */
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

.site-title:hover {
    filter: url(#liquid-distortion) drop-shadow(0 0 15px #ff0000);
    animation: glitch-intense 0.2s infinite;
}

@keyframes glitch-intense {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-5px, 5px);
    }

    40% {
        transform: translate(-5px, -5px);
    }

    60% {
        transform: translate(5px, 5px);
    }

    80% {
        transform: translate(5px, -5px);
    }

    100% {
        transform: translate(0);
    }
}

/* サブタイトル - もっと目立たせる */
.subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    /* サイズアップ */
    letter-spacing: 0.2em;
    color: #ffffff;
    /* 完全に白く */
    text-shadow:
        0 0 10px rgba(220, 38, 38, 0.9),
        0 0 20px rgba(220, 38, 38, 0.6);
    /* 強烈なグロー */
    margin-top: 20px;
    opacity: 1;
    position: relative;
    z-index: 2;
    font-weight: 700;
    /* 太く */
    font-weight: 700;
    /* 太く */
    display: inline-block;
    /* 赤い下線削除 */
    margin-right: -0.2em;
    /* letter-spacing分のズレを補正 */
}

/* ロゴ専用の蛆虫コンテナ */
.logo-maggot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    /* 文字の範囲に収める */
    overflow: hidden;
}

/* テキストベースのグリッチ要素は削除 */
.site-title::before,
.site-title::after {
    display: none;
}

@keyframes glitch {

    0%,
    100% {
        text-shadow:
            0.05em 0 0 rgba(220, 38, 38, .75),
            -0.025em -0.05em 0 rgba(139, 0, 0, .75),
            0.025em 0.05em 0 rgba(0, 0, 0, .75);
    }

    25% {
        text-shadow:
            -0.05em -0.025em 0 rgba(220, 38, 38, .75),
            0.025em 0.025em 0 rgba(139, 0, 0, .75),
            -0.05em -0.05em 0 rgba(0, 0, 0, .75);
    }

    50% {
        text-shadow:
            0.025em 0.05em 0 rgba(220, 38, 38, .75),
            0.05em 0 0 rgba(139, 0, 0, .75),
            0 -0.05em 0 rgba(0, 0, 0, .75);
    }

    75% {
        text-shadow:
            0.05em 0 0 rgba(220, 38, 38, .75),
            -0.05em -0.025em 0 rgba(139, 0, 0, .75),
            0.05em 0.025em 0 rgba(0, 0, 0, .75);
    }
}

@keyframes glitch-1 {

    0%,
    100% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    25% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    50% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    75% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip: rect(65px, 9999px, 40px, 0);
    }

    25% {
        clip: rect(30px, 9999px, 70px, 0);
    }

    50% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    75% {
        clip: rect(45px, 9999px, 90px, 0);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ナビゲーション */
nav {
    margin: 40px auto;
    padding: 0;
    text-align: center;
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav li {
    flex: 1;
    min-width: 120px;
}

nav a {
    display: block;
    padding: 20px 25px;
    color: #e5e7eb;
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    border-right: 1px solid rgba(220, 38, 38, 0.1);
}

nav li:last-child a {
    border-right: none;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
}

nav a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

nav a:hover::before {
    width: 100%;
}

/* スライドショー */
/* トップバナー */
.top-banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 20px;
    background: #18181b;
}

.top-banner a {
    display: block;
    position: relative;
}

.top-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.top-banner:hover img {
    transform: scale(1.03);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-banner:hover .banner-overlay {
    opacity: 1;
}

.banner-title {
    color: #fafafa;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-description {
    color: #dc2626;
    font-size: 1rem;
    font-weight: 600;
}

/* トップバナー スライダー */
.top-banner-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 20px;
    background: #18181b;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.banner-slide:hover img {
    transform: scale(1.03);
}

.banner-slide .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-slide:hover .banner-overlay {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.banner-dot.active {
    background: #dc2626;
}

/* バナー矢印ボタン */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(220, 38, 38, 0.8);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* スライドショー（横スライド） */
.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 768px) {
    .top-banner-slider {
        margin: 30px -15px;
        border-radius: 0;
        width: calc(100% + 30px);
    }
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .banner-arrow.prev {
        left: 10px;
    }
    .banner-arrow.next {
        right: 10px;
    }
    .banner-slide .banner-overlay {
        display: none;
    }
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    height: 500px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 20px;
    background: #18181b;
}

.slideshow-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    display: none;
    /* オーバーレイを非表示 */
}

.slide-title {
    color: #fafafa;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.slide-description {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
}

/* スライドインジケーター */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.indicator.active {
    background: #dc2626;
}

/* スライド矢印 */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover {
    background: rgba(220, 38, 38, 0.8);
}

.slide-arrow.prev {
    left: 20px;
}

.slide-arrow.next {
    right: 20px;
}

/* メインコンテンツ */
main {
    padding: 60px 0;
}

/* セクションタイトル */
/* セクションタイトル */
/* セクションタイトル */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #fafafa;
    font-weight: 900;
    letter-spacing: 0.2em;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8b0000;
    font-size: 0.6em;
    opacity: 0.6;
}

.section-title::before {
    left: 20%;
}

.section-title::after {
    right: 20%;
}

/* 作品セクション */
.works-section {
    margin: 100px 0;
    padding: 0 20px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 縦長画像カード（2行分） */
/* portrait特殊レイアウト無効化 — 通常カードと同じ扱い */

/* 作品カード */
.work-card {
    background: #18181b;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* 禁バッジ削除済み */

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(220, 38, 38, 0.3);
}

.work-card-inner {
    position: relative;
}

.work-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #DC143C;
    font-size: 0.65rem;
    padding: 2px 8px;
    border: 1px solid rgba(220, 20, 60, 0.5);
    letter-spacing: 0.1em;
    z-index: 2;
    pointer-events: none;
}

.work-image {
    width: 100%;
    height: auto;
    display: block;
}

.work-content {
    padding: 20px;
    background: #18181b;
}

.work-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: #fafafa;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.work-description {
    line-height: 1.7;
    color: #9ca3af;
    font-size: 0.95rem;
}

.work-link {
    margin-top: 20px;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* その他のセクション */
.info-section {
    margin: 100px 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, #18181b 0%, #0f0f0f 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    font-family: 'Noto Serif JP', serif;
    color: #fafafa;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.info-card p,
.info-card ul {
    line-height: 1.8;
    color: #9ca3af;
    font-size: 0.95rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #dc2626;
}

.info-card a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.info-card a:hover {
    text-decoration: underline;
}

/* フォーム */
.info-card form {
    max-width: 600px;
    margin: 0 auto;
}

/* フォーム */
.info-card form {
    max-width: 600px;
    margin: 0 auto;
}

/* フォーム */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #fafafa;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fafafa;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #5a0000 0%, #8b0000 50%, #5a0000 100%);
    background-size: 200% 100%;
    border: 1px solid rgba(220, 38, 38, 0.6);
    border-radius: 4px;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(239, 68, 68, 0.8);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.4);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fafafa;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    background: rgba(255, 255, 255, 0.08);
}

/* 求人情報セクション */
#recruit {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* 幅を100%に */
}

#recruit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(139, 0, 0, 0.03) 35px,
            rgba(139, 0, 0, 0.03) 70px);
    pointer-events: none;
}

/* 求人情報のグリッドレイアウト - 統一スタイルで縦並び！ */
#recruit .info-grid {
    display: block !important;
    /* 強制的にブロック表示 */
    margin-top: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

#recruit .info-card {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 40px;
    margin-bottom: 30px;
    /* カード間の余白 */
    width: 100% !important;
    /* 幅を100%に強制 */
    display: block !important;
    /* ブロック表示を強制 */
    box-sizing: border-box;
}

#recruit .info-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#recruit .info-card h3 {
    font-family: 'Noto Serif JP', serif;
    color: #dc2626;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    position: relative;
}

#recruit .info-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dc2626;
}

#recruit .info-card p {
    margin-bottom: 20px;
    line-height: 1.9;
}

#recruit .info-card p strong {
    color: #ef4444;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 15px;
}

#recruit .info-card p strong::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-size: 0.7em;
}

/* 応募方法カードの特別スタイル */
#recruit .info-card:last-child {
    grid-column: 1 / -1;
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

#recruit .info-card:last-child h3 {
    text-align: center;
    font-size: 1.8rem;
}

/* 求人内容のリストスタイル */
#recruit .info-card p br+・ {
    display: inline-block;
    margin-left: 15px;
}

/* 警告セクション */
.warning-section {
    margin: 100px 0;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    text-align: center;
}

.warning-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 0.2em;
    animation: flicker 2s infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    10% {
        opacity: 0.8;
    }

    20% {
        opacity: 1;
    }

    30% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.7;
    }

    60% {
        opacity: 1;
    }

    80% {
        opacity: 0.85;
    }
}

.warning-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #e5e7eb;
}

/* フッター */
footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 100px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fafafa;
}

.copyright {
    color: #52525b;
    font-size: 0.85rem;
    margin-top: 30px;
}

.copyright .skull {
    display: inline-block;
    font-size: 1.5rem;
    margin-bottom: 10px;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 隠しメッセージ */
.hidden-message {
    display: none;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .slideshow-container {
        height: 350px;
        border-radius: 15px;
    }

    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }

    .work-card {
        border-radius: 10px;
    }

    .work-card.portrait {
        grid-row: span 1;
    }

    .work-card.portrait .work-card-inner {
        height: auto;
    }

    .work-card.portrait .work-image {
        flex: none;
        object-fit: initial;
        width: 100%;
        height: auto;
    }

    .work-content {
        padding: 15px;
    }

    .work-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .info-section {
        margin: 50px -10px;
        padding: 40px 15px;
        border-radius: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        padding: 50px 10px 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links a {
        margin: 0;
    }

    .container {
        padding: 0 10px;
    }

    /* トップバナー */
    .top-banner-slider {
        margin: 20px -10px;
        width: calc(100% + 20px);
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-description {
        font-size: 0.8rem;
    }

    .banner-overlay {
        padding: 12px;
    }

    /* 作品カード */
    .works-grid {
        gap: 12px;
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
    }

    .work-card {
        border-radius: 8px;
    }

    .work-content {
        padding: 12px;
    }

    .work-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .work-description {
        font-size: 0.8rem;
    }

    .info-section {
        margin: 40px -5px;
        padding: 30px 12px;
        border-radius: 8px;
    }

    .info-card {
        padding: 20px 15px;
    }
}

/* =========================================
   Visual Effects
   ========================================= */

/* Flashlight Overlay */
.flashlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* クリックを透過 */
    z-index: 9998;
    /* カーソルストーカーより下、コンテンツより上 */
    background: radial-gradient(circle 200px at 50% 50%,
            transparent 0%,
            rgba(0, 0, 0, 0.85) 100%);
    transition: background 0.1s ease;
    /* 滑らかに追従 */
    mix-blend-mode: multiply;
    /* 乗算で暗くする */
}

/* Dynamic Glitch Effect Class (Refined) */
.glitch-active {
    position: relative;
    color: #fff;
}

.glitch-active::before,
.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* 背景を透明に */
    opacity: 0.8;
}

.glitch-active::before {
    left: 3px;
    text-shadow: 2px 0 #ff0000;
    /* 赤色の強いノイズ */
    clip: rect(24px, 9999px, 90px, 0);
    animation: glitch-anim-subtle 2s infinite linear alternate-reverse;
}

.glitch-active::after {
    left: -3px;
    text-shadow: -2px 0 #00ffff;
    /* シアン色の強いノイズ */
    clip: rect(85px, 9999px, 140px, 0);
    animation: glitch-anim-subtle2 2.5s infinite linear alternate-reverse;
}

/* 控えめなグリッチアニメーション */
@keyframes glitch-anim-subtle {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
        transform: skew(-0.5deg);
    }

    40% {
        clip: rect(40px, 9999px, 60px, 0);
        transform: skew(0.2deg);
    }

    60% {
        clip: rect(120px, 9999px, 140px, 0);
        transform: skew(-0.2deg);
    }

    80% {
        clip: rect(20px, 9999px, 50px, 0);
        transform: skew(0.1deg);
    }

    100% {
        clip: rect(90px, 9999px, 110px, 0);
        transform: skew(0deg);
    }
}

@keyframes glitch-anim-subtle2 {
    0% {
        clip: rect(60px, 9999px, 90px, 0);
        transform: skew(-0.5deg);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
        transform: skew(0.5deg);
    }

    40% {
        clip: rect(100px, 9999px, 130px, 0);
        transform: skew(-0.2deg);
    }

    60% {
        clip: rect(30px, 9999px, 60px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(70px, 9999px, 100px, 0);
        transform: skew(-0.1deg);
    }

    100% {
        clip: rect(140px, 9999px, 160px, 0);
        transform: skew(0deg);
    }
}

/* 画像用の簡易グリッチは削除 */
img.glitch-active {
    filter: none;
    transform: none;
}

@keyframes glitch-skew {

    /* 未使用だが念のため残すか、削除してもよい */
    0% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* グリッチテキスト用ラッパー */
.glitch-text {
    display: inline-block;
    position: relative;
}

/* フッターロゴ画像 */
.footer-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}