/* ==========================================================================
   WHY OYATECH（inc/why-oyatech.php）
   トップページ（.oy-why--home）と Webプロダクト開発LP（.oy-why--wpd）の共通セクション。
   ・レイアウト・余白・文字の階層は両ページ共通。違うのは下の「テーマ」の変数だけ
   ・すべて .oy-why 配下にスコープ。既存セクションのクラス（.section-title 等）は使わない
   ・トップページのテーマは css/home.css の変数（--oy-gold-* / --oy-service-*）をそのまま参照する
   ========================================================================== */

/* ---------- テーマ ---------- */
.oy-why--home {
    --why-accent: var(--oy-gold-mid, #DDB278);
    --why-accent-deep: color-mix(in srgb, var(--oy-gold-mid, #DDB278) 72%, #3A342E 28%);
    --why-title-fill: var(--oy-gold-grad, linear-gradient(90deg, #DDB278, #E9C596));
    --why-heading: #4A433C;
    --why-ink: var(--oy-service-ink, #554F47);
    --why-line: var(--oy-service-line, #E6DBCC);
    --why-mark: rgba(var(--oy-gold-rgb, 233, 197, 150), var(--oy-service-mark-alpha, 0.2));
    --why-node: color-mix(in srgb, var(--oy-gold-mid, #DDB278) 82%, #4A3E31 18%);
    --why-core-a: #FFFDF9;
    --why-core-b: #F4E7D3;
    --why-panel: rgba(255, 255, 255, 0.55);
    --why-title-weight: 500;
    --why-title-spacing: 0.08em;
    --why-cream: var(--oy-service-bg-top, #F8F5F0);
    --why-icon-bg: #FBF4EA;
    --why-result-bg: linear-gradient(135deg, #EDCFA4 0%, #DDB278 100%);
    --why-result-ink: #3A3129;
    --why-result-sub: rgba(58, 49, 41, 0.6);
    --why-result-icon-bg: rgba(255, 255, 255, 0.55);
    --why-result-shadow: rgba(160, 118, 62, 0.55);
}

.oy-why--wpd {
    --why-accent: var(--wpd-red, #9a4e64);
    --why-accent-deep: var(--wpd-red-dark, #7a3a4f);
    --why-title-fill: none;
    --why-heading: var(--wpd-heading, #2f2629);
    --why-ink: var(--wpd-text, #564f48);
    --why-line: var(--wpd-line, #ebe5e0);
    --why-mark: rgba(154, 78, 100, 0.055);
    --why-node: var(--wpd-red, #9a4e64);
    --why-core-a: #ffffff;
    --why-core-b: var(--wpd-rose-2, #f3e3e7);
    --why-panel: #ffffff;
    --why-title-weight: 800;
    --why-title-spacing: 0.01em;
    --why-icon-bg: var(--wpd-rose, #f8eef1);
    --why-result-bg: var(--wpd-red, #9a4e64);
    --why-result-ink: #fff;
    --why-result-sub: rgba(255, 255, 255, 0.7);
    --why-result-icon-bg: rgba(255, 255, 255, 0.14);
    --why-result-shadow: rgba(122, 58, 79, 0.6);
}

/* ---------- セクション ---------- */
.oy-why {
    position: relative;
    overflow: hidden;
    color: var(--why-ink);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    word-break: auto-phrase;
    line-break: strict;
}

.oy-why--en {
    font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
    letter-spacing: 0;
    word-break: normal;
}

/* トップページ：上端は Services の下端、下端は ABOUT OYATECH の上端と同じクリーム。中段は白 */
.oy-why--home {
    z-index: 0;
    padding: 34px 50px 64px;
    background: linear-gradient(180deg,
        var(--why-cream) 0%,
        #FFFFFF 26%,
        #FFFFFF 70%,
        var(--why-cream) 100%);
}

.oy-why--home .oy-why__inner {
    max-width: 1210px;
}

/* Webプロダクト開発LP：他のセクションと同じ上下余白・オフホワイト */
.oy-why--wpd {
    padding: 104px 0;
    background: var(--wpd-soft, #f8f5f2);
}

.oy-why p,
.oy-why h2,
.oy-why h3,
.oy-why ol,
.oy-why ul,
.oy-why figure {
    margin: 0;
    padding: 0;
}

.oy-why ol,
.oy-why ul {
    list-style: none;
}

.oy-why__inner {
    position: relative;
}

/* ---------- 上段：見出し（左）＋構成図（右） ---------- */
.oy-why__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 456px);
    column-gap: clamp(48px, 6vw, 96px);
    align-items: center;
}

.oy-why__head {
    position: relative;
    z-index: 1;
}

.oy-why__mark {
    position: absolute;
    z-index: -1;
    top: 64px;
    left: -0.03em;
    transform: translateY(-50%);
    color: var(--why-mark);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: min(120px, 9.8vw);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 92%);
    mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 92%);
}

/* Webプロダクト開発LP：ウォーターマークは LP の見出し（.wpd-head__mark）と同じ大きさ・位置関係 */
.oy-why--wpd .oy-why__mark {
    top: -0.42em;
    transform: none;
    font-size: clamp(64px, 11vw, 132px);
    letter-spacing: -0.01em;
}

.oy-why__label {
    width: fit-content;
    color: var(--why-accent);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.oy-why__sub {
    width: fit-content;
    margin-top: 8px !important;
    color: var(--why-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.12em;
}

.oy-why--home .oy-why__label,
.oy-why--home .oy-why__sub {
    background-image: var(--why-title-fill);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* トップページ：英字見出し・日本語ラベル・ウォーターマークの間隔と位置は ABOUT OYATECH（home.css の .section-title--left）と同じ見え方にする */
.oy-why--home .oy-why__label {
    line-height: 1.2;
}

.oy-why--home .oy-why__sub {
    margin-top: 15px !important;
    line-height: 1.7;
}

.oy-why--home .oy-why__mark {
    top: 75px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 88%);
    mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 88%);
}

.oy-why--wpd .oy-why__label {
    color: var(--why-heading);
    font-size: clamp(34px, 4.6vw, 56px);
    letter-spacing: -0.01em;
}

.oy-why--wpd .oy-why__sub {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px !important;
    font-size: 15px;
    letter-spacing: 0.1em;
}

.oy-why--wpd .oy-why__sub::before {
    content: "";
    width: 18px;
    height: 1.5px;
    background: rgba(154, 78, 100, 0.45);
}

.oy-why__title {
    margin-top: clamp(32px, 3.4vw, 44px) !important;
    color: var(--why-heading);
    font-family: inherit;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: var(--why-title-weight);
    line-height: 1.55;
    letter-spacing: var(--why-title-spacing);
    text-transform: none;
}

.oy-why__title > span {
    display: block;
    text-wrap: balance;
}

.oy-why__point-title,
.oy-why__closing strong {
    text-wrap: balance;
}

.oy-why--en .oy-why__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.oy-why--en .oy-why__title > span + span {
    margin-top: 0.12em;
}

.oy-why__lead {
    max-width: 640px;
    margin-top: 26px;
}

.oy-why__lead p {
    font-size: 15.5px;
    line-height: 2;
}

.oy-why--en .oy-why__lead {
    max-width: 620px;
}

.oy-why--en .oy-why__lead p {
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- 構成図 ---------- */
.oy-why__figure {
    position: relative;
}

.oy-why__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.oy-why__stop-a { stop-color: var(--why-core-a); }
.oy-why__stop-b { stop-color: var(--why-core-b); }

.oy-why__corp {
    fill: var(--why-panel);
    stroke: var(--why-accent);
    stroke-width: 1.2;
}

.oy-why__corp-label {
    fill: var(--why-accent-deep);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.oy-why__corp-rule {
    stroke: var(--why-accent);
    stroke-width: 1.5;
}

.oy-why__contact {
    stroke: var(--why-heading);
    stroke-width: 1.2;
}

.oy-why__contact--inner {
    stroke: var(--why-accent);
    stroke-dasharray: 1 5;
    stroke-linecap: round;
    stroke-width: 1.6;
}

.oy-why__port {
    fill: var(--why-accent);
}

.oy-why__client {
    fill: #fff;
    stroke: var(--why-heading);
    stroke-width: 1.2;
}

.oy-why__client-glyph {
    fill: none;
    stroke: var(--why-heading);
    stroke-width: 1.4;
    stroke-linecap: round;
}

.oy-why__client-label {
    fill: var(--why-heading);
    font-family: "Noto Sans JP", "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-anchor: middle;
}

/* 縦型の図（タブレット・スマホ用）は 1064px 以下でだけ表示。PC は横型 */
.oy-why__svg--compact {
    display: none;
}

.oy-why__client-label--side {
    text-anchor: start;
}

.oy-why__orbit {
    fill: none;
    stroke: var(--why-line);
    stroke-width: 1.2;
}

.oy-why__link {
    stroke: var(--why-accent);
    stroke-width: 1.3;
}

.oy-why__node.is-active {
    fill: var(--why-node);
}

.oy-why__node.is-standby {
    fill: #fff;
    stroke: var(--why-accent);
    stroke-width: 1.2;
    stroke-dasharray: 3 3;
}

.oy-why__node-glyph {
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.oy-why__node-glyph.is-active {
    stroke: #fff;
}

.oy-why__node-glyph.is-standby {
    stroke: var(--why-accent);
}

.oy-why__halo {
    fill: none;
    stroke: var(--why-accent);
    stroke-width: 1;
    opacity: 0.35;
}

.oy-why__core {
    stroke: var(--why-accent);
    stroke-width: 1.4;
}

.oy-why__core-label {
    fill: var(--why-heading);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-anchor: middle;
}

/* 凡例（図の説明はここに置き、図が縮んでも読める大きさを保つ） */
.oy-why__legend {
    display: grid;
    gap: 9px;
    margin: 18px 0 0 calc(104 / 460 * 100%) !important;
}

.oy-why__legend li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.oy-why__legend b {
    margin-right: 0.8em;
    color: var(--why-heading);
    font-weight: 700;
}

.oy-why__key {
    position: relative;
    top: 1px;
    flex: none;
    width: 14px;
    height: 10px;
}

.oy-why__key--corp {
    border: 1.2px solid var(--why-accent);
    border-radius: 3px;
}

.oy-why__key--ai {
    width: 12px;
    height: 12px;
    margin: 0 1px;
    border: 1.2px solid var(--why-accent);
    border-radius: 50%;
    background: var(--why-core-b);
}

.oy-why__key--eng {
    width: 10px;
    height: 10px;
    margin: 0 2px;
    border-radius: 50%;
    background: var(--why-node);
}

/* ---------- 3つの要素 ---------- */
.oy-why__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
    margin-top: clamp(60px, 5.6vw, 80px) !important;
}

.oy-why__point {
    position: relative;
    padding-top: 26px;
    border-top: 1px solid var(--why-line);
}

.oy-why__point::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: clamp(40px, 5vw, 64px);
    height: 1.5px;
    background: var(--why-accent);
}

.oy-why__point-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.oy-why__num {
    color: var(--why-accent);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.oy-why--home .oy-why__num {
    background-image: var(--why-title-fill);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oy-why__point-en {
    color: var(--why-accent-deep);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.oy-why__point-title {
    margin-top: 18px !important;
    color: var(--why-heading);
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.04em;
    text-transform: none;
}

.oy-why--en .oy-why__point-title {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

.oy-why__point-body {
    margin-top: 12px;
}

.oy-why__point-body p {
    font-size: 14.5px;
    line-height: 1.95;
}

/* 日本語の本文は両端揃え。文節単位の折り返し（auto-phrase）だと行末が不揃いになり字間が空くため、本文だけ通常の折り返しに戻す */
.oy-why--ja .oy-why__lead p,
.oy-why--ja .oy-why__point-body p {
    text-align: justify;
    word-break: normal;
}

.oy-why--en .oy-why__point-body p {
    font-size: 15px;
    line-height: 1.75;
}

/* ---------- 仕組みの流れ＋締めのコピー ---------- */
.oy-why__model {
    margin-top: clamp(56px, 5vw, 72px);
}

/* 見出しの後ろに罫線を伸ばし、3項目（上の罫線）と同じ線の言語でつなぐ */
.oy-why__flow-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--why-accent-deep);
    font-family: "Bricolage Grotesque", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.oy-why__flow-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--why-line);
}

.oy-why--en .oy-why__flow-label {
    font-size: 12px;
    text-transform: uppercase;
}

.oy-why__flow {
    --why-flow-gap: 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--why-flow-gap);
    margin-top: 22px !important;
}

.oy-why__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 22px 22px 24px;
    border: 1px solid var(--why-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(58, 49, 41, 0.04), 0 14px 30px -22px rgba(58, 49, 41, 0.28);
}

.oy-why__step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oy-why__step-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--why-icon-bg);
    color: var(--why-accent-deep);
}

.oy-why__step-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oy-why__step-icon .oy-why__icon-fill {
    fill: currentColor;
    stroke: none;
}

.oy-why__step-no {
    color: var(--why-accent);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
}

.oy-why__step-text {
    color: var(--why-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.04em;
}

.oy-why--en .oy-why__step-text {
    font-size: 16.5px;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

/* カードの間（gap の中央）に置く矢印 */
.oy-why__step-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: calc(var(--why-flow-gap) / -2 - 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border: 1px solid var(--why-line);
    border-radius: 50%;
    background: #fff;
    color: var(--why-accent-deep);
}

.oy-why__step-arrow svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 最後の段（開発価格への反映）＝この仕組みの結果 */
.oy-why__step.is-result {
    border-color: transparent;
    background: var(--why-result-bg);
    box-shadow: 0 16px 32px -20px var(--why-result-shadow);
}

.oy-why__step.is-result .oy-why__step-icon {
    background: var(--why-result-icon-bg);
    color: var(--why-result-ink);
}

.oy-why__step.is-result .oy-why__step-no {
    color: var(--why-result-sub);
}

.oy-why__step.is-result .oy-why__step-text {
    color: var(--why-result-ink);
}

.oy-why__closing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1.2em;
    row-gap: 6px;
    margin-top: clamp(40px, 4vw, 52px) !important;
    padding-top: 28px;
    border-top: 1px solid var(--why-line);
}

.oy-why__closing strong {
    color: var(--why-heading);
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: var(--why-title-weight);
    line-height: 1.5;
    letter-spacing: var(--why-title-spacing);
}

.oy-why--wpd .oy-why__closing strong {
    font-weight: 800;
}

.oy-why__phrase {
    display: inline-block;
}

.oy-why__closing > span {
    color: var(--why-ink);
    font-size: 15px;
    line-height: 1.7;
}

.oy-why--en .oy-why__closing strong {
    font-weight: 700;
    letter-spacing: -0.005em;
}

/* ---------- 表示アニメーション（JS 有効かつ動きを減らす設定でない場合のみ） ---------- */
.oy-why.is-reveal-ready [data-oy-why-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.oy-why.is-reveal-ready [data-oy-why-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.oy-why.is-reveal-ready .oy-why__point:nth-child(2) { transition-delay: 0.08s; }
.oy-why.is-reveal-ready .oy-why__point:nth-child(3) { transition-delay: 0.16s; }

/* ---------- タブレット・スマホ（1064px以下）：縦1列 ---------- */
@media screen and (max-width: 1064px) {
    .oy-why--home {
        padding: 30px 50px 44px;
    }

    .oy-why--wpd {
        padding: 80px 0;
    }

    .oy-why__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .oy-why__mark {
        font-size: min(104px, 11.2vw);
    }

    .oy-why--home .oy-why__mark {
        top: 51px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .oy-why--home .oy-why__label {
        font-size: min(42px, calc((100vw - 32px) / 7.4));
    }

    .oy-why--home .oy-why__sub {
        margin-top: 8px !important;
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .oy-why__svg--wide {
        display: none;
    }

    .oy-why__svg--compact {
        display: block;
    }

    /* 図と凡例を横に並べる（タブレット：図が左・凡例が右／スマホ：図の下に凡例） */
    .oy-why .oy-why__figure {
        display: grid;
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(40px, 7vw, 72px);
        width: 100%;
        max-width: none;
        margin: 56px 0 0;
    }

    .oy-why__svg--compact {
        width: 100%;
        max-width: 340px;
    }

    .oy-why .oy-why__legend {
        gap: 22px;
        margin: 0 !important;
        padding: 6px 0 6px clamp(28px, 5vw, 48px);
        border-left: 1px solid var(--why-line);
    }

    .oy-why__legend li {
        font-size: 14px;
        line-height: 1.7;
    }

    .oy-why__legend b {
        display: block;
        margin-right: 0;
        font-size: 15px;
    }

    .oy-why__points {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }
}

/* タブレット：3項目は「見出し（左）＋本文（右）」の行に。流れの帯は横並びのまま */
@media screen and (min-width: 768px) and (max-width: 1064px) {
    .oy-why--home .oy-why__inner {
        max-width: 792px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .oy-why__points {
        row-gap: 36px;
    }

    .oy-why__point {
        display: grid;
        grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        column-gap: 36px;
    }

    .oy-why__point-head {
        grid-column: 1;
        grid-row: 1;
    }

    .oy-why__point-title {
        grid-column: 1;
        grid-row: 2;
    }

    .oy-why__point-body {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 4px;
    }

    .oy-why__flow {
        --why-flow-gap: 26px;
    }

    .oy-why__step {
        gap: 20px;
        padding: 18px 16px 20px;
    }

    .oy-why__step-icon {
        width: 42px;
        height: 42px;
    }

    .oy-why__step-icon svg {
        width: 22px;
        height: 22px;
    }

    .oy-why__step-text {
        font-size: 14.5px;
    }

    .oy-why--en .oy-why__step-text {
        font-size: 15px;
    }
}

/* スマホ：左右の余白・コンテナ幅は Services／ABOUT OYATECH（home.css）と同じ */
@media screen and (max-width: 767px) {
    .oy-why--home {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .oy-why--home .oy-why__inner {
        max-width: 506px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
    }

    .oy-why--wpd {
        padding: 64px 0;
    }

    .oy-why__mark {
        font-size: 9.6vw;
    }

    .oy-why__title {
        margin-top: 26px !important;
        font-size: clamp(22px, 6.4vw, 28px);
        letter-spacing: 0.04em;
    }

    .oy-why--en .oy-why__title {
        font-size: clamp(24px, 7vw, 30px);
    }

    .oy-why__lead {
        margin-top: 20px;
    }

    .oy-why__lead p {
        font-size: 14.5px;
        line-height: 1.95;
    }

    /* スマホ：タブレットと同じく図（左）と凡例（右）を横に並べ、図と文字を小さくする */
    .oy-why .oy-why__figure {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
        column-gap: 16px;
        margin-top: 40px;
    }

    .oy-why .oy-why__legend {
        gap: 14px;
        padding: 4px 0 4px 16px;
    }

    .oy-why__legend li {
        gap: 8px;
        font-size: 11.5px;
        line-height: 1.6;
    }

    .oy-why__legend b {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .oy-why__key {
        top: 0;
    }

    .oy-why__points {
        margin-top: 52px !important;
        row-gap: 36px;
    }

    .oy-why__num {
        font-size: 34px;
    }

    .oy-why__point-title {
        margin-top: 14px !important;
        font-size: 17.5px;
    }

    .oy-why__point-body p {
        font-size: 14px;
    }

    .oy-why__model {
        margin-top: 48px;
    }

    .oy-why__flow {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
        margin-top: 18px !important;
    }

    /* スマホ：各段は「アイコン・文言・番号」の横並び。矢印は段の間に下向きで置く */
    .oy-why__step {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 14px 18px 14px 14px;
    }

    .oy-why__step-top {
        display: contents;
    }

    .oy-why__step-icon {
        width: 42px;
        height: 42px;
    }

    .oy-why__step-icon svg {
        width: 22px;
        height: 22px;
    }

    .oy-why__step-text {
        flex: 1;
        order: 1;
        font-size: 15px;
    }

    .oy-why--en .oy-why__step-text {
        font-size: 15.5px;
    }

    .oy-why__step-no {
        order: 2;
        font-size: 13px;
    }

    .oy-why__step-arrow {
        top: auto;
        right: auto;
        bottom: -25px;
        left: 50%;
        width: 24px;
        height: 24px;
        margin: 0 0 0 -12px;
    }

    .oy-why__step-arrow svg {
        width: 11px;
        height: 11px;
        transform: rotate(90deg);
    }

    .oy-why__closing {
        display: block;
        margin-top: 22px !important;
        padding-top: 20px;
    }

    .oy-why__closing strong {
        display: block;
        font-size: clamp(18px, 5.2vw, 22px);
        letter-spacing: 0.04em;
    }

    .oy-why__closing > span {
        display: block;
        margin-top: 6px;
        font-size: 14px;
    }
}

/* 横幅がとても狭いスマホ（359px 以下）：図の下に凡例。凡例はかたまりごと中央に置き、上の区切り線も凡例の幅だけにする */
@media screen and (max-width: 359px) {
    .oy-why .oy-why__figure {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 22px;
    }

    .oy-why__svg--compact {
        max-width: 260px;
        margin: 0 auto;
    }

    .oy-why .oy-why__legend {
        width: fit-content;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 18px 4px 0;
        border-top: 1px solid var(--why-line);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oy-why [data-oy-why-reveal] {
        transition: none !important;
    }
}
