* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Old Mincho", serif;
    background: #000000 url('images/background.png') center center / cover no-repeat fixed;
    background-color: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
    position: relative;
}
.hina-mincho-regular {
    font-family: "Hina Mincho", serif;
    font-weight: 400;
    font-style: normal;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(40, 40, 70, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #292c3d80 0%, #af4f0030 100%);
    color: #ffffff;
    border-bottom: 2px solid rgba(211, 95, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.container.visible .header {
    opacity: 1;
    transform: translateY(0);
}

.header h1 {
    font-family: "Hina Mincho", serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.tabs {
    display: flex;
    background: #02020300;
    border-bottom: 2px solid rgba(211, 95, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.container.visible .tabs {
    opacity: 1;
    transform: translateY(0);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    font-family: "Hina Mincho", serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    position: relative;
}

.tab-button:hover {
    background: #af4f0030;
    color: #e0e0e0;
}

.tab-button.active {
    color: #ffffff;
    background: #00000000;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d35f00;
}

.tab-content {
    display: none;
    padding: 40px 20px;
    min-height: 300px;
    background: rgba(26, 26, 26, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container.visible .tab-content.active {
    opacity: 1;
}

.tab-content.active {
    display: block;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 100%;
}

.button {
    background: rgba(10, 9, 19, 0.5);
    border: 1px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.1);
    border-color: #d35f0070;
    background: rgba(255, 136, 0, 0.1);
}

.button a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-decoration: none;
    color: #ebebeb;
    width: 100%;
    height: 100%;
}

.button-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
}

.button-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.button-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
    width: 100%;
    background: rgba(150, 72, 0, 0.1);
}

.footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: #999;
    font-size: 0.9rem;
    border-top: 2px solid rgba(211, 95, 0, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .tab-button {
        padding: 15px;
        font-size: 1rem;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .button a {
        padding: 0;
    }

    .button-icon {
        font-size: 2rem;
    }

    .button-text {
        padding: 12px 8px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 30px 15px;
    }

    .button-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .button a {
        padding: 0;
    }

    .button-text {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

/* 4つまで横並びの制限 */
@media (min-width: 769px) {
    .button-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 埋め込みコンテンツ用スタイル */
.embeds-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.embed-container {
    width: 100%;
    background: rgba(10, 19, 10, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.embed-container:hover {
    box-shadow: 0 4px 16px rgba(255, 136, 0, 0.2);
    border-color: #d35f0070;
}

.embed-container iframe {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.embed-credit {
    font-size: 10px;
    color: #cccccc;
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Interstate, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Garuda, Verdana, Tahoma, sans-serif;
    font-weight: 100;
    margin-top: 8px;
    text-align: center;
}

.embed-credit a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.embed-credit a:hover {
    color: #ffffff;
}

/* 埋め込みコンテンツのレスポンシブ対応 */
@media (max-width: 768px) {
    .embeds-section {
        margin-top: 30px;
        gap: 20px;
    }

    .embed-container {
        padding: 15px;
    }

    .embed-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .embeds-section {
        margin-top: 20px;
        gap: 15px;
    }

    .embed-container {
        padding: 10px;
    }

    .embed-container iframe {
        height: 250px;
    }
}

/* ジャンルセクション用スタイル */
.genre-section {
    margin-bottom: 40px;
}

.genre-section:last-child {
    margin-bottom: 0;
}

.genre-title {
    font-family: "Hina Mincho", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(211, 95, 0, 0.5);
}

/* 自由記述フィールド用スタイル */
.text-field-container {
    width: 100%;
    margin-top: 10px;
}

.free-text-field {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #00000070;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(10, 19, 10, 0.2);
    color: #e0e0e0;
}

.free-text-field:focus {
    outline: none;
    border-color: #d35f0070;
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.2);
}

.free-text-field:empty::before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .genre-section {
        margin-bottom: 30px;
    }

    .genre-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .free-text-field {
        min-height: 120px;
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .genre-section {
        margin-bottom: 25px;
    }

    .genre-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .free-text-field {
        min-height: 100px;
        padding: 10px;
        font-size: 0.9rem;
    }
}

