@charset "UTF-8";

/**
 * 2年保証 LP
 * フォーム側 (tyw/style.css) とはトークンを共有せず単独で完結させる
 */

.p-tyw-lp {
    --lp-bg: #def2f8;
    --lp-bg-light: #f1fafd;
    --lp-card: #eafaff;
    --lp-accent: #06a1d7;
    --lp-dark: #006888;
    --lp-red: #c00406;
    --lp-text: #0b0c0c;
    --lp-muted: #535456;
    --lp-line: #b6ccd1;
    --lp-inner: 1080px;

    background: var(--lp-bg);
    color: var(--lp-text);
    font-size: 15px;
    line-height: 1.9;
    overflow-x: hidden;
}

.p-tyw-lp__inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: var(--lp-inner);
    padding: 0 20px;
    width: 100%;
}

.p-tyw-lp__heading {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 48px;
    text-align: center;
}

/* SP のときだけ改行する <br> */
.p-tyw-lp__sp-br {
    display: none;
}

/* 「業界初」アイコン（WARRANTY 01 の見出し内） */
.p-tyw-lp__first-icon {
    flex: none;
    height: auto;
    margin-right: 10px;
    width: 56px;
}

/* WPの style.css 上書き
 *
 * テーマに `a:hover { color: #00A0D0 !important }` があるため、
 * 塗りつぶしボタン（青地・白文字）はホバーで文字が背景と同化してしまう。
 * 以前は `a:hover` 全体を #fff で打ち消していたが、それだと
 * ・「詳細を見る」（ホバーで背景が白に反転する）が白地に白文字
 * ・お問い合わせカード（薄いグレー地）が白文字
 * になるため、白のままにしたいボタンだけに限定する。 */
@media screen and (min-width: 1025px) {
    .p-tyw-lp__button:hover {
        color: #fff !important;
    }
}

/* ----------------------------------------------------------------
 * ファーストビュー
 * ---------------------------------------------------------------- */
.p-tyw-lp__fv {
    background: linear-gradient(180deg, #f6fcfe 0%, var(--lp-bg) 100%);
    box-sizing: border-box;
    margin: 0 auto;
    min-height: 430px;
    /* 商品画像は FV からはみ出す分を切り落とす */
    overflow: hidden;
    padding: 70px 20px 90px;
    position: relative;
}

.p-tyw-lp__fv-inner {
    margin: 0 auto;
    max-width: var(--lp-inner);
    position: relative;
    z-index: 1;
}

/* FV のテキストは一枚の SVG（fv-pc.svg / fv-sp.svg） */
.p-tyw-lp__fv-text {
    margin: 0;
    max-width: 781px;
}

.p-tyw-lp__fv-text img {
    display: block;
    height: auto;
    width: 100%;
}

.p-tyw-lp__fv-image {
    bottom: -30px;
    height: 116%;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.p-tyw-lp__fv-image img {
    display: block;
    height: 100%;
    width: auto;
}

/* 画面が広いときは余白を切り詰めた fv-product-pc.png に切り替え、
 * 画面右端ではなく中央基準で配置してテキストと画像のまとまりを中央に寄せる
 * （右端 = 中央 + 720px なので 1440px で画面右端に一致） */
@media screen and (min-width: 1440px) {
    .p-tyw-lp__fv {
        padding: 95px 20px 130px;
    }

    .p-tyw-lp__fv-inner {
        max-width: 1180px;
    }

    .p-tyw-lp__fv-image {
        bottom: auto;
        height: auto;
        left: calc(50% + 273px);
        right: auto;
        top: 45px;
        width: 447px;
    }

    .p-tyw-lp__fv-image img {
        height: auto;
        width: 100%;
    }
}

/* ----------------------------------------------------------------
 * メリット
 * ---------------------------------------------------------------- */
.p-tyw-lp__merit {
    background: #fff;
    border-radius: 40px;
    margin-bottom: 50px;
    margin-inline: auto;
    max-width: 1200px;
    padding: 70px 0 90px;
}

.p-tyw-lp__merit-card {
    background: var(--lp-card);
    border-radius: 16px;
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    padding: 40px;
}

.p-tyw-lp__merit-card:last-child {
    margin-bottom: 0;
}

.p-tyw-lp__merit-body {
    flex: 1 1 0;
    min-width: 0;
}

.p-tyw-lp__merit-num {
    align-items: center;
    background: var(--lp-accent);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 5px;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
    padding: 3px 10px 1px 14px;
}

.p-tyw-lp__merit-num em {
    font-family: Roboto;
    font-size: 20px;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1;
}

.p-tyw-lp__merit-th {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 18px;
}

.p-tyw-lp__merit-text {
    margin: 0;
}

/* 白地のカードごと画像に含まれるので背景・padding は持たせない（角丸のみ CSS で付ける） */
.p-tyw-lp__merit-figure {
    flex: 0 0 42%;
    margin: 0;
    text-align: center;
}

.p-tyw-lp__merit-figure img {
    display: block;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 100%;
}

/* ----------------------------------------------------------------
 * 保証内容
 * ---------------------------------------------------------------- */
.p-tyw-lp__warranty {
    background: #fff;
    border-radius: 40px;
    padding: 70px 0 90px;
    margin-inline: auto;
    margin-bottom: 50px;
    max-width: 1400px;
}

.p-tyw-lp__panel {
    border: 1px solid var(--lp-accent);
    border-radius: 16px;
    margin-bottom: 32px;
    padding: 56px 40px 40px;
    position: relative;
}

/* WARRANTY 01 はバッジ下の余白がそのままで良いが、02〜04 は詰まって見えるため +10px */
.p-tyw-lp__panel + .p-tyw-lp__panel {
    padding-top: 66px;
}

/* 台形（上辺 200px・下辺 176px）で下辺の左右を角丸にする */
.p-tyw-lp__panel-num {
    align-items: center;
    background: var(--lp-accent);
    box-sizing: border-box;
    clip-path: path("M0 0H200L190.8 30.6Q188 40 180 40H20Q12 40 9.2 30.6Z");
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 5px;
    height: 40px;
    justify-content: center;
    left: 50%;
    letter-spacing: 0.12em;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    width: 200px;
}

.p-tyw-lp__panel-num em {
    font-family: Roboto;
    font-size: 22px;
    font-style: normal;
    font-weight: bold;
}

.p-tyw-lp__panel-body {
    display: flex;
    gap: 40px;
}

.p-tyw-lp__panel-main {
    flex: 1 1 0;
    min-width: 0;
}

.p-tyw-lp__panel-main.--full {
    flex: none;
    width: 100%;
}

.p-tyw-lp__panel-th {
    align-items: center;
    border-bottom: 1px solid var(--lp-line);
    display: flex;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 20px;
    padding-bottom: 16px;
}

.p-tyw-lp__panel-lead {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
}

.p-tyw-lp__panel-text {
    font-size: 16px;
    margin: 0;
}

.p-tyw-lp__panel-note {
    color: var(--lp-muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.p-tyw-lp__panel-figure {
    flex: 0 0 32%;
    margin: 0;
    text-align: center;
}

.p-tyw-lp__panel-figure img {
    height: auto;
    max-width: 100%;
}

.p-tyw-lp__panel-figure.--badge img {
    max-width: 250px;
}

/* 対象製品カルーセル */
.p-tyw-lp__products {
    background: #eaf7fc;
    border-radius: 12px;
    margin-top: 40px;
    padding: 36px 0;
    position: relative;
}

.p-tyw-lp__products:has(.p-tyw-lp__set) {
    margin-top: 13px;
}

.p-tyw-lp__set {
    align-items: center;
    background: var(--lp-dark);
    color: #fff;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    height: 76px;
    justify-content: center;
    left: 50%;
    margin: 0;
    position: absolute;
    top: -44px;
    transform: translateX(-50%);
    width: 76px;
    clip-path: polygon(
        34% 0,
        66% 0,
        66% 34%,
        100% 34%,
        100% 66%,
        66% 66%,
        66% 100%,
        34% 100%,
        34% 66%,
        0 66%,
        0 34%,
        34% 34%
    );
}

.p-tyw-lp__products-th {
    color: var(--lp-accent);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.p-tyw-lp__products-th strong {
    color: var(--lp-text);
}

.p-tyw-lp__slider {
    overflow: hidden;
    padding: 0 56px;
    position: relative;
}

.p-tyw-lp__slider .swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* SP（centeredSlides）は中央の1枚だけ完全表示 */
.p-tyw-lp__slider .swiper-slide-active {
    opacity: 1;
}

/* PC（3枚表示・breakpoint 768 は lp.js と合わせる）は active・next・next の次のカードまで完全表示 */
@media screen and (min-width: 768px) {
    .p-tyw-lp__slider .swiper-slide-next,
    .p-tyw-lp__slider .swiper-slide-next + .swiper-slide {
        opacity: 1;
    }
}

.p-tyw-lp__card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 20px;
}

.p-tyw-lp__card-name {
    border-bottom: 2px solid var(--lp-line);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
}

.p-tyw-lp__card-name::after {
    background: var(--lp-accent);
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 60px;
}

.p-tyw-lp__card-figure {
    background: #f5f5f5;
    border-radius: 6px;
    display: grid;
    flex: 1 1 auto;
    margin: 0 0 16px;
    /* 商品画像が未登録でも「2年保証」バッジがはみ出さない高さを確保する */
    min-height: 150px;
    padding: 16px;
    place-items: center;
    position: relative;
}

.p-tyw-lp__card-figure img {
    height: auto;
    max-width: 100%;
}

.p-tyw-lp__card-badge {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 54px;
}

/* 詳細ボタンは wp テーマの .l-searchresult-button / .c-button-arrow を利用し、
 * 商品一覧（一覧＝画像タブ）と同じサイズに揃える。
 * テーマ側の .l-searchresult-image 配下の指定と同等の詳細度が必要なため
 * ラッパークラスまで含めて指定する */
.p-tyw-lp__card-link.l-searchresult-button a {
    height: 39px;
    padding-left: 20px;
    width: 144px;
}

.p-tyw-lp__card-link.l-searchresult-button a .c-button-arrow__icon {
    width: 27px;
    z-index: 1;
}

.p-tyw-lp__card-link.l-searchresult-button a .c-button-arrow__icon::before,
.p-tyw-lp__card-link.l-searchresult-button a .c-button-arrow__icon::after {
    width: 12px;
}

.p-tyw-lp__slider-prev,
.p-tyw-lp__slider-next {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    position: absolute;
    top: 50%;
    width: 40px;
    z-index: 2;
}

.p-tyw-lp__slider-prev {
    left: 8px;
}

.p-tyw-lp__slider-next {
    right: 8px;
}

.p-tyw-lp__slider-prev::before,
.p-tyw-lp__slider-next::before {
    border-right: 6px solid var(--lp-dark);
    border-top: 6px solid var(--lp-dark);
    content: "";
    display: block;
    height: 25px;
    margin: 0 auto;
    width: 25px;
}

.p-tyw-lp__slider-prev::before {
    transform: rotate(-135deg);
}

.p-tyw-lp__slider-next::before {
    transform: rotate(45deg);
}

.p-tyw-lp__slider-prev.swiper-button-disabled,
.p-tyw-lp__slider-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* 対象外の例 */
.p-tyw-lp__exclude {
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    padding: 24px 28px;
}

.p-tyw-lp__exclude-th {
    border-right: 2px solid #d3d3d3;
    flex: 0 0 160px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.p-tyw-lp__exclude-list {
    line-height: 1.6;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-tyw-lp__exclude-list li {
    padding-left: 1.1em;
    position: relative;
}

.p-tyw-lp__exclude-list li::before {
    content: "•";
    left: 0;
    position: absolute;
}

/* 登録フロー */
.p-tyw-lp__flow {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
}

.p-tyw-lp__flow-item {
    background: #eaf7fc;
    border-radius: 10px;
    padding: 24px 16px;
    position: relative;
    text-align: center;
}

/* 矢印は .p-tyw-lp__flow-item ブロックの高さを基準に天地中央へ配置する */
.p-tyw-lp__flow-item + .p-tyw-lp__flow-item::before {
    background: url(../../images/tyw/lp/warranty04-arrow-pc.svg) no-repeat center center / contain;
    content: "";
    height: 23px;
    left: -29.5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 43px;
}

.p-tyw-lp__flow-th {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.p-tyw-lp__flow-note {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 4px 0 0;
}

.p-tyw-lp__flow-icon {
    background: #fff;
    border-radius: 50%;
    display: grid;
    height: 104px;
    margin: 20px auto 0;
    place-items: center;
    width: 104px;
}

.p-tyw-lp__flow-icon img {
    height: auto;
    max-width: 64px;
}

/* 登録ボタン */
.p-tyw-lp__entry {
    margin-top: 48px;
    text-align: center;
}

.p-tyw-lp__button {
    align-items: center;
    background: var(--lp-accent);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    min-width: 280px;
    padding: 16px 32px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.p-tyw-lp__button::after {
    background: url(../../images/tyw/icn_arrow-white.svg) no-repeat center center / contain;
    content: "";
    flex: none;
    height: 17px;
    width: 17px;
}

.p-tyw-lp__button:hover {
    opacity: 0.8;
}

.p-tyw-lp__entry-note {
    color: var(--lp-muted);
    font-size: 13px;
    margin: 12px 0 0;
}

/* ----------------------------------------------------------------
 * 不具合が発生したとき
 * ---------------------------------------------------------------- */
.p-tyw-lp__trouble {
    background: var(--lp-bg);
    padding: 0 0 80px;
}

.p-tyw-lp__trouble .p-tyw-lp__inner {
    max-width: 950px;
}

.p-tyw-lp__trouble-card {
    background: #fff;
    border-radius: 16px;
    padding: 44px 48px;
    position: relative;
}

.p-tyw-lp__trouble-th {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

.p-tyw-lp__trouble-text {
    margin: 0 0 28px;
}

.p-tyw-lp__contacts {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.p-tyw-lp__contact {
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    min-height: 92px;
    padding: 18px 52px 18px 24px;
    position: relative;
    text-decoration: none;
    border: 1px solid #CECECE;
}

.p-tyw-lp__contact::after {
    background: url(../../images/tyw/icn_arrow.svg) no-repeat center center / contain;
    content: "";
    height: 22px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
}

.p-tyw-lp__contact-th {
    font-size: 15px;
    font-weight: 700;
    width: 100%;
}

.p-tyw-lp__contact-tel {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.p-tyw-lp__contact-text {
    color: var(--lp-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

/* 電話番号の先頭アイコン */
.p-tyw-lp__contact-icon {
    height: 24px;
    margin-right: 8px;
    vertical-align: -3px;
    width: 24px;
}

/* Webフォームカードの封筒イラスト */
.p-tyw-lp__contact.--web {
    align-items: center;
    gap: 20px;
    justify-content: left;
}

.p-tyw-lp__contact-mail {
    flex: none;
    height: auto;
    width: 84px;
}

/* ----------------------------------------------------------------
 * 連絡先カード（封筒＋テキストが1行に収まらなくなる幅帯）
 *
 * .p-tyw-lp__contacts は 767px 以下になるまで2カラムのため、
 * 768〜900px 付近ではカード幅が 1行分（padding 24 + 封筒 84 + gap 20
 * + テキスト 165 + padding 52 ≒ 347px）に届かず封筒が段落ちする。
 * SP と同じ詰め方をこの帯域から効かせる。
 * ---------------------------------------------------------------- */
@media screen and (max-width: 899px) {
    /* 矢印（22px）が収まる分だけに right padding を詰める */
    .p-tyw-lp__contact {
        padding-right: 46px;
    }

    /* 封筒とテキストを横並びに保つ */
    .p-tyw-lp__contact.--web {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .p-tyw-lp__contact-text {
        font-size: 15px;
        /* nowrap でも溢れず、テキスト側で折り返させる */
        min-width: 0;
    }

    .p-tyw-lp__contact-mail {
        width: 64px;
    }
}

/* ----------------------------------------------------------------
 * SP
 * ---------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .p-tyw-lp {
        font-size: 14px;
    }

    .p-tyw-lp__heading {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .p-tyw-lp__sp-br {
        display: inline;
    }

    .p-tyw-lp__first-icon {
        margin-right: 8px;
        width: 36px;
    }

    /* FV */
    .p-tyw-lp__fv {
        padding: 36px 20px 0;
    }

    /* SP は fv-sp.svg に切り替わる（横幅は 325px 基準） */
    .p-tyw-lp__fv-text {
        margin: 0 auto;
        max-width: 325px;
    }

    .p-tyw-lp__fv-image {
        height: auto;
        margin-top: -10px;
        margin-left: auto;
        margin-right: -20px;
        max-height: 380px;
        max-width: 343px;
        position: static;
        right: auto;
        text-align: center;
    }

    .p-tyw-lp__fv-image img {
        height: auto;
        margin: 0 auto;
        max-width: 100%;
        width: auto;
    }

    /* メリット */
    .p-tyw-lp__merit,
    .p-tyw-lp__warranty {
        border-radius: 24px 24px 0 0;
        padding: 44px 0 56px;
    }

    .p-tyw-lp__merit-card {
        display: block;
        padding: 34px 20px;
    }

    .p-tyw-lp__merit-th {
        font-size: 17px;
    }

    .p-tyw-lp__merit-figure {
        margin-top: 24px;
    }

    /* 保証パネル */
    .p-tyw-lp__panel {
        padding: 80px 20px 28px;
    }

    .p-tyw-lp__panel + .p-tyw-lp__panel {
        padding-top: 90px;
    }

    .p-tyw-lp__panel-body {
        display: block;
    }

    .p-tyw-lp__panel-th {
        font-size: 22px;
    }

    .p-tyw-lp__panel-figure {
        margin-top: 24px;
    }

    .p-tyw-lp__products-th {
        font-size: 18px;
    }

    .p-tyw-lp__slider {
        padding: 0 20px;
    }

    .p-tyw-lp__slider-prev {
        left: 0;
    }

    .p-tyw-lp__slider-next {
        right: 0;
    }

    .p-tyw-lp__exclude {
        display: block;
        padding: 20px;
    }

    .p-tyw-lp__exclude-th {
        border-bottom: 2px solid #d3d3d3;
        border-right: none;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    /* 文言側の改行（nl2br）は PC 用。SP は1行で表示する */
    .p-tyw-lp__exclude-th br {
        display: none;
    }

    /* SP は縦一列。カード内はアイコン左・テキスト右の横並び */
    .p-tyw-lp__flow {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .p-tyw-lp__flow-item {
        align-items: center;
        display: flex;
        gap: 16px;
        padding: 16px 20px;
        text-align: left;
    }

    /* 矢印は縦向きにしてカード間の中央へ */
    .p-tyw-lp__flow-item + .p-tyw-lp__flow-item::before {
        background-image: url(../../images/tyw/lp/warranty04-arrow-sp.svg);
        bottom: auto;
        height: 31px;
        left: 50%;
        top: -16px;
        transform: translateX(-50%);
        width: 23px;
    }

    .p-tyw-lp__flow-body {
        flex: 1 1 auto;
    }

    .p-tyw-lp__flow-th {
        font-size: 15px;
    }

    .p-tyw-lp__flow-icon {
        flex: none;
        height: 80px;
        margin: 0;
        order: -1;
        width: 80px;
    }

    .p-tyw-lp__flow-icon img {
        max-width: 50px;
    }

    .p-tyw-lp__button {
        font-size: 16px;
        min-width: 0;
        width: fit-content;
    }

    /* 不具合 */
    .p-tyw-lp__trouble {
        padding-bottom: 50px;
    }

    .p-tyw-lp__trouble-card {
        padding: 28px 20px;
    }

    .p-tyw-lp__trouble-th {
        font-size: 22px;
        text-align: left;
    }

    .p-tyw-lp__contacts {
        grid-template-columns: 1fr;
    }

    .p-tyw-lp__contact-tel {
        font-size: 24px;
    }
}
