/* =====================================================================
   HACOS トップページ 案C 本実装スタイル（hacos-c.css のトークンを利用）
   ===================================================================== */

/* 案C要素は幅計算を border-box に固定（padding起因のはみ出し防止） */
[class^="hc-"],
[class*=" hc-"] {
    box-sizing: border-box;
}

/* ---------- HERO（オレンジ基調・実写を活かす） ---------- */
.hc-hero {
    background: linear-gradient(120deg, #FF8A3D 0%, var(--c-or) 55%, var(--c-or-d) 100%);
    color: #fff;
    padding: 132px 0 120px;
    position: relative;
    overflow: hidden;
}

.hc-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    pointer-events: none;
}

.hc-hero::before {
    content: "";
    position: absolute;
    right: 160px;
    bottom: -200px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(0, 160, 232, .26);
    pointer-events: none;
}

.hc-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 36px;
}

.hc-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hc-hero .c-eyebrow {
    color: #FFE2CE;
}

.hc-h1 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    font-size: 52px;
    line-height: 1.5;
    margin: 16px 0 22px;
    color: #fff;
}

.hc-h1 mark {
    background: #fff;
    color: var(--c-or);
    padding: 2px 12px;
    border-radius: 12px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hc-sub {
    font-size: 18px;
    line-height: 1.95;
    color: #FFF0E6;
    max-width: 560px;
}

.hc-btns {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hc-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.hc-btn.solid {
    background: #fff;
    color: var(--c-or);
}

.hc-btn.solid:hover {
    background: #FFF0E6;
}

.hc-btn.ghost {
    border: 1.5px solid rgba(255, 255, 255, .65);
    color: #fff;
}

.hc-btn.ghost:hover {
    background: rgba(255, 255, 255, .12);
}

/* 中央寄せヒーロー（サブページ用・画像なし） */
.hc-hero.solo {
    padding: 150px 0 110px;
    text-align: center;
}

.hc-hero.solo .hc-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
}

.hc-hero.solo .hc-sub {
    margin-inline: auto;
}

.hc-hero.solo .hc-btns {
    justify-content: center;
}

.hc-hero-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(20, 24, 31, .28);
    border: 6px solid rgba(255, 255, 255, .9);
}

.hc-hero-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 製品レンダー画像用（白地・余白・はみ出さない） */
.hc-hero-img.product {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.hc-hero-img.product img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

/* ヒーロー内のプラン選択ビジュアル（priceplan用） */
.hc-planpick {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(20, 24, 31, .28);
    border: 6px solid rgba(255, 255, 255, .9);
    padding: 22px;
    box-sizing: border-box;
}

.hc-planpick .pp-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--c-ink);
    margin: 4px 4px 16px;
}

.hc-planpick .pp-hd svg {
    width: 18px;
    height: 18px;
    color: var(--c-or);
}

.pp-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    margin-bottom: 12px;
}

.pp-row:last-child {
    margin-bottom: 0;
}

.pp-row.on {
    border: 2px solid var(--c-or);
    background: #FFF6F0;
}

.pp-ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--c-tint);
    color: var(--c-or);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-ic svg {
    width: 24px;
    height: 24px;
}

.pp-tx {
    flex: 1;
    text-align: left;
}

.pp-tx b {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--c-ink);
}

.pp-tx small {
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.5;
}

.pp-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--c-or);
    border-radius: 100px;
    padding: 4px 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .hc-planpick {
        max-width: 100%;
        margin-left: 0;
    }
}

/* KPIストリップ（hacos-c.css の .c-kpi を流用、ヒーローに重ねる） */
.hc-kpi-wrap {
    max-width: 1160px;
    margin: -64px auto 0;
    padding: 0 36px 80px;
    position: relative;
    z-index: 3;
}

/* ---------- セクション共通 ---------- */
.hc-sec {
    padding: 104px 0;
}

.hc-sec.tint {
    background: var(--c-tint);
}

.hc-stitle {
    text-align: center;
    margin-bottom: 56px;
}

.hc-h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.35;
    margin-top: 14px;
    color: var(--c-ink);
}

.hc-h2 .u {
    background: linear-gradient(transparent 62%, #FFD9C2 62%);
}

.hc-lead {
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.95;
    margin-top: 16px;
    max-width: 660px;
    margin-inline: auto;
}

/* セクション内のサブ見出し（オレンジ・中央） */
.hc-subh {
    text-align: center;
    font-weight: 700;
    font-size: 23px;
    line-height: 1.5;
    color: var(--c-or);
    margin-top: 52px;
}

/* ---------- なぜHACOS（H/A/C/O/S） ---------- */
.hc-origin {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hc-ocard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    padding: 30px 18px;
    text-align: center;
}

.hc-ocard .big {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 48px;
    color: var(--c-or);
    line-height: 1;
}

.hc-ocard .w {
    font-weight: 700;
    font-size: 14px;
    margin: 10px 0 8px;
    color: var(--c-or-d);
}

.hc-ocard .d {
    font-size: 12.5px;
    color: var(--c-muted);
    line-height: 1.75;
}

/* ---------- CONCEPT ---------- */
.hc-concept {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 18px 50px rgba(26, 29, 35, .08);
}

.hc-concept .c-eyebrow {
    color: var(--c-bl);
}

.hc-concept .ct {
    text-align: left;
}

.hc-concept h3 {
    font-weight: 900;
    font-size: 26px;
    line-height: 1.5;
    margin: 12px 0 16px;
    color: var(--c-ink);
}

.hc-concept p {
    font-size: 16px;
    line-height: 2;
    color: #44474D;
}

.hc-concept b {
    color: var(--c-or);
    font-weight: 700;
}

.hc-concept .cimg img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* ---------- 機能（6タイル・実画像） ---------- */
.hc-funcs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hc-fcard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    padding: 26px 10px;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}

.hc-fcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(231, 85, 0, .14);
}

.hc-fcard img {
    width: 116px;
    height: 116px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 14px;
}

.hc-fcard .t {
    font-weight: 700;
    font-size: 16px;
    color: var(--c-ink);
}

/* ---------- 強み（5カード・実アイコン） ---------- */
.hc-str {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hc-scard {
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 12px 34px rgba(26, 29, 35, .07);
    text-align: left;
    position: relative;
}

.hc-scard .no {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(120deg, var(--c-or-l), var(--c-or));
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.hc-scard img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    position: absolute;
    top: 24px;
    right: 18px;
    opacity: .9;
}

.hc-scard .t {
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--c-ink);
}

.hc-scard .d {
    font-size: 12.5px;
    color: var(--c-muted);
    line-height: 1.8;
}

/* =====================================================================
   サブページ共通部品（sorting / picking など）
   ===================================================================== */

/* 3カラムカード（課題・理由） */
.hc-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hc-pcard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    padding: 30px 26px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(26, 29, 35, .05);
}

.hc-pcard .ic {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.hc-pcard .pchip {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hc-pcard .pchip svg {
    width: 24px;
    height: 24px;
}

.hc-pcard.problem .pchip {
    background: #FDECEC;
    color: #E64545;
}

.hc-pcard.reason .pchip {
    background: #E9F6FD;
    color: var(--c-bl);
}

.hc-pcard h3 {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.hc-pcard.problem h3 {
    color: #E64545;
}

.hc-pcard.reason h3 {
    color: var(--c-bl);
}

.hc-pcard p {
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* ステップフロー */
.hc-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: start;
}

.hc-steps.cols2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hc-steps.cols3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* 大きめのステップ画像（製品レンダー向け） */
.hc-steps.big .si {
    width: 180px;
    height: 180px;
    padding: 16px;
}

.hc-step {
    text-align: center;
    position: relative;
}

.hc-step .si {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 29, 35, .10);
    padding: 10px;
    margin: 0 auto 12px;
}

.hc-step .sn {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--c-or);
    line-height: 1;
}

.hc-step .sc {
    font-size: 13px;
    color: var(--c-ink);
    font-weight: 500;
    line-height: 1.65;
    margin-top: 6px;
}

/* 解決ポイントの詳細カード（ステップ直下にマッピング） */
.hc-detail {
    margin-top: 44px;
}

.hc-step .hc-dcard {
    margin-top: 22px;
    text-align: left;
    padding: 20px 18px;
}

.hc-dcard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    padding: 26px 24px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(26, 29, 35, .05);
}

.hc-dcard h4 {
    color: var(--c-or);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-dcard h4 svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hc-dcard p {
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* 料金比較テーブル（priceplan） */
.hc-ptable-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
}

.hc-ptable {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(26, 29, 35, .08);
}

.hc-ptable th,
.hc-ptable td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--c-line);
    text-align: center;
    font-size: 14px;
    color: var(--c-ink);
}

.hc-ptable thead th {
    background: #FAFAF8;
    font-weight: 700;
    font-size: 16px;
}

.hc-ptable thead th.buy {
    background: #F4FAFE;
    color: var(--c-bl);
}

.hc-ptable thead th.sub {
    background: var(--c-or);
    color: #fff;
}

.hc-ptable td.rowh {
    text-align: left;
    font-weight: 500;
    background: #FCFBF9;
    width: 32%;
    color: var(--c-muted);
}

.hc-ptable td.sub {
    background: #FFF6F0;
}

.hc-ptable tbody tr:last-child td {
    border-bottom: none;
}

/* 大きな数字カード（返金など） */
.hc-numcard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 29, 35, .05);
}

.hc-numcard .big {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 44px;
    color: var(--c-or);
    line-height: 1;
}

.hc-numcard .big small {
    font-size: 20px;
}

.hc-numcard p {
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.8;
    margin-top: 12px;
}

/* 汎用グリッド・アイコンカード（product等） */
.hc-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hc-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hc-grid5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hc-icard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    padding: 26px 22px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(26, 29, 35, .05);
}

.hc-icard .ichip {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--c-tint);
    color: var(--c-or);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
}

.hc-icard .ichip svg {
    width: 24px;
    height: 24px;
}

.hc-icard h4 {
    font-weight: 700;
    font-size: 16px;
    color: var(--c-ink);
    margin-bottom: 8px;
}

.hc-icard p {
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.8;
}

.hc-bullets {
    margin: 14px 0 0;
    padding: 0;
}

.hc-bullets li {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #44474D;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 8px;
}

.hc-bullets li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-or);
    margin-top: 9px;
    flex-shrink: 0;
}

/* 画像＋テキストの2カラム */
.hc-mediarow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hc-mediarow.rev .hc-media {
    order: 2;
}

.hc-media img {
    width: 100%;
    display: block;
}

/* 部位に番号ピンを重ねる（hamie構造図） */
.hc-hamie-pin {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.hc-hamie-pin img {
    display: block;
    max-width: 100%;
    max-height: 380px;
}

.hc-hamie-pin .pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-or);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(231, 85, 0, .45);
}

/* 埋め込み動画 */
.hc-video {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 29, 35, .18);
    background: #14181F;
    line-height: 0;
}

.hc-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* 製品画像を白カードで見せる */
.hc-figure {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 14px 40px rgba(26, 29, 35, .08);
    text-align: center;
}

.hc-figure img {
    max-width: 100%;
    max-height: 360px;
}

/* 中央寄せ小カード（光→音） */
.hc-flow2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 14px 40px rgba(26, 29, 35, .08);
    max-width: 900px;
    margin: 0 auto;
}

.hc-flow2 .f2 {
    text-align: center;
}

.hc-flow2 .f2 img {
    height: 200px;
    margin-bottom: 16px;
}

.hc-flow2 .f2 p {
    font-size: 17px;
}

.hc-flow2 .f2 p {
    font-weight: 700;
    color: var(--c-ink);
}

.hc-flow2 .f2 p span {
    color: var(--c-or);
}

.hc-flow2 .f2arrow {
    color: var(--c-or-l);
    font-weight: 900;
    font-size: 38px;
}

.hc-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hc-divider hr {
    flex: 1;
    border: none;
    border-top: 2px solid #F0D7C6;
}

.hc-divider span {
    font-weight: 900;
    font-size: 26px;
    color: var(--c-or);
    white-space: nowrap;
}

@media (max-width: 991px) {
    .hc-grid2,
    .hc-grid4 {
        grid-template-columns: 1fr;
    }

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

    .hc-mediarow {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hc-mediarow.rev .hc-media {
        order: 0;
    }

    .hc-flow2 {
        flex-direction: column;
        gap: 18px;
        padding: 28px 20px;
    }

    .hc-flow2 .f2arrow {
        transform: rotate(90deg);
    }

    .hc-steps.big .si {
        width: 150px;
        height: 150px;
    }
}

/* POINT フィーチャー（画像＋テキスト交互） */
.hc-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hc-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 14px 40px rgba(26, 29, 35, .08);
}

.hc-feature .ft-img img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.hc-feature:nth-child(even) .ft-img {
    order: 2;
}

.hc-feature .pt {
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .12em;
    color: #fff;
    background: linear-gradient(120deg, var(--c-or-l), var(--c-or));
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.hc-feature h3 {
    font-weight: 900;
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--c-ink);
}

.hc-feature p {
    color: #44474D;
    font-size: 14px;
    line-height: 1.9;
}

.hc-feature p span {
    color: var(--c-or);
    font-weight: 700;
}

@media (max-width: 991px) {
    .hc-grid3 {
        grid-template-columns: 1fr;
    }

    .hc-steps,
    .hc-steps.cols2,
    .hc-steps.cols3 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hc-feature {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .hc-feature:nth-child(even) .ft-img {
        order: 0;
    }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 991px) {
    .hc-hero {
        padding: 96px 0 80px;
    }

    .hc-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hc-h1 {
        font-size: 34px;
    }

    .hc-sub {
        font-size: 16px;
    }

    .hc-sec {
        padding: 64px 0;
    }

    .hc-h2 {
        font-size: 28px;
    }

    .hc-subh {
        font-size: 19px;
        margin-top: 40px;
    }

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

    .hc-funcs {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hc-concept {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .hc-kpi-wrap {
        margin-top: -40px;
    }
}

@media (max-width: 560px) {
    .hc-funcs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hc-origin {
        grid-template-columns: repeat(1, 1fr);
    }
}
