@charset "utf-8";

/* =========================================================
   G-CART page template styles
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@400;600;700&display=swap');

.gcart-content {
    --gcart-main: #00357D;
    --gcart-border: #B0B5C3;
    --gcart-gap: 80px;
    font-family: "Noto Sans JP", sans-serif;
}

/* 元テーマ側の上部padding(60px)を本ページに限り打ち消す */
body:has(.gcart-fv) #main,
body:has(.gcart-fv) .main_content,
body:has(.gcart-fv) article,
body:has(.gcart-fv) .entry-content,
body:has(.gcart-fv) .gcart-content {
    padding-top: 0 !important;
}

/* 共通：幅1100px / 本体860px（左右120pxpadding） */
.gcart-inner {
    width: 1100px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* ---------- ファーストビュー ---------- */
/* 親要素(#main等)が1100pxより狭い(d-5of7グリッドで約920px)ため、
								   overflow:hidden(cfクラス由来)で切り取られないよう本ページに限り解除する */
body:has(.gcart-fv) .second_page,
body:has(.gcart-fv) .main_content,
body:has(.gcart-fv) #main,
body:has(.gcart-fv) article,
body:has(.gcart-fv) .entry-content {
    overflow: visible !important;
}

/* .main_content の min-width:900px が原因で、iPad等(768〜899px)の
								   ビューポートより中身が広くなり横崩れするため、本ページに限り解除する */
body:has(.gcart-fv) .main_content {
    min-width: 0 !important;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body:has(.gcart-fv) .main_content {
        padding: 0px 24px !important;
    }

    .gcart-fv__img {
        object-fit: contain !important;
        position: relative;
        top: -24px;
    }
}

.gcart-fv {
    width: 100%;
    margin: 0 auto var(--gcart-gap);
    height: 350px;
    overflow: hidden;
}

.gcart-fv__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcart-fv picture {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {

    .gcart-fv__img {
        object-fit: contain;
    }

    .gcart-fv {
        height: 220px;
        margin-bottom: 40px;
    }
}

/* ---------- イントロダクション ---------- */
.gcart-intro {
    margin-bottom: var(--gcart-gap);
}

section.gcart-intro h2 {
    padding: 32px;
}

.gcart-intro p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 16px;
}

/* ---------- 目次 ---------- */
.gcart-toc {
    margin-bottom: var(--gcart-gap);
}

.gcart-toc__inner {
    width: 1100px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px;
    margin: 0 auto;
    background: #F0F5F7;
}

.gcart-toc__heading {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: left;
    margin: 0 0 8px;
}

.gcart-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gcart-toc__list li {
    border-bottom: 1px solid var(--gcart-border);
}

.gcart-toc__list a {
    display: flex;
    align-items: center;
    height: 72px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.gcart-toc__num {
    color: #000;
    margin-right: 16px;
    flex-shrink: 0;
}

.gcart-toc__title {
    color: var(--gcart-main);
    font-weight: bold;
    line-height: 1.2rem;
}

/* ---------- 本文セクション共通 ---------- */
.gcart-section {
    margin-bottom: var(--gcart-gap);
}

.gcart-section__head {
    position: relative;
    margin-bottom: 24px;
    background-color: var(--gcart-main);
    padding: 8px 0;
    height: 106px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.gcart-section__head::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background-image: url('../../common/img/g-cart/theme_back_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    z-index: 0;
    pointer-events: none;
}

.gcart-section__num {
    font-family: 'Lexend Exa', sans-serif;
    font-size: 24px;
    padding: 8px 24px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    background: #4D72A4;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

.gcart-section__title {
    font-size: 28px;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    z-index: 2;
}

.gcart-section__title-sub {
    font-size: 20px;
    display: inline-block;
    margin-top: 4px;
}

.gcart-heading {
    font-size: 24px;
    line-height: 2.4rem;
    text-indent: -2rem;
    letter-spacing: -1%;
    margin-left: 2rem;
    height: auto;
    font-weight: bold;
    color: var(--gcart-main);
    margin: 0 2rem 14px;
}

.gcart-subheading {
    font-size: 18px;
    font-weight: bold;
    color: var(--gcart-main);
    position: relative;
    padding-left: 14px;
    margin: 40px 0 16px;
}

.parts-subheading {
    font-size: 18px;
    font-weight: bold;
    color: var(--gcart-main);
    position: relative;
    letter-spacing: -1%;
    margin: 0px 0 16px;
}

.movie-subheading {
    font-size: 18px;
    line-height: 1.8rem;
    font-weight: bold;
    color: var(--gcart-main);
    position: relative;
    padding-left: 14px;
    margin: 40px 0 16px;
}

.gcart-subheading:first-of-type {
    margin-top: 0;
}

.gcart-subheading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: 100%;
    background: var(--gcart-main);
}

.gcart-section p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 16px;
}

.gcart-intro strong,
.gcart-section strong {
    font-weight: bold;
}

/* 画像パーツ（1点 / 2点並列） */
.gcart-images {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.gcart-images--1 {
    display: block;
}

.gcart-images figure {
    margin: 0;
    flex: 1;
    position: relative;
}

.gcart-images img {
    width: 100%;
    display: block;
    height: 360px;
    object-fit: cover;
}

@media (max-width: 768px) {

    .gcart-toc__inner {
        padding: 16px;
    }

    .gcart-toc__list a {
        height: 56px;
    }

    .gcart-images img {
        height: 250px;
    }

    .gcart-section__head::after {
        top: 30px;
        width: 100px;
    }
}

/* 比較表 */
/* ---------- 比較表（横スクロール対応） ---------- */
.gcart-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}

.gcart-compare-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.gcart-compare-table th {
    background: #4D72A4;
    color: #fff;
    font-size: 15px;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid #D9E2EC;
    white-space: nowrap;
}

.gcart-compare-table th:last-child {
    background: var(--gcart-main);
}

.gcart-compare-table td {
    padding: 16px;
    border: 1px solid #D9E2EC;
    font-size: 14px;
    line-height: 1.7;
    vertical-align: middle;
}

.gcart-compare-table td:last-child {
    background: #E4EEFF;
}

.gcart-compare-table td.compare-label {
    background: #F0F5F7;
    color: var(--gcart-main);
    white-space: nowrap;
}

.gcart-compare-table .main-text {
    display: block;
    color: #000;
}

.txt-strong {
    font-weight: bold;
    color: var(--gcart-main) !important;
}

.gcart-compare-table .sub-text {
    display: block;
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.gcart-compare-table .sub-text.is-highlight {
    color: #E4392E;
}

.gcart-compare-table .highlight {
    color: #E4392E;
    font-weight: 700;
}

/* ---------- 特殊セクション（06 機能・装備・参考データ 型） ---------- */
.gcart-feature__head {
    position: relative;
    margin-bottom: 24px;
}

.gcart-feature__num {
    font-family: 'Lexend Exa', sans-serif;
    font-size: 24px;
    color: #fff;
    background: var(--gcart-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.gcart-feature__title {
    font-size: 28px;
    font-weight: bold;
    color: var(--gcart-main);
    line-height: 1.4;
    margin: 0;
}

.gcart-feature__badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
}

.gcart-feature__row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.gcart-feature__row--reverse {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {

    .gcart-feature__row,
    .gcart-feature__row--reverse {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {

    .row-reverse {
        flex-direction: column-reverse;
    }
}

.gcart-feature__photos {
    flex: 1;
    width: 100%;
    margin: 0;
}

.gcart-feature__texts {
    flex: 1;
}

.gcart-feature__texts .gcart-subheading:first-child {
    margin-top: 0;
}

.gcart-icon-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gcart-main);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.gcart-images figure .gcart-icon-num {
    position: absolute;
    top: 8px;
    left: 8px;
}

.gcart-icon-num--inline {
    position: static;
    margin-right: 6px;
}

/* 主要スペック テーブル */
.gcart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    table-layout: fixed;
}

table.gcart-table td:first-child {
    background: #EFF3FA;
    color: var(--gcart-main);
}

.gcart-table th,
.gcart-table td {
    padding: 12px 16px;
    border: 1px solid var(--gcart-border);
    font-size: 14px;
    text-align: left;
}

.gcart-table th {
    background: var(--gcart-main);
    color: #fff;
    width: 30%;
}

.gcart-table th:first-child {
    width: 10%;
}

/* ai */
p.sec04-att {
    background: #F0F5F7;
    padding: 2rem;
}

.sec04-ai {
    background: #F0F5F7;
    padding: 1rem;
}

.sec04-ai span {
    font-size: 20px;
    font-weight: bold;
}

/* 名言 */
p.quote {
    font-size: 16px;
    font-weight: 700;
    color: var(--gcart-main);
}

p.quote span {
    display: block;
    text-align: right;
    font-weight: 700;
    color: #000;
}

.rogo {
    max-width: 30%;
    min-width: 200px;
    margin-left: auto;
    margin-top: 2rem;
}

/* CTAボックス */
.gcart-cta-box {
    padding: 24px;
    text-align: center;
    margin: 40px 0;
    background: #F0F5F7;
}

.gcart-cta-box p {
    margin: 0 0 8px;
    font-weight: bold;
    font-size: 20px;
}

.gcart-cta-box a {
    color: var(--gcart-main);
    font-weight: bold;
    text-decoration: underline;
}

/* ---------- 動画サムネイル埋め込み ---------- */

.movie-area {
    max-width: 500px;
    margin: auto;
}

.gcart-video {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}

.gcart-video--portrait {
    aspect-ratio: 9 / 16;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.gcart-video--landscape {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.gcart-video__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcart-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 0, 0, .8);
    pointer-events: none;
}

.gcart-video__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.gcart-video__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gcart-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.gcart-video-grid .gcart-video {
    margin-bottom: 0;
}

.content-box {
    text-align: center;
    padding: 3rem 0;
}

.content-box .btn {
    background-color: #062857;
    padding: 20px 50px;
    color: #fff;
    text-decoration: none;
    max-width: 300px;
    margin: auto;
}

@media (max-width: 768px) {
    .gcart-toc__heading {
        font-size: 20px;
    }

    .gcart-section__num {
        font-size: 18px;
    }

    .gcart-section__title {
        font-size: 22px;
    }

    .gcart-section__title-sub {
        font-size: 16px;
    }

    .gcart-heading {
        font-size: 19px;
        line-height: 2rem;
        margin: 0 0 1.5rem 1rem;
        text-indent: -1rem;
        letter-spacing: -2%;
    }

    .gcart-subheading {
        line-height: 1.8rem;
    }

    .gcart-feature__num {
        font-size: 18px;
    }

    .gcart-feature__title {
        font-size: 22px;
    }

    .sec04-ai span {
        font-size: 16px;
    }

    .gcart-cta-box p {
        font-size: 16px;
    }
}