/* ============================================
   セクション共通CSS (sec01, sec02, sec04)
   ============================================ */

/* ============================================
   #sec01 新型コロナウィルス感染拡大防止対策について
   ============================================ */
#sec01 {
    background: #DAECF6;
    padding: 60px 0;
}

#sec01 .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル */
.sec01-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
    line-height: 1.5;
}

/* カードコンテナ */
.covid-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 個別カード */
.covid-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* アイコン */
.covid-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.covid-icon i {
    font-size: 50px;
    color: #667EEA;
}

/* カードタイトル */
.covid-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* カードテキスト */
.covid-card-text {
    font-size: 13px;
    line-height: 1.6;
}


/* ============================================
   #sec02 お客様への3つのお約束
   ============================================ */
#sec02 {
    background: linear-gradient(to bottom, #f8f6f0 0%, #e8e4d8 100%);
    padding: 60px 0;
    position: relative;
}

#sec02 .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル */
.sec02-title {
    text-align: center;
    margin-bottom: 50px;
}

.title-small {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* バックスラッシュを強制的に表示 */
.backslash::before {
    content: "\\";
    font-family: "Courier New", Courier, monospace;
}

.title-main {
    display: block;
    font-size: 56px;
    font-weight: bold;
    line-height: 1.2;
}

.title-number {
    color: #FFD700;
    -webkit-text-stroke: 10px #000;
    text-stroke: 10px #000;
    paint-order: stroke fill;
}

.title-main {
    color: #fff;
    -webkit-text-stroke: 10px #000;
    text-stroke: 10px #000;
    paint-order: stroke fill;
}

/* お約束ボックスコンテナ */
.promise-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* 個別お約束ボックス */
.promise-box {
    background: #fff;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px 30px;
    text-align: center;
}

.promise-box p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.6;
}


/* ============================================
   #sec04 エアコン修理相談センターが選ばれる3つの理由
   ============================================ */
#sec04 {
    background: linear-gradient(to bottom, #e8f4f8 0%, #d0e8f0 100%);
    padding: 60px 0;
    position: relative;
}

#sec04 .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル */
.sec04-title {
    text-align: center;
    margin-bottom: 50px;
}

.sec04-title-line1 {
    display: block;
    position: relative;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #000;
    -webkit-text-stroke: 5px #000;
    text-stroke: 5px #000;
    z-index: 1;
}

.sec04-title-line1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    z-index: 2;
}

.sec04-title-line2 {
    display: block;
    position: relative;
    font-size: 64px;
    font-weight: 900;
    color: #ff6600;
    /* フォールバック */
    -webkit-text-stroke: 8px #000;
    text-stroke: 8px #000;
    z-index: 1;
}

.sec04-title-line2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffff00 0%, #ff6600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    z-index: 2;
}

/* 3つの理由コンテナ */
.reasons-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 個別理由ボックス */
.reason-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* 認証付き理由ボックス */
.reason-item-with-cert {
    flex-direction: column;
}

/* 上部コンテンツ（横並び） */
.reason-top-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* 古い番号スタイル（非表示） */
.reason-number {
    display: none;
}

/* 古いコンテンツスタイル（非表示） */
.reason-content {
    display: none;
}

.reason-body {
    display: none;
}

/* 左側コンテンツ（タイトル+テキスト） */
.reason-left-content {
    flex: 6;
    display: flex;
    flex-direction: column;
}

/* ヘッダー付きコンテンツ（タイトルエリア） */
.reason-header-with-content {
    width: 100%;
}

/* シンプルなヘッダー（白背景なし） */
.reason-header-simple {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 25px;
}

/* インライン番号 */
.reason-number-inline {
    font-size: 72px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    position: relative;
    padding-right: 15px;
}

/* 番号の後の縦線 */
.reason-number-inline::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #333;
}

/* タイトル領域のラッパー */
.reason-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 従来の白背景ヘッダー（使用されていない） */
.reason-header {
    background: #fff;
    border: 3px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
}

.reason-title {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 6px #000;
    text-stroke: 3px #000;
    paint-order: stroke fill;
    text-align: left;
}

.reason-title .yellow-highlight {
    color: #FFD700;
}

.reason-subtitle {
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.reason-text-box {
    flex: 1;
}

.reason-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.reason-image {
    flex: 4;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 登録証ボックス */
.certification-box {
    background: #fff8dc;
    padding: 20px;
    margin: 20px 40px;
}

.certification-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 20px;
    align-items: center;
}

.certification-image {
    width: 150px;
    flex-shrink: 0;
}

.certification-image img {
    width: 100%;
    height: auto;
}

.certification-text {
    flex: 1;
    text-align: left;
}

.certification-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.certification-title .highlight {
    background: linear-gradient(transparent 60%, #FFEB3B 60%);
    font-weight: bold;
    padding: 0 4px;
}

.certification-description {
    font-size: 16px;
    line-height: 1.8;
}

/* スマホ専用改行 */
.sp-only {
    display: none;
}

/* 悪徳業者にご注意セクション */
.warning-section {
    background: #1a1a1a;
    padding: 40px;
    margin-top: 60px;
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.warning-badge {
    background: #FFD700;
    color: #000;
    padding: 15px 20px;
    transform: rotate(-15deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    text-align: center;
    min-width: 120px;
}

.warning-icon {
    display: block;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.warning-text {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 15px 0;
    text-align: left;
}

.warning-highlight {
    color: #FFD700;
    font-weight: bold;
}

.warning-description {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    margin: 0;
    text-align: left;
}


/* ============================================
   #service サービス内容 / #voice お客様の声
   ============================================ */
#service .ttlbox h2,
#voice .ttlbox h2 {
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    -webkit-text-stroke: 8px #000;
    text-stroke: 8px #000;
    paint-order: stroke fill;
    margin: 0;
}

/* ============================================
   #area 対応エリア
   ============================================ */
#area .txtbox h2 {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
}

/* ============================================
   #faq よくあるご質問
   ============================================ */
#faq .ttlbox {
    background: #2B5FAB;
    padding: 36px 0;
}

#faq .ttlbox h2 {
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 0;
}


/* ============================================
   スマートフォン対応
   ============================================ */
@media screen and (max-width: 767px) {

    /* sec01 スマホ対応 */
    #sec01 {
        padding: 40px 0;
    }

    .sec01-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .covid-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .covid-card {
        padding: 15px 5px;
    }

    .covid-icon i {
        font-size: 35px;
    }

    .covid-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .covid-card-text {
        font-size: 11px;
    }

    /* sec02 スマホ対応 */
    #sec02 {
        padding: 40px 0;
    }

    .title-small {
        font-size: 14px;
    }

    .title-main {
        font-size: 36px;
        -webkit-text-stroke: 7px #000;
    }

    .title-number {
        -webkit-text-stroke: 7px #000;
    }

    .promise-boxes {
        gap: 15px;
    }

    .promise-box {
        padding: 15px 20px;
    }

    .promise-box p {
        font-size: 14px;
    }

    /* sec04 スマホ対応 */
    #sec04 {
        padding: 40px 0;
    }

    .sec04-title-line1 {
        font-size: 18px;
        -webkit-text-stroke: 4px #000;
    }

    .sec04-title-line2 {
        font-size: 40px;
        -webkit-text-stroke: 6px #000;
    }

    .reasons-container {
        gap: 30px;
    }

    /* 理由アイテム全体 */
    .reason-item {
        flex-direction: column;
        gap: 15px;
    }

    .reason-item-with-cert {
        flex-direction: column;
    }

    .reason-top-content {
        flex-direction: column;
        gap: 15px;
    }

    /* 左側コンテンツを透明にして子要素を親レベルに */
    .reason-left-content {
        display: contents;
    }

    /* ヘッダー部分 */
    .reason-header-simple {
        gap: 10px;
        margin-bottom: 10px;
    }

    .reason-header-with-content {
        order: 1;
    }

    .reason-text-box {
        order: 3;
    }

    /* インライン番号 */
    .reason-number-inline {
        font-size: 42px;
        padding-right: 10px;
    }

    .reason-number-inline::after {
        width: 2px;
    }

    /* タイトル */
    .reason-title {
        font-size: 23px;
        -webkit-text-stroke: 3px #000;
    }

    .reason-subtitle {
        font-size: 14px;
    }

    /* テキスト */
    .reason-text {
        font-size: 14px;
    }

    /* 画像 */
    .reason-image {
        width: 100%;
        flex: none;
        aspect-ratio: 2 / 1;
        order: 2;
    }

    /* certification-box */
    .certification-box {
        margin: 20px 0;
        padding: 15px;
    }

    .certification-content {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .certification-image {
        width: 120px;
        margin: 0 auto;
    }

    .certification-text {
        text-align: left;
    }

    .certification-title {
        font-size: 16px;
    }

    .certification-description {
        font-size: 13px;
    }

    /* スマホ専用改行を表示 */
    .sp-only {
        display: inline;
    }

    /* 悪徳業者にご注意セクション スマホ対応 */
    .warning-section {
        flex-direction: column;
        padding: 20px;
        margin-top: 30px;
        gap: 20px;
    }

    .warning-badge {
        min-width: auto;
        width: fit-content;
        padding: 10px 15px;
        align-self: flex-start;
    }

    .warning-icon {
        font-size: 30px;
    }

    .warning-text {
        font-size: 18px;
        font-weight: 900;
    }

    .warning-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .warning-description {
        font-size: 14px;
    }

    /* service, voice スマホ対応 */
    #service .ttlbox h2,
    #voice .ttlbox h2 {
        font-size: 30px;
        -webkit-text-stroke: 5px #000;
        padding: 20px 0;
    }

    /* area スマホ対応 */
    #area .txtbox h2 {
        font-size: 32px;
        margin: 0 0 20px 0;
    }

    /* faq スマホ対応 */
    #faq .ttlbox {
        padding: 20px 0;
    }

    #faq .ttlbox h2 {
        font-size: 22px;
    }
}