/* main要素にNoto Sans JPを適用 */
main {
    font-family: 'Noto Sans JP', sans-serif;
}

/* h1タグの下線を非表示 */
.ttl-bdr::before {
    display: none;
}

/* h1タグのフォントサイズを大きく */
.ttl-bdr {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.4;
    margin-left: 0;
    padding-left: 0;
}

/* ヒーローセクションの説明文*/
.hero-explain-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 20px 0;
}

/* ヒーローセクションの注意文*/
.hero-note-text {
    font-size: 1.0rem;
}

/* 固定ダウンロードバー */
.download-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FCFCFC;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 56px; /* 固定バーの高さを指定 */
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 20px;
    height: 100%; /* 親要素の高さいっぱいに */
}

.app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    height: 40px;
    border-radius: 8px;
}

.app-name {
    font-weight: 600;
    font-size: 16px;
}

.download-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid #3E7C75;
    color: #3E7C75;
    padding: 6px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.download-btn:hover {
    background: #3E7C75;
    color: white;
}

/* メインコンテンツの上部マージン */
.main-content {
    margin-top: 60px;
}

/* ヒーローセクションのスタイル */
.hero-section-background {
    background: linear-gradient(135deg, #163E64 0%, #2B616D 34%, #84E291 68%, #D9F2D0 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding-top: 56px; /* 固定バーの高さと同じ値に設定 */
}

.hero-section-content {
    text-align: center;
    color: white;
    padding: 20px 0;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.feature-list-background {
    background-color: #FAFAFA;
}

.featuer-list-section {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.featuer-list-section .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featuer-list-section .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.featuer-list-section .card-text {
    margin: 0;
    text-align: left;
    flex: 1;
}

.featuer-list-section .card-icon {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    flex-shrink: 0;
}

.feature-card-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.feature-icon-background {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: #C2F1C8;
}

/* カード内の要素のレイアウトを制御 */
.featuer-list-section .card .row.align-items-center.text-center.g-3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

.featuer-list-section .card .row.align-items-center.text-center.g-3 > div {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
}

/*機能詳細セクションの背景*/
.featuer-detaile-section-background {
    background: #D9F2D0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/*機能詳細セクションの中身の基本設定*/
.feature-detail-section-content {
    text-align: center;
    color: #3A3A3A;
    /*padding: 20px 0;*/
    width: 100%;
}

/* 機能詳細セクションの見出しのフォントサイズを大きく */
.ttl-bdr-feature {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.3;
    margin-left: 0;
    padding-left: 0;
}

/* 遠藤拓郎医師の見出し*/
.clinic-header-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    max-width: 300px;
    width: 100%;
}

.clinic-header-bg {
    background-color: #90EE90;
    border-radius: 60px;
    padding: 15px 30px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-header-text {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 100%;
    min-height: 80px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-header-border {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 100%;
    min-height: 80px;
    border: 2px solid #333333;
    border-radius: 60px;
    background: transparent;
    pointer-events: none;
}

/* 機能詳細セクションの説明文*/
.feature-detail-explain-text {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 20px 0;
}

/* 機能詳細セクションの注意文*/
.feature-detail-note-text {
    font-size: 1.0rem;
    font-weight: bold;
}

/* 機能詳細セクション専用のコンテナ*/
.feature-detail-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px; /* スマホ表示時の左右パディングを追加 */
}

@media (min-width: 768px) {
    .feature-detail-container {
        padding: 0; /* PC表示時はパディングをリセット */
    }
}

.feature-card-link {
    position: relative;
    display: block;
}

.feature-card-link::after {
    content: "くわしく見る";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-card-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* スクロールアニメーション用のスタイル */
.feature-detail-section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    transition-delay: 0.1s; /* アニメーション開始を0.3秒遅らせる */
}

.feature-detail-section-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* バッジセクションのスタイル */
.badge-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 0;
}

.badge-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.badge-section img {
    width: auto;
    height: 60px;
    object-fit: contain;
}

/* アプリストアバッジの個別スタイル */
.app_install_google,
.app_install_iOS {
    width: auto;
    height: 60px;
}

/* バッジの横並びを維持するためのスタイル */
.row.align-items-center.mb-3 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.row.align-items-center.mb-3 .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/*手順に関するコンポーネントのスタイルシート*/
.step-container {
    max-width: 1200px;
    margin: 0 auto;
}

.steps-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 0px 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    position: relative;
}

/* ステップヘッダー（番号とタイトルを横並び） */
.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: #4a7c7e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0; /* 縮小を防ぐ */
    aspect-ratio: 1; /* 正円を維持 */
}

.step-number.large {
    width: 80px;
    height: 80px;
    font-size: 36px;
    margin-right: 30px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.step-card h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #333;
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.step-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.step4-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 0px 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.step4-content {
    flex: 1;
}

.step4-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.step4-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/*画面下部のアプリストアバッジセクションのスタイル*/
.appstore-card {
    background: #61AF83;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 0px 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/*アプリストアバッジそのもののスタイル*/
.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.download-link {
    display: block;
    transition: transform 0.2s ease;
}

.download-link:hover {
    transform: scale(1.05);
}

.download-link img {
    height: 60px;
    width: auto;
    display: block;
}

/*Apple, Googleのリーガルテキストのクラス*/
.legal-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    width: 100%;
    font-size: 6pt;
}

/*Fontの指定クラス*/
.font-footer {
    font-family: sans-serif;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-link img {
        height: 50px;
    }
}


/* レスポンシブ対応 */
@media (max-width: 990px) {
    .badge-section img {
        height: 55px;
    }

    .app_install_google,
    .app_install_iOS {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .download-content {
        padding: 6px 15px;
    }

    .app-icon {
        height: 32px;
    }

    .download-btn {
        padding: 4px 15px;
        font-size: 0.8rem;
    }

    .ttl-bdr {
        font-size: 2rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .hero-explain-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }

    .hero-note-text {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-img {
        max-height: 400px;
        margin-top: 30px;
    }

    .badge-section {
        padding: 5px 0;
    }

    .badge-section img {
        height: 50px;
    }

    .app_install_google,
    .app_install_iOS {
        height: 50px;
    }

    /* コンテナのパディング調整 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* バッジの配置調整 */
    .row.align-items-center.mb-3 {
        margin: 0;
    }

    .badge-section {
        padding: 10px;
    }

    /* スマートフォン表示時のレイアウト変更 */
    .hero-section-content {
        flex-direction: column;
    }

    .col-6 {
        width: 100%;
        padding: 0;
    }

    .hero-img {
        order: 2; /* 画像を説明文の下に移動 */
        margin-top: 30px;
    }

    /* カードのレイアウトを維持 */
    .featuer-list-section .card .row.align-items-center.text-center.g-3 {
        flex-direction: row;
    }

    .featuer-list-section .card .row.align-items-center.text-center.g-3 > div {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }

    /* 機能一覧セクションの見出しと小見出しを左揃えに */
    .feature-list-section h2.text-center {
        text-align: left !important;
        padding: 0 15px;
    }

    .feature-list-section p.text-center {
        text-align: left !important;
        padding: 0 15px;
    }

    .steps-row {
        flex-direction: column;
    }
    
    .step-card {
        min-width: auto;
    }
    
    .step4-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number.large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .step4-content h3 {
        font-size: 20px;
    }
    
    .step4-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .download-content {
        padding: 4px 10px;
    }

    .app-icon {
        height: 28px;
    }

    .download-btn {
        padding: 3px 12px;
        font-size: 0.75rem;
    }

    .badge-section img {
        height: 40px;
    }

    .app_install_google,
    .app_install_iOS {
        height: 40px;
    }

    .hero-section-background {
        padding-top: 56px; /* 固定バーの高さと同じ値に設定 */
    }

    .ttl-bdr {
        padding: 0 10px;
    }

    .hero-explain-text {
        padding: 0 10px;
    }

    .hero-note-text {
        padding: 0 10px;
    }

    /* バッジの配置調整 */
    .row.align-items-center.mb-3 {
        margin: 0;
    }

    .badge-section {
        padding: 5px;
    }

    .step-card {
        padding: 20px;
    }
    
    .step4-card {
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .step-number.large {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
}

/* ヒーローセクション内の「こちら」リンクの色を白に */
.hero-section-content a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.hero-section-content a:hover {
    color: #75D889;
}

/* アプリストアボタンのホバー効果を統一 */
.download-buttons .download-link {
    display: block;
    transition: transform 0.2s ease;
}

.download-buttons .download-link:hover {
    transform: scale(1.05);
}

/* フッターのリンクにホバー時の下線表示 */
footer .footer-container a[href] {
    text-decoration: none !important;
    transition: text-decoration 0.3s ease;
}

footer .footer-container a[href]:hover {
    text-decoration: underline !important;
}
