.card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 50px;
    padding: 0;
    list-style: none;
}

#warranty-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.warranty-original {
    max-width: 1200px;
    margin: 0 auto;
}

.cover-text h1 {
    font-size: 4.6rem;
}

.cover-text p {
    font-size: 2.8rem;
}

.card-list li a.active {
    background: #fff;
    border-bottom: 4px solid #ff788c;
    color: #ff788c;
}

.card-list li a {
    border-bottom: 4px solid #bebebe;
    color: #646464;
    display: block;
    font-weight: 500;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    background-color: #f5f5f5;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.warranty-main {
    display: flex;
    gap: 70px;
    padding-bottom: 60px;
    max-width: 1100px;
    align-items: center;
}

.warranty-main-img {
    width: auto;
}

.warranty-main-img img {
    width: auto;
    height: 500px;
}

.warranty-main-text h1 {
    font-family: Noto Sans JP;
    font-size: 2.8rem;
    font-weight: 700;
    width: 100%;
    line-height: 1.5;
}

.warranty-main.is-reverse {
    flex-direction: row-reverse;
    margin-left: auto;
}

#table-responsive {
    background-color: #fffaf0;
    padding: 40px 0;
}

#table-responsive .warranty-main-text h1 {
    text-align: center;
}

.text-pink {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ff788c;
    line-height: 1.5;
}

.text-gray {
    font-size: 2.4rem;
    font-weight: 700;
    color: #b4b4b4;
    line-height: 1.5;
}

/* テーブル全体のコンテナ（横スクロール用） */
/* テーブル全体のコンテナ（横スクロール用） */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

/* テーブルの基本スタイル */
.warranty-table {
    width: 100%;
    border-collapse: separate;
    /* 💡角丸を適用するため collapse から変更 */
    border-spacing: 0;
    /* 💡セル間の隙間をなくす */
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.4;
    min-width: 650px;
    /* スマホで潰れすぎないように最低幅を設定 */
    border: 1px solid #bebebe;
    /* テーブル全体を囲む外枠（ヘッダー色に合わせる） */
    border-radius: 15px;
    /* 丸みのサイズ（お好みで調整してください） */
    overflow: hidden;
    /* 中のセルが角からはみ出るのを防ぐ */
    margin-top: 20px;
}

/* ヘッダー（最上行）のスタイル */
.warranty-table th,
/* 今後thに変更する場合を考慮 */
.warranty-table thead td {
    background-color: #22a173;
    /* ハウスガードのイメージに合わせた深緑 */
    color: #ffffff;
    font-weight: 500;
    padding: 12px 8px;
    border: 1px solid #bebebe;
}

/* ヘッダーの右端のセルの線を消す（外枠と被るため） */
.warranty-table th:last-child,
.warranty-table thead td:last-child {
    border-right: none;
}

/* データ行のスタイル */
.warranty-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid #bebebe;
    /* セルの下の線 */
    border-right: 1px solid #bebebe;
    /* セルの右の線 */
    color: #333333;
}

/* データ行の右端・最下行の余計な線を消す（外枠と被るため） */
.warranty-table tbody td:last-child {
    border-right: none;
}

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

.warranty-table tbody tr:nth-child(1),
.warranty-table tbody tr:nth-child(2),
.warranty-table tbody tr:nth-child(3),
.warranty-table tbody tr:nth-child(4) {
    background-color: #e6e6e6;
}

.warranty-table tbody tr:nth-child(n+5) td:first-child {
    background-color: #aae1c8;
    /* 💡ここにお好みのカラーコードを指定してください */
    font-weight: bold;
    /* 必要に応じて文字を太字に（不要なら削除可） */
}

.warranty-table tbody tr:nth-child(n+1) td:first-child,
.warranty-table tbody tr:nth-child(n+1) td:last-child {
    font-weight: 700;
}

.warranty-table tbody tr:nth-child(n+1) td:first-child {
    letter-spacing: 3px;
}

.warranty-table tbody tr:nth-child(n+1) td:nth-child(2),
.warranty-table tbody tr:nth-child(n+1) td:nth-child(3),
.warranty-table tbody tr:nth-child(n+1) td:nth-child(4),
.warranty-table tbody tr:nth-child(n+1) td:nth-child(5) {
    font-weight: 700;
    font-size: 3rem;
    color: #bebebe;
}

.warranty-table tbody tr:nth-child(n+1) td:nth-child(6),
.warranty-table tbody tr:nth-child(n+1) td:nth-child(7) {
    font-size: 1.2rem;
    font-weight: 400;

}

.warranty-table .none-mark {
    font-size: 3rem;
    color: #bebebe;
}

.warranty-table .check-mark {
    color: #ff788c;
    font-weight: bold;
}

.warranty-table th:nth-child(2),
.warranty-table td:nth-child(2),
.warranty-table th:nth-child(3),
.warranty-table td:nth-child(3),
.warranty-table th:nth-child(4),
.warranty-table td:nth-child(4),
.warranty-table th:nth-child(5),
.warranty-table td:nth-child(5),
.warranty-table th:nth-child(7),
.warranty-table td:nth-child(7) {
    width: 9%;
}

.warranty-table th:nth-child(8),
.warranty-table td:nth-child(8) {
    width: 12%;
}

#warranty-section2 .warranty-main-text h1 {
    text-align: center;
    line-height: 1.5;
}

#warranty-section2 {
    padding: 70px 0;
}

.aw01_cost_img img[src*="_pc.png"] {
    display: block;
    width: 100%;
    /* 必要に応じて最大幅などを調整してください */
    height: auto;
}

.aw01_cost_img {
    margin-top: 40px;
}

.aw01_cost_img img[src*="_sp.png"] {
    display: none;
}

/* オプション期間 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== 保証期間チャート（埋め込み可・スコープ化） ===== */
.hg-gantt-scroll,
.hg-gantt,
.hg-gantt * {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

/* 横スクロールのラッパー：縮小せず、スマホはスワイプで閲覧 */
.hg-gantt-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.hg-gantt {
    --coral: #ff788c;
    /* ヘッダー＋保証バー */
    --rose-bg: #ffe1e5;
    /* 延長可能 背景 */
    --rose-tx: #ff788c;
    /* 延長可能 文字 */
    --label-bg: #e6e6e6;
    /* 左ラベル背景 */
    --label-tx: #3a3a3a;
    --line: #bebebe;
    /* 罫線・外枠 すべて共通グレー */
    width: 1000px;
    flex: none;
    display: grid;
    grid-template-columns: 215px repeat(6, 1fr);
    font-family: "Noto Sans JP", sans-serif;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}

/* ---- ヘッダー（縦罫なし・ベタのコーラル） ---- */
.hg-gantt .h-corner {
    background: var(--coral);
    height: 64px
}

.hg-gantt .h-cell {
    background: var(--coral);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .12em;
    border-left: 1px solid var(--line);
}

/* ---- 左ラベル列（連続グレー＋横区切り＋右縦罫1本） ---- */
.hg-gantt .label {
    background: var(--label-bg);
    color: var(--label-tx);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .04em;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---- プロット（縦罫なし・横区切りのみ） ---- */
.hg-gantt .plot {
    grid-column: 2 / span 6;
    height: 80px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.hg-gantt .last {
    border-bottom: none
}

/* ---- バー（矢印） ---- */
.hg-gantt .bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}

.hg-gantt .dark {
    background: var(--coral);
    color: #fff;
    letter-spacing: .06em
}

.hg-gantt .lite {
    background: var(--rose-bg);
    color: var(--rose-tx);
    letter-spacing: .02em
}

#warranty-section1 {
    background-color: #f5f5f5;
    padding: 70px 0;
}

.warranty-main-text h1[data-icon]::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.title3 p[data-icon]::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
}


h1[data-icon="aw03_icon_a"]::before {
    background-image: url("/img/warranty/03/aw03_icon_a.png");
}

h1[data-icon="aw01_icon01"]::before {
    background-image: url("/img/warranty/01/aw01_icon01.png");
}

h1[data-icon="aw01_icon02"]::before {
    background-image: url("/img/warranty/01/aw01_icon02.png");
}

h1[data-icon="aw01_icon03"]::before {
    background-image: url("/img/warranty/01/aw01_icon03.png");
}

h1[data-icon="aw01_icon04"]::before {
    background-image: url("/img/warranty/01/aw01_icon04.png");
}

h1[data-icon="aw03_icon_b"]::before {
    background-image: url("/img/warranty/03/aw03_icon_b.png");
}

h1[data-icon="aw03_icon_c"]::before {
    background-image: url("/img/warranty/03/aw03_icon_c.png");
}

h1[data-icon="aw03_icon_d"]::before {
    background-image: url("/img/warranty/03/aw03_icon_d.png");
}

p[data-icon="info_tel_icon"]::before {
    background-image: url("/img/info/02/info_tel_icon.png");
}

.warranty-main-text h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warranty-ditail-title {
    text-align: center;
    width: 100%;
}

.warranty-ditail-subtitle {
    text-align: center;
    width: 100%;
    font-size: 2.8rem;
}

.warranty-ditail {
    margin-top: 60px;
}

.warranty-blk {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: space-between;
}

.warranty-item {
    align-items: center;
}

.warranty-item img {
    width: 100%;
}

.warranty-item h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #22a173;
}

.text2 {
    width: 90%;
}

.is-flex img {
    width: 30%;
    height: auto;

}

.is-flex {
    gap: 100px;

}

.title3 h2 {
    line-height: 1.5;
}

.warranty-card-cover {
    margin: 0 auto;
    width: 90%;
}

.warranty-card {
    display: flex;
    justify-content: space-between;

}

.bg-lightgreen {
    background-color: #e6f5f0;
}

.aw-card-blk {
    border: solid 1px #22a173;
    border-radius: 40px;
    padding: 35px;
}

.aw-card-item img {
    width: 80px;
    height: auto;
}

.aw-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.aw-card-text {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0;
    letter-spacing: 2px;
    line-height: 1.5;
}

.warranty-achieve-blk {
    display: flex;
    gap: 40px;
    align-items: stretch;

}

.warranty-achieve-blk p {
    margin: 0;
}

/* 左右共通 */
.warranty-achieve-blk>* {
    flex: 1;

}

/* 右側カード */
.warranty-achieve-blk .warranty-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 左画像 */
.warranty-achieve-blk>img {
    width: auto;
    height: 500px;
    object-fit: cover;
    display: block;
}

.warranty-achieve-blk .aw-card-text {
    font-family: Oswald;
    font-size: 4.6rem;
}

.warranty-achieve-blk .aw-card-blk {
    border: solid 1px #e6f5f0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.warranty-achieve-blk .warranty-card {
    width: 100%;
}

.warranty-achieve p {
    text-align: center;
}


@media screen and (max-width: 1024px) {
    .warranty-main {
        margin-left: auto;
        margin-right: auto;
    }

    .aw01_cost_img img[src*="_pc.png"] {
        display: none;
    }

    .aw01_cost_img img[src*="_sp.png"] {
        display: block;
        width: 100%;
        /* 横幅いっぱいに綺麗に収める */
        height: auto;
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .inner3 {
        width: 70%;
        max-width: 1000px;
    }

    section h1 {
        font-size: 4.6rem;
    }

    .warranty-main-text h1 {
        font-size: 2.5rem;
    }

    @media screen and (max-width: 625px) {
        .card-list li a {
            font-size: 1.2rem;
            letter-spacing: 0px;
        }

        .text {
            font-size: 1.4rem;
        }

        .warranty-main-text p {
            font-size: 1.4rem;
        }

        .subtitle2 {
            margin-top: 10px;
        }

        .title3 h2 {
            letter-spacing: 1px;
        }

        .warranty-ditail-title {
            font-size: 4rem;
        }

        .warranty-ditail-subtitle {
            font-size: 2.2rem;
        }

        .warranty-main-text h1 {
            font-size: 2rem;
            letter-spacing: 1px;
        }

        .warranty-blk {
            flex-direction: column;
        }

        .pc {
            display: none;
        }

        .is-flex {
            flex-direction: column;
            gap: 20px;
        }

        .is-flex img {
            width: 100%;
        }

        .text2 {
            margin: 0 auto;
            margin-top: 15px;
        }

        #warranty-section2 {
            padding: 30px 0;
        }

        section h1 {
            font-size: 3.6rem;
        }

        .inner3 {
            width: 100%;
        }

        .warranty-item h2 {
            letter-spacing: 1px;
        }

        #warranty-section1 {
            padding: 30px 0;
        }

        .warranty-item img {
            margin-top: 15px;
        }

        .warranty-main {
            flex-direction: column;
        }

        .warranty-main-text {
            width: 85%;
            margin: 0 auto;
        }

        p.text-pink {
            font-size: 1.8rem;
            letter-spacing: 0px;
        }

        .cover-text h1 {
            font-size: 4.6rem;
        }

        .cover-text .title p {
            font-size: 2.5rem;
        }

        .section p {
            font-size: 1.4rem !important;
        }

        .warranty-card {
            flex-direction: column;
        }

        .warranty-card-cover {
            width: 100%;
        }

        .warranty-achieve p {
            text-align: justify;
            font-size: 1.4rem;
        }

        .warranty-achieve-blk {
            flex-direction: column;
        }

        .warranty-achieve-blk .aw-card-text {
            font-size: 2.8rem;
        }

        .fs-18 {
            font-size: 1.2rem;
        }

        .aw-card-blk {
            border-radius: 20px;
        }

        .img_blk img {
            height: 80%;
        }

        .warranty-main.is-reverse {
            flex-direction: column;
        }

        p.text-gray {
            font-size: 1.8rem;
            letter-spacing: 0px;
        }

        #warranty-section {
            margin-top: 40px;
            margin-bottom: 40px;
        }

        .warranty-main {
            padding-bottom: 40px;
            gap: 30px;
        }

        .warranty-card {
            gap: 20px;
        }

        .img-blk {
            flex-direction: column;
        }
    }
}