/* ===================================
   富山アレルギっ子ネットワーク
   メインスタイルシート
   カラー: 緑(#4CAF50, #2E7D32) 黄色(#FFD700, #FFC107)
   =================================== */

/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --primary-yellow: #FFD700;
    --light-yellow: #FFF59D;
    --dark-yellow: #FFC107;
    --white: #FFFFFF;
    --light-bg: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===================================
   ヘッダーセクション
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 40px 0 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.catchphrase {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--light-yellow);
    margin-bottom: 0;
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-bg) 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    animation: fadeIn 1.2s ease-out;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* ===================================
   共通セクションスタイル
   =================================== */
section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--primary-yellow));
    border-radius: 2px;
}

/* ===================================
   Aboutセクション
   =================================== */
.about {
    background-color: var(--white);
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.point-card {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.point-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.point-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.point-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.point-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ===================================
   機能セクション
   =================================== */
.features {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 18px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   リッチメニューセクション
   =================================== */
.rich-menu {
    background-color: var(--white);
}

.rich-menu-intro {
    font-size: 1.15rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.menu-item {
    background: linear-gradient(to bottom right, var(--light-bg), var(--white));
    padding: 40px 30px;
    border-radius: 16px;
    border-left: 6px solid var(--primary-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.menu-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.menu-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.menu-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.menu-item p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   LINE友だち追加セクション
   =================================== */
.line-add {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 80px 0;
}

.line-add .section-title {
    color: var(--white);
}

.line-add .section-title::after {
    background: linear-gradient(to right, var(--primary-yellow), var(--light-yellow));
}

.line-add-text {
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
}

.line-add-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.add-method {
    text-align: center;
}

.qr-code-container {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.qr-code-image {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 8px;
}

.qr-text {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

.add-method-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-yellow);
    font-size: 1.1rem;
    font-weight: 600;
}

.line-button {
    display: inline-block;
    padding: 20px 50px;
    background: #06C755;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
    margin-bottom: 25px;
}

.line-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    background: #05b34d;
}

.line-button i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.line-id {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.line-id strong {
    font-size: 1.3rem;
    color: var(--primary-yellow);
}

.line-id-note {
    font-size: 0.9rem;
    color: var(--light-yellow);
    margin-top: 10px;
}

/* ===================================
   ターゲットセクション
   =================================== */
.target {
    background-color: var(--light-bg);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.target-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-yellow);
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.target-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.target-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================================
   プライバシーセクション
   =================================== */
.privacy {
    background-color: var(--white);
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.privacy-card {
    background: linear-gradient(to bottom right, var(--light-bg), var(--white));
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.privacy-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.privacy-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.privacy-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   組織情報セクション
   =================================== */
.organization {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
    padding: 60px 0;
}

.organization .section-title {
    color: var(--white);
}

.organization .section-title::after {
    background: linear-gradient(to right, var(--primary-yellow), var(--light-yellow));
}

.organization-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.org-info {
    margin-bottom: 30px;
}

.org-info h3 {
    font-size: 1.2rem;
    color: var(--light-yellow);
    margin-bottom: 15px;
}

.org-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.6;
}

.org-description p {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.9;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: var(--dark-green);
    padding: 50px 0 30px;
    color: var(--white);
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-org {
    font-size: 1rem;
    color: var(--light-green);
    margin-bottom: 20px;
}

.footer-social {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #06C755;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(6, 199, 85, 0.4);
}

.social-link i {
    font-size: 1.8rem;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--light-green);
}

/* ===================================
   スクロールトップボタン
   =================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===================================
   アニメーション
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .catchphrase {
        font-size: 1.1rem;
    }

    .logo {
        max-width: 150px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

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

    .menu-items {
        grid-template-columns: 1fr;
    }

    .line-add-methods {
        flex-direction: column;
        gap: 40px;
    }

    .add-method-divider {
        transform: rotate(90deg);
    }

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

    .privacy-content {
        grid-template-columns: 1fr;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .line-button {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0 25px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .catchphrase {
        font-size: 1rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 35px;
    }

    .point-card,
    .feature-card,
    .menu-item,
    .privacy-card {
        padding: 30px 20px;
    }

    .qr-code-image {
        width: 180px;
        height: 180px;
    }

    .qr-code-container {
        padding: 20px;
    }
}
