@charset "utf-8";

/* 事故・緊急時のご連絡先ページ */

.accident-inner {
    width: 80%;
    max-width: 900px;
    margin: 2em auto;
    text-align: left;
}

.accident-inner h1 {
    text-align: center;
    font-size: xx-large;
    margin-bottom: 0.5em;
}

.accident-intro {
    padding: 1em 1.5em;
    margin-bottom: 2em;
    background: #fff8e8;
    border-left: solid 6px #ffc06e;
    font-size: 1.1em;
    line-height: 1.8em;
}

/* カテゴリセクション（損害保険・生命保険） */
.insurance-category {
    margin-bottom: 2.5em;
}

.insurance-category h2 {
    font-size: x-large;
    padding: 0.4em 1em;
    margin-bottom: 1em;
    background: #2c4e80;
    color: #fff;
    border-radius: 4px;
}

/* 各保険会社カード */
.company-card {
    padding: 1.2em 1.5em;
    margin-bottom: 1.2em;
    background: #f9f9f9;
    border-left: solid 6px #5989cf;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 0 4px 4px 0;
}

.company-card h3 {
    font-size: large;
    margin-bottom: 0.8em;
    color: #2c4e80;
}

.company-card h3 a {
    color: #2c4e80;
    text-decoration: none;
}

.company-card h3 a:hover {
    text-decoration: underline;
}

/* 1行表示の連絡先 */
.contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-label {
    font-weight: bold;
    color: #555;
    margin-right: 4px;
    white-space: nowrap;
}

.contact-number {
    font-weight: bold;
    color: #c41e3a;
    text-decoration: none;
    margin-right: 4px;
    font-size: 1.05em;
}

.contact-number:hover {
    text-decoration: underline;
}

.available-24h {
    font-weight: bold;
    color: #c41e3a;
    font-size: 0.9em;
}

.contact-hours {
    font-size: 0.9em;
    color: #666;
}

/* 各社URLリンク */
.contact-item a[href^="https://"] {
    color: #0066cc;
    word-break: break-all;
    font-size: 0.85em;
}

.contact-item a[href^="https://"]:hover {
    text-decoration: underline;
}

/* 当社連絡先セクション */
.our-contact-section {
    margin: 2.5em 0;
    padding: 1.5em;
    background: #eef6ff;
    border: 2px solid #5989cf;
    border-radius: 4px;
}

.our-contact-section h2 {
    font-size: x-large;
    color: #2c4e80;
    margin-bottom: 1em;
    text-align: center;
}

.our-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.our-contact-list li {
    display: block;
    padding: 0.4em 0;
    font-size: 1.1em;
    line-height: 2em;
}

.our-contact-list a[href^="tel:"] {
    color: #2c4e80;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
}

.our-contact-list a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* 注意書き */
.accident-note {
    margin: 2em 0 1em;
    padding: 1em 1.5em;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.8em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .accident-inner {
        width: 95%;
        margin: 1em auto;
    }

    .company-card {
        padding: 1em;
    }

    /* 電話番号を大きくタップしやすく */
    .contact-number {
        font-size: 1.15em;
        padding: 2px 0;
    }

    /* 各連絡先行の余白を広げる */
    .contact-item {
        padding: 6px 0;
        border-bottom: 1px solid #f0f0f0;
        align-items: center;
    }

    .contact-item:last-child {
        border-bottom: none;
    }

    /* 24時間バッジ強調 */
    .available-24h {
        display: inline-block;
        background-color: #c41e3a;
        color: #fff;
        font-size: 0.8em;
        padding: 1px 6px;
        border-radius: 3px;
        margin-left: 4px;
    }

    /* 当社連絡先セクション */
    .our-contact-section {
        margin: 1.5em 0;
        padding: 1em;
    }
}
