@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: #fdfaf6;
    color: #5d5d5d;
    margin: 0;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 0 20px;
    min-height: calc(100vh - 135px); /* Adjusted for header and footer */
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

h1, h2, h3 {
    color: #e88a8a;
    font-weight: normal;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8em;
}

p {
    line-height: 1.6;
}

a {
    color: #e88a8a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #e88a8a;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #d47575;
    text-decoration: none;
}

input[type="text"],
input[type="password"],
textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1em;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.error {
    color: #e88a8a;
    margin-bottom: 15px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
}

.header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #e88a8a;
}

.header #main-nav a {
    margin-left: 20px;
}

.header #main-nav .user-info {
    margin-left: 20px;
    color: #5d5d5d;
}

.nav-toggle {
    display: none;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 2em;
    }
    .header {
        /* flex-direction: column; を削除 */
    }
    .header .logo {
        margin-bottom: 0;
    }
    .header #main-nav {
        display: none; /* Hide nav by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .header #main-nav.nav-active {
        display: flex;
    }

    .header #main-nav a,
    .header #main-nav .user-info {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: #5d5d5d;
        position: relative;
        transition: background 0.2s ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: #5d5d5d;
        left: 0;
        transition: transform 0.2s ease-in-out;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    body.nav-open .hamburger {
        background: transparent;
    }

    body.nav-open .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }

    body.nav-open .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Custom Select Box */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 250px; /* Or a width that fits the design */
}

#month-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #5d5d5d;
}

.select-wrapper::after {
    content: '▼';
    font-size: 1em;
    color: #555;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Adjust form layout */
.controls form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

/* --- Landing Page Styles --- */
.lp-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.hero {
    background-color: #fdfaf6; /* Light warm background */
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    color: #e88a8a;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #5d5d5d;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item .icon {
    font-size: 3em;
    color: #e88a8a;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.how-it-works {
    background-color: #fff9f2;
    padding: 60px 20px;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 50px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    width: 220px;
}

.step .step-number {
    background-color: #e88a8a;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.cta-section {
    padding: 80px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5em; }
}
