/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Footer */
header, footer {
    position: fixed;
    width: 100%;
    left: 0;
    padding: 10px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 10;
}

header {
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

footer {
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 60px;
    margin-bottom: 60px; /* スペースを確保 */
    text-align: center;
}

section {
    margin: 20px 0;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* 初期状態では非表示 */
    transform: translateY(20px); /* 下からフェードイン */
    animation: fadeIn 1s ease-out forwards; /* アニメーションで表示 */
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input and Buttons */
input, button, a {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #00b894;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

input {
    width: calc(100% - 40px); /* 全体幅を調整 */
    max-width: 500px;
    font-size: 1rem;
}

button:hover, a:hover {
    background-color: #019875;
    transform: translateY(-3px); /* 浮かせる */
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Links in Main */
a {
    display: inline-block;
    text-decoration: none;
    background-color: #1d3557;
    color: #f1faee;
}

a:hover {
    background-color: #457b9d;
}

/* Service Sections */
.service-card {
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: fadeIn 1s ease-out forwards;
}

.service-card h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #f1faee;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #e9ecef;
}

.service-card a {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #00b894;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-card a:hover {
    background-color: #019875;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}