/* style.css - 総合ポータル用共通スタイル */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #2196F3;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f9fdfa;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ヒーローセクション（AdSense向け長文テキストエリア） */
.hero-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.hero-section p {
    margin-bottom: 1rem;
}

/* アプリ紹介セクション */
.app-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.2s ease-in-out;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.app-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ボタンとリンク */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background-color: #1976D2;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* フォーム関連 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* AdSense広告エリア */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

/* フッター */
footer {
    background-color: #2c3e50;
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

footer .footer-links {
    margin-bottom: 1rem;
}

footer .footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .app-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .app-card-content {
        flex: 1;
        padding-right: 1.5rem;
    }
    .app-card-action {
        flex-shrink: 0;
    }
}
