/* =========================================================
   Futureshop コラム共通CSS
   ※更新した場合、コマクリ内とツール内両方のファイルを更新してください。
   ========================================================= */

.column-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
}

.column-article {
    width: 100%;
}

.column-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.column-wrap a {
    color: inherit;
    text-decoration: none;
}

/* 大見出し */
.column-heading {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 3px solid #318f40;
    color: #000;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;
}

/* 小見出し */
.column-subheading {
    margin: 0 0 16px;
    color: var(--subheading-color, #111827);
    font-size: 20px;
    line-height: 1.7;
    font-weight: 700;
}

.column-subheading__marker {
    padding: 0 3px 2px;
    color: var(--subheading-color, #111827);
    background-image: linear-gradient(
        transparent 55%,
        var(--marker-color, #f7d96a) 55%
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 独立した本文パーツ */
.column-body {
    margin: 0 0 50px;
    color: #333;
    font-size: 20px;
    line-height: 1.8;
}

.column-body p,
.column-body div {
    margin-top: 0;
}

.column-body p {
    margin-bottom: 10px;
}

.column-body p:last-child {
    margin-bottom: 0;
}

/* 旧HTMLとの互換 */
.column-section {
    margin-bottom: 50px;
}

.column-section > p {
    margin: 0 0 18px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

/* 画像エリア */
.column-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--image-gap, 16px);
    margin-bottom: 50px;
}

.column-image-gallery--left {
    justify-content: flex-start;
}

.column-image-gallery--center {
    justify-content: center;
}

.column-image-gallery--right {
    justify-content: flex-end;
}

.column-image-gallery__item {
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.column-image-gallery__item img {
    width: 100%;
}

.column-image-gallery__item figcaption {
    margin-top: 8px;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}


/* 複数画像：スライドショー */
.column-image-slider {
    position: relative;
    width: 100%;
    margin: 0 0 50px;
    overflow: hidden;
}
.column-image-slider__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.column-image-slider__viewport {
    overflow: hidden;
    border-radius: 10px;
}
.column-image-slider__track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease;
}
.column-image-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}
.column-image-slider__slide img {
    width: 100%;
    margin: 0 auto;
}
.column-image-slider__slide figcaption {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}
.column-image-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,.48);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}
.column-image-slider__arrow--prev { left: 12px; }
.column-image-slider__arrow--next { right: 12px; }
.column-image-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.column-image-slider__dots label {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7ccd3;
    cursor: pointer;
}
.column-image-slider > input:nth-of-type(1):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-0%); }
.column-image-slider > input:nth-of-type(1):checked ~ .column-image-slider__dots label:nth-child(1) { background: #318f40; }
.column-image-slider > input:nth-of-type(2):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-100%); }
.column-image-slider > input:nth-of-type(2):checked ~ .column-image-slider__dots label:nth-child(2) { background: #318f40; }
.column-image-slider > input:nth-of-type(3):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-200%); }
.column-image-slider > input:nth-of-type(3):checked ~ .column-image-slider__dots label:nth-child(3) { background: #318f40; }
.column-image-slider > input:nth-of-type(4):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-300%); }
.column-image-slider > input:nth-of-type(4):checked ~ .column-image-slider__dots label:nth-child(4) { background: #318f40; }
.column-image-slider > input:nth-of-type(5):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-400%); }
.column-image-slider > input:nth-of-type(5):checked ~ .column-image-slider__dots label:nth-child(5) { background: #318f40; }
.column-image-slider > input:nth-of-type(6):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-500%); }
.column-image-slider > input:nth-of-type(6):checked ~ .column-image-slider__dots label:nth-child(6) { background: #318f40; }
.column-image-slider > input:nth-of-type(7):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-600%); }
.column-image-slider > input:nth-of-type(7):checked ~ .column-image-slider__dots label:nth-child(7) { background: #318f40; }
.column-image-slider > input:nth-of-type(8):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-700%); }
.column-image-slider > input:nth-of-type(8):checked ~ .column-image-slider__dots label:nth-child(8) { background: #318f40; }
.column-image-slider > input:nth-of-type(9):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-800%); }
.column-image-slider > input:nth-of-type(9):checked ~ .column-image-slider__dots label:nth-child(9) { background: #318f40; }
.column-image-slider > input:nth-of-type(10):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-900%); }
.column-image-slider > input:nth-of-type(10):checked ~ .column-image-slider__dots label:nth-child(10) { background: #318f40; }
.column-image-slider > input:nth-of-type(11):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-1000%); }
.column-image-slider > input:nth-of-type(11):checked ~ .column-image-slider__dots label:nth-child(11) { background: #318f40; }
.column-image-slider > input:nth-of-type(12):checked ~ .column-image-slider__viewport .column-image-slider__track { transform: translateX(-1100%); }
.column-image-slider > input:nth-of-type(12):checked ~ .column-image-slider__dots label:nth-child(12) { background: #318f40; }

/* YouTube */
.column-youtube {
    width: 100%;
    margin: 0 0 50px;
    aspect-ratio: var(--video-ratio, 16 / 9);
    overflow: hidden;
    background-color: #000;
}

.column-youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 試打者紹介 */
.column-tester {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-sizing: border-box;
}

.column-tester__photo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18%;
    min-width: 96px;
    max-width: 135px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-align: center;
}

.column-tester__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.column-tester__content {
    flex: 1;
    min-width: 0;
}

.column-tester__name {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;
}

.column-tester__description {
    margin: 0;
    color: #374151;
    font-size: 20px;
    line-height: 1.7;
}

/* 商品カード */
.column-product-section,
.column-comparison {
    margin-bottom: 50px;
}

.column-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--card-columns, 2), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.column-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.column-product-card:hover {
    transform: translateY(-6px);
    border-color: #c8c8c8;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.column-product-card:focus-visible {
    outline: 3px solid rgba(49, 143, 64, 0.35);
    outline-offset: 3px;
}

.column-product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #f7f7f7;
}

.column-product-card__name {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.column-product-card__name::after {
    content: "▶";
    flex-shrink: 0;
    font-size: 16px;
}

/* 背景色付き補足ボックス */
.column-info-box {
    margin: 0 0 35px;
    padding: 22px 24px;
    border-radius: 12px;
    background-color: var(--box-bg, #e3f3e5);
    box-sizing: border-box;
}

.column-info-box__title {
    margin: 0 0 10px;
    color: var(--box-title, #1e9017);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.column-info-box__body {
    color: var(--box-text, #063204);
    font-size: 16px;
    line-height: 1.8;
}

.column-info-box__body p {
    margin: 0 0 12px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.column-info-box__body p:last-child {
    margin-bottom: 0;
}

/* ボタン */
.column-link-button {
    padding: 10px 0;
}

.column-link-button a {
    display: inline-block;
    max-width: 100%;
    padding: 12px 22px;
    border-radius: 6px;
    background-color: var(--button-bg, #318f40);
    color: var(--button-text, #fff);
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.column-link-button a:hover {
    opacity: 0.88;
}

.column-link-button a:focus-visible {
    outline: 3px solid rgba(49, 143, 64, 0.3);
    outline-offset: 3px;
}

/* 表 */
.column-comparison {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.column-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.column-table {
    width: 100%;
    min-width: 600px;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
    color: #353535;
    text-align: center;
}

.column-table__label-column {
    width: 120px;
}

/*
   左端の項目列を除くヨコ項目は、colgroupとtable-layout: fixedにより
   残りの横幅をすべての列で均等に分割する。
*/
.column-table__product-column {
    width: auto;
}

.column-table th,
.column-table td {
    min-width: 0;
    padding: 10px;
    border: 3px solid #fff;
    background-color: #efefef;
    vertical-align: middle;
    overflow-wrap: anywhere;
    word-break: normal;
}

.column-table__corner {
    width: 120px;
    padding: 0 !important;
    border: 0 !important;
    background-color: #fff !important;
}

.column-table__head {
    background-color: var(--table-head-bg, #318f40) !important;
    color: #fff;
    font-weight: 700;
}

.column-table__row-head {
    width: 120px;
    background-color: #e2e8e4 !important;
    color: #1f2937;
    font-weight: 700;
}

.column-table__image-row td {
    background-color: #fff;
}

.column-table__image-row img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* 区切り・余白 */
.column-divider {
    height: 0;
    margin: var(--divider-margin, 30px) 0;
    border: 0;
    border-top:
        var(--divider-thickness, 1px)
        var(--divider-style, solid)
        var(--divider-color, #d1d5db);
}

.column-spacer {
    width: 100%;
}

@media (max-width: 800px) {
    .column-heading {
        margin-bottom: 18px;
        padding-bottom: 10px;
        font-size: 18px;
    }

    .column-subheading {
        font-size: 17px;
    }

    .column-body,
    .column-section > p {
        font-size: 15px;
    }

    .column-body,
    .column-section,
    .column-image-gallery,
    .column-youtube,
    .column-product-section,
    .column-comparison {
        margin-bottom: 10px;
    }

    .column-tester {
        gap: 10px;
        margin-bottom: 35px;
        padding: 10px;
        border-radius: 12px;
    }

    .column-tester__photo {
        width: 24%;
        min-width: 76px;
        max-width: 100px;
    }

    .column-tester__name {
        margin-bottom: 4px;
        font-size: 17px;
    }

    .column-tester__description {
        font-size: 12px;
        line-height: 1.6;
    }

    .column-product-card {
        border-radius: 12px;
    }

    .column-product-card__name {
        gap: 5px;
        padding: 7px;
        font-size: 16px;
    }

    .column-product-card__name::after {
        font-size: 13px;
    }

    .column-info-box {
        padding: 16px;
    }

    .column-info-box__title {
        font-size: 18px;
    }

    .column-info-box__body {
        font-size: 15px;
    }


    /* 表はスマホ幅に合わせて縮小し、商品列を均等幅に保つ */
    .column-table {
        min-width: 100%;
        font-size: 12px;
    }

    .column-table__label-column,
    .column-table__corner,
    .column-table__row-head,
    .column-table__button-label {
        width: 82px;
    }

    .column-table th,
    .column-table td {
        padding: 6px 5px;
        border-width: 2px;
        font-size: 12px;
        line-height: 1.45;
    }

    .column-table__head,
    .column-table__row-head {
        font-size: 12px;
    }

    .column-table__image-row td {
        padding: 5px;
    }

    .column-table__button-row .column-link-button {
        padding: 2px 0;
    }

    .column-table__button-row .column-link-button a {
        width: 100% !important;
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.35;
    }
}


@media (max-width: 520px) {
    .column-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* 商品カードが1枚だけの場合は横幅いっぱい */
    .column-product-card:only-child {
        grid-column: 1 / -1;
    }

    .column-image-gallery__item {
        width: 100% !important;
    }


    .column-table {
        font-size: 10.5px;
    }

    .column-table__label-column,
    .column-table__corner,
    .column-table__row-head,
    .column-table__button-label {
        width: 68px;
    }

    .column-table th,
    .column-table td {
        padding: 4px 3px;
        font-size: 10.5px;
        line-height: 1.35;
    }

    .column-table__head,
    .column-table__row-head {
        font-size: 10.5px;
    }

    .column-table__image-row td {
        padding: 3px;
    }

    .column-table__button-row .column-link-button a {
        padding: 7px 2px;
        font-size: 10px;
    }
}


.column-table__button-row td {
    background-color: #fff;
}

.column-table__button-label {
    width: 120px;
    padding: 0 !important;
    border: 0 !important;
    background-color: #fff !important;
}

.column-table__button-row .column-link-button {
    padding: 4px 0;
}
