/* 基本スタイル */
body {
    font-family: "Meiryo UI", "メイリオ", sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
#header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    position: relative;
    z-index: 1000;
    height: 50px;
    box-sizing: border-box;
}

/* メインコンテンツ */
main#content {
    flex: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 24px;
    line-height: 1;
}

h1 img {
    height: auto;
    width: auto;
    max-height: 60px;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.lead {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
}

/* CTAボタン */
.cta-area {
    text-align: center;
    margin: 48px 0;
    padding: 32px 0;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    margin-right: 8px;
}

/* サンプル画像 */
.sample-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 48px 0;
    border-radius: 6px;
}

/* セクション */
.feature-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.feature-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-section h2 i {
    color: #667eea;
    font-size: 1.25rem;
}

.feature-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* 凡例プレビュー */
.legend-preview {
    margin-top: 24px;
    padding: 24px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

.legend-text {
    font-size: 0.875rem;
    color: #666;
}

/* フッター */
#footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 24px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-content p {
    margin: 8px 0;
    color: #666;
    font-size: 0.875rem;
}

.footer-link a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #header {
        padding: 8px 12px;
        height: 50px;
        justify-content: center;
    }

    #header .adsbygoogle {
        display: none;
    }

    h1 img {
        max-height: 48px;
    }

    main#content {
        padding: 20px 16px;
    }

    .content-wrapper {
        padding: 24px 20px;
    }

    h1 {
        margin-bottom: 20px;
    }

    h1 img {
        max-height: 40px;
    }

    .lead {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .cta-area {
        margin: 32px 0;
        padding: 24px 0;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
        display: block;
        margin: 0 auto;
        max-width: 300px;
    }

    .sample-image {
        margin: 32px 0;
    }

    .feature-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .feature-section h2 {
        font-size: 1.25rem;
        flex-wrap: wrap;
    }

    .feature-section p {
        font-size: 0.9375rem;
    }

    .legend-preview {
        padding: 16px;
    }

    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .legend-item {
        gap: 6px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }

    .legend-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 20px 16px;
    }

    h1 {
        margin-bottom: 16px;
    }

    h1 img {
        max-height: 36px;
    }

    .lead {
        font-size: 0.9375rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .feature-section h2 {
        font-size: 1.125rem;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }
}