/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

body {
    background-color: #ffffff;
    color: #1d1d1f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    transition: opacity 0.3s;
}

.logo-image:hover {
    opacity: 0.7;
}

/* Navigation styles */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-message {
    color: #1d1d1f;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.login-btn {
    color: #1d1d1f;
    background: transparent;
}

.login-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.signup-btn, .logout-btn {
    background-color: #0071e3;
    color: #ffffff;
}

.signup-btn:hover, .logout-btn:hover {
    background-color: #0077ed;
    transform: translateY(-1px);
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 2rem 0 3rem;
    background: linear-gradient(45deg, #0071e3, #00c7be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Main layout */
main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem auto;
}

/* Button container styles - 改善点1 */
.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    width: 100%;
}

.list-button {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 1.8rem;
    border-radius: 18px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.list-button:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Main and news content layout - 改善点2 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Main contents section */
.main-contents {
    text-align: left;
    background-color: #f5f5f7;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.main-contents-item h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    border-bottom: 2px solid #0071e3;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.main-contents-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #424245;
    margin-bottom: 1rem;
}

.plan-make-image {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.plan-make-image:hover {
    transform: scale(1.02);
}

/* News section - 改善点3 */
.news-contents {
    text-align: left;
    background-color: #f5f5f7;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-contents h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
    border-bottom: 2px solid #0071e3;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.news-contents-item {
    padding: 1.2rem;
    border-bottom: 1px solid #e8e8ed;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.news-contents-item:hover {
    background-color: #f1f1f1;
}

.news-contents-item:last-child {
    border-bottom: none;
}

.news-contents-item h3 {
    font-size: 1.1rem;
    color: #86868b;
    margin-bottom: 0.5rem;
}

.news-contents-item p {
    font-size: 1.1rem;
    color: #1d1d1f;
}

/* Footer styles */
footer {
    background-color: #f5f5f7;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-menu-item {
    color: #424245;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu-item:hover {
    color: #0071e3;
}

footer p {
    color: #86868b;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-menu {
        padding: 0.8rem 1rem;
    }

    nav {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.5rem;
        margin: 1.5rem 0 2rem;
    }

    .container {
        padding: 1rem;
    }

    .main-contents {
        padding: 1.5rem;
    }

    .main-contents-item h2 {
        font-size: 1.5rem;
    }

    .news-contents {
        padding: 1.5rem;
    }

    .news-contents h2 {
        font-size: 1.5rem;
    }
}