html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
}

.body-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header */
.site-header {
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.site-header h1 {
    margin-bottom: 0;
}

.site-header h1 a {
    text-decoration: none;
    color: inherit;
}

.site-header h2 {
    margin-top: 0;
}

.site-header h2 a {
    color: #b58863;
    text-decoration: none;
}


/* Footer */
.site-footer {
    position: static;
    text-align: center;
    padding: 16px;
    border-top: 1px solid #ddd;
    background: #fff;
    font-size: 0.8rem;
}

.site-footer a {
    color: #0066cc;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 6px;
    color: #aaa;
}

.site-footer p {
    color: #555;
}


/* プロフィール */
.profile-box {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 20px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
}

.profile-title {
    font-size: 1.0rem;
    margin: 0 auto 5px;
}

.profile-name {
    font-size: 1.0rem;
    margin: 0 auto 5px;
    color: #eb6101;
    font-weight: bold;
}

/* アイコン */
.profile-icon {
    border-radius: 50%;
    /* 丸 */
    border: 1px solid #ddd;
    object-fit: cover;

}

.profile-icon img {
    width: 60px;
    height: 60px;
    padding: 15px;
}

/* テキスト */
.profile-text {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.7;
    width: min(90vmin, 400px);
}

/* スマホ対応 
@media (max-width: 768px) {
    .profile-box {
        flex-direction: column;
        text-align: center;
    }
} */

/* Main Wrapper */
.content {
    flex: 1;
    margin: 24px auto;
    padding: 0 16px;
    max-width: min(90vmin, 600px);
}

.post-grid {
    display: grid;
    gap: 25px;
}

.post-card {
    display: block;
    padding: 20px;
    border: 1px solid #eee;
    transition: 0.2s;
    background-color: #fff;
    text-decoration: none;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-card h2 {
    margin: 0 0 10px;
    color: #111;
}


.description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.date {
    font-size: 0.9rem;
    text-align: end;
    color: #999;
}


/* detailページ */

.post-detail {
    background-color: #fff;
    padding: 50px 30px;
}

.post-detail h2 {
    margin: 0 0 10px;
    color: #111;
    text-align: center;
}

.post-detail .toc {
    width: 90%;
    margin: 40px auto;
    border: 1px solid #f0d9b5;
}

.post-detail .toc p {
    margin: 0;
    padding: 5px 0;
    background-color: #f0d9b5;
    text-align: center;
}

.post-detail .toc a {
    text-decoration: none;
    color: #333;
}

.post-detail .toc li {
    color: #333;
    margin: 5px auto;
}


.post-detail .post-section {
    font-size: 1.1rem;
    width: 90%;
    margin: 20px auto 50px;
}

.section-image {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.post-detail .post-section p {
    color: #333;
    line-height: 1.7;
    margin: 10px auto;
    font-size: 16px;
}

.post-detail .post-section li {
    color: #333;
    line-height: 1.7;
    font-size: 16px;
}

.gamepage-link {
    width: fit-content;
    margin: 30px auto 0;
}

.gamepage-link a {
    text-decoration: none;
    color: #333;
}

.gamepage-link-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 30px;
    height: 15px;
    width: 150px;
    background-color: #f0d9b5;
}

.post-navigation {
    display: flex;
    justify-content: space-between; /* ← これが重要 */
    align-items: center;            /* 縦中央揃え（任意） */
    margin: 40px auto 10px;
    width: 50%;
}

.post-navigation img {
    width: 25px;
    height: 25px;
}



/* つかう？ */
.play-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: black;
    color: white;
    text-decoration: none;
}

.play-btn:hover {
    opacity: 0.8;
}

.replay-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f8f8;
}


#replay-btn {
    padding: 10px 20px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}