/* ECMAP ランディングページ共通スタイル */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fdf8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #2e7d2e, #4a9d4a);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(46, 125, 46, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* メインコンテンツ */
main {
    padding: 2rem 0;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #e8f5e8, #d4f0d4);
    padding: 4rem 0;
    text-align: center;
    border-radius: 20px;
    margin: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2e7d2e;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #5a5a5a;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, #45a049, #4caf50);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* セクション */
.section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.section h2 {
    font-size: 2.5rem;
    color: #2e7d2e;
    text-align: center;
    margin-bottom: 2rem;
}

.section h3 {
    font-size: 1.75rem;
    color: #4a9d4a;
    margin: 2rem 0 1rem 0;
}

/* 機能カード */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 125, 46, 0.1);
    border-left: 5px solid #4caf50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 125, 46, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2e7d2e;
    margin: 1rem 0;
}

/* 価格表 */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(46, 125, 46, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: scale(1.05);
}

.price-card.featured {
    border: 3px solid #4caf50;
    transform: scale(1.05);
}

.price {
    font-size: 2.5rem;
    color: #2e7d2e;
    font-weight: bold;
    margin: 1rem 0;
}

/* フォーム */
.form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 125, 46, 0.1);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2e7d2e;
    font-weight: bold;
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

textarea {
    height: 120px;
    resize: vertical;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #2e7d2e;
    text-decoration: none;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 125, 46, 0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f0f8f0;
    color: #2e7d2e;
    font-weight: bold;
}

/* フッター */
footer {
    background: #2e7d2e;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #b8e6b8;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #4a9d4a;
    color: #b8e6b8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .pricing {
        grid-template-columns: 1fr;
    }
}