/* ===================================
   名古屋花き BCPポータル 共通スタイル
   =================================== */

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

body{
    font-family:"Yu Gothic",sans-serif;
    background:#f5f6fa;
    color:#333;
    line-height:1.6;
}

/* ===== ヘッダー ===== */
.header{
    background:#d32f2f;
    color:#fff;
    text-align:center;
    padding:20px;
    position:relative;
}

.header h1{
    font-size:24px;
    margin-bottom:5px;
}

/* ===== ヘッダー内 トップリンク ===== */
.home-link{
    position:absolute;
    top:12px;
    right:12px;
    background:rgba(255,255,255,0.2);
    color:#fff;
    text-decoration:none;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:bold;
    white-space:nowrap;
}

.home-link:hover{
    background:rgba(255,255,255,0.35);
}

/* ===== コンテナ ===== */
.container{
    max-width:1000px;
    margin:auto;
    padding:15px;
}

/* ===== 安否確認ボタン（上部固定・ヘッダーと差別化） ===== */
.main-button{
    display:block;
    width:100%;
    text-align:center;
    /* ヘッダーの赤とは別色（安全確認をイメージする明るい緑）で目立たせる */
    background:#43a047;
    color:#fff;
    text-decoration:none;
    padding:22px;
    font-size:24px;
    font-weight:bold;
    border-radius:12px;
    margin-bottom:20px;
    position:sticky;
    top:10px;
    z-index:100;
    border:3px solid #fff;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

.main-button:hover{
    background:#388e3c;
}

/* ===== カードグリッド ===== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    color:#333;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    transition:.2s;
}

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

.card-icon{
    font-size:40px;
    margin-bottom:10px;
}

/* ===== セクション ===== */
.section{
    margin-top:20px;
    margin-bottom:30px;
}

.section h2{
    margin-bottom:15px;
    border-bottom:3px solid #d32f2f;
    padding-bottom:5px;
}

/* ===== お知らせ ===== */
.notice{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    margin-bottom:15px;
}

.notice-title{
    margin-bottom:8px;
    color:#333;
}

.notice-body{
    color:#333;
}

.notice-date{
    margin-top:10px;
    font-size:12px;
    color:#888;
}

.notice-important{
    border-left:6px solid #d32f2f;
    background:#fff5f5;
}

.notice-badge{
    display:inline-block;
    background:#d32f2f;
    color:#fff;
    font-size:12px;
    font-weight:bold;
    padding:2px 10px;
    border-radius:12px;
    margin-bottom:8px;
}

/* ===== お知らせ内部スクロール枠 ===== */
.notice-scroll{
    max-height:340px;
    overflow-y:auto;
    padding:4px 10px 4px 4px;
    border-radius:10px;
}

.notice-scroll::-webkit-scrollbar{
    width:8px;
}
.notice-scroll::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:4px;
}
.notice-scroll::-webkit-scrollbar-thumb:hover{
    background:#aaa;
}

.notice-scroll .notice:last-child{
    margin-bottom:0;
}

/* ===== 戻るリンク ===== */
.back-link{
    display:inline-block;
    margin-bottom:15px;
    color:#d32f2f;
    text-decoration:none;
    font-weight:bold;
}

.back-link:hover{
    text-decoration:underline;
}

/* ===== 情報カード（サブページ用） ===== */
.info-card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    margin-bottom:20px;
}

.info-card h3{
    border-left:5px solid #d32f2f;
    padding-left:10px;
    margin-bottom:10px;
}

/* ===== テーブル ===== */
.info-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    margin-bottom:20px;
}

.info-table th{
    background:#d32f2f;
    color:#fff;
    padding:12px;
    text-align:left;
    font-size:14px;
}

.info-table td{
    padding:12px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

.info-table tr:last-child td{
    border-bottom:none;
}

/* ===== 電話リンク（タップで発信） ===== */
.tel-link{
    display:inline-block;
    background:#d32f2f;
    color:#fff;
    text-decoration:none;
    padding:6px 14px;
    border-radius:20px;
    font-weight:bold;
    font-size:14px;
    white-space:nowrap;
}

/* ===== 手順リスト ===== */
.step-list{
    counter-reset:step;
    list-style:none;
}

.step-list li{
    background:white;
    margin-bottom:12px;
    padding:15px 15px 15px 55px;
    border-radius:10px;
    position:relative;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}

.step-list li::before{
    counter-increment:step;
    content:counter(step);
    position:absolute;
    left:15px;
    top:18px;
    width:28px;
    height:28px;
    background:#d32f2f;
    color:#fff;
    border-radius:50%;
    text-align:center;
    line-height:28px;
    font-weight:bold;
}

/* ===== 機密資料（要ログイン）ボタン ===== */
.secure-link{
    display:block;
    background:#37474f;
    color:#fff;
    text-decoration:none;
    padding:18px 20px;
    border-radius:10px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    transition:.2s;
}

.secure-link:hover{
    background:#263238;
}

.secure-link .secure-title{
    font-size:18px;
    font-weight:bold;
}

.secure-link .secure-desc{
    font-size:13px;
    opacity:.85;
    margin-top:4px;
}

.secure-note{
    font-size:12px;
    color:#888;
    margin-top:8px;
}

/* ===== フォーム部品（管理画面／ゲート用） ===== */
.form-input{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
    font-family:inherit;
    box-sizing:border-box;
}

.form-input:focus{
    outline:none;
    border-color:#d32f2f;
}

.btn-primary{
    background:#d32f2f;
    color:#fff;
    border:none;
    padding:12px 24px;
    border-radius:8px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.btn-primary:hover{
    background:#b71c1c;
}

.btn-danger{
    background:#fff;
    color:#d32f2f;
    border:2px solid #d32f2f;
    padding:10px 22px;
    border-radius:8px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.btn-danger:hover{
    background:#ffebee;
}

/* ===== 入口ゲート ===== */
.gate-box{
    background:white;
    max-width:420px;
    margin:40px auto;
    padding:30px 25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    text-align:center;
}

.gate-icon{
    font-size:48px;
    margin-bottom:10px;
}

.gate-title{
    font-size:20px;
    margin-bottom:10px;
}

.gate-desc{
    font-size:14px;
    color:#666;
    margin-bottom:20px;
}

.gate-error{
    color:#d32f2f;
    font-weight:bold;
    margin-bottom:14px;
}

/* ===== フッター ===== */
.footer{
    text-align:center;
    padding:30px;
    color:#666;
    font-size:12px;
}
