@charset "UTF-8";

/* ==========================================================================
   イントロ（キャッチコピー + メイン画像 + MESSAGE）
   位置の数値はデザインデータ（幅1440px、ヘッダー直下を0）の座標を rem にしたもの
   ========================================================================== */

.intro {
    position: relative;
    isolation: isolate;
    overflow-x: clip; /* 回転する背景とメイン画像の右端が画面外へはみ出して横スクロールが出ないように */
    padding: 8.688rem 0 11.006rem;
    text-align: center;
}

/* 背景画像（最背面） */
.intro-bg {
    position: absolute;
    top: 1.298rem;
    left: calc(var(--side) + 1.702rem);
    z-index: -2;
    width: 140.59rem;
    /* 左回り（反時計回り）にゆっくり回す。1周の時間は秒数で調整 */
    animation: intro-bg-rotate 80s linear infinite;
}

@keyframes intro-bg-rotate {
    to {
        rotate: -360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-bg {
        animation: none;
    }
}


/* キャッチコピー（表示のアニメーションで1行ずつ出すため、行ごとに span で囲んでいる） */
.intro-catch-line {
    display: block;
}

/* 表示のアニメーションの間だけ、top.js が1文字ずつこの span で囲む（拡大縮小できるように inline-block）。MESSAGE の見出しも同じ */
.intro-catch-char,
.intro-message-char {
    display: inline-block;
}

.intro-catch {
    position: relative;
    z-index: 2;
    font-family: var(--font-catch);
    font-size: 6.5rem;
    font-weight: 800;
    line-height: calc(80 / 65);
    letter-spacing: 0.02em;
}

/* メイン画像（キャッチコピーの2行目と重なる）
   画像は幅 1464.5px（絵の右端＝砂浜の先まで。デザインの 1512.89px から右の透明な余白を除いたもの）
   画面の左端に合わせ、デザインどおり 1440px を超える右の約24.5pxははみ出させて隠す
   画面が画像より広いときは、端の切れ目が見えないよう画面幅いっぱいに広げる（高さも比率どおり伸びる） */
.intro-mv {
    position: relative;
    z-index: 1;
    margin-top: -7.492rem;
}

.intro-mv picture {
    display: block;
}

.intro-mv img {
    width: max(146.45rem, 100%);
    max-width: none;
    aspect-ratio: 2929 / 1465;
}

/* 海の水色（背景画像の上、メイン画像の下）
   上端は画像の上から 210px（デザインは 226.56px。画面が画像より広いとき、右端の砂浜の先（上から198.5〜218px）の下に
   白いすき間が出たため、砂浜の裏に隠れる位置まで上げた。画像の高さに対する割合で指定し、画像が伸びても位置がずれないように）
   下端はセクションの下端まで（メイン画像の下端から 643.91px） */
.intro-mv::before {
    content: "";
    position: absolute;
    top: calc(210 / 732.5 * 100%);
    right: 0;
    bottom: -64.391rem;
    left: 0;
    z-index: -1;
    background: var(--color-lightblue);
}

/* MESSAGE */
.intro-message {
    position: relative;
    z-index: 2;
}

.intro-message-title {
    margin-top: -2.114rem;
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-orange);
}

.intro-message-body {
    margin-top: 2.899rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: calc(34 / 18);
    letter-spacing: 0.02em;
}

.intro-message-body p + p {
    margin-top: 3.4rem;
}

/* 装飾（最前面）。中央の幅1440pxの枠の中に置く */
.intro-decos {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side);
    width: 144rem;
    z-index: 3;
    pointer-events: none;
}

.intro-deco {
    position: absolute;
}

.intro-deco-01 { top: 4.893rem;   left: 6.582rem;   width: 15.984rem; }
.intro-deco-02 { top: 0;          left: 111.639rem; width: 25.2rem; }
.intro-deco-03 { top: 15.744rem;  left: 4.394rem;   width: 13.584rem; }
.intro-deco-04 { top: 20.495rem;  left: 26.881rem;  width: 14.688rem; }
.intro-deco-05 { top: 8.002rem;   left: 119.013rem; width: 15.648rem; }
/* メイン画像より下の装飾は、セクションの下端からの位置で置く
   （広い画面でメイン画像が伸びても、MESSAGE との位置関係が変わらないように） */
.intro-deco-06 { bottom: 65.052rem; left: 117.428rem; width: 13.68rem; }
.intro-deco-07 { bottom: 37.157rem; left: 10.166rem;  width: 26.736rem; }
.intro-deco-08 { bottom: 25.112rem; left: 15.125rem;  width: 23.884rem; }
.intro-deco-09 { bottom: 48.844rem; left: 99.254rem;  width: 18.816rem; }

/* 表示のアニメーション（top.js）が始まるまで隠しておくもの
   html.is-opening は index.html の <head> のスクリプトが付け、アニメーションの最後に top.js が外す */
html.is-opening .header,
html.is-opening .intro-bg,
html.is-opening .intro-catch-line,
html.is-opening .intro-mv,
html.is-opening .intro-deco-01,
html.is-opening .intro-deco-02,
html.is-opening .intro-deco-03,
html.is-opening .intro-deco-04,
html.is-opening .intro-deco-05,
html.is-opening .intro-deco-06,
html.is-opening .intro-deco-07,
html.is-opening .intro-deco-08,
html.is-opening .intro-deco-09,
html.is-opening .intro-message-title,
html.is-opening .intro-message-body p {
    opacity: 0;
}

/* イントロ（SP）
   位置の数値は SP デザイン（幅750px）の座標から。ヘッダー（高さ112px）の下端＝デザインの y=88 を0としている
   - 背景の円は SP 用の intro-bg-sp.svg（幅 1093.85px。index.html の <picture> で切り替え）を画面の中央に
   - キャッチは中央揃え（デザインは2行とも 1.2px 右にずれていた）
   - メイン画像は SP 用の intro-mv-sp.webp（750×382.5px。受け取った画像は幅 750.5px で右端の 0.5px が半透明だったので切り落とした。index.html の <picture> で切り替え）
   - 海の水色は画像の上端から 192.83px 〜 セクションの下端 */
@media (max-width: 750px) {
    .intro {
        padding: 31.273rem 0 9.676rem;
    }

    .intro-bg {
        top: 19.354rem;
        left: calc(50% - 54.6925rem);
        width: 109.385rem;
        max-width: none;
    }

    .intro-catch {
        font-size: 7rem;
        line-height: calc(85 / 70);
    }

    .intro-mv {
        margin-top: 2.907rem;
    }

    .intro-mv img {
        width: 75rem;
        aspect-ratio: 1500 / 765;
    }

    .intro-mv::before {
        top: 19.283rem;
        bottom: -113.163rem;
    }

    .intro-message-title {
        margin-top: 20.239rem;
        font-size: 7.5rem;
    }

    .intro-message-body {
        margin-top: 4.348rem;
        font-size: 2.7rem;
        line-height: calc(51 / 27);
    }

    .intro-message-body p + p {
        margin-top: 5.1rem;
    }

    .intro-decos {
        left: 0;
        width: 75rem;
    }

    .intro-deco-01 { top: 14.448rem; left: 0.6rem;    width: 13.152rem; }
    .intro-deco-02 { top: 31.284rem; left: 53.336rem; width: 17.083rem; }
    .intro-deco-03 { top: 33.74rem;  left: 4.95rem;   width: 11.417rem; }
    .intro-deco-04 { top: 18.367rem; left: 66.724rem; width: 14.688rem; }
    .intro-deco-05 { top: 8.224rem;  left: 53.879rem; width: 14.523rem; }
    .intro-deco-06 { bottom: 97.337rem;  left: 62.821rem; width: 10.088rem; }
    .intro-deco-07 { bottom: 100.028rem; left: -0.674rem; width: 16.246rem; }
    .intro-deco-08 { bottom: 89.684rem;  left: 1.09rem;   width: 16.149rem; }
    .intro-deco-09 { bottom: 106.564rem; left: 46.665rem; width: 14.144rem; }
}

/* ==========================================================================
   アンカーリンク（会社のこと / 働くひと / 学びと成長 / 続けやすさ）
   カード内の位置は、カードの左上を0とした座標
   ========================================================================== */

.anchor {
    position: relative;
    overflow-x: clip; /* 表示のアニメーションでカードが横から飛び込むとき、横スクロールが出ないように（上辺の波は切らない） */
    padding: 8.324rem 4rem 5.484rem;
    background: var(--color-white);
}

/* 上辺の波（ひとつ前のセクションの下端に重ねる） */
.anchor::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 1px); /* 拡大縮小時に境目へ隙間が出ないよう1px重ねる */
    left: 0;
    width: 100%;
    height: 3.5rem;
    /* 同じ波を11周期並べた画像を、1440pxの枠ではデザインと同じ位置に山が来るように置く
       （中央揃えから -102.84px ずらすと、枠の左端に波の山が来る） */
    background: url("../common/images/wave-white-wide.svg") no-repeat calc(50% - 10.284rem) bottom / 452.584rem 100%;
    pointer-events: none;
}

.anchor-list {
    display: flex;
    justify-content: center;
    gap: 2.667rem;
}

.anchor-card {
    position: relative;
    display: block;
    width: 32rem;
    height: 42rem;
    border-radius: 2rem;
    background: var(--color-pink);
    /* 線はデザインと同じく1px。内側に描いて座標がずれないようにする */
    box-shadow: inset 0 0 0 max(1px, 0.1rem) var(--color-black);
}

.anchor-card-icon {
    position: absolute;
    top: 2.066rem;
    left: 50%;
    width: 2.35rem;
    translate: -50% 0;
}

.anchor-card-title {
    position: absolute;
}

/* 見出し（文字をアウトライン化したSVG） */
.anchor-card-01 .anchor-card-title { top: 5.98rem;  left: 8.518rem;  width: 14.727rem; }
.anchor-card-02 .anchor-card-title { top: 5.968rem; left: 10.042rem; width: 11.703rem; }
.anchor-card-03 .anchor-card-title { top: 5.956rem; left: 8.572rem;  width: 14.889rem; }
/* デザインでは左に8pxずれていたため、他のカードに揃えて中央寄せ */
.anchor-card-04 .anchor-card-title { top: 5.989rem; left: 8.54rem;   width: 14.823rem; }

.anchor-card-image {
    position: absolute;
}

.anchor-card-01 .anchor-card-image { top: 12.477rem; left: 5.473rem; width: 21.054rem; }
.anchor-card-02 .anchor-card-image { top: 14.061rem; left: 3.446rem; width: 23.867rem; }
.anchor-card-03 .anchor-card-image { top: 11.593rem; left: 4.935rem; width: 21.81rem; }
.anchor-card-04 .anchor-card-image { top: 12.887rem; left: 5.07rem;  width: 21.859rem; }

/* 下端の半円 + 矢印（1枚の画像） */
.anchor-card-arrow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 7.906rem;
    translate: -50% 0;
}

/* ホバー（参考：目白大学 MEJINAVI2026 の LOOKBOOK のカード）：カードが押されたように 0.96倍に縮む
   下の矢印（半円）はカードの下端にくっついているので、別には動かさない（カードと一緒に縮む。別に動かすと下端との間に隙間が出る） */
.anchor-card {
    transition: scale var(--hover-duration) var(--ease-out-quad);
}

@media (hover: hover) {
    .anchor-card:hover { scale: 0.96; }
}

.anchor-card:focus-visible { scale: 0.96; }

@media (prefers-reduced-motion: reduce) {
    .anchor-card {
        transition: none;
    }
}


/* アンカー（SP）
   カード（320×420px）と中身の位置は PC と同じなので、並べ方と上辺の波だけを変える
   - 2列×2段。列の間は 18.67px、段の間は 14.5px（デザインの座標から）
   - セクションの上端は白い面の始まり（波の上端から 35px）。波は SP 用の wave-white-sp.svg（214.3px 周期・高さ 20px） */
@media (max-width: 750px) {
    .anchor {
        padding: 4.5rem 0 5.196rem;
    }

    .anchor::before {
        background: url("../common/images/wave-white-sp.svg") no-repeat left bottom / 100% 100%;
    }

    .anchor-list {
        flex-wrap: wrap;
        gap: 1.45rem 1.867rem;
    }
}

/* ==========================================================================
   ABOUT（会社について）
   スライダー：中央の円だけ 500px、それ以外は 300px、円同士の間隔は 20px
   中央の円の拡大と左右の円の押し出しは top.js で制御
   ========================================================================== */

.about {
    position: relative;
    overflow: hidden;
    padding: 4.771rem 0 7.186rem;
    text-align: center;
}

.about-lead {
    margin-top: 1.71rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

/* スライダー */
.about-slider-wrap {
    position: relative;
    margin-top: 5.565rem;
}

.about-slider {
    height: 50rem;
}

.about-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32rem; /* 円 300px + 間隔 20px */
}

.about-circle {
    --shift: 0; /* -1〜1：左右への押し出し（1 = --shift-unit） */
    --grow: 0;  /*  0〜1：拡大（1 = 1 + --grow-max 倍） */
    --shift-unit: 10rem;  /* PC：100px */
    --grow-max: 2 / 3;    /* PC：300px → 500px */
    flex-shrink: 0;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: inset 0 0 0 0.06rem var(--color-black); /* 線。border だと中身の座標がずれるため */
    transform: translateX(calc(var(--shift) * var(--shift-unit))) scale(calc(1 + var(--grow) * var(--grow-max)));
    transition-property: transform;
}

/* 円の中身
   座標は小さい円（300px）を基準にした値。中央の円は円ごと拡大されるので、同じ指定で 500px 用の見た目になる */
.about-circle {
    position: relative;
}

/* 画像と文字はそれぞれ円と同じ大きさの層にまとめ、円の中心を基準に拡大縮小する（動きは top.js） */
.about-item-images,
.about-item-body {
    position: absolute;
    inset: 0;
}

.about-item-images > *,
.about-item-body > * {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.about-item-label {
    top: 3.444rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.about-item-image {
    width: auto;
}

/* 数字（オレンジ + 外側に黒のフチ） */
.about-item-value,
.about-item-catch {
    font-weight: 900;
    line-height: 1;
    color: var(--color-orange);
    -webkit-text-stroke: max(1px, 0.18rem) var(--color-black);
    paint-order: stroke fill;
}

.about-item-value {
    top: 6.11rem;
    font-size: 6.6rem;
}

/* 数字の中央揃えを保ったまま、単位を数字の左右に添える */
.about-item-num {
    position: relative;
}

.about-item-unit,
.about-item-pre {
    position: absolute;
    font-size: 1.8rem;
    color: var(--color-black);
    -webkit-text-stroke: 0;
    white-space: nowrap;
}

.about-item-unit { left: 100%; }
.about-item-pre  { right: 100%; }

.about-item-catch {
    font-size: 4.6rem;
}

.about-item-text {
    top: 18.376rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
}

.about-item-note {
    top: 25.05rem;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
}

/* 創業 */
.about-item-founding .about-item-image { top: 13.676rem; left: 5.473rem; width: 18.247rem; }
.about-item-founding .about-item-unit  { top: 5.911rem;  margin-left: 0.096rem; }

/* 店舗数 */
.about-item-stores .about-item-image { top: 14.045rem; left: 7.578rem; width: 14.542rem; }
.about-item-stores .about-item-unit  { top: 4.401rem; margin-left: 0.784rem; }
.about-item-stores .about-item-pre   { top: 4.401rem; margin-right: 0.256rem; }

/* 従業員数 */
.about-item-employees .about-item-image { top: 5.203rem; left: 3.49rem; width: 23.093rem; }
.about-item-employees .about-item-unit  { top: 5.809rem; margin-left: 0.284rem; }

/* 地域での特徴 */
.about-item-feature .about-item-catch { top: 7.391rem; }
.about-item-feature .about-item-image { top: 13.432rem; left: 14.037rem; width: 5.534rem; }

/* 事業エリア */
.about-item-area .about-item-catch { top: 6.669rem; line-height: calc(55 / 46); }
.about-item-area .about-item-image { top: 18.623rem; left: 9.419rem; width: 11.162rem; }

/* 売上高 */
.about-item-sales .about-item-image { top: 14.496rem; left: 5.095rem; width: 20.13rem; }
.about-item-sales .about-item-unit  { top: 6.048rem; margin-left: 0.611rem; }

/* 前へ / 次へ */
.about-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 6rem;
    height: 6rem;
    color: var(--color-white);
    translate: -50% -50%;
}

/* 黒い丸（ホバーで弾むように拡大させるため、矢印とは別の要素。動きは top.js） */
.about-nav-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-black);
}

.about-nav-prev { left: calc(50% - 26rem); }
.about-nav-next { left: calc(50% + 26rem); }

.about-nav svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-caption {
    margin-top: 1.802rem;
    font-size: 1.4rem;
    line-height: 1;
}

/* ページネーション */
.about-pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.147rem;
}

.about-pagination button {
    width: 1rem;
    height: 1rem;
    border: 0.074rem solid var(--color-black);
    border-radius: 50%;
    background: var(--color-white);
}

.about-pagination button[aria-current="true"] {
    background: var(--color-orange);
}

/* 装飾（スライダーの手前） */
.about-deco {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.about-deco-01 { top: 66.658rem; left: calc(var(--side) + 39.686rem); width: 14.546rem; }
.about-deco-02 { top: 68.048rem; left: calc(var(--side) + 87.294rem); width: 17.752rem; }

/* ABOUT（SP）
   - 中央の円は 600px、左右の円は 300px（円の線もいっしょに 1.2px → 0.6px）。円どうしの中心の間隔は 325px で、
     左右の円は中央の円の後ろに重なってのぞく（重なり順は top.js がスライドの位置から付ける）
   - 円の中身は PC と同じ指定（300px の円を基準にした座標）を、円ごと拡大して使う
   - 前へ / 次へのボタンはデザインにないので出さない（スワイプと自動再生、ページネーション） */
@media (max-width: 750px) {
    .about {
        padding: 5.286rem 0 8.57rem;
    }

    .about-lead {
        margin-top: 2.566rem;
        font-size: 4.5rem;
    }

    .about-slider-wrap {
        margin-top: 5.246rem;
    }

    .about-slider {
        height: 60rem;
    }

    .about-slide {
        width: 32.5rem;
    }

    .about-circle {
        --shift-unit: 0rem;
        --grow-max: 1; /* 300px → 600px */
        box-shadow: inset 0 0 0 max(0.5px, 0.06rem) var(--color-black); /* 線は拡大前の値。中央の円（2倍）が 375px の画面でも 1px になるように */
    }

    .about-nav {
        display: none;
    }

    .about-caption {
        margin-top: 9.088rem;
        font-size: 2.1rem;
    }

    .about-pagination {
        gap: 3rem;
        margin-top: 4.721rem;
    }

    .about-pagination button {
        width: 1.5rem;
        height: 1.5rem;
        border-width: max(1px, 0.111rem);
    }

    .about-deco-01 { top: 83.675rem; left: -2rem;     width: 21.819rem; }
    .about-deco-02 { top: 85.038rem; left: 50.372rem; width: 26.628rem; }
}

/* ==========================================================================
   WORK（仕事について）
   左右の列は同じ作りで、座標は各列の左上（庇の左端）を0とした値
   ========================================================================== */

.work {
    position: relative;
    overflow-x: clip; /* 表示のアニメーションで列が横から入るとき、横スクロールが出ないように */
    height: 147.731rem;
    padding-top: 2.923rem;
}

.work-col {
    position: absolute;
    top: 0;
    width: 66.542rem;
    height: 100%;
}

.work-col-sales    { left: calc(var(--side) + 4.145rem); }
.work-col-engineer { left: calc(var(--side) + 73.384rem); }

.work-col > * {
    position: absolute;
    z-index: 2;
}

/* 庇と柱（1枚の画像。いちばん奥に置く） */
.work-col > .work-frame {
    top: 22.615rem;
    left: -0.1rem;
    z-index: 0;
    width: 66.743rem;
    max-width: none; /* 線の太さぶん列からはみ出す */
}

/* SP 用の庇（PC では出さない） */
.work-col > .work-frame-sp {
    display: none;
}

/* 職種名（オレンジの札） */
.work-name {
    top: 20.031rem;
    left: 16.671rem;
    width: 33.1rem;
    height: 7.1rem;
    padding: 1.863rem 0 0 0.06em; /* 字間ぶん右に寄せて中央を合わせる */
    border: 0.2rem solid var(--color-black);
    border-radius: 2.1rem;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-align: center;
    -webkit-text-stroke: 0.2rem var(--color-black);
    paint-order: stroke fill;
}

/* キャッチコピー（黄色のマーカー付き） */
.work-catch {
    top: 36.698rem;
    left: 6.956rem;
    isolation: isolate;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: calc(46 / 26);
    white-space: nowrap;
}

.work-marker {
    position: relative;
}

.work-marker::before {
    content: "";
    position: absolute;
    top: 2.79rem;
    right: -0.75rem;
    left: -0.424rem;
    z-index: -1;
    height: 1.355rem;
    border-radius: 0.678rem;
    background: var(--color-yellow);
}

/* 本文（デザインどおりの位置で改行） */
.work-text {
    top: 47.702rem;
    left: 7.271rem;
    font-size: 1.8rem;
    line-height: calc(34 / 18);
    white-space: nowrap;
}

/* 主な仕事 */
.work-card {
    top: 78.353rem;
    left: 7.734rem;
    width: 51.074rem;
    padding: 1.9rem;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 2.037rem;
    background: var(--color-white);
}

.work-card-label {
    position: absolute;
    top: -1.402rem;
    left: 5.028rem;
    width: 13.833rem;
    height: 4.611rem;
    padding: 1.25rem 0 0 0.06em;
    background: url("./images/work-label.svg") no-repeat center / 100% 100%;
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    text-align: center;
}

.work-card-inner {
    padding: 2.276rem 0 4.828rem 3.364rem;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 1.55rem;
    background: var(--color-peach);
}

.work-col-engineer .work-card-inner {
    padding-bottom: 4.448rem;
}

.work-list {
    width: 38.673rem;
}

.work-list li {
    position: relative;
    display: flex;
    align-items: center;
    height: 6.963rem;
    font-size: 1.6rem;
    line-height: 1;
}

/* 点線（2px おき） */
.work-list li::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: max(1px, 0.1rem);
    background: repeating-linear-gradient(90deg, var(--color-black) 0 0.2rem, transparent 0.2rem 0.4rem);
}

.work-list img {
    flex-shrink: 0;
    width: 3.275rem;
    margin: 0 1.928rem 0 -0.452rem;
}

/* イラスト（カードの右上に重ねる） */
.work-col > .work-illust {
    z-index: 3;
}

.work-col-sales .work-illust    { top: 69.742rem; left: 38.887rem; width: 18.973rem; }
.work-col-engineer .work-illust { top: 70.106rem; left: 36.916rem; width: 22.187rem; }

/* 1日の流れを見る（見た目は共通の .btn-more） */
.work-button {
    top: 135.737rem;
    left: 19.221rem;
    padding-left: 4.971rem;
}

/* ==========================================================================
   流れるテキスト（WORK の下）
   ========================================================================== */

.work-marquee {
    --marquee-gap: 2.862rem; /* 文中の「.」から次の単語までと同じ間隔で、継ぎ目を目立たせない */
    --marquee-duration: 40s;
    height: 14.531rem;
    padding: 5.666rem 0 0 1.725rem;
}

.work-marquee img {
    width: 278.509rem;
}

/* WORK（SP）
   2つの列を縦に並べる。列の中は PC と同じく絶対配置で、座標は列の左上（画面の左端・職種名の札の上端）を0とした値
   - 庇と柱は SP 用の画像（1枚。work-frame-sp.svg。エンジニアは柱が 31.6px 短い work-frame-sp-engineer.svg）。柱は1日の流れのボタンの下端まで
   - 文字・カード・ボタンは PC の 1.5倍の大きさ。本文の改行位置は SP のデザインに合わせて .br-sp / .br-pc で切り替える
   - 主な仕事の行の高さは 104.44px に揃えた（デザインはアイコンと文字の位置が行ごとに数px ばらついていた） */
@media (max-width: 750px) {
    .work {
        height: 406.72rem;
        padding-top: 3.647rem;
    }

    .work-col {
        left: 0;
        width: 100%;
    }

    .work-col-sales    { top: 23.02rem;  left: 0; height: 187.804rem; }
    .work-col-engineer { top: 222.075rem; left: 0; height: 184.645rem; }

    .work-col > .work-frame {
        display: none;
    }

    .work-col > .work-frame-sp {
        display: block;
        top: 3.876rem;
        left: 1.908rem;
        z-index: 0;
        width: 71.242rem;
        max-width: none;
    }

    .work-name {
        top: 0;
        left: 12.628rem;
        width: 49.8rem;
        height: 10.8rem;
        padding-top: 2.795rem;
        border-width: 0.3rem;
        border-radius: 3.15rem;
        font-size: 4.2rem;
        -webkit-text-stroke-width: 0.3rem;
    }

    .work-catch {
        top: 23.651rem;
        left: 11.496rem;
        font-size: 3.7rem;
        line-height: calc(67 / 37);
    }

    .work-marker::before {
        top: 3.953rem;
        right: -1rem;
        left: 0;
        height: 2.033rem;
        border-radius: 1.017rem;
    }

    .work-text {
        top: 41.464rem;
        left: 11.5rem;
        font-size: 2.7rem;
        line-height: calc(51 / 27);
    }

    .work-card {
        left: 2.195rem;
        width: 70.61rem;
        padding: 2.85rem;
        border-width: max(1px, 0.15rem);
        border-radius: 3.055rem;
    }

    .work-col-sales .work-card    { top: 92.132rem; }
    .work-col-engineer .work-card { top: 99.417rem; }

    .work-card-label {
        top: -2.102rem;
        left: 7.541rem;
        width: 20.749rem;
        height: 6.916rem;
        padding-top: 1.875rem;
        font-size: 2.7rem;
    }

    .work-card-inner,
    .work-col-engineer .work-card-inner {
        padding: 3.417rem 0 7.241rem 5.045rem;
        border-width: max(1px, 0.15rem);
        border-radius: 2.325rem;
    }

    .work-list {
        width: 54.01rem;
    }

    .work-list li {
        height: 10.444rem;
        font-size: 2.4rem;
    }

    .work-list li::after {
        height: max(1px, 0.15rem);
        background: repeating-linear-gradient(90deg, var(--color-black) 0 0.3rem, transparent 0.3rem 0.6rem);
    }

    .work-list img {
        width: 4.912rem;
        margin: 0 2.892rem 0 -0.677rem;
    }

    .work-col-sales .work-illust    { top: 81.944rem; left: 45.227rem; width: 28.459rem; }
    .work-col-engineer .work-illust { top: 91.842rem; left: 38.946rem; width: 33.281rem; }

    .work-button {
        left: 16.453rem;
        padding-left: 7.457rem;
    }

    .work-col-sales .work-button    { top: 178.579rem; }
    .work-col-engineer .work-button { top: 175.42rem; }

    .work-marquee {
        height: 21.03rem;
        padding: 11.562rem 0 0 4.548rem;
    }
}

/* ==========================================================================
   お客様のカーライフを支える
   パネル内の位置は、クリーム色のパネルの左上を0とした座標
   ========================================================================== */

.support {
    overflow-x: clip; /* 見出しが 1.2倍から縮む表示のアニメーションの間、SP で画面からはみ出して横スクロールが出ないように */
    padding: 10.811rem 0 5.435rem;
}

.support-panel {
    position: relative;
    width: 120rem;
    height: 88.481rem;
    margin: 0 auto;
    border-radius: 3rem;
    background: var(--color-cream);
}

.support-panel > * {
    position: absolute;
}

/* 見出し（オレンジの雲形の上に文字） */
.support-title {
    top: -2.6rem;
    left: 50%;
    width: 44.081rem;
    height: 6.557rem;
    padding-top: 1.572rem;
    background: url("./images/support-title.svg") no-repeat center / 100% 100%;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    translate: -50% 0;
}

/* イラスト（02 が手前）。SP は別の画像に <picture> で切り替えるので、picture は display: contents にして img を直接置く */
.support-panel > picture {
    display: contents;
}

.support-panel .support-illust-01,
.support-panel .support-illust-02 {
    position: absolute;
}

.support-panel .support-illust-01 {
    top: 9.345rem;
    left: -8rem;
    width: 135.829rem;
    max-width: none;
}

.support-panel .support-illust-02 {
    top: 29.471rem;
    left: 30.636rem;
    width: 60.355rem;
}

/* カード */
.support-cards {
    top: 53.513rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 2.686rem;
    width: 100%;
}

.support-card {
    position: relative;
    width: 33.1rem;
    height: 27.178rem;
    padding: 4.156rem 0 0 3.829rem;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 2rem;
    background: var(--color-white);
}

/* 右下にずらしたオレンジの影（黒い縁つき）
   box-shadow で描く（::before で後ろに置くと、表示のアニメーションでカードが動くあいだ、影がカードの手前に出てしまうため）
   オレンジは縁の内側（-1px）、黒い縁はその外側1px で、カードと同じ大きさ・角丸の形を右下に 5px ずらす */
.support-card {
    box-shadow:
        0.5rem 0.5rem 0 -0.1rem var(--color-orange),
        0.5rem 0.5rem 0 0 var(--color-black);
}

.support-card-title {
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.support-card-text {
    width: 25.242rem;
    margin-top: 2.49rem;
    font-size: 1.8rem;
    line-height: calc(34 / 18);
}

/* お客様のカーライフを支える（SP）
   - パネル（幅680px）は画面の中央に（デザインは 1.4px 左）。見出しの雲形も中央に（デザインは文字より 7px 右にずれていた）
   - 写真の帯・5人のキャラクターは SP 用の画像。帯は画面の幅いっぱい、キャラクターはデザインの位置（画面の左から 88.9px）
   - カードは縦に3枚。大きさ・線・影・余白は PC の 1.5倍で、高さは中身から決まる（間隔 26px）
     デザインは 3枚目だけ角丸が 22.5px、2枚目だけ下の余白が 2.3px 多かったので、ほかに揃えた
   - カードの本文はタイトルより 16.94px 左から（デザインどおり。3枚とも同じ） */
@media (max-width: 750px) {
    .support {
        padding: 9.497rem 0 4.899rem;
    }

    .support-panel {
        width: 68rem;
        height: auto;
        padding: 49.125rem 0 7.737rem;
        border-radius: 5rem;
    }

    .support-title {
        top: -3.902rem;
        width: 66.122rem;
        height: 9.836rem;
        padding-top: 2.36rem;
        font-size: 4.5rem;
    }

    /* イラストは SP 用の画像（support-illust-01-sp / 02-sp）。位置はデザインのグレーの仮置きどおり */
    .support-panel .support-illust-01 {
        top: 9.838rem;
        left: -3.5rem;
        width: 75rem;
    }

    .support-panel .support-illust-02 {
        top: 26.682rem;
        left: 5.39rem;
        width: 57.369rem;
    }

    .support-panel > .support-cards {
        position: relative;
        top: auto;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2.6rem;
        padding-left: 4.8rem;
    }

    .support-card {
        width: 57.65rem;
        height: auto;
        padding: 6.234rem 0 5.248rem 5.744rem;
        border-width: max(1px, 0.15rem);
        border-radius: 3rem;
        box-shadow:
            0.75rem 0.75rem 0 calc(-1 * max(1px, 0.15rem)) var(--color-orange),
            0.75rem 0.75rem 0 0 var(--color-black);
    }

    .support-card-title {
        font-size: 3.9rem;
    }

    .support-card-text {
        width: auto;
        margin: 3.735rem 0 0 -1.694rem;
        font-size: 2.7rem;
        line-height: calc(51 / 27);
        white-space: nowrap;
    }
}

/* ==========================================================================
   PEOPLE（人・社風）
   スライダーは左をカードの左端で切り、右は画面の端まで見せる
   ========================================================================== */

.people {
    overflow-x: clip; /* 表示のアニメーションでスライダーが右から入るとき、横スクロールが出ないように */
    padding: 4.52rem 0 9.93rem;
}

.people-slider {
    margin: 5.266rem 0 0 calc(var(--side) + 12.154rem);
}

.people-slide {
    width: 35rem; /* カード 321px + 間隔 29px */
}

/* カード：枠と写真は画像、文字は HTML。座標はカードの左上を0とした値 */
.people-card {
    position: relative;
    display: block;
    width: 32.1rem;
    height: 47.638rem;
}

.people-card:empty {
    background: #999; /* 仮（中身が入るまで） */
}

.people-card > * {
    position: absolute;
}

.people-card > .people-card-image {
    inset: 0;
    width: 100%;
}

/* 縦書きの職種（英語） */
.people-card-en {
    top: 4.29rem;
    right: 1.706rem; /* 右端を基準にし、2行のときは左へ広がる */
    color: var(--color-orange);
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: calc(28 / 24);
    white-space: nowrap;
    writing-mode: vertical-rl;
}

/* ハッシュタグ */
.people-card-tags {
    top: 29.4rem;
    left: 2.475rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.663rem;
}

.people-card-tags li,
.person-tags li {
    height: 3.5rem;
    padding: 0 1.011rem;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 99rem; /* 両端を半円に（以前の高さの半分 1.75rem は、SP の zoom の中で iPhone の Safari だと緩く見えた） */
    background: var(--color-white);
    font-size: 1.6rem;
    line-height: 3.2rem;
    white-space: nowrap;
}

/* 職種・名前・入社年 */
.people-card-job {
    top: 38.686rem;
    left: 2.975rem;
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.people-card-profile {
    top: 42.856rem;
    left: 2.975rem;
    display: flex;
    align-items: baseline;
    font-size: 1.8rem;
    line-height: 1;
    white-space: nowrap;
}

.people-card-year {
    position: relative;
    margin-left: 4.018rem; /* 名前との間（区切り線を含む） */
    font-size: 1.6rem;
}

/* 区切り線 */
.people-card-year::before {
    content: "";
    position: absolute;
    bottom: -0.015rem;
    left: -2.121rem;
    width: max(1px, 0.1rem);
    height: 1.464rem;
    background: var(--color-black);
}

/* 右下の＋ */
.people-card-more {
    top: 43.323rem;
    left: 28.001rem;
    width: 3rem;
    height: 3rem;
}

.people-card-more img {
    width: 100%;
}

/* 前へ / 01 — 06 / 次へ */
.people-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 7.318rem;
}

.people-nav-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.people-nav-button img {
    width: 100%;
}

/* 「前へ」は「次へ」の矢印を左右反転して使う */
.people-nav-prev img {
    scale: -1 1;
}

/* ホバー：カードは押されたように 0.96倍（アンカーやメニューのカードと同じ）、前へ・次へは 1.1倍（×と同じ）
   カードは :focus-visible では縮めない（モーダルを閉じると common.js がカードへフォーカスを戻し、
   ブラウザがそれを :focus-visible とみなすため、閉じたあと縮んだままに見えてしまう） */
.people-card,
.people-nav-button {
    transition: scale var(--hover-duration) var(--ease-out-quad);
}

@media (hover: hover) {
    .people-card:hover { scale: 0.96; }
    .people-nav-button:hover { scale: 1.1; }
}

.people-nav-button:focus-visible { scale: 1.1; }

@media (prefers-reduced-motion: reduce) {
    .people-card,
    .people-nav-button {
        transition: none;
    }
}

.people-count {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 3.508rem;
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.people-count-line {
    width: 4rem;
    height: max(1px, 0.1rem);
    background: var(--color-black);
}

/* PEOPLE（SP）
   - カード（481.5×714.57px）は PC のカード（321px）のちょうど 1.5倍なので、中身の値を 1.5倍にする（zoom は iPhone の Safari で崩れるので使わない）
   - スライダーは画面の左から 127.57px（カードの左端）で切り、右は画面の端まで。カードの間隔は PC の 1.5倍（スライドの幅 525px）
   - 前へ / 01 — 06 / 次へ も PC の 1.5倍。画面の中央に（デザインは 1.8px 左） */
@media (max-width: 750px) {
    .people {
        padding: 4.158rem 0 16.053rem;
    }

    .people-slider {
        margin: 10.673rem 0 0 12.757rem;
    }

    .people-slide {
        width: 52.5rem;
    }

    /* カードの中身は PC の 1.5倍。以前は zoom: 1.5 で拡大していたが、iPhone の Safari でカードが小さく見えたため、値を直接書く
       （タグは社員紹介のプロフィールと共通） */
    .people-card {
        width: 48.15rem;
        height: 71.457rem;
    }

    .people-card-en {
        top: 6.435rem;
        right: 2.559rem;
        font-size: 3.6rem;
    }

    .people-card-tags {
        top: 44.1rem;
        left: 3.7125rem;
        gap: 0.9945rem;
    }

    .people-card-tags li,
    .person-tags li {
        height: 5.25rem;
        padding: 0 1.5165rem;
        border-width: max(1px, 0.15rem);
        font-size: 2.4rem;
        line-height: 4.8rem;
    }

    .people-card-job {
        top: 58.029rem;
        left: 4.4625rem;
        font-size: 3.9rem;
    }

    .people-card-profile {
        top: 64.284rem;
        left: 4.4625rem;
        font-size: 2.7rem;
    }

    .people-card-year {
        margin-left: 6.027rem;
        font-size: 2.4rem;
    }

    .people-card-year::before {
        bottom: -0.0225rem;
        left: -3.1815rem;
        width: max(1px, 0.15rem);
        height: 2.196rem;
    }

    .people-card-more {
        top: 64.9845rem;
        left: 42.0015rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .people-nav {
        margin-top: 7.995rem;
    }

    .people-nav-button {
        width: 4.5rem;
        height: 4.5rem;
    }

    .people-count {
        gap: 2.25rem;
        margin: 0 5.262rem;
        font-size: 2.7rem;
    }

    .people-count-line {
        width: 6rem;
        height: max(1px, 0.15rem);
    }
}

/* ==========================================================================
   TRAINING & CAREER（教育・キャリアアップ）
   背景は大きな円の上の部分。下の装飾は次のセクションにはみ出す
   ========================================================================== */

.growth {
    position: relative;
    z-index: 1; /* はみ出す装飾を次のセクションより手前に */
    overflow-x: clip; /* 表示のアニメーションでカードや車が横から入るとき、横スクロールが出ないように（下へのはみ出しは切らない） */
    height: 110.306rem;
    padding-top: 12.808rem;
}

/* 背景の円（直径 2580px、上端をセクションの上端に合わせる） */
.growth::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle 129.011rem at 50% 129.011rem, var(--color-teal) 99.9%, transparent 100%);
}

.growth-text {
    margin-top: 5.607rem;
    font-size: 1.8rem;
    line-height: 2;
    text-align: center;
}

/* フォルダ型のカード（座標はカードの左上＝見出しタブの左上を0とした値） */
.growth-card {
    position: absolute;
    width: 59.1rem;
    height: 37.533rem;
    background: url("./images/growth-card.svg") no-repeat center / 100% 100%;
}

.growth-card-sales    { top: 49.358rem; left: calc(var(--side) + 11.95rem); }
.growth-card-engineer { top: 54.639rem; left: calc(var(--side) + 72.95rem); }

.growth-card > * {
    position: absolute;
}

/* タブの英語（デザインでは、タブの平らな部分と斜めの部分の間あたりを中心に置いている） */
.growth-card-en {
    top: 1.521rem;
    left: 0.05rem;
    width: 23.056rem;
    color: var(--color-black);
    font-family: var(--font-en);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.growth-card-title {
    top: 9.981rem;
    left: 4.107rem;
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.growth-card-text {
    top: 15.071rem;
    left: 4.107rem;
    font-size: 1.8rem;
    line-height: calc(34 / 18);
    white-space: nowrap;
}

.growth-card-button {
    top: 26.571rem;
    left: 3.843rem;
    padding-left: 8.048rem;
}

/* カードの右側に立つイラスト */
.growth-card > .growth-card-illust {
    z-index: 1;
}

.growth-card-sales .growth-card-illust    { top: 9.17rem;  left: 44.19rem; width: 10.836rem; }
.growth-card-engineer .growth-card-illust { top: 9.156rem; left: 40.64rem; width: 10.682rem; }

/* 下の装飾 */
.growth-deco {
    position: absolute;
    z-index: 1;
}

.growth-deco-01 { top: 105.338rem; left: calc(var(--side) + 7.273rem);   width: 24.452rem; }
.growth-deco-02 { top: 95.291rem;  left: calc(var(--side) + 100.013rem); width: 37.158rem; }

/* TRAINING & CAREER（SP）
   - 背景の円は PC と同じ（直径 2580px、上端をセクションの上端に）。セクションの下端で切り、下の装飾は次のセクションにはみ出す
   - 見出しは2行（TRAINING / & CAREER）。リード文との間は 22.96px（PEOPLE より狭い。デザインどおり）
   - カードは縦に2枚。形は SP 用の growth-card-sp.svg（PC と同じ形で、幅 700px・高さ 440px + タブ）。座標はカードの左上（タブの左上）を0とした値
   - カードの見出しはデザインでは本文より 3.16px 左だったので本文に揃えた（PC と同じく見出しと本文の左端は同じ）
   - エンジニアのイラストは、デザインの仮置きが営業と同じ大きさ（162.54×375.4）で画像と縦横比が違ったため、高さを合わせて仮置きの中央に */
@media (max-width: 750px) {
    .growth {
        height: 200.618rem;
        padding-top: 10.635rem;
    }

    .growth .heading-lead {
        margin-top: 2.296rem;
    }

    .growth-text {
        margin-top: 8.411rem;
        font-size: 2.7rem;
    }

    .growth-card {
        left: 2.425rem;
        width: 70.15rem;
        height: 52.3rem;
        background-image: url("./images/growth-card-sp.svg");
    }

    .growth-card-sales    { top: 72.706rem;  left: 2.425rem; }
    .growth-card-engineer { top: 128.041rem; left: 2.425rem; }

    .growth-card-en {
        top: 2.281rem;
        left: 0.267rem;
        width: 34.2rem;
        font-size: 4.2rem;
    }

    .growth-card-title {
        top: 12.971rem;
        left: 4.528rem;
        font-size: 3.9rem;
    }

    .growth-card-text {
        top: 20.607rem;
        left: 4.528rem;
        font-size: 2.7rem;
        line-height: calc(51 / 27);
    }

    .growth-card-button {
        top: 37.856rem;
        left: 4.453rem;
        padding-left: 12.072rem;
    }

    .growth-card-sales .growth-card-illust    { top: 10.267rem; left: 53.109rem; width: 16.254rem; }
    .growth-card-engineer .growth-card-illust { top: 11.842rem; left: 52.426rem; width: 15.983rem; }

    .growth-deco-01 { top: 194.869rem; left: 2.61rem;   width: 24.452rem; }
    .growth-deco-02 { top: 182.312rem; left: 36.963rem; width: 37.158rem; }
}

/* ==========================================================================
   BENEFIT（福利厚生）
   位置はセクションの左上を0とした座標
   ========================================================================== */

.benefit {
    position: relative;
    isolation: isolate;
    overflow-x: clip; /* 表示のアニメーションでパネルが横から入るとき、横スクロールが出ないように */
    height: 236.024rem;
    padding-top: 14.708rem;
}

/* 背景のクリーム色（上辺が中央に向かって下がる V 字） */
.benefit::before {
    content: "";
    position: absolute;
    top: 93.329rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: var(--color-cream);
    clip-path: polygon(0 0, calc(var(--side) + 71.835rem) 33.782rem, 100% 0, 100% 100%, 0 100%);
}

/* 白いパネル（上にオレンジの見出しタブ） */
.benefit-panel {
    position: absolute;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 2.05rem;
    background: var(--color-white);
}

.benefit-panel-system    { top: 38.892rem; left: calc(var(--side) + 11.95rem); width: 120.1rem; height: 34.208rem; }
.benefit-panel-allowance { top: 78.838rem; left: calc(var(--side) + 11.95rem); width: 57.29rem;  height: 29.655rem; }
.benefit-panel-union     { top: 78.838rem; left: calc(var(--side) + 74.76rem); width: 57.29rem;  height: 29.655rem; }

.benefit-panel-title {
    position: absolute;
    top: -1.287rem;
    left: 15.451rem;
    width: 26.189rem;
    height: 8.954rem;
    padding-top: 2.703rem;
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 0 0 3.05rem 3.05rem;
    background: var(--color-orange);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.benefit-panel-system .benefit-panel-title {
    left: 46.856rem;
}

/* 箇条書き */
.benefit-cols {
    position: absolute;
    top: 11.053rem;
    left: 0;
}

.benefit-cols > ul,
.benefit-panel-union > ul {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.benefit-panel-system .benefit-cols > ul:nth-child(1) { left: 5.66rem; }
.benefit-panel-system .benefit-cols > ul:nth-child(2) { left: 37.792rem; --divider: -4.772rem; }
.benefit-panel-system .benefit-cols > ul:nth-child(3) { left: 64.728rem; --divider: -4.32rem; }
.benefit-panel-system .benefit-cols > ul:nth-child(4) { left: 92.794rem; --divider: -4.999rem; }
.benefit-panel-allowance .benefit-cols > ul:nth-child(1) { left: 4.983rem; }
.benefit-panel-allowance .benefit-cols > ul:nth-child(2) { left: 33.274rem; --divider: -4.729rem; }

.benefit-panel-union > ul {
    top: 11.053rem;
    left: 4.983rem;
    width: 47.203rem;
    white-space: normal;
}

/* 列の間の点線 */
.benefit-cols > ul + ul::before {
    content: "";
    position: absolute;
    top: 0.874rem;
    left: var(--divider);
    width: max(1px, 0.1rem);
    height: 17.012rem;
    background: repeating-linear-gradient(var(--color-black) 0 0.2rem, transparent 0.2rem 0.4rem);
}

.benefit-panel-allowance .benefit-cols > ul + ul::before {
    height: 12.475rem;
}

.benefit-list li {
    position: relative;
    padding-left: 2.203rem;
    font-size: 1.8rem;
    line-height: 2;
}

.benefit-list li::before {
    content: "●";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-orange);
}

.benefit-list small {
    font-size: 1.4rem;
}

/* 項目の下の補足（2行） */
.benefit-note {
    display: block;
    margin: -0.391rem 0 -0.209rem;
    font-size: 1.4rem;
    line-height: 1.5;
}

/* 行頭の「（」を半角分左へ出す */
.hang {
    margin-left: -0.5em;
}

.benefit-text {
    position: absolute;
    top: 114.701rem;
    left: 0;
    width: 100%;
    font-size: 1.8rem;
    line-height: 2;
    text-align: center;
}

/* 数字のカード */
.benefit-stats {
    position: absolute;
    top: 137.108rem;
    left: calc(var(--side) + 12.034rem);
    display: grid;
    grid-template-columns: repeat(3, 37.8rem);
    gap: 3.198rem 3.177rem;
}

.benefit-stat {
    position: relative;
    height: 37.8rem;
    overflow: hidden; /* アイコンの下端をカードで切る */
    border-radius: 2rem;
    background: var(--color-orange);
    box-shadow: inset 0 0 0 max(1px, 0.1rem) var(--color-black);
}

.benefit-stat > * {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.benefit-stat-title {
    top: 3.706rem;
    color: var(--color-white);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.benefit-stat-note {
    top: 7.578rem;
    color: var(--color-white);
    font-size: 1.6rem;
    line-height: 1;
}

/* 数字（黄色 + 外側に黒のフチ）。単位は数字の右に添える */
.benefit-stat-value {
    top: 9.242rem;
    color: var(--color-yellow);
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.3rem var(--color-black);
    paint-order: stroke fill;
}

.benefit-stat-num {
    position: relative;
}

/* 単位のベースラインは数字に揃える（クライアントの希望。デザインは数字より約2.3rem下だった）。
   デザインどおり数字だけを中央に置き、単位は数字の 1rem 右に添える。
   単位は幅 0 の inline-block にして中央揃えの計算から外し、left で右へずらす（数字の中の inline 要素なのでベースラインは自然に揃う） */
.benefit-stat-unit {
    display: inline-block;
    position: relative;
    left: 1rem;
    width: 0;
    color: var(--color-black);
    font-size: 3rem;
    -webkit-text-stroke: 0;
    white-space: nowrap;
}

/* アイコンはカードの下端から枠線（max(1px, 0.1rem)）ぶん上に置き、下の枠線に重ならないようにする */
.benefit-stat > .benefit-stat-icon {
    top: auto;
    bottom: max(1px, 0.1rem);
    width: auto;
}
.benefit-stat-return .benefit-stat-icon    { left: 5.968rem;  width: 25.889rem; }
.benefit-stat-years .benefit-stat-icon     { left: 6.815rem;  width: 24.169rem; }
.benefit-stat-overtime .benefit-stat-icon  { left: 10.034rem; width: 17.732rem; }
.benefit-stat-holiday .benefit-stat-icon   { left: 8.284rem;  width: 21.233rem; }
.benefit-stat-paidleave .benefit-stat-icon { left: 8.133rem;  width: 21.535rem; }
.benefit-stat-childcare .benefit-stat-icon { left: 10.768rem; width: 16.263rem; }

.benefit-stats-note {
    position: absolute;
    top: 217.527rem;
    right: calc(var(--side) + 12.428rem);
    font-size: 1.4rem;
    line-height: 1;
}

/* BENEFIT（SP）
   - パネル3つを縦に並べる（幅 700px）。見出しタブ・文字の大きさは PC の 1.5倍。タブはパネルの中央に（デザインは3つとも 2.8px 右）
   - 福利厚生・制度は2列（段組み。PC の4つの ul を display: contents で流し込み、「子供の看護等休暇」のあとで右の列へ）
     中身はクライアントの修正（財形貯蓄制度の追加、重複していた保養施設の削除、「（ホテルエピナード那須など）」）を反映。
     デザインはこの修正の前の内容だった
   - 補足（勤続年数・保養施設・健康管理補助）は項目の文字の左端に揃える（デザインは 5〜12px 左で、ばらついていた）
   - 数字のカード（567px）は PC のちょうど 1.5倍なので、中身の値を 1.5倍にして縦に6枚（zoom は iPhone の Safari で崩れるので使わない）
   - 背景の V 字の頂点は画面の中央（デザインは 0.9px 左） */
@media (max-width: 750px) {
    /* 上の TRAINING & CAREER からはみ出すお店のイラスト（growth-deco-02）が「福利厚生」に重なっていたので、セクションごと 20rem 下げる
       （お店の絵の下端から見出しの上端まで約 166px） */
    .benefit {
        height: 627.518rem;
        margin-top: 20rem;
        padding-top: 9.144rem;
    }

    /* 「続けやすさ」のリンク（#environment-heading）で見出しがヘッダーにくっつかないよう、ヘッダーの下に 5rem あける
       （ABOUT・PEOPLE へのリンクで見出しがヘッダーの下 約 41〜53px に来るのに合わせた） */
    #environment-heading {
        scroll-margin-top: 5rem;
    }

    .benefit .heading-lead {
        margin-top: 2.812rem;
        line-height: calc(66 / 45);
    }

    .benefit::before {
        top: 197.001rem;
        clip-path: polygon(0 0, 50% 17.595rem, 100% 0, 100% 100%, 0 100%);
    }

    .benefit-panel {
        left: 2.425rem;
        width: 70.15rem;
        border-width: max(1px, 0.15rem);
        border-radius: 3.075rem;
    }

    .benefit-panel-system    { top: 46.219rem;  left: 2.425rem; width: 70.15rem; height: 74.42rem; }
    .benefit-panel-allowance { top: 124.341rem; left: 2.425rem; width: 70.15rem; height: 43.185rem; }
    .benefit-panel-union     { top: 171.368rem; left: 2.425rem; width: 70.15rem; height: 31.828rem; }

    .benefit-panel-title,
    .benefit-panel-system .benefit-panel-title {
        top: -1.929rem;
        left: 15.284rem;
        width: 39.283rem;
        height: 13.432rem;
        padding-top: 4.055rem;
        border-width: max(1px, 0.15rem);
        border-radius: 0 0 4.575rem 4.575rem;
        font-size: 4.5rem;
    }

    /* 2列（左の列の文字は左から 37.71px、右の列は 389.05px。間の点線はパネルの中央） */
    .benefit-cols {
        top: 15.054rem;
        width: 100%;
        padding: 0 3.771rem;
        column-count: 2;
        column-gap: 7.96rem;
        column-fill: auto;
    }

    .benefit-cols > ul,
    .benefit-cols > ul + ul {
        display: contents;
    }

    .benefit-cols > ul + ul::before {
        content: none;
    }

    .benefit-cols::after {
        content: "";
        position: absolute;
        top: 1.31rem;
        left: calc(50% - 0.075rem);
        width: max(1px, 0.15rem);
        height: 51.606rem;
        background: repeating-linear-gradient(var(--color-black) 0 0.3rem, transparent 0.3rem 0.6rem);
    }

    .benefit-panel-allowance .benefit-cols::after {
        height: 20.371rem;
    }

    .benefit-list li {
        padding-left: 3.305rem;
        font-size: 2.7rem;
        break-inside: avoid;
    }

    /* 左の列はここまで */
    .benefit-panel-system .benefit-cols > ul:nth-child(3) > li:first-child,
    .benefit-panel-allowance .benefit-cols > ul:nth-child(1) > li:last-child {
        break-after: column;
    }

    .benefit-list small {
        font-size: 2.1rem;
    }

    /* 退職金制度の補足は次の行に */
    .benefit-panel-system .benefit-list small {
        display: block;
        margin: 0.586rem 0 1.664rem;
        line-height: 1.5;
        text-indent: -0.5em;
    }

    .benefit-note {
        margin: 0.386rem 0 0.918rem;
        font-size: 2.1rem;
    }

    .benefit-panel-union > ul {
        top: 15.054rem;
        left: 3.771rem;
        width: auto;
        white-space: nowrap;
    }

    .benefit-text {
        top: 219.603rem;
        font-size: 2.7rem;
    }

    .benefit-stats {
        top: 251.084rem;
        left: 9.102rem;
        grid-template-columns: 56.7rem;
        gap: 2rem;
    }

    /* カードは PC のちょうど 1.5倍。以前は zoom: 1.5 で拡大していたが、iPhone の Safari で数字が小さく見えたため、
       値を 1.5倍にして直接書く（PEOPLE のタグの角丸も zoom の中で iPhone だけ崩れていた） */
    .benefit-stat {
        height: 56.7rem;
        border-radius: 3rem;
        box-shadow: inset 0 0 0 max(1px, 0.15rem) var(--color-black);
    }

    .benefit-stat-title {
        top: 5.559rem;
        font-size: 3.9rem;
    }

    .benefit-stat-note {
        top: 11.367rem;
        font-size: 2.4rem;
    }

    .benefit-stat-value {
        top: 13.863rem;
        font-size: 15rem;
        -webkit-text-stroke-width: 0.45rem;
    }

    .benefit-stat-unit {
        font-size: 4.5rem;
    }

    .benefit-stat > .benefit-stat-icon {
        bottom: max(1px, 0.15rem);
    }
    .benefit-stat-return .benefit-stat-icon    { left: 8.952rem;  width: 38.834rem; }
    .benefit-stat-years .benefit-stat-icon     { left: 10.223rem; width: 36.254rem; }
    .benefit-stat-overtime .benefit-stat-icon  { left: 15.051rem; width: 26.598rem; }
    .benefit-stat-holiday .benefit-stat-icon   { left: 12.426rem; width: 31.850rem; }
    .benefit-stat-paidleave .benefit-stat-icon { left: 12.200rem; width: 32.303rem; }
    .benefit-stat-childcare .benefit-stat-icon { left: 16.152rem; width: 24.395rem; }

    /* SP は単位と数字の間隔をデザインのとおりカードごとに */
    .benefit-stat-return .benefit-stat-unit    { left: 1.53rem; } /* SP のデザインなし。同じ「100%」の育児休業取得率に合わせた */
    .benefit-stat-years .benefit-stat-unit     { left: 1.992rem; }
    .benefit-stat-overtime .benefit-stat-unit  { left: 1.02rem; }
    .benefit-stat-holiday .benefit-stat-unit   { left: 3.071rem; }
    .benefit-stat-paidleave .benefit-stat-unit { left: 2.132rem; }
    .benefit-stat-childcare .benefit-stat-unit { left: 1.53rem; }

    .benefit-stats-note {
        top: 605.415rem;
        right: 9.198rem;
        font-size: 2.1rem;
    }
}

/* ==========================================================================
   ENTRY
   見出しはオレンジの帯の上辺に乗る
   ========================================================================== */

.entry {
    position: relative;
    overflow-x: clip; /* 表示のアニメーションでボタンが横から入るとき、横スクロールが出ないように（上にはみ出す ENTRY の文字は切らない） */
    height: 30rem;
    padding-top: 7.461rem;
    background: var(--color-orange);
}

.entry-title {
    position: absolute;
    top: -6.084rem;
    left: 0;
    width: 100%;
    color: var(--color-orange);
    font-family: var(--font-en);
    font-size: 7.2rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.entry-links {
    display: flex;
    justify-content: center;
    gap: 2.777rem;
    /* ヘッダーとメニューの ENTRY（#entry-links）で移動したとき、ボタンがヘッダーより下の見えている範囲の上下中央に来るようにする
       （ヘッダーの高さは html の scroll-padding-top で空いているので、残りの高さからボタンの高さ 15.079rem を引いた半分） */
    scroll-margin-top: calc((100svh - var(--header-height) - 15.079rem) / 2);
}

.entry-link {
    position: relative;
    display: block;
    width: 50.079rem;
    height: 15.079rem;
    padding: 5.669rem 0 0 6.411rem;
    border: 0.079rem solid var(--color-black);
    border-radius: 7.54rem;
    background: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.entry-link img {
    position: absolute;
    top: 4.46rem;
    right: 3.277rem;
    width: 6rem;
}

/* ホバー：背景が黄色に（共通の黄色のボタンと同じ色）、矢印が 4px 右へ */
.entry-link {
    transition: background-color var(--hover-duration) var(--ease-out-quad);
}

.entry-link img {
    transition: translate var(--hover-duration) var(--ease-out-quad);
}

@media (hover: hover) {
    .entry-link:hover { background-color: var(--color-yellow); }
    .entry-link:hover img { translate: 0.4rem 0; }
}

.entry-link:focus-visible { background-color: var(--color-yellow); }
.entry-link:focus-visible img { translate: 0.4rem 0; }

@media (prefers-reduced-motion: reduce) {
    .entry-link,
    .entry-link img {
        transition: none;
    }
}

/* ENTRY（SP）
   ボタンは縦に2つ（700×200px）。文字は PC の 1.5倍、ボタンは 1.4倍、矢印は 90px */
@media (max-width: 750px) {
    .entry {
        height: 54.122rem;
        padding-top: 6.072rem;
    }

    .entry-title {
        top: -9.126rem;
        font-size: 10.8rem;
    }

    .entry-links {
        flex-direction: column;
        align-items: center;
        gap: 1.9rem;
        scroll-margin-top: calc((100svh - var(--header-height) - 42.1rem) / 2);
    }

    .entry-link {
        width: 70.1rem;
        height: 20.1rem;
        padding: 7.264rem 0 0 9.736rem;
        border-width: max(1px, 0.1rem);
        border-radius: 10.05rem;
        font-size: 4.5rem;
    }

    .entry-link img {
        top: 5.45rem;
        right: 5.033rem;
        width: 9rem;
    }
}

/* ==========================================================================
   モーダル：1日の流れ（.oneday）
   枠は common.css の .modal。座標はパネルの左上を0とした値
   ========================================================================== */

/* パネルの中で、上部の画像から時刻の行までをまとめてスクロール */
.oneday-body {
    position: absolute;
    inset: 0;
    padding: 7.052rem 0 9.324rem;
    border-radius: inherit;
}

.oneday-visual {
    position: relative;
    width: 109.838rem;
    height: 44.481rem;
    margin: 0 auto;
}

/* 背景 → 人物 → 筆記体の Engineer の順に重ねる（背景を SP 用に切り替える <picture> は枠にしない） */
.oneday-visual picture {
    display: contents;
}

.oneday-visual-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oneday-visual-person,
.oneday-visual-label {
    position: absolute;
}

/* 人物と筆記体の位置（背景の左上を0とした座標） */
.oneday-engineer .oneday-visual-person { top: 15.63rem;  left: 42.591rem; width: 21.828rem; }
.oneday-engineer .oneday-visual-label  { top: 26.13rem;  left: 65.661rem; width: 16.842rem; }
.oneday-sales .oneday-visual-person    { top: 16.443rem; left: 45.774rem; width: 16.867rem; }
.oneday-sales .oneday-visual-label     { top: 25.525rem; left: 64.532rem; width: 10.304rem; }

.oneday-heading {
    position: absolute;
    top: 4.996rem;
    left: 0;
    width: 100%;
    line-height: 1;
    text-align: center;
}

.oneday-heading-label {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.oneday-heading-title {
    display: block;
    margin-top: 0.521rem;
    color: var(--color-orange);
    font-family: var(--font-en);
    font-size: 7.2rem;
    font-weight: 900;
}

/* 時刻ごとの行 */
.oneday-list {
    display: grid;
    list-style: none;
    row-gap: 1rem;
    width: 94rem;
    margin: 3.944rem auto 0;
}

.oneday-item {
    position: relative;
    padding: 1.453rem 2rem 1.814rem 43.208rem;
    border-radius: 1rem;
    background: var(--color-cream);
}

/* 時刻と見出しの間の三角 */
.oneday-item::before {
    content: "";
    position: absolute;
    top: 2.537rem;
    left: 14.293rem;
    width: 1.376rem;
    height: 1.589rem;
    background: var(--color-orange);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.oneday-time {
    position: absolute;
    top: 1.999rem;
    right: 82.405rem; /* 時刻は右揃え（デザインの右端 x=365.95） */
    color: var(--color-orange);
    font-family: var(--font-en);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1;
}

.oneday-title {
    position: absolute;
    top: 2.277rem;
    left: 17.909rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.oneday-tasks li {
    position: relative;
    padding-left: 2.202rem; /* ●（18px）+ 半角スペース */
    font-size: 1.8rem;
    line-height: 3.4rem;
}

.oneday-tasks li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--color-orange-dark);
}

/* 1日の流れ（SP）。エンジニア・営業のデザインから
   - パネルは左右 25px・上下 33.9px（画面の高さに収め、中でスクロールするのは PC と同じ）。×は右上 75px。SCROLL はデザインにないので出さない
   - 上部の背景は SP 用の画像（oneday-○○-bg-sp.webp、650 × 650。<picture> で切り替え）、角丸 30px は CSS（営業のデザインは 18.55px だったがエンジニアに揃えた）
   - 人物は仮置きの位置。筆記体はデザインの文字の位置（エンジニアは背景の下端より下にはみ出す）。
     営業の Sales はデザインでは画像ではなく文字（Beloved Script 84px、-5°回転）だったので、文字の基準点と画像の文字のベースラインから位置を割り出した（数px の誤差はありうる）
   - 見出しは PC の 1.5倍
   - 時刻の行：時刻・三角・見出しを1行目に、作業の一覧はその下に全幅で。時刻は左揃え
     行の高さは中身から決める（デザインは一覧の最後の行から下端まで 46〜70px とばらばらだったので、いちばん多い2行の行（営業の6つ、217.46px）に揃えた。1行は 166.46px）
   - エンジニアのデザインには 9:10（点検・整備の準備）の行がなかったが、PC と同じく入れている */
@media (max-width: 750px) {
    /* 枠（パネル・×・SCROLL）は common.css の .modal（SP）で全モーダル共通 */
    .oneday-body {
        padding: 2.301rem 0 3.337rem;
    }

    .oneday-visual {
        width: 65rem;
        height: 65rem;
    }

    .oneday-visual-bg {
        border-radius: 3rem;
    }

    .oneday-engineer .oneday-visual-person { top: 23.713rem; left: 17.102rem; width: 30.795rem; }
    .oneday-engineer .oneday-visual-label  { top: 59.297rem; left: 37.33rem;  width: 25.262rem; }
    .oneday-sales .oneday-visual-person    { top: 23.674rem; left: 19.85rem;  width: 25.3rem; }
    .oneday-sales .oneday-visual-label     { top: 51.594rem; left: 42.789rem; width: 15.456rem; }

    .oneday-heading {
        top: 7.495rem;
    }

    .oneday-heading-label {
        font-size: 2.7rem;
    }

    .oneday-heading-title {
        margin-top: 0.781rem;
        font-size: 10.8rem;
    }

    .oneday-list {
        row-gap: 2rem;
        width: 65rem;
        margin-top: 5.025rem;
    }

    .oneday-item {
        padding: 8.211rem 2.5rem 3.335rem;
        border-radius: 1.5rem;
    }

    .oneday-item::before {
        top: 4.032rem;
        left: 15.636rem;
        width: 2.064rem;
        height: 2.383rem;
    }

    .oneday-time {
        top: 3.226rem;
        right: auto;
        left: 2.422rem;
        font-size: 3.9rem;
    }

    .oneday-title {
        top: 3.643rem;
        left: 21.06rem;
        font-size: 3rem;
    }

    .oneday-tasks li {
        padding-left: 3.303rem; /* ●（27px）+ 半角スペース */
        font-size: 2.7rem;
        line-height: 5.1rem;
    }
}

/* ==========================================================================
   モーダル：社員紹介（.person）
   枠は common.css の .modal。座標はパネルの左上を0とした値
   - パネルは画面の高さに収め（上下 4rem）、左のプロフィールは固定、右の本文だけをパネルの中でスクロール
     （参考：エスビー食品 SPICE&HERB GARDEN MUSEUM のライブラリー）
   - 画面が低くて左のプロフィールが収まらないときは、パネルの高さを保ってモーダル全体をスクロール
   ========================================================================== */

.person-panel {
    --modal-min-height: 71rem; /* 左のプロフィール（タグの下端 670.83px）+ 余白 */
}

/* 左：プロフィール（文字は写真より手前） */
.person-profile > * {
    position: absolute;
    z-index: 1;
    line-height: 1;
}

.person-profile > .person-photo {
    z-index: 0;
}

/* 職種（オレンジの帯。文字は帯の中央） */
.person-job {
    top: 7.267rem;
    left: 7.257rem;
    height: 4rem;
    padding: 0 1.07rem;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 4rem;
    white-space: nowrap;
}

.person-year,
.person-name {
    left: 7.2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.person-year { top: 12.809rem; }
.person-name { top: 15.281rem; }

/* 写真の後ろの水色（上が半円、下の角が少し丸い形） */
.person-photo {
    top: 20.359rem;
    left: 7.087rem;
    width: 39.407rem;
    height: 32.186rem;
    border-radius: 19.703rem 19.703rem 1.963rem 1.963rem;
    background: var(--color-teal);
}

.person-photo-image {
    position: absolute;
    bottom: 0;
    left: 5.567rem;
    width: 33.84rem;
}

/* 写真の大きさが違う人（デザインの枠に合わせる） */
.person-yh .person-photo-image { left: 7.086rem; width: 29.193rem; }
.person-yj .person-photo-image,
.person-oh .person-photo-image { left: 6.036rem; width: 32.979rem; }

/* 縦書きの英語が2行の人（CUSTOMER / ATTENDANT）。行の間隔は28px、2行とも下端で揃え、左の行をほかの人の1行目と同じ位置に */
.person-yj .person-en {
    left: 2.245rem;
    line-height: 2.8rem;
    text-align: end;
}

/* 縦書きの英語（上から下へ読む）。文字数が違っても下端が揃うよう、アーチの下端を基準に置く */
.person-en {
    position: absolute;
    bottom: 1.894rem;
    left: 2.547rem;
    line-height: 1;
    color: var(--color-orange);
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 800;
    writing-mode: vertical-rl;
}

/* タグ（見た目は PEOPLE のカードと共通） */
.person-tags {
    top: 55.257rem;
    left: 7.376rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.663rem;
}

/* 右：本文（この列だけスクロール） */
.person-body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 56rem;
    padding: 7.267rem 12rem 10.098rem 0;
}

/* 見出し（行ごとに水色の帯） */
.person-catch {
    font-size: 2.6rem;
    font-weight: 700;
}

.person-catch > span {
    display: table;
    height: 4.269rem;
    padding: 0 1rem 0 0.902rem;
    background: var(--color-teal);
    line-height: 4.269rem;
}

.person-catch > span + span {
    margin-top: 0.402rem;
}

.person-text {
    margin-top: 3.353rem;
    white-space: nowrap; /* 改行はデザインどおり <br> で入れているので、自動では折り返さない */
    font-size: 1.8rem;
    line-height: 3.4rem;
}

.person-image {
    width: 100%;
    height: 32rem;
    margin-top: 3.8rem;
    border-radius: 2rem;
    object-fit: cover;
}

.person-image + .person-text {
    margin-top: 3.8rem;
}

/* 社員紹介（SP）。SP のデザインはないので、PC を踏襲して1カラムに（1日の流れの SP にならう）
   - パネル全体をスクロール（common.css）。上にプロフィール、その下に見出し・本文・写真
   - プロフィール（職種の帯・入社年・名前・アーチの写真・縦書きの英語・タグ）は PC の配置の値を 1.5倍に（zoom は使わない）。
     写真のアーチの左端と職種の帯の上端を、パネルの左から 25px・上から 40px に（PC の座標から margin でずらす）
   - 文字は PC の 1.5倍。本文は PC の <br> の改行をやめて幅いっぱいで折り返す。写真は幅いっぱい（縦横比はそのまま） */
@media (max-width: 750px) {
    /* プロフィールの中は PC の 1.5倍。以前は zoom: 1.5 で拡大していたが、iPhone の Safari で小さく見えたため、値を直接書く */
    .person-profile {
        position: relative;
        height: 100.6245rem; /* PC のタグの下端 67.083 × 1.5 */
        margin: -6.9rem 0 0 -8.13rem; /* 帯の上端 10.9005 → 4（40px）、アーチの左端 10.6305 → 2.5（25px） */
    }

    .person-job {
        top: 10.9005rem;
        left: 10.8855rem;
        height: 6rem;
        padding: 0 1.605rem;
        font-size: 3.9rem;
        line-height: 6rem;
    }

    .person-year,
    .person-name {
        left: 10.8rem;
        font-size: 2.7rem;
    }

    .person-year { top: 19.2135rem; }
    .person-name { top: 22.9215rem; }

    .person-photo {
        top: 30.5385rem;
        left: 10.6305rem;
        width: 59.1105rem;
        height: 48.279rem;
        border-radius: 29.5545rem 29.5545rem 2.9445rem 2.9445rem;
    }

    .person-photo-image {
        left: 8.3505rem;
        width: 50.76rem;
    }

    .person-yh .person-photo-image { left: 10.629rem; width: 43.7895rem; }
    .person-yj .person-photo-image,
    .person-oh .person-photo-image { left: 9.054rem; width: 49.4685rem; }

    .person-en {
        bottom: 2.841rem;
        left: 3.8205rem;
        font-size: 3.6rem;
    }

    .person-yj .person-en {
        left: 3.3675rem;
        line-height: 4.2rem;
    }

    .person-tags {
        top: 82.8855rem;
        left: 11.064rem;
        gap: 0.9945rem;
    }

    .person-body {
        position: static;
        overflow: visible;
        padding: 3rem 2.5rem 6rem;
    }

    .person-catch {
        font-size: 3.9rem;
    }

    .person-catch > span {
        height: auto;
        padding: 0 1.5rem 0 1.353rem;
        line-height: 6.4rem;
    }

    .person-catch > span + span {
        margin-top: 0.603rem;
    }

    .person-text {
        margin-top: 5.03rem;
        white-space: normal;
        font-size: 2.7rem;
        line-height: 5.1rem;
    }

    .person-text br {
        display: none;
    }

    .person-image {
        height: auto;
        margin-top: 5.7rem;
        border-radius: 3rem;
    }

    .person-image + .person-text {
        margin-top: 5.7rem;
    }
}


/* ==========================================================================
   モーダル：営業 / エンジニアの成長（.career）
   枠は common.css の .modal。座標はパネルの左上を0とした値
   - 社員紹介と同じく、左の見出しとイラストは固定、右のキャリアの段階だけをパネルの中でスクロール
   ========================================================================== */

.career-panel {
    --modal-min-height: 71rem; /* 左のイラストの下端 677.2px + 余白 */
}

/* 左：見出しとイラスト */
.career-intro > * {
    position: absolute;
}

.career-title {
    top: 6.642rem;
    left: 6.868rem;
    color: var(--color-orange);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
}

.career-catch {
    top: 13.162rem;
    left: 6.656rem;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 4.4rem;
    white-space: nowrap;
}

.career-image {
    top: 25.422rem;
    left: 14.134rem;
    width: 30rem;
}

/* 右：キャリアの段階（この列だけスクロール） */
.career-body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50rem;
    padding: 6.912rem 12.382rem 3.721rem 9.822rem;
}

/* 段階をつなぐ点線（1つ目の丸の中心から、最後の本文の下 5.234rem まで） */
.career-steps {
    position: relative;
    display: grid;
    row-gap: 3.6rem;
    list-style: none;
    padding-bottom: 5.234rem;
}

.career-steps::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    bottom: 0;
    left: -3.092rem;
    width: max(1px, 0.1rem);
    translate: -50% 0;
    background: repeating-linear-gradient(to bottom, var(--color-black) 0 0.2rem, transparent 0.2rem 0.4rem);
}

.career-step {
    position: relative;
}

/* 帯の中央の高さに置くオレンジの丸 */
.career-step::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -4.092rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-orange);
}

/* 時期（帯。文字は帯の上下中央） */
.career-step-period {
    height: 5rem;
    padding-left: 2.189rem;
    border-radius: 0.5rem;
    background: var(--color-apricot);
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 5rem;
    white-space: nowrap;
}

.career-step-title {
    margin-top: 2.066rem;
    padding-left: 2.189rem;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.career-step-text {
    margin-top: 1.364rem;
    padding-left: 2.189rem;
    font-size: 1.8rem;
    line-height: 3.4rem;
    white-space: nowrap; /* 改行はデザインどおり <br> で入れているので、自動では折り返さない */
}

/* --------------------------------------------------------------------------
   エンジニア職の成長（.career-engineer）
   段の帯・見出し・本文の位置は営業と共通。上に STEP研修の説明、下に補足の枠2つ
   -------------------------------------------------------------------------- */

.career-engineer .career-panel {
    --modal-min-height: 60rem; /* 左のイラストの下端 545.57px + 余白 */
}

.career-engineer .career-image {
    top: 24.7rem;
    left: 7.324rem;
    width: 40rem;
}

.career-engineer .career-body {
    padding-bottom: 8.686rem;
}

/* STEP研修の説明（水色の枠。右下に1段濃い水色の影） */
.career-note {
    position: relative;
    width: 51.786rem;
    height: 24.734rem;
    margin: -0.081rem 0 0 0.255rem;
    padding: 3.659rem 0 0 3.69rem; /* 枠線の内側から */
    border: max(1px, 0.1rem) solid var(--color-black);
    border-radius: 0.5rem;
    background: var(--color-teal-light);
}

.career-note::before {
    content: "";
    position: absolute;
    inset: -0.1rem;
    z-index: -1;
    translate: 0.6rem 0.6rem;
    border: inherit;
    border-radius: inherit;
    background: var(--color-teal);
}

.career-note-title {
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.career-note-text {
    margin-top: 1.364rem;
    font-size: 1.8rem;
    line-height: 3.4rem;
    white-space: nowrap;
}

/* 段：間隔はデザインどおり（本文の下から次の帯まで 24.44px）。帯は段が進むごとに長くなる */
.career-engineer .career-steps {
    row-gap: 2.444rem;
    margin-top: 6.236rem;
    padding-bottom: 0;
}

/* 点線は STEP研修の枠の上端の高さから、最後の段の本文のあたりまで */
.career-engineer .career-steps::before {
    top: -30.801rem;
    bottom: 0.427rem;
}

.career-engineer .career-step:nth-child(1) .career-step-period { width: 12.949rem; }
.career-engineer .career-step:nth-child(2) .career-step-period { width: 25.898rem; }
.career-engineer .career-step:nth-child(3) .career-step-period { width: 38.847rem; }
.career-engineer .career-step:nth-child(4) .career-step-period { width: 51.796rem; }

/* 補足の枠（濃いオレンジの線。左に画像、右に文） */
.career-box {
    position: relative;
    width: 56rem;
    margin-left: -3.992rem;
    padding: 2.714rem 0 0 2.641rem; /* 枠線の内側から */
    border: max(1px, 0.1rem) solid var(--color-orange-dark);
    border-radius: 1rem;
}

.career-box-young {
    height: 24.246rem;
    margin-top: 5.126rem;
}

.career-box-change {
    height: 18.586rem;
    margin-top: 1.439rem;
}

.career-box-title {
    color: var(--color-orange);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.career-box-text {
    margin: 2.453rem 0 0 17.281rem;
    font-size: 1.8rem;
    line-height: 3.4rem;
    white-space: nowrap;
}

.career-box-image {
    position: absolute;
}

/* 画像はデザインのグレーの仮置きと大きさが違ったため、文の上下の中央に合わせ、2つとも同じ列（中心 x=98.25px）に置く */
.career-box-young .career-box-image  { top: 7.567rem; left: 2.725rem; width: 14rem; }
/* 画像は文字の縁取り（2px）が切れないよう、SVG の viewBox を上下左右に 1px 広げている。そのぶん 1px 左上にずらす */
.career-box-change .career-box-image { top: 8.254rem; left: 2.538rem; width: 14.374rem; }

/* 成長（SP）。SP のデザインはないので、PC を踏襲して1カラムに（1日の流れの SP にならう）
   - パネル全体をスクロール（common.css）。上に見出し・キャッチ・イラスト（中央）、その下に段階の一覧
   - 文字・丸・点線・余白は PC の 1.5倍。本文は PC の <br> の改行をやめて幅いっぱいで折り返す
   - 時期の帯は文字が長いと折り返す（1行なら PC の 1.5倍の高さ 75px）
   - エンジニア：帯の長さは段ごとに 1/4 ずつ（PC と同じ比率。文字より短くはしない）。点線は1つ目の丸から（PC は STEP研修の枠の上端から）。
     補足の枠は見出し・画像（中央）・文の縦並びにして、幅いっぱいに */
@media (max-width: 750px) {
    .career-intro > * {
        position: static;
    }

    .career-intro {
        padding: 4rem 2.5rem 0;
    }

    /* 見出しまわりは PC の約 1.25倍（1.5倍だと本文 27px に対して大きく見えたため。本文は 1.5倍のまま） */
    .career-title {
        font-size: 5.4rem;
    }

    .career-catch {
        margin-top: 3.48rem;
        font-size: 3.3rem;
        line-height: 5.6rem;
        white-space: normal;
    }

    .career-image,
    .career-engineer .career-image {
        display: block;
        width: 36rem; /* PC の 1.2倍（1.5倍だと大きすぎるとユーザーの指摘） */
        margin: 5.2rem auto 0;
    }

    .career-engineer .career-image {
        width: 48rem;
    }

    .career-body,
    .career-engineer .career-body {
        position: static;
        overflow: visible;
        padding: 7rem 2.5rem 7rem 8.638rem; /* 左は丸（30px）の分。丸の左端がパネルの左から 25px */
    }

    .career-steps {
        row-gap: 5.4rem;
        padding-bottom: 7.851rem;
    }

    .career-steps::before,
    .career-engineer .career-steps::before {
        top: 3.33rem;
        left: -4.638rem;
        width: max(1px, 0.15rem);
        background: repeating-linear-gradient(to bottom, var(--color-black) 0 0.3rem, transparent 0.3rem 0.6rem);
    }

    /* エンジニア：点線は PC と同じく STEP研修の枠の上端の高さから。枠の高さが中身で変わるので、
       枠の横の部分（枠の上端〜段の一覧の上端）は .career-note::after で描き、段の一覧の点線（::before）は上端から始める */
    .career-engineer .career-steps::before {
        top: 0;
        bottom: 0.64rem;
    }

    .career-step::before {
        top: 1.83rem;
        left: -6.138rem;
        width: 3rem;
        height: 3rem;
    }

    /* 1行のときの高さは 66.6px（上下の余白 + 行の高さ 1.4）。丸と点線の始まりはこの上下中央 */
    .career-step-period {
        height: auto;
        padding: 1.02rem 2rem 1.02rem 3.284rem;
        border-radius: 0.75rem;
        font-size: 3.3rem;
        line-height: 1.4;
        white-space: normal;
    }

    .career-step-title {
        margin-top: 3.1rem;
        padding-left: 3.284rem;
        font-size: 3.3rem;
    }

    .career-step-text {
        margin-top: 2.046rem;
        padding-left: 3.284rem;
        font-size: 2.7rem;
        line-height: 5.1rem;
        white-space: normal;
    }

    .career-step-text br,
    .career-note-text br,
    .career-box-text br {
        display: none;
    }

    /* エンジニア：STEP研修の説明 */
    .career-note {
        width: auto;
        height: auto;
        margin: 0;
        padding: 5.489rem 4rem 5.489rem 5.535rem;
        border-width: max(1px, 0.15rem);
        border-radius: 0.75rem;
    }

    .career-note::before {
        inset: -0.15rem;
        translate: 0.9rem 0.9rem;
    }

    /* 枠の横の点線（枠の上端から、下の段の一覧の上端まで）。段の一覧の点線と切れ目なくつながるよう、
       模様を下端基準で並べる（下端がちょうど 1周期の終わりになり、段の一覧の点線は線から始まる） */
    .career-note::after {
        content: "";
        position: absolute;
        top: calc(-1 * max(1px, 0.15rem));
        bottom: calc(-9.354rem - max(1px, 0.15rem));
        left: calc(-4.638rem - max(1px, 0.15rem));
        width: max(1px, 0.15rem);
        translate: -50% 0;
        background: linear-gradient(to bottom, var(--color-black) 50%, transparent 50%) left bottom / 100% 0.6rem repeat-y;
    }

    .career-note-title {
        font-size: 3.3rem;
    }

    .career-note-text {
        margin-top: 2.046rem;
        font-size: 2.7rem;
        line-height: 5.1rem;
        white-space: normal;
    }

    .career-engineer .career-steps {
        row-gap: 3.666rem;
        margin-top: 9.354rem;
    }

    .career-engineer .career-step .career-step-period {
        min-width: max-content;
    }

    .career-engineer .career-step:nth-child(1) .career-step-period { width: 25%; }
    .career-engineer .career-step:nth-child(2) .career-step-period { width: 50%; }
    .career-engineer .career-step:nth-child(3) .career-step-period { width: 75%; }
    .career-engineer .career-step:nth-child(4) .career-step-period { width: 100%; }

    /* エンジニア：補足の枠（丸の列の左端から幅いっぱい） */
    .career-box {
        display: flex;
        flex-direction: column;
        width: auto;
        height: auto;
        margin-left: -6.138rem;
        padding: 4.071rem 4rem 4.5rem 3.962rem;
        border-width: max(1px, 0.15rem);
        border-radius: 1.5rem;
    }

    .career-box-young {
        height: auto;
        margin-top: 7.689rem;
    }

    .career-box-change {
        height: auto;
        margin-top: 2.159rem;
    }

    .career-box-title {
        font-size: 3.3rem;
        line-height: 1.4;
        white-space: normal;
    }

    /* HTML は見出し・文・画像の順。SP は見出し・画像・文の順に並べる */
    .career-box .career-box-image {
        position: static;
        order: 1;
        align-self: center;
        margin-top: 3.5rem;
    }

    .career-box-text {
        order: 2;
    }

    .career-box-young .career-box-image  { width: 21rem; }
    .career-box-change .career-box-image { width: 21.561rem; }

    .career-box-text {
        margin: 3.5rem 0 0;
        font-size: 2.7rem;
        line-height: 5.1rem;
        white-space: normal;
    }
}
