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

body {
    font-family: "MS PGothic", "MS Gothic", sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 年齢確認画面 */
#ageCheck {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.age-box {
    background: #1a1a2e;
    border: 3px solid #ff6b9d;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    text-align: center;
}

.age-box h1 {
    color: #ffd700;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #ff1493;
}

.age-box p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 14px;
}

.age-box form {
    margin: 0;
}

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

.age-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.age-btn.yes {
    background: #ff1493;
    color: #fff;
    border-color: #ff69b4;
}

.age-btn.yes:hover {
    background: #ff69b4;
    box-shadow: 0 0 15px #ff1493;
}

.age-btn.no {
    background: #333;
    color: #fff;
    border-color: #666;
}

.age-btn.no:hover {
    background: #555;
}

/* メインコンテンツ・ページコンテンツ */
#mainSite,
.page-content {
    display: block;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border: 3px double #ffd700;
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: #ffd700;
    text-shadow: 3px 3px #ff1493;
    margin-bottom: 10px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 3px 3px #ff1493, 0 0 10px #ffd700; }
    50% { text-shadow: 3px 3px #ff1493, 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

.subtitle {
    color: #ff69b4;
    font-size: 14px;
}

.section {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #4a90e2;
    padding: 20px;
    margin-bottom: 20px;
}

.section h2 {
    color: #4af;
    border-bottom: 2px dotted #4af;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
}

/* 全作品リンク */
.all-works-link {
    float: right;
    font-size: 14px;
    font-weight: normal;
}

.all-works-link a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s;
}

.all-works-link a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.section p {
    line-height: 1.8;
    color: #ddd;
}

/* リンクの共通スタイル */
a {
    color: #4af;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff69b4;
}

/* 作品リスト - シンプル版 */
.works-list {
    list-style: none;
}

.works-list li {
    margin: 10px 0;
    transition: background 0.3s;
}

.works-list li:hover {
    background: rgba(74, 144, 226, 0.1);
}

.works-list li a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #ddd;
    gap: 15px;
}

.works-list li a:hover {
    color: #fff;
}

/* 作品サムネイル */
.work-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #4a90e2;
    flex-shrink: 0;
}

.work-info {
    flex: 1;
}

/* 作品詳細のメイン画像 */
.work-main-image {
    text-align: center;
    margin: 0;
    padding: 0;
}

.work-main-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border: 3px solid #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    display: block;
}

/* サンプル画像ギャラリー */
.sample-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sample-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid #4a90e2;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.sample-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

/* お知らせのレイアウト */
.news-list {
    line-height: 1.8;
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-badge {
    display: inline-block;
    width: 80px;
    flex-shrink: 0;
}

.news-date {
    display: inline-block;
    width: 100px;
    flex-shrink: 0;
    color: #4af;
}

.news-content {
    flex: 1;
    color: #ddd;
}

footer {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 12px;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* カウンター */
.counter {
    display: inline-block;
    background: #000;
    color: #0f0;
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    border: 1px solid #0f0;
    margin: 10px 0;
}

/* 戻るボタン */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 10px 20px;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid #4a90e2;
    color: #4af;
    text-decoration: none;
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(74, 144, 226, 0.3);
    color: #ff69b4;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .age-box {
        padding: 30px 20px;
    }
    
    .age-box h1 {
        font-size: 24px;
    }
    
    .age-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-btn {
        width: 100%;
    }
    
    .section {
        padding: 15px;
    }
    
    .section h2 {
        font-size: 18px;
    }
    
    .all-works-link {
        float: none;
        display: block;
        margin-top: 10px;
        font-size: 13px;
    }
    
    .news-item {
        flex-wrap: wrap;
    }
    
    .news-badge {
        width: 70px;
    }
    
    .news-date {
        width: 90px;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .section h2 {
        font-size: 16px;
    }
    
    .age-box h1 {
        font-size: 20px;
    }
    
    .age-box p {
        font-size: 13px;
    }
    
    .news-badge {
        width: 65px;
        font-size: 12px;
    }
    
    .news-date {
        width: 85px;
        font-size: 13px;
    }
    
    .news-content {
        font-size: 13px;
    }
}
