@charset "UTF-8";

:root {
    --mainWhite: #FFFFFF;
    --mainRed: #FE4936;
    --mainBlack: #1A1C1F;
    --mainBule: #434A90;
    --bgcBule: #E6F2F6;
    --buttonBule: #027EA5;
}

.badge-container {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 5px; /* バッジ同士の隙間 */
    justify-content: center;
}

/* 左側：バッジ2つを縦に並べる */
.badge-container__left {
    display: flex;
    flex-direction: column;
    gap: 8px;       /* 上下のバッジの隙間 */
}
/* 右側：QRコードを縦に並べる設定 */
.badge-container__right {
    display: flex;
    flex-direction: column;
    gap: 8px; /* バッジの隙間（gap: 8px）と合わせる */
}
.badge-set{
    display: flex; 
    align-items: center;
    gap: 5px;
}
/* App Storeバッジの高さ設定 */
.badge-img-apple {
    height: auto;
    width: 150px;
}

/* Google Playバッジは余白が含まれるため、少し大きく設定すると並びが綺麗に見えます */
.badge-img-google {
    height: auto;
    width: 150px;
}

/* 右側：QRコードのスタイル */
.badge-qr {
    width: 60px;    /* QRコードのサイズ */
    height: 60px;
    padding: 5px;   /* QRコードの周りの白い余白 */
}

.app-callout {
    padding: 0 0 20px;
    background-color: var(--bgcBule);
}
.app-callout__inner {
    max-width: 960px;
    margin: 0 auto;
}
.app-callout__bubble {
    background: var(--mainWhite);
    border-radius: 30px;
    padding: 30px;
    position: relative;
    text-align: center;
}
.app-callout__title {
    color: var(--mainRed);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: "M PLUS Rounded 1c", "メイリオ", "sans-serif";
}
.app-callout__text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #444;
}


/* 公式サイトボタン本体 */
.app-card__official-link {
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid var(--mainBule);
    padding: 5px;
    width: 180px;
    display: inline-flex;
    border-radius: 40px;
    position: relative;
    transition: .25s ease-out;
}
.app-card__link-box{
    margin:0 auto;
}
.app-card__official-link-text{
    color: var(--mainBule);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.app-card__official-link:hover{
    background: var(--mainBule);
    border: 2px solid var(--mainBule);
    color: #fff;
}
.app-card__official-link-text::after{
    content: '';
    background: url(/bureau/safetylife/sos47/assets/img/apps/icon_link.svg) no-repeat;
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: translateX(50%) translateY(-40%);
}
.app-card__official-link:hover .app-card__official-link-text {
    color: #fff;
}
.app-card__official-link::after{
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border: solid var(--mainBule);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    right: 20px;
    top: 50%;
    transition: 0.25s ease-out;
}
.app-card__official-link:hover::after{
    border-color: #fff;
    right: 15px;
}
.app-card__official-link:hover .app-card__official-link-text::after {
    background: url(/bureau/safetylife/sos47/assets/img/common/icon/icon_link_white.svg) no-repeat;
}

@media (min-width: 768px) {
    .app-callout {
        padding: 0 0 40px;
    }
    .app-callout__bubble { padding: 50px 60px; }
    .app-callout__title { font-size: 28px; }
}




/* --- 【追加】アプリ並列表示セクション --- */

/* ベース（スマホ：縦並び） */
.app-display {
    padding:40px 0 0;
}

.app-display__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.app-card {
    background: #fff;
    border: 2px solid var(--mainBule); /* 警察庁サイトのテーマカラー */
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(75, 90, 155, 0.1);
    justify-content: space-between;
}

/* 上部：アイコンとタイトルエリア */
.app-card__main {
    width: 100%;
    background-color: #f0f4ff; /* 薄い水色の背景 */
    padding: 30px 20px;
    text-align: center;
}

.app-card__title {
    color:var(--mainBule);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}
.app-card__icon{
    width: 160px;
    margin: 0 auto;
}
.app-card__icon__img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.app-card__content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 25px;
}
/* 中部：企業ロゴエリア */
.app-card__corp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 200px;
    padding: 5px 0;
    margin: 0 auto;
}

.app-card__corp__img {
    width: 100%;
    height: auto;
}

.app-card__corp--custom-width{
    width: 220px;
}

.app-card__corp-name {
    font-weight: 700;
    color: #666;
    border: 1px solid #ccc;
    padding: 5px 15px;
}

.app-card__corp--between{
    justify-content: space-between;
}
.app-card__footer{
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.app-major-functions__header{
    margin-bottom: 20px;
}

/* 下部：ダウンロードボタンエリア */
.app-card__download {
    display: flex;
    gap: 10px;
    padding: 0 15px;
}

.btn-dl img {
    width: 140px;
    height: auto;
}

/* デスクトップ用上書き（PC：横並び） */
@media screen and (min-width: 768px) {
    .app-display__list {
        flex-direction: row; /* 横並びにする */
        justify-content: center;
        max-width: 850px;
        margin: 0 auto;
    }

    .app-card {
        flex: 1; /* 幅を均等にする */
        max-width: 480px;
    }
    .app-card__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .app-major-functions__header{
        margin-bottom: 40px;
    }
    .app-card__icon{
        width: 180px;
    }
    .app-card__corp{
        width: 200px;
    }
    .app-card__corp--custom-width{
        width: 240px;
    }
    .btn-dl img {
        width: 160px; /* PCではボタンを少し大きく */
    }
}

.caution-tips {
    padding: 20px 0;
}

@media(min-width:768px){
    .caution-tips {
        padding: 40px 0;
    }
}
.specific-padding--apps{
    padding-bottom: 40px;
}

@media(min-width:768px){
    .main__header--apps{
        margin-bottom: 55px;
    }
}

/* 注意のヒント */
.caution-tips__apps{
    padding-top: 60px;
}

@media(min-width:768px){
    .caution-tips__apps{
        padding-top: 120px;
    }
}

/* 動画 */
.movie-main--padding{
    padding: 30px 0;
}

@media(min-width:768px){
    .movie-main--padding--apps{
        padding: 57px 0 61px;
    }
    
    .embed-movie--single--apps{
        width: 100%;
        max-width: 780px;
    }
}


/* ==========================================================================
    Major Functions Block (Mobile First / BEM with app- prefix)
   ========================================================================== */

/* --- Base Style (Mobile) --- */

.app-major-functions {
    padding: 20px 0;
}

.app-major-functions__inner {
    margin: 0 auto;
    border-radius: 20px;
}

.app-major-functions__title {
    font-size: 1.6rem; /* タイトルサイズ調整 */
    color: var(--mainBule);;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.app-major-functions__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-major-functions__item {
    background-color: var(--mainWhite);
    border: 1px solid #eef2f6;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    min-height: 80px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 68, 148, 0.03);
}

.app-major-functions__item:last-child {
    margin-bottom: 0;
}

.app-major-functions__number {
    color: #3c62a8;
    font-weight: 800;
    font-size: 1.4rem;
    width: 35px;
    flex-shrink: 0;
}

.app-major-functions__text {
    margin: 0;
    color: #333333;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.6;
}

.app-major-functions__text--note {
    color: #d00000;
    font-size: 0.9em;
    margin-left: 8px;
    display: inline-block;
}

/* --- Desktop Overrides (PC: 768px以上) --- */

@media (min-width: 768px) {
    .app-major-functions {
        padding: 40px 0;
    }

    .app-major-functions__inner {
        max-width: 960px;
        border-radius: 30px;
    }

    .app-major-functions__title {
        font-size: 2rem;
    }

    .app-major-functions__item {
        padding: 22px 30px;
    }

    .app-major-functions__number {
        font-size: 1.5rem;
        width: 50px;
    }

    .app-major-functions__text {
        font-size: 1.5rem;
    }
}



.apps-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 50px auto 0;
    padding: 0 15px;
    max-width: 1060px;
}


/* テキスト */
.apps-coming-soon__text {
    font-family: "M PLUS Rounded 1c", "メイリオ", "sans-serif";
    font-weight: 900;
    font-size: 1.8rem;
    color: #4b5a9b;
    letter-spacing: 0.15em;
    white-space: nowrap;
}


/* 左右の線 */
.apps-coming-soon::before,
.apps-coming-soon::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background-color: #4b5a9b;
    opacity: 0.4;
}


.apps-coming-soon::before { margin-right: 15px; }
.apps-coming-soon::after  { margin-left: 15px; }


/* --- デスクトップ用上書き --- */
@media screen and (min-width: 768px) {
    .apps-coming-soon {
        margin: 80px auto 0;
        padding: 0 30px;
    }
    .apps-coming-soon::before { margin-right: 40px; }
    .apps-coming-soon::after  { margin-left: 40px; }

    .apps-coming-soon__text {
        font-size: 2.6rem;
    }
}


/* ==========================================================================
    ポップアップ（modal）全体の構造
   ========================================================================== */

/* 背景のオーバーレイ：Block名 .modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(26, 28, 31, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ポップアップ本体：Element名 .modal__content */
.modal__content {
    background-color: #fff; /* ご提示の最新色に合わせました */
    padding: 0;
    border: 3px solid #1A1C1F;
    border-radius: 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    /* スマホ対応：高さ制限とレイアウト調整 */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* 閉じるボタン：Element名 .modal__close-btn */
.modal__close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    line-height: 40px;
    text-align: center;
    font-size: 30px;
    color: #333;
    background: transparent; /* 背景なしのシンプル設定 */
    border: none;
    cursor: pointer;
    z-index: 100;
    font-weight: bold;
    transition: color 0.2s;
    appearance: none;
    padding: 0;
}

/* シンプルなホバー：色が変わるだけ */
.modal__close-btn:hover {
    color: #2E4B82; 
}

/* ==========================================================================
    ポップアップ内部：デザイン装飾
   ========================================================================== */

/* スクロール可能なメインエリア：Element名 .modal__body */
.modal__body {
    background: #ffffff;
    border: 2px solid #2E4B82;
    border-radius: 16px;
    margin: 0 15px 25px;
    padding: 25px 20px;
    text-align: left;
    font-size: 14.5px;
    line-height: 2.0;
    color: #333;
    letter-spacing: 0.03em;
    /* 縦方向のスペースを埋めてスクロール可能に */
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 導入メッセージ */
.modal__intro {
    font-weight: 700;
    font-size: 15.5px;
    color: #1A1C1F;
    margin-bottom: 30px;
}
/* セクションごとのグループ化用 */
.modal__section{
    margin-bottom: 15px;
}
/* セクション見出し（◆の代わり） */
.modal__section-heading {
    display: block;
    border-left: 6px solid #2E4B82;
    background: linear-gradient(90deg, #f0f4f8 0%, #ffffff 100%);
    padding: 8px 15px;
    margin-bottom: 15px;
    color: #2E4B82;
    font-weight: 800;
    font-size: 15px;
}

/* 小見出し（▶の代わり） */
.modal__sub-heading {
    display: inline-block;
    color: #2E4B82;
    font-weight: 800;
    font-size: 15px;
    border-bottom: 1px solid #2E4B82;
    line-height: 1.4;
}

/* 追加：認定情報のテキストスタイル */
.modal__description {
    margin-bottom: 20px;
}

/* FAQボックス */
.modal__faq-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 15px;
    border: 1px solid #e2e8f0;
}

/* 回答ラベル */
.modal__ans-label {
    color: #2E4B82;
    font-weight: 900;
    background: #eef2f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

/* 下部の注釈テキスト */
.modal__footer-note {
    font-size: 12px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* リストアイテム用（企業情報など） */
.modal__list-item {
    margin-bottom: 10px;
    padding-left: 5px;
}
.modal__list-item:last-of-type{
    margin: 0;
}
/* スクロールバーのカスタマイズ */
.modal__body::-webkit-scrollbar { 
    width: 6px; 
}
.modal__body::-webkit-scrollbar-thumb { 
    background: #2E4B82; border-radius: 10px; 
}
.modal__body::-webkit-scrollbar-track { 
    background: #f1f1f1; 
}
.modal__corp{
    padding: 20px;
}
.modal__corp--custom-width{
    width: 240px;
}

@media screen and (min-width: 768px) {
    .modal__corp{
        width: 220px;
    }
    .modal__corp--custom-width{
        width: 280px;
    }
}