/* ==========================================================================
   広告LP（導入相談・導入事例）の刷新分。lead-pages.css・sky-theme.css・homepage.css の後に読み込む。
   body に .lead-page--refresh を付けたページだけに効く。
   ========================================================================== */

/* 本文の横幅をヘッダー（1280px・左右40px）にそろえ、ロゴと見出しの左端を合わせる */
.lead-page--refresh main .container {
    max-width: 1280px;
    padding-right: 40px;
    padding-left: 40px;
}

@media (max-width: 1023px) {
    .lead-page--refresh main .container {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 359px) {
    .lead-page--refresh main .container {
        padding-right: 18px;
        padding-left: 18px;
    }
}

.lead-page--refresh .nb {
    display: inline-block;
}

/* ページ内リンク（#lead-form など）で、見出しが固定ヘッダーの下に隠れないようにする。このCSSを読み込むページだけに効く */
html {
    scroll-padding-top: 88px;
}

/* --------------------------------------------------------------------------
   ヒーロー：ノートPCに製品画面（導入相談・導入事例とも。人物写真は使わない）
   -------------------------------------------------------------------------- */

.lead-page--refresh .lead-hero {
    padding-bottom: 72px;
}

.lead-page--refresh .lead-hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: 56px;
}

.lead-hero-laptop {
    margin: 0 -28px 0 0;
}

.lead-hero-laptop img {
    display: block;
    width: 100%;
    height: auto;
}

.lead-page--refresh .lead-hero-visual .lead-frame-caption {
    margin-top: 6px;
}

/* 実績（トップページと同じ月桂冠の3項目を左寄せで使う） */
.lead-hero-proof {
    margin: 28px 0 0;
}

.lead-hero-proof .home-hero__stats {
    margin: 0;
}

.lead-hero-notes {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.6875rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   導入相談：相談テーマ（料金のパネル＋図解つきの3テーマ）
   -------------------------------------------------------------------------- */

.lead-price {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 36px 40px;
    background: var(--sky-panel, #eaf4fb);
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 20px;
}

.lead-price h3 {
    margin: 0;
    color: var(--sky-ink, #193b50);
    font-size: 1.45rem;
    line-height: 1.5;
    font-weight: 800;
}

.lead-price-main p {
    margin: 10px 0 0;
    color: var(--sky-muted, #526776);
    font-size: 0.95rem;
    line-height: 1.85;
}

.lead-page--refresh .lead-price-main .btn {
    margin-top: 20px;
    padding: 0 28px;
}

.lead-price-hearing {
    padding: 22px 26px 24px;
    background: #fff;
    border-radius: 14px;
}

.lead-price-hearing h4 {
    margin: 0 0 10px;
    color: var(--sky-ink, #193b50);
    font-size: 0.85rem;
    font-weight: 800;
}

.lead-price-hearing ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lead-price-hearing li {
    position: relative;
    padding-left: 22px;
    color: var(--sky-ink, #193b50);
    font-size: 0.9rem;
    line-height: 1.7;
}

.lead-price-hearing li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--sky-button, #197bbb);
    font-weight: 800;
}

.lead-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.lead-topic-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 16px;
}

.lead-topic-card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #fff;
    border-bottom: 1px solid var(--sky-line, #c7dfee);
}

.lead-topic-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 24px;
}

.lead-topic-card .lead-topic-tag {
    margin-bottom: 10px;
}

.lead-topic-card h3 {
    margin: 0;
    color: var(--sky-ink, #193b50);
    font-size: 1.12rem;
    line-height: 1.55;
    font-weight: 800;
}

.lead-topic-card p {
    margin: 8px 0 0;
    color: var(--sky-muted, #526776);
    font-size: 0.92rem;
    line-height: 1.8;
}

.lead-topic-link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--sky-link, #176fa8);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.lead-topic-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lead-topic-more {
    max-width: 1120px;
    margin: 26px auto 0;
    color: var(--sky-muted, #526776);
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

.lead-topic-more a {
    color: var(--sky-link, #176fa8);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   導入相談：事例（写真つきの小さなカード）
   -------------------------------------------------------------------------- */

.lead-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.lead-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-tile:hover {
    border-color: #98bfda;
    box-shadow: 0 14px 30px -18px rgb(25 59 80 / 40%);
}

.lead-tile:focus-visible {
    outline: 3px solid var(--sky-link, #176fa8);
    outline-offset: 3px;
}

/* 各社の商品画像。担当者は写真を大きく使わず、左下の小さなアイコンで見せる */
.lead-tile-photo {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #dde8f0;
}

.lead-tile-photo > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lead-tile:hover .lead-tile-photo > img:first-child {
    transform: scale(1.03);
}

.lead-tile-avatar {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgb(25 59 80 / 25%);
}

.lead-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.lead-tile-label {
    color: var(--sky-muted, #526776);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.lead-tile-value {
    color: var(--sky-button, #197bbb);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.35;
}

.lead-tile-company {
    margin-top: 8px;
    color: var(--sky-ink, #193b50);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
}

.lead-tile-more {
    margin-top: auto;
    padding-top: 12px;
    color: var(--sky-link, #176fa8);
    font-size: 0.82rem;
    font-weight: 700;
}

.lead-tile:hover .lead-tile-more {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lead-more-link {
    margin: 28px 0 0;
    text-align: center;
}

.lead-more-link a {
    color: var(--sky-link, #176fa8);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.lead-more-link a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   導入事例：各社のストーリー（写真＋課題と導入後）
   -------------------------------------------------------------------------- */

.lead-stories {
    display: grid;
    gap: 32px;
    max-width: 1120px;
    margin: 0 auto;
}

.lead-story {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 20px;
    box-shadow: 0 18px 40px -30px rgb(25 59 80 / 45%);
}

/* 偶数番目は写真を右に置く（列の幅も入れ替える） */
.lead-story:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.lead-story:nth-child(even) .lead-story-visual {
    order: 2;
}

/* 各社の商品画像。担当者は写真を大きく使わず、数値の横の小さなアイコンで見せる */
.lead-story-visual {
    position: relative;
    min-height: 380px;
    margin: 0;
    background: #dde8f0;
}

.lead-story-visual > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ブランド画像（MedicalShift）は切り取らずに全体を見せ、余白は画像と同じグラデーションでつなぐ */
.lead-story-visual--brand {
    background: linear-gradient(180deg, #f1f6fb 0%, #faf2f6 100%);
}

.lead-story-visual--brand > img {
    object-fit: contain;
}

.lead-story-metric {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 12px 18px 13px;
    background: rgb(255 255 255 / 95%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgb(25 59 80 / 16%);
}

.lead-story-metric:has(img) {
    padding-left: 10px;
}

.lead-story-metric img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--sky-line, #c7dfee);
}

.lead-story-metric-text {
    min-width: 0;
}

.lead-story-metric-text > span {
    display: block;
    color: var(--sky-muted, #526776);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.lead-story-metric-text strong {
    display: block;
    color: var(--sky-button, #197bbb);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
}

.lead-story-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 40px 32px;
}

.lead-story-company {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lead-story-company img {
    flex-shrink: 0;
    width: auto;
    max-width: 132px;
    height: 26px;
    object-fit: contain;
    object-position: left center;
}

.lead-story-company p {
    margin: 0;
    min-width: 0;
    padding-left: 14px;
    border-left: 1px solid var(--lead-line, #d9e6ef);
}

.lead-story-company strong {
    display: block;
    color: var(--sky-ink, #193b50);
    font-size: 0.92rem;
    line-height: 1.5;
}

.lead-story-company span {
    display: block;
    color: var(--sky-muted, #526776);
    font-size: 0.76rem;
    line-height: 1.5;
}

.lead-story h3 {
    margin: 20px 0 0;
    color: var(--sky-ink, #193b50);
    font-size: 1.38rem;
    line-height: 1.55;
    font-weight: 800;
}

.lead-story-change {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}

.lead-story-change > div {
    padding: 16px 18px 17px;
    background: #f5f7f9;
    border-radius: 12px;
}

.lead-story-change > div + div {
    background: var(--sky-panel, #eaf4fb);
}

.lead-story-change h4 {
    margin: 0 0 8px;
    color: #62778b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.5;
}

.lead-story-change > div + div h4 {
    color: var(--sky-link, #176fa8);
}

.lead-story-change ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lead-story-change li {
    position: relative;
    padding-left: 18px;
    color: var(--sky-ink, #193b50);
    font-size: 0.875rem;
    line-height: 1.7;
}

.lead-story-change li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 4px;
    width: 6px;
    height: 6px;
    background: #9aabb8;
    border-radius: 50%;
}

.lead-story-change > div + div li::before {
    content: "✓";
    top: 0;
    left: 1px;
    width: auto;
    height: auto;
    background: none;
    color: var(--sky-button, #197bbb);
    font-weight: 800;
}

.lead-story-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: auto;
    padding-top: 22px;
}

.lead-story-person {
    margin: 0;
    color: var(--sky-muted, #526776);
    font-size: 0.84rem;
    line-height: 1.6;
}

.lead-page--refresh .lead-story-foot .btn {
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   導入事例：お客様の声
   -------------------------------------------------------------------------- */

.lead-voices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.lead-voices li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 28px 24px;
    background: #fff;
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 16px;
}

.lead-voices li::before {
    content: "“";
    height: 30px;
    color: var(--sky-accent, #56afe3);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    line-height: 1;
}

.lead-voices blockquote {
    flex: 1;
    margin: 6px 0 0;
}

.lead-voices blockquote p {
    margin: 0;
    color: var(--sky-ink, #193b50);
    font-size: 0.93rem;
    line-height: 1.85;
}

.lead-voices-by {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--lead-line, #d9e6ef);
    color: var(--sky-muted, #526776);
    font-size: 0.78rem;
    line-height: 1.6;
}

.lead-voices-by strong {
    display: block;
    color: var(--sky-ink, #193b50);
    font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   導入相談：フォーム横の「ご相談の流れ」
   -------------------------------------------------------------------------- */

.lead-flow {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lead-flow;
}

.lead-flow li {
    position: relative;
    padding: 0 0 26px 60px;
    counter-increment: lead-flow;
}

.lead-flow li::before {
    content: counter(lead-flow);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sky-button, #197bbb);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.lead-flow li::after {
    content: "";
    position: absolute;
    top: 46px;
    bottom: 6px;
    left: 19px;
    width: 2px;
    background: var(--sky-line, #c7dfee);
}

.lead-flow li:last-child {
    padding-bottom: 0;
}

.lead-flow li:last-child::after {
    display: none;
}

.lead-flow h3 {
    margin: 0;
    padding-top: 8px;
    color: var(--sky-ink, #193b50);
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 800;
}

.lead-flow p {
    margin: 6px 0 0;
    color: var(--sky-muted, #526776);
    font-size: 0.92rem;
    line-height: 1.8;
}

.lead-flow-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    background: var(--sky-panel, #eaf4fb);
    border-radius: 999px;
    color: var(--sky-link, #176fa8);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.7;
}

.lead-flow-note {
    margin: 26px 0 0;
    padding: 16px 18px;
    background: var(--sky-soft, #f3f8fc);
    border-radius: 12px;
    color: var(--sky-muted, #526776);
    font-size: 0.86rem;
    line-height: 1.75;
}

.lead-flow-note a {
    color: var(--sky-link, #176fa8);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   導入事例：最後のCTA
   -------------------------------------------------------------------------- */

.lead-cta-band {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 40px;
    background: var(--sky-panel, #eaf4fb);
    border: 1px solid var(--sky-line, #c7dfee);
    border-radius: 24px;
    text-align: center;
}

.lead-cta-band h2 {
    margin: 0;
    color: var(--sky-ink, #193b50);
    font-size: 1.9rem;
    line-height: 1.5;
    font-weight: 800;
}

.lead-cta-band > p {
    max-width: 640px;
    margin: 14px auto 0;
    color: var(--sky-muted, #526776);
    line-height: 1.85;
}

.lead-cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.lead-cta-band-sub {
    margin: 18px 0 0;
    font-size: 0.9rem;
}

.lead-cta-band-sub a {
    color: var(--sky-link, #176fa8);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .lead-tiles {
        gap: 14px;
    }

    .lead-story-metric-text strong {
        font-size: 1.45rem;
    }

    .lead-tile-value {
        font-size: 1.2rem;
    }

    .lead-story-body {
        padding: 30px 32px 28px;
    }

    .lead-story-change {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .lead-page--refresh .lead-hero .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .lead-hero-laptop {
        margin: 0;
    }

    .lead-price {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px;
    }

    /* 3つのテーマは、図解を左・説明を右に置いた横長のカードを縦に並べる */
    .lead-topic-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .lead-topic-card {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .lead-topic-card > img {
        height: 100%;
        min-height: 180px;
        aspect-ratio: auto;
        border-right: 1px solid var(--sky-line, #c7dfee);
        border-bottom: 0;
    }

    .lead-topic-card-body {
        padding: 20px 22px;
    }

    .lead-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lead-voices {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
    }

    .lead-story,
    .lead-story:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-story:nth-child(even) .lead-story-visual {
        order: 0;
    }

    .lead-story-visual {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .lead-story-change {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lead-page--refresh .lead-hero {
        padding-bottom: 48px;
    }

    .lead-tiles {
        gap: 12px;
    }

    .lead-tile-body {
        padding: 12px 14px 14px;
    }

    .lead-tile-value {
        font-size: 1.1rem;
    }

    .lead-tile-company {
        font-size: 0.72rem;
    }

    .lead-story-body {
        padding: 24px 22px 24px;
    }

    .lead-story h3 {
        margin-top: 16px;
        font-size: 1.18rem;
    }

    .lead-story-change {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-story-metric {
        left: 14px;
        bottom: 14px;
        gap: 10px;
        max-width: calc(100% - 28px);
        padding: 9px 14px 10px;
    }

    .lead-story-metric:has(img) {
        padding-left: 8px;
    }

    .lead-story-metric img {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .lead-story-metric-text strong {
        font-size: 1.3rem;
    }

    .lead-story-foot .btn {
        width: 100%;
    }

    .lead-cta-band {
        padding: 36px 22px;
        border-radius: 18px;
    }

    .lead-cta-band h2 {
        font-size: 1.4rem;
    }

    .lead-cta-band-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .lead-topic-card {
        display: flex;
    }

    .lead-topic-card > img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid var(--sky-line, #c7dfee);
    }

    /* 句の途中で改行しないための .nb は、狭い画面では幅を超えるので通常の折り返しに戻す */
    .lead-story h3 .nb {
        display: inline;
    }

    /* 商品が隠れないよう、数値のラベルと担当者のアイコンを一回り小さくする */
    .lead-story-metric {
        left: 12px;
        bottom: 12px;
        gap: 8px;
        max-width: calc(100% - 24px);
        padding: 7px 12px 8px;
        border-radius: 12px;
    }

    .lead-story-metric:has(img) {
        padding-left: 7px;
    }

    .lead-story-metric img {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .lead-story-metric-text > span {
        font-size: 0.68rem;
    }

    .lead-story-metric-text strong {
        font-size: 1.15rem;
    }

    .lead-tile-avatar {
        left: 8px;
        bottom: 8px;
        width: 30px;
        height: 30px;
    }

    /* 3つの実績値が1行に収まるように、数字を画面幅に合わせて小さくする */
    .lead-page--refresh .lead-stat-number {
        font-size: clamp(1.25rem, 5.8vw, 2.1rem);
    }
}

@media (max-width: 420px) {
    .lead-price {
        padding: 24px 20px;
    }

    .lead-price h3 {
        font-size: 1.25rem;
    }

    .lead-price-hearing {
        padding: 18px;
    }

    .lead-tile-value {
        font-size: 1rem;
    }

    .lead-story-company {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .lead-story-company p {
        padding-left: 0;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lead-tile-photo > img:first-child {
        transition: none;
    }

    .lead-tile:hover .lead-tile-photo > img:first-child {
        transform: none;
    }
}
