/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Noto+Serif+JP:wght@400;700&display=swap');

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    min-height: 100%;
    font-family: 'Noto Serif JP', serif;
    color: #f5deb3;
    background-image: url('../img/background-map.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-container {
    width: 100%;
    background-color: rgba(43, 35, 29, 0.9);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: #f0e68c;
}

.header h1 {
    font-family: 'MedievalSharp', cursive;
    font-size: 3.5em;
    text-shadow: 2px 2px 5px #000;
}

.header .subtitle {
    font-size: 1.2em;
    color: #d2b48c;
}

/* Story Scroll Area */
.story-scroll {
    width: 100%;
    max-width: 900px;
}

.story-section {
    margin-bottom: 60px;
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Alternate layout for even sections */
.story-section:nth-child(even) {
    flex-direction: row-reverse;
}

.story-image, .story-image-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-image img, .story-image-grid img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid #7a6a5d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.story-text {
    flex: 1.2;
    padding: 20px;
    background-color: rgba(210, 180, 140, 0.1);
    border-radius: 10px;
    border-left: 3px solid #d2b48c;
}

.story-text h2 {
    font-family: 'MedievalSharp', cursive;
    font-size: 2em;
    margin-bottom: 15px;
    color: #f0e68c;
}

.story-text p {
    font-size: 1.1em;
    line-height: 1.8;
}

.path-title {
    display: block;
    font-weight: bold;
    color: #f0e68c;
    margin-top: 10px;
}

/* Epilogue and Start Button */
.story-epilogue {
    text-align: center;
    padding: 40px 0;
    font-size: 1.5em;
    color: #f0e68c;
}

.start-button {
    display: inline-block;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(#4b6928, #3a521e);
    border: 2px solid #a3c182;
    border-radius: 10px;
    padding: 15px 40px;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.start-button:hover {
    background: linear-gradient(#5a7e30, #4c6628);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }
    .story-section, .story-section:nth-child(even) {
        flex-direction: column;
    }
    .story-text {
        border-left: none;
        border-top: 3px solid #d2b48c;
    }
}

/* スマートフォン向け画面 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    .start-button {
        font-size: 1.2em;
        padding: 12px 30px;
    }
}