* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #f8f5f1;
    color: #7d6e63;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.header-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #c44d34, transparent);
    margin-bottom: 40px;
}

.leaf-animation-container {
    height: 200px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.falling-leaf {
    font-size: 60px;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    animation: fall 4s ease-in-out infinite;
}

@keyframes fall {
    0% {
        top: -60px;
        transform: translateX(-50%) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) rotate(180deg);
    }
    100% {
        top: 200px;
        transform: translateX(-50%) rotate(360deg);
        opacity: 0.3;
    }
}

.main-title {
    font-size: 3.5em;
    color: #c44d34;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.subtitle {
    font-size: 1.3em;
    color: #8b5a2b;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.1);
}

section h2 {
    color: #c44d34;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

.principle-section {
    background: linear-gradient(135deg, rgba(230, 180, 34, 0.1), rgba(244, 208, 63, 0.1));
}

.tree-diagram {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 2px solid #e6b422;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(196, 77, 52, 0.2);
}

.step-number {
    font-size: 2.5em;
    color: #c44d34;
    margin-bottom: 15px;
}

.step-content h3 {
    color: #8b5a2b;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.step-content p {
    color: #7d6e63;
    font-size: 1.1em;
}

.timeline-section {
    background: linear-gradient(135deg, rgba(196, 77, 52, 0.05), rgba(139, 90, 43, 0.05));
}

.timeline-item {
    margin: 50px 0;
    padding: 30px;
    border-left: 4px solid #e6b422;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-left: 20px;
}

.timeline-date {
    font-size: 1.4em;
    color: #c44d34;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 15px;
}

.timeline-content h3 {
    color: #8b5a2b;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.tree-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 25px 0;
}

.tree-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e6b422;
}

.leaf-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #c44d34;
}

.tree-item strong {
    color: #c44d34;
    font-size: 1.2em;
}

.science-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(227, 242, 253, 0.5);
    border-left: 4px solid #2e5c3a;
    font-style: italic;
    color: #2e5c3a;
}

.interactive-section {
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.1), rgba(227, 242, 253, 0.2));
}

.forecast-tool {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid #e6b422;
}

.forecast-tool h3 {
    color: #c44d34;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

.city-selector {
    margin-bottom: 30px;
    text-align: center;
}

.city-selector label {
    font-size: 1.2em;
    color: #8b5a2b;
    margin-right: 15px;
}

.city-selector select {
    padding: 10px 20px;
    font-size: 1.1em;
    border: 2px solid #e6b422;
    border-radius: 8px;
    background: white;
    color: #7d6e63;
    cursor: pointer;
}

.forecast-result {
    padding: 25px;
    background: rgba(244, 208, 63, 0.1);
    border-radius: 8px;
}

.forecast-result p {
    font-size: 1.2em;
    color: #c44d34;
    margin-bottom: 15px;
    font-weight: bold;
}

.forecast-result ul {
    list-style: none;
    padding-left: 0;
}

.forecast-result li {
    padding: 10px 0;
    font-size: 1.1em;
    color: #7d6e63;
}

.action-suggestions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #e6b422;
}

.action-suggestions h4 {
    color: #8b5a2b;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.action-suggestions ul {
    list-style: none;
}

.action-suggestions li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.action-suggestions li:before {
    content: "🍂";
    position: absolute;
    left: 0;
}

.afterlife-section {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.1), rgba(46, 92, 58, 0.1));
}

.afterlife-journey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.journey-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #8b5a2b;
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
}

.journey-steps {
    width: 100%;
    max-width: 700px;
}

.journey-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 5px solid #c44d34;
    transition: transform 0.3s ease;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(196, 77, 52, 0.2);
}

.journey-time {
    font-weight: bold;
    color: #c44d34;
    font-size: 1.1em;
}

.journey-action {
    color: #7d6e63;
    font-size: 1.1em;
}

.philosophy-quote {
    text-align: center;
    font-size: 1.5em;
    color: #2e5c3a;
    font-style: italic;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.download-section {
    background: linear-gradient(135deg, rgba(230, 180, 34, 0.15), rgba(244, 208, 63, 0.15));
    text-align: center;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-content p {
    font-size: 1.3em;
    color: #8b5a2b;
    margin-bottom: 25px;
}

.download-content ul {
    list-style: none;
    text-align: left;
    margin: 30px 0;
    padding: 0 20px;
}

.download-content li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1em;
    color: #7d6e63;
}

.download-content li:before {
    content: "📄";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.download-btn {
    margin-top: 40px;
    padding: 20px 50px;
    font-size: 1.4em;
    background: linear-gradient(135deg, #e6b422, #c44d34);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(196, 77, 52, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(196, 77, 52, 0.4);
}

.download-btn.downloading .leaf-icon {
    animation: rotateToDownload 0.5s ease forwards;
}

@keyframes rotateToDownload {
    to {
        transform: rotate(360deg);
        content: "⬇️";
    }
}

.leaf-icon {
    font-size: 1.5em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.poem-section {
    margin: 80px 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.poem-background {
    background-image: url('https://images.pexels.com/photos/1301858/pexels-photo-1301858.jpeg?auto=compress&cs=tinysrgb&w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.poem-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 245, 241, 0.85);
    z-index: 1;
}

.poem-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.poem-line {
    font-size: 1.6em;
    color: #8b5a2b;
    margin: 15px 0;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.footer {
    margin-top: 80px;
    padding-top: 40px;
}

.footer-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #c44d34, transparent);
    margin-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 20px;
}

.footer-column h3 {
    color: #c44d34;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-column p {
    color: #7d6e63;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #8b5a2b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #c44d34;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(196, 77, 52, 0.2);
    color: #7d6e63;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: 2.5em;
    }
    
    .tree-diagram {
        flex-direction: column;
    }
    
    .tree-item {
        flex-direction: column;
    }
    
    .leaf-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2em;
    }
    
    section {
        padding: 20px;
    }
    
    .poem-line {
        font-size: 1.2em;
    }
}

