/* =========================================================
   役割の実績の部品：写真の段組み・仕様書の動き・組み上がる動き・グラフ
   色や大きさの基準は style.css の :root を使う
   ========================================================= */

/* 写真の段組み（縦横の比率をそのまま並べる） */
/* 8枚の格子（PC 4列×2段、スマホ 2列）。素材はすべて 3:4 */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grid4 > img, .grid4 > video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); }

/* EC：運営の流れ（点が工程をたどる）＋自前アプリ */
.ecflow { display: grid; gap: 0; }
.ecflow__steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ecflow__steps::before { content: ""; position: absolute; top: 22px; left: calc(100% / 12); right: calc(100% / 12); height: 1px; background: var(--line-strong); }
.ecflow__steps::after { content: ""; position: absolute; top: 19px; left: calc(100% / 12); width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--accent); animation: ecdot 6s linear infinite; }
@keyframes ecdot { 0% { left: calc(100% / 12); opacity: 0; } 4% { opacity: 1; } 83.3% { left: calc(100% * 11 / 12); opacity: 1; } 92%, 100% { left: calc(100% * 11 / 12); opacity: 0; } }
.ecflow__step { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.ecflow__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--fg); animation: ecstep 6s linear infinite; animation-delay: calc(var(--i) * 1s); }
.ecflow__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ecstep { 0%, 9% { color: var(--accent); border-color: var(--accent); } 17%, 100% { color: var(--fg); border-color: var(--line-strong); } }
.ecflow__name { margin-top: 8px; font-size: var(--step--1); font-weight: 500; line-height: 1.4; }
.ecflow__desc { font-size: 12px; line-height: 1.55; color: var(--sub); }
.ecflow__desc span, .ecflow__name { display: inline-block; word-break: keep-all; }
.ecapps { position: relative; margin-top: 28px; padding: 20px; background: var(--surface); }
.ecapps__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ecapps__title { font-size: var(--step--1); font-weight: 500; }
.ecapps__by { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.ecapps__by img { display: block; width: auto; height: 16px; }
.ecapps__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ecapp { position: relative; display: grid; gap: 4px; padding: 14px; background: var(--bg); border: 1px solid var(--line); }
.ecapp::after { content: ""; position: absolute; top: 16px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ecalive 2.4s ease-out infinite; }
@keyframes ecalive { 0% { box-shadow: 0 0 0 0 rgba(217, 119, 87, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(217, 119, 87, 0); } }
.ecapp__at { justify-self: start; font-size: 11px; color: var(--sub); border: 1px solid var(--line); padding: 1px 8px; }
.ecapp__name { margin-top: 4px; font-size: var(--step--1); font-weight: 500; }
.ecapp__desc { font-size: 12px; line-height: 1.6; color: var(--sub); }
.ecapp__tech { margin-top: 2px; font-family: var(--font-num); font-size: 11px; color: var(--faint); letter-spacing: .02em; }

/* トップの写真：4枚のカルーセル（各写真の下に一言） */
.about { position: relative; }
.about__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.about__track::-webkit-scrollbar { display: none; }
.about__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.about__slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); }
.about__cap { margin-top: 12px; font-size: var(--step--1); line-height: 1.75; color: var(--sub); }
.about__ui { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 3 / 4; pointer-events: none; }
.about__prev, .about__next { pointer-events: auto; position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; padding: 0 0 2px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 6px rgba(0, 0, 0, .15); color: var(--fg); font: 400 22px/1 var(--font-num); cursor: pointer; opacity: 0; transition: opacity .25s; }
.about__prev { left: 10px; }
.about__next { right: 10px; }
.about:hover .about__prev, .about:hover .about__next, .about__prev:focus-visible, .about__next:focus-visible { opacity: 1; }
.about__dots { pointer-events: auto; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 7px; padding: 6px 9px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.about__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; transition: background-color .25s; }
.about__dot[aria-current="true"] { background: #fff; }

/* 最後に、趣味のストリートスナップ（トップの写真と同じ動きのカルーセル。写真は横長） */
.snaps .about__slide img, .snaps .about__ui { aspect-ratio: 3 / 2; }

/* 役割：カード（押すと、その列のすぐ下に詳しい中身が開く。一度に1つ） */
.rgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 28px 16px; }
.rgrid > .role { display: none; }
.rgrid > .role.is-open { display: grid; grid-column: 1 / -1; position: relative; margin: 0 0 8px; padding: 36px 0 12px; border-top: 1px solid var(--line-strong); }
.is-editing .rgrid > .role { display: grid; grid-column: 1 / -1; }
.rcard { display: grid; gap: 3px; width: 100%; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.rcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.rcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rcard:hover .rcard__media img, .rcard:focus-visible .rcard__media img { transform: scale(1.04); }
.rcard__media--fig { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.rcard__bars { position: absolute; left: 18px; right: 18px; top: 22%; height: 34%; display: flex; align-items: flex-end; gap: 8px; }
.rcard__bars i { flex: 1; height: calc(var(--v) * 1%); background: #d4d4d4; }
.rcard__bars i:last-child { background: var(--fg); }
.rcard__figlabel { font-size: 12px; color: var(--sub); line-height: 1.5; }
.rcard__fig { margin-top: 2px; font-size: clamp(36px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.rcard__fig small { margin-left: 3px; font-size: .36em; letter-spacing: 0; }
.rcard__toggle { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.rcard__toggle::before, .rcard__toggle::after { content: ""; position: absolute; left: 9px; top: 13px; width: 10px; height: 1.5px; background: var(--fg); transition: transform .3s ease; }
.rcard__toggle::after { transform: rotate(90deg); }
.rcard[aria-expanded="true"] .rcard__toggle { background: var(--accent); }
.rcard[aria-expanded="true"] .rcard__toggle::before, .rcard[aria-expanded="true"] .rcard__toggle::after { background: #fff; }
.rcard[aria-expanded="true"] .rcard__toggle::after { transform: rotate(0deg); }
.rcard[aria-expanded="true"] .rcard__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; }
.rcard__no { margin-top: 10px; font-size: 12px; color: var(--faint); }
.rcard__title { font-size: var(--step-0); font-weight: 500; line-height: 1.4; word-break: keep-all; }
.rcard__sub { font-size: 12px; line-height: 1.5; color: var(--sub); }
.rgrid__hint { align-self: start; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 18px; border: 1px dashed #d6d6d6; color: var(--sub); font-size: var(--step--1); line-height: 1.8; text-align: center; }
.role__close { position: absolute; top: -15px; right: 0; z-index: 1; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--sub); font: inherit; font-size: 12px; cursor: pointer; }
.role__close:hover { border-color: var(--fg); color: var(--fg); }

/* データ：自作ダッシュボード（役職の横幅いっぱい） */
.role__media--wide { grid-column: 1 / -1; }
.dash { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, .06); transition: border-color .25s; }
.dash:hover { border-color: #cfcfcf; }
.dash img { display: block; width: 100%; height: auto; }

/* 広告：運用実績（大きく ROAS、下に4つ） */
.adkpi { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.adkpi:last-child { margin-bottom: 0; padding-bottom: 4px; border-bottom: 0; }
.adkpi__name { font-size: var(--step--1); color: var(--sub); }
.adkpi__big { margin-top: 2px; font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.adkpi__big small { margin-left: 4px; font-size: .3em; letter-spacing: 0; }
.adkpi__row { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.adkpi__row div { padding: 12px 12px 0 0; }
.adkpi__row div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.adkpi__row dt { font-size: 12px; color: var(--sub); }
.adkpi__row dd { margin: 4px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; white-space: nowrap; }
.adkpi__row dd small { margin-left: 2px; font-size: 12px; }
.adkpi__note { margin-top: 14px; font-size: 11px; color: var(--faint); }

/* EC：Shopify の数字（指数・割合だけ） */
.ecstats { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ecstat { margin: 0; padding: 18px 20px 20px 0; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.ecstat:nth-child(even) { padding-left: 20px; padding-right: 0; border-left: 1px solid var(--line); }
.ecstat figcaption { display: grid; gap: 2px; }
.ecstat__label { font-size: var(--step--1); color: var(--sub); }
.ecstat__big { font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; }
.ecstat__big small { margin-left: 2px; font-size: 16px; }
.ecstat__sub { font-size: 12px; line-height: 1.55; color: var(--faint); }
.ecstat__bars { height: 140px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ecbar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ecbar b { font-weight: 400; font-size: 12px; line-height: 1; color: var(--sub); }
.ecbar i { display: block; width: 100%; max-width: 56px; height: 0; background: #d4d4d4; transition: height .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d) * .12s); }
.ecbar span { font-size: 11px; line-height: 1; color: var(--faint); }
.ecbar--now b { color: var(--fg); font-weight: 500; }
.ecbar--now i { background: var(--fg); }
.is-in .ecbar i { height: calc(var(--v) * 0.96px); }   /* 100 → 96px（数字と期の文字を除いた高さ） */

/* Web：改善の地図（骨組みから組み上がり、自分で作った部分を巡る） */
.pmap { background: var(--surface); padding: clamp(18px, 2.6vw, 28px); display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.pmap__phone { position: sticky; top: 88px; width: 270px; padding: 10px; background: var(--fg); border-radius: 34px; }
.pmap__screen { position: relative; width: 250px; aspect-ratio: 390 / 760; overflow: hidden; border-radius: 26px; background: #fff; }
.pmap__track { position: absolute; inset: 0 0 auto 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.pmap__track > img { display: block; width: 100%; height: auto; }
.pmap__skel { position: absolute; inset: 0 0 auto 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s ease; }
.pmap__real { position: relative; clip-path: inset(0 0 100% 0); transition: clip-path 1.5s ease; }
.pmap.is-skel .pmap__skel, .pmap.is-real .pmap__real { clip-path: inset(0); }
.pmap__alt { position: absolute; top: 0; left: 0; z-index: 1; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.pmap__alt.on { opacity: 1; }
.pmap__pin { position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%; background: var(--fg); color: #fff; font: 500 11px/22px var(--font-num); text-align: center; cursor: pointer; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .25s; transition-delay: calc(var(--k) * 80ms); }
.pmap.is-pins .pmap__pin { transform: scale(1); }
.pmap__pin.is-active { background: var(--accent); transition-delay: 0s; }
.pmap__pin.is-active::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: pmapring 1.4s ease-out infinite; }
@keyframes pmapring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.pmap__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.pmap__bar img { display: block; width: 100%; height: auto; }
.pmap__bar.on { opacity: 1; transform: none; }
.pmap__bar .pmap__pin { pointer-events: auto; }
.pmap__list { list-style: none; padding: 0; margin: 0; display: grid; }
.pmap__item { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding: 8px 10px; border-left: 2px solid transparent; cursor: pointer; transition: background-color .25s, border-color .25s; }
.pmap__item:hover { background: rgba(255, 255, 255, .55); }
.pmap__item.is-active { background: var(--bg); border-left-color: var(--accent); }
.pmap__no { grid-row: 1 / 4; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: #fff; font-size: 11px; line-height: 22px; text-align: center; transition: background-color .25s; }
.pmap__item.is-active .pmap__no { background: var(--accent); }
.pmap__name { font-size: var(--step--1); font-weight: 500; line-height: 1.5; }
.pmap__why { font-size: 12px; line-height: 1.6; color: var(--faint); }
.pmap__what { font-size: 12px; line-height: 1.6; color: #444; }
.pmap__what::before { content: "→ "; color: var(--accent); }

/* グラフ */
.chart { border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
.chart__title { font-size: var(--step-0); font-weight: 500; margin-bottom: 18px; }
.chart__title--sub { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.chart__note { margin-top: 10px; color: var(--sub); font-size: 12px; }
.bars__group { margin: 14px 0 6px; font-size: var(--step--1); color: var(--sub); }
.bars__group:first-child { margin-top: 0; }
.bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 6.5em; align-items: center; gap: 12px; padding: 4px 0; }
.bar__label { font-size: var(--step--1); }
.bar__track { position: relative; height: 14px; background: #f1f1f1; }
.bar__track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fg); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.bar--muted .bar__track i { background: #bdbdbd; }
.is-in .bar__track i { width: calc(var(--v) * 1%); }
.bar__val { font-family: var(--font-num); font-size: var(--step-0); text-align: right; white-space: nowrap; }
.bar__val small { margin-left: 6px; font-size: 12px; color: var(--sub); }
.kpis { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kpis div { padding: 14px 16px 0 0; }
.kpis div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.kpis dt { color: var(--sub); font-size: 12px; }
.kpis dd { margin: 4px 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.kpis dd small { font-size: 0.4em; margin-left: 4px; color: var(--sub); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.metric { border-top: 1px solid var(--line); padding-top: 12px; }
.metric__name { font-size: var(--step--1); margin-bottom: 6px; }
.metric .bar, .ci .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; gap: 2px 8px; padding: 6px 0; }
.metric .bar__label, .ci .bar__label { grid-area: label; }
.metric .bar__val, .ci .bar__val { grid-area: val; }
.metric .bar__track, .ci .bar__track { grid-area: track; height: 10px; }
.metric .bar__val { font-size: var(--step--1); }
.metric__x { margin-top: 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; letter-spacing: -0.02em; }
.metric__x small { font-size: 0.45em; margin-left: 3px; color: var(--sub); }
.ci__range { position: absolute; top: 50%; height: 1px; background: var(--fg); left: calc(var(--lo) * 1%); width: calc((var(--hi) - var(--lo)) * 1%); opacity: 0; transition: opacity .6s ease 1s; }
.ci__range::before, .ci__range::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--fg); }
.ci__range::before { left: 0; }
.ci__range::after { right: 0; }
.is-in .ci__range { opacity: 1; }
.chart__pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.donut-wrap { border-left: 1px solid var(--line); padding-left: 28px; }
@property --deg { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.donut { width: 150px; height: 150px; margin-top: 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--fg) var(--deg), #e9e9e9 0); transition: --deg 1.2s ease; position: relative; }
.donut::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.donut span { position: relative; font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; }
.donut span small { font-size: 0.5em; color: var(--sub); }
.is-in .donut { --deg: calc(var(--p) * 3.6deg); }
.trio--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }

/* 使っている道具：自動で横に流れる列 */
.stack { margin-top: clamp(36px, 5vw, 56px); }
.tools-marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tools-marquee__track { flex: none; display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; animation: marquee 48s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.tool { flex: none; display: flex; align-items: center; padding: 20px clamp(22px, 2.6vw, 36px); }
.tool img { display: block; width: auto; height: 28px; }
.tool--wide img { height: 18px; }
.tools-marquee--a, .tools-marquee--b { display: none; }

/* 担ってきた役割の一覧（一目で全部） */
.overview { margin-top: clamp(40px, 6vw, 72px); }
.overview__lead, .stack__lead { font-size: var(--step--1); color: var(--sub); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.overview__lead::before, .stack__lead::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.overview__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview__list li + li .overview__tile { border-left: 1px solid var(--line); }
.overview__tile { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 20px; color: var(--fg); text-decoration: none; transition: background-color .25s ease; }
.overview__no { color: var(--faint); font-size: 12px; }
.overview__icon { width: 28px; height: 28px; margin: 28px 0 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color .25s ease; }
.overview__title { font-size: var(--step--1); font-weight: 500; line-height: 1.5; }
.overview__title span { display: block; white-space: nowrap; }
.overview__tile:hover, .overview__tile:focus-visible { background: var(--surface); }
.overview__tile:hover .overview__icon, .overview__tile:focus-visible .overview__icon { color: var(--accent); }

/* 置き場所の幅で切り替える（画面幅ではなく、役割の中身の枠の幅を見る。目次が出る幅では枠が狭くなるため） */
.role__media { container-type: inline-size; }
@container (max-width: 600px) {
  .pmap { grid-template-columns: 1fr; justify-items: center; }
  .pmap__list { justify-self: stretch; }
  .pmap__phone { position: static; }
}
@container (max-width: 540px) {
  .ecflow__steps { grid-template-columns: 1fr; gap: 14px; }
  .ecflow__steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .ecflow__steps::after { left: 19px; top: 22px; margin-left: 0; animation-name: ecdotv; }
  .ecflow__step { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; }
  .ecflow__icon { grid-row: 1 / 3; }
  .ecflow__name { margin-top: 2px; }
  .ecapps__list { grid-template-columns: 1fr; }
}

@keyframes ecdotv { 0% { top: 19px; opacity: 0; } 4% { opacity: 1; } 83.3% { top: calc(100% - 25px); opacity: 1; } 92%, 100% { top: calc(100% - 25px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pmap__track, .pmap__skel, .pmap__real, .pmap__pin, .pmap__bar, .pmap__alt { transition: none; }
  .pmap__pin.is-active::after { animation: none; }
  .ecflow__steps::after, .ecflow__icon, .ecapp::after { animation: none; }
  .ecflow__steps::after { display: none; }
  .ecbar i { transition: none; }
  .bar__track i, .ci__range, .donut { transition: none; }
  .tools-marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .tools-marquee__track { animation: none; flex-wrap: wrap; }
  .tools-marquee__track[aria-hidden="true"] { display: none; }
}
@media (max-width: 900px) {
  /* 狭い画面は1行ずつの目次にして、7つが1画面に収まるように */
  .overview__list { grid-template-columns: 1fr; border-bottom: 0; }
  .overview__list li + li .overview__tile { border-left: 0; }
  .overview__tile { flex-direction: row; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .overview__icon { order: -1; width: 22px; height: 22px; margin: 0; }
  .overview__no { width: 2em; }
  .overview__title span { display: inline; }
}
@media (max-width: 760px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rcard__title { font-size: var(--step--1); }
  .rcard__media--fig { padding: 14px; }
  .tools-marquee--all { display: none; }
  .tools-marquee--a, .tools-marquee--b { display: flex; }
  .tools-marquee--a { border-bottom: 0; }
  .tools-marquee--b { border-top: 0; }
  .tools-marquee--a .tools-marquee__track, .tools-marquee--b .tools-marquee__track { animation-duration: 28s; }
  .tools-marquee--b .tools-marquee__track { animation-direction: reverse; }
  .tool { padding: 12px 18px; }
  .tool img { height: 24px; }
  .tool--wide img { height: 15px; }
  .ecflow__steps { grid-template-columns: 1fr; gap: 14px; }
  .ecflow__steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .ecflow__steps::after { left: 19px; top: 22px; margin-left: 0; animation-name: ecdotv; }
  .ecflow__step { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; }
  .ecflow__icon { grid-row: 1 / 3; }
  .ecflow__name { margin-top: 2px; }
  .ecapps__list { grid-template-columns: 1fr; }
  .ecstat { padding: 16px 12px 18px 0; gap: 12px; }
  .ecstat:nth-child(even) { padding-left: 12px; padding-right: 0; }
  .ecstat__label { font-size: 12px; }
  .ecstat__big { font-size: 28px; }
  .ecstat__sub { font-size: 11px; }
  .ecstat__bars { gap: 6px; }
  .pmap { grid-template-columns: 1fr; justify-items: center; }
  .pmap__phone { position: static; }
  .pmap__list { justify-self: stretch; }
  .metrics { grid-template-columns: 1fr; gap: 16px; }
  .chart__pair { grid-template-columns: 1fr; }
  .donut-wrap { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .bar { grid-template-columns: 6em minmax(0, 1fr) 5.5em; }
}
