/* Google Sitesの参考サイトに合わせた基本的なリセット */
body, h1, h2, h3, p, ul, li, nav {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif; /* 日本語フォントを優先 */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* ヘッダー */
header {
    background-color: #0d47a1; /* 濃い青色 */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky; /* スクロールしても追従 */
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #bbdefb; /* 薄い青色 */
}

/* ヒーローセクション (トップの大きな画像部分) */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/drinkingpreventionapp/hero_background_placeholder.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* ある程度の高さを確保 */
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
}

/* 各コンテンツセクション */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.content-section:last-of-type {
    border-bottom: none;
}

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

.content-section h2 {
    font-size: 32px;
    color: #0d47a1; /* 濃い青色 */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.content-section h2::after { /* 下線装飾 */
    content: '';
    width: 60px;
    height: 3px;
    background-color: #0d47a1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.content-section ul li {
    margin-bottom: 8px;
}

.content-section a {
    color: #1a73e8; /* リンク色 */
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* FAQセクション */
.faq-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #0d47a1;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-item p {
    color: #555;
    font-size: 16px;
}

/* 背景色グレーのセクション */
.grey-bg {
    background-color: #f0f3f7;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .app-title {
        margin-bottom: 10px;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 5px 0;
    }
    .hero-content h2 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .content-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 24px;
    }
    .hero-content h2 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .content-section h2 {
        font-size: 24px;
    }
    .content-section p, .faq-item p {
        font-size: 14px;
    }
}
