/* =========================================================
   FOR THE GROUND 2027 — main.css
   グレー × 白 × 黒 ＋ 差し色（--accent）
   ========================================================= */
:root{
  --accent:#D7261E;
  --ink:#111111;
  --ink2:#2A2A2A;
  --ink3:#3A3A3A;
  --sub:#444444;
  --mute:#6B6B6B;
  --line:#E2E2E0;
  --paper:#F6F6F4;
  --gray:#D9D9D7;
  --en:'Outfit',sans-serif;
  --ja:'Zen Kaku Gothic New',sans-serif;
  --pad:clamp(24px,5vw,72px);
  --gap:clamp(24px,3vw,40px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#E4E4E2;color:var(--ink);font-family:var(--ja);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a,body a{color:var(--ink);text-decoration:none}
body a:hover{color:#555}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ftg-skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--ink);color:#fff;padding:10px 16px;border-radius:8px}
.ftg-skip:focus{left:8px;color:#fff}
.ftg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ftg-accent{color:var(--accent)}
.ftg-mono .ftg-photo{filter:grayscale(1) contrast(1.05)}

.ftg-stripes{min-height:100vh;padding:0 clamp(0px,2.5vw,40px);background-color:#E4E4E2;background-image:repeating-linear-gradient(-45deg,#ECECEA 0,#ECECEA 18px,#E4E4E2 18px,#E4E4E2 36px)}
.ftg-main{background:var(--paper);overflow:clip}
.ftg-tail{height:clamp(0px,2.5vw,40px)}

/* ---------- header ---------- */
.ftg-header{position:sticky;top:0;z-index:50;padding:16px 0}
.admin-bar .ftg-header{top:32px}
.ftg-header__bar{position:relative;background:#fff;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 22px}
.ftg-logo{display:flex;align-items:center;gap:12px}
.ftg-logo__img{height:46px;width:auto;max-width:none;flex:0 0 auto;object-fit:contain}
@media (max-width:560px){.ftg-logo__img{height:38px}}
.ftg-logo__mark{width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-family:var(--en);font-weight:800;font-size:13px}
.ftg-logo__type{font-family:var(--en);font-weight:700;font-size:17px;letter-spacing:.06em}
.ftg-nav{display:flex;align-items:center;gap:26px}
.ftg-nav__list{display:flex;align-items:center;gap:6px 26px;font-size:13px;font-weight:700}
.ftg-nav__list a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;color:var(--ink)}
.ftg-nav__list .current-menu-item>a,.ftg-nav__list a[aria-current]{color:var(--accent)}
.ftg-nav__cta{display:flex;gap:6px}
.ftg-btn{display:inline-flex;align-items:center;gap:16px;min-height:44px;padding:0 20px;border-radius:8px;color:#fff;font-size:13px;font-weight:700;line-height:1.2;transition:transform .25s}
.ftg-btn:hover{color:#fff;transform:translateY(-2px)}
.ftg-btn--gray{background:var(--ink3)}
.ftg-btn--accent{background:var(--accent);font-family:var(--en);letter-spacing:.06em}
.ftg-btn__stack{display:flex;flex-direction:column}
.ftg-btn__stack small{font-size:10px;color:#BDBDBD}
.ftg-btn__stack span{font-family:var(--en);letter-spacing:.08em}
.ftg-menu-btn{display:none;width:48px;height:48px;border:0;border-radius:10px;background:var(--ink);cursor:pointer;position:relative}
.ftg-menu-btn span{position:absolute;left:14px;right:14px;height:2px;background:#fff;transition:transform .3s,top .3s}
.ftg-menu-btn span:first-child{top:19px}
.ftg-menu-btn span:last-child{top:27px}
.ftg-menu-btn[aria-expanded="true"] span:first-child{top:23px;transform:rotate(45deg)}
.ftg-menu-btn[aria-expanded="true"] span:last-child{top:23px;transform:rotate(-45deg)}
@media (max-width:1200px){
  .ftg-menu-btn{display:block}
  .ftg-nav{position:absolute;left:0;right:0;top:calc(100% + 8px);flex-direction:column;align-items:stretch;gap:16px;background:#fff;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.14);padding:20px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s,transform .25s,visibility .25s}
  .ftg-nav.is-open{opacity:1;visibility:visible;transform:none}
  .ftg-nav__list{flex-direction:column;align-items:stretch;gap:0;font-size:16px}
  .ftg-nav__list a{border-bottom:1px solid var(--line);width:100%;padding:6px 0}
  .ftg-nav__cta{flex-direction:column}
  .ftg-btn{justify-content:space-between;min-height:52px}
}

/* ---------- common ---------- */
.ftg-sec{padding:clamp(72px,9vw,128px) var(--pad)}
.ftg-sec--tight{padding-top:0}
.ftg-sec__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px}
.ftg-sec__head p{max-width:440px;font-size:15px;line-height:2;color:var(--sub)}
.ftg-heading{display:flex;flex-direction:column;gap:10px}
.ftg-heading__en{font-family:var(--en);font-weight:600;font-size:clamp(56px,8vw,116px);line-height:.95;letter-spacing:-.01em}
.ftg-heading__ja{font-size:15px;font-weight:700}
.ftg-heading--md .ftg-heading__en{font-size:clamp(44px,5.6vw,88px)}
.ftg-label{font-family:var(--en);font-weight:700;font-size:14px;letter-spacing:.2em}
.ftg-chip{display:inline-block;background:var(--accent);color:#fff;font-weight:700;font-size:13px;padding:6px 12px}
.ftg-note{font-size:13px;color:var(--mute)}
.ftg-panelwrap{padding:var(--gap)}

.ftg-pill{display:inline-flex;align-items:center;gap:28px;min-height:44px;padding:8px 8px 8px 30px;border-radius:999px;font-weight:900;font-size:14px;align-self:flex-start}
.ftg-pill .ftg-dot{width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.ftg-pill:hover .ftg-dot{transform:translateX(6px)}
.ftg-pill--dark{background:var(--ink);color:#fff}.ftg-pill--dark:hover{color:#fff}
.ftg-pill--light{background:#fff;color:var(--ink)}.ftg-pill--light:hover{color:var(--ink)}
.ftg-pill--invert{background:#fff;color:var(--ink)}.ftg-pill--invert .ftg-dot{background:var(--ink)}
.ftg-pill--lg{font-size:16px;padding:10px 10px 10px 34px}.ftg-pill--lg .ftg-dot{width:46px;height:46px}

.ftg-ph{position:relative;overflow:hidden}
.ftg-ph img{width:100%;height:100%;object-fit:cover}

.ftg-orbit{position:absolute;aspect-ratio:1/1;pointer-events:none}
.ftg-orbit::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--ring,#BDBDBD)}
.ftg-orbit i{position:absolute;width:var(--dot,20px);height:var(--dot,20px);border-radius:50%;background:var(--accent);left:calc(50% - var(--dot,20px)/2);bottom:calc(var(--dot,20px)/-2)}
.ftg-ball{position:absolute;aspect-ratio:1/1;border-radius:50%;pointer-events:none}

/* ---------- hero (front) ---------- */
.ftg-hero{position:relative;height:clamp(720px,64vw,940px);overflow:hidden}
.ftg-hero__vtext{position:absolute;right:1.5%;top:0;bottom:0;overflow:hidden;font-family:var(--en);font-weight:800;font-size:clamp(90px,10vw,150px);line-height:1;color:transparent;-webkit-text-stroke:1.5px #CFCFCD;writing-mode:vertical-rl;white-space:nowrap;pointer-events:none}
.ftg-hero__vtext span{display:block}
.ftg-hero .ftg-ball--big{width:58%;background:var(--ink);right:-18%;bottom:-46%}
.ftg-hero .ftg-ball--dot{width:9%;background:var(--accent);left:46%;top:50%}
.ftg-hero .ftg-orbit{width:34%;left:-10%;top:-12%}
.ftg-hero__p{position:absolute}
.ftg-hero__p1{left:22%;top:4%;width:26%}.ftg-hero__p1 .ftg-ph{aspect-ratio:4/3}
.ftg-hero__p2{right:6%;top:2%;width:17%}.ftg-hero__p2 .ftg-ph{aspect-ratio:4/5}
.ftg-hero__p3{right:4%;top:38%;width:38%}.ftg-hero__p3 .ftg-ph{aspect-ratio:16/10;box-shadow:0 20px 40px rgba(0,0,0,.18)}
.ftg-hero__p4{left:7%;top:46%;width:24%}.ftg-hero__p4 .ftg-ph{aspect-ratio:4/3}
.ftg-hero__p5{left:33%;bottom:3%;width:18%}.ftg-hero__p5 .ftg-ph{aspect-ratio:1/1}
.ftg-hero__copy{position:absolute;left:clamp(20px,5vw,72px);top:30%;display:flex;flex-direction:column;align-items:flex-start;gap:18px;max-width:92%;z-index:2}
.ftg-hero__cycwrap{position:relative}
.ftg-hero__title{position:relative;font-weight:900;font-size:clamp(42px,5.6vw,88px);line-height:1.25;letter-spacing:.02em;background:rgba(246,246,244,.82);padding:4px 14px 10px 0}
.ftg-hero__sub{font-size:14px;font-weight:700;background:rgba(246,246,244,.82);padding-right:10px}
.ftg-scroll{position:absolute;left:clamp(20px,5vw,72px);bottom:32px;display:flex;align-items:center;gap:12px;font-family:var(--en);font-size:12px;font-weight:600;letter-spacing:.24em;color:#555}
.ftg-scroll__line{position:relative;width:1px;height:48px;background:#D0D0CE;overflow:hidden}
.ftg-scroll__line::after{content:"";position:absolute;inset:0;background:var(--accent);transform-origin:top}
@media (max-width:760px){
  .ftg-hero{height:auto;min-height:860px}
  .ftg-hero__copy{top:40px;max-width:calc(100% - 40px)}
  .ftg-hero__p1{left:4%;top:330px;width:52%}
  .ftg-hero__p2{right:4%;top:300px;width:34%}
  .ftg-hero__p3{right:4%;top:470px;width:70%}
  .ftg-hero__p4{left:4%;top:620px;width:46%}
  .ftg-hero__p5{left:auto;right:8%;bottom:70px;width:30%}
  .ftg-hero .ftg-ball--dot{left:60%;top:600px;width:16%}
  .ftg-hero__vtext{display:none}
}

/* 切り替わる見出し */
.ftg-cyc{display:grid;overflow:hidden}
.ftg-cyc>span{grid-area:1/1;display:block;position:relative}
.ftg-cyc>span:not(:first-child){visibility:hidden}
.ftg-ch{display:inline-block}
.ftg-cycnum{position:absolute;left:-6px;bottom:72%;display:grid;font-family:var(--en);font-weight:800;font-size:clamp(120px,15vw,240px);line-height:.8;color:transparent;-webkit-text-stroke:2px #CFCFCD;pointer-events:none}
.ftg-cycnum>span{grid-area:1/1}
.ftg-cycnum>span:not(:first-child){visibility:hidden}
.ftg-bars{display:flex;gap:8px}
.ftg-bar{position:relative;display:inline-block;width:36px;height:3px;background:#CFCFCD;overflow:hidden}
.ftg-bar::after{content:"";position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left}
@media (max-width:760px){.ftg-cycnum{font-size:96px}}

/* ---------- black band marquee ---------- */
.ftg-band{background:var(--ink);color:#fff;overflow:hidden;padding:20px 0;font-family:var(--en);font-weight:700;font-size:clamp(28px,3vw,44px);letter-spacing:.02em;white-space:nowrap}
.ftg-marquee{display:flex;width:max-content}
.ftg-marquee>span{padding-right:40px}

/* ---------- dark panel (about) ---------- */
.ftg-panel{position:relative;overflow:hidden;background:#1A1A1A;color:#fff;border-radius:24px;padding:clamp(56px,8vw,120px) clamp(24px,6vw,96px);display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.ftg-panel .ftg-ball{width:70%;background:#262626;right:-24%;top:-40%}
.ftg-panel .ftg-orbit{width:46%;right:-6%;top:-18%;--ring:#3A3A3A;--dot:16px}
.ftg-panel .ftg-orbit i{left:-8px;top:calc(50% - 8px);bottom:auto}
.ftg-panel__text{position:relative;flex:1 1 520px;display:flex;flex-direction:column;gap:28px}
.ftg-panel__text .ftg-label{color:#BDBDBD;font-size:15px}
.ftg-panel__lead{font-weight:900;font-size:clamp(24px,2.5vw,36px);line-height:1.8;max-width:640px}
.ftg-panel__text p{font-size:15px;line-height:2.1;color:#D6D6D6;max-width:620px}
.ftg-panel__imgs{position:relative;flex:1 1 360px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ftg-panel__imgs img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px}
.ftg-panel__imgs img:nth-child(2){margin-top:56px}

/* ---------- pinned circle reveal ---------- */
.ftg-pin{position:relative;height:260vh}
.ftg-pin__sticky{position:sticky;top:0;height:100vh;overflow:hidden;background:var(--ink)}
.ftg-iris{position:absolute;inset:0;overflow:hidden}
.ftg-iris img{width:100%;height:100%;object-fit:cover}
.ftg-iris::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ftg-pin__copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:0 24px;text-align:center;color:#fff}
.ftg-pin__label{background:var(--accent);font-family:var(--en);font-weight:700;font-size:13px;letter-spacing:.24em;padding:8px 16px}
.ftg-pin__title{font-weight:900;font-size:clamp(34px,5.4vw,84px);line-height:1.35}
.ftg-pin__text{max-width:640px;font-size:clamp(15px,1.3vw,18px);line-height:2;font-weight:500}

/* ---------- stacking service cards ---------- */
.ftg-stack{display:flex;flex-direction:column;gap:48px;padding-bottom:40px}
.ftg-scard{position:sticky;top:var(--top,104px);display:flex;flex-wrap:wrap;border-radius:20px;overflow:hidden;min-height:540px;box-shadow:0 -12px 40px rgba(0,0,0,.14);background:#fff;color:var(--ink)}
.ftg-scard--dark{background:var(--ink2);color:#fff}
.ftg-scard--accent{background:var(--accent);color:#fff}
.ftg-scard--gray{background:var(--gray)}
.ftg-scard__text{flex:1 1 440px;padding:clamp(32px,4vw,64px);display:flex;flex-direction:column;gap:16px}
.ftg-scard__label{font-family:var(--en);font-weight:600;font-size:14px;letter-spacing:.16em;color:var(--accent)}
.ftg-scard--dark .ftg-scard__label{color:#FF6B63}
.ftg-scard--accent .ftg-scard__label{color:#fff}
.ftg-scard--gray .ftg-scard__label{color:var(--ink)}
.ftg-scard__num{font-family:var(--en);font-weight:500;font-size:clamp(72px,9vw,140px);line-height:.9}
.ftg-scard__title{margin-top:8px;font-size:clamp(24px,2.4vw,34px);font-weight:900;line-height:1.5}
.ftg-scard__desc{font-size:15px;line-height:2;opacity:.85}
.ftg-scard__list{margin-top:4px;font-size:15px;line-height:1.7}
.ftg-scard__list li{display:flex;gap:12px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--line)}
.ftg-scard--dark .ftg-scard__list li,.ftg-scard--accent .ftg-scard__list li{border-color:rgba(255,255,255,.25)}
.ftg-scard__list li::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--accent);transform:translateY(-2px)}
.ftg-scard--accent .ftg-scard__list li::before{background:#fff}
.ftg-scard__img{flex:1 1 480px;min-height:360px;position:relative;overflow:hidden}
.ftg-scard__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ftg-scard__more{margin-top:auto}
@media (max-width:760px){.ftg-scard{position:relative;top:auto;min-height:0}}

/* ---------- giant sliding text ---------- */
.ftg-bigtext{padding:clamp(40px,6vw,96px) 0;overflow:hidden;font-family:var(--en);font-weight:800;line-height:1;white-space:nowrap;font-size:clamp(90px,13vw,200px)}
.ftg-bigtext__outline{color:transparent;-webkit-text-stroke:2px #9A9A9A}

/* ---------- works cards ---------- */
.ftg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:40px 28px}
.ftg-card{display:flex;flex-direction:column;gap:16px}
.ftg-card__img{position:relative;display:block;border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:#DDDDDB}
.ftg-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.ftg-card:hover .ftg-card__img img{transform:scale(1.07)}
.ftg-card__chip{position:absolute;left:14px;top:14px;background:#fff;border-radius:999px;padding:6px 14px;font-size:12px;font-weight:700}
.ftg-card__body{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.ftg-card__text{display:flex;flex-direction:column;gap:6px}
.ftg-card__date{font-family:var(--en);font-weight:600;font-size:13px;color:var(--mute)}
.ftg-card__title{font-size:17px;line-height:1.6;font-weight:900;color:var(--ink)}
.ftg-arrow{flex:0 0 36px;height:36px;border-radius:50%;border:1px solid var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:10px;transition:background .3s,color .3s,border-color .3s}
.ftg-card:hover .ftg-arrow{background:var(--accent);border-color:var(--accent);color:#fff}
.ftg-card[hidden]{display:none}

/* ---------- clients marquee ---------- */
.ftg-clients{padding:clamp(48px,6vw,88px) 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);display:flex;flex-direction:column;gap:12px;overflow:hidden}
.ftg-clients__head{margin:0 var(--pad) 20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px}
.ftg-clients__head h2{font-family:var(--en);font-weight:700;font-size:15px;letter-spacing:.2em}
.ftg-clients__head span{font-size:13px;color:var(--mute)}
.ftg-clients__row{overflow:hidden}
.ftg-clients__row .ftg-marquee{gap:0}
.ftg-clients__half{display:flex;gap:12px;padding-right:12px}
.ftg-clients__chip{flex:0 0 auto;background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 22px;font-size:clamp(14px,1.2vw,17px);font-weight:700;white-space:nowrap}

/* ---------- table ---------- */
.ftg-split{display:flex;flex-wrap:wrap;gap:48px}
.ftg-split>.ftg-heading,.ftg-split__side{flex:0 0 320px}
.ftg-table{flex:1 1 560px;display:grid;grid-template-columns:130px 1fr;font-size:15px;line-height:1.8;background:#fff;border-radius:20px;padding:16px 32px}
.ftg-table dt{padding:16px 0;font-weight:700;border-bottom:1px solid var(--line)}
.ftg-table dd{padding:16px 0;border-bottom:1px solid var(--line)}
.ftg-table dt:last-of-type,.ftg-table dd:last-of-type{border-bottom:0}
@media (max-width:560px){.ftg-table{grid-template-columns:1fr;padding:12px 22px}.ftg-table dt{border-bottom:0;padding-bottom:0}}

/* ---------- DAKEDE (white panel) ---------- */
.ftg-dakede{position:relative;overflow:hidden;background:#fff;border-radius:24px;padding:clamp(48px,7vw,104px) clamp(24px,6vw,96px);display:flex;flex-direction:column;gap:48px}
.ftg-dakede__bg{position:absolute;left:0;right:0;top:18px;overflow:hidden;white-space:nowrap;font-family:var(--en);font-weight:800;font-size:clamp(110px,16vw,240px);line-height:1;color:transparent;-webkit-text-stroke:1.5px var(--line);pointer-events:none}
.ftg-dakede__head{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px}
.ftg-dakede__head>div{display:flex;flex-direction:column;gap:20px;max-width:720px}
.ftg-dakede__head .ftg-chip{align-self:flex-start}
.ftg-dakede__title{font-weight:900;font-size:clamp(32px,4.4vw,64px);line-height:1.35}
.ftg-dakede__head p{font-size:15px;line-height:2;color:var(--sub)}
.ftg-points{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.ftg-point{background:var(--paper);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:10px}
.ftg-point b{font-family:var(--en);font-weight:600;font-size:40px;line-height:1;color:var(--accent)}
.ftg-point strong{font-size:20px;font-weight:900}
.ftg-point span{font-size:14px;line-height:1.8;color:var(--sub)}

/* DAKEDE band (accent) */
.ftg-dkband{position:relative;overflow:hidden;background:var(--accent);color:#fff;border-radius:24px;padding:clamp(40px,6vw,80px) clamp(24px,6vw,88px);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:32px}
.ftg-dkband__bg{position:absolute;left:0;right:0;bottom:-20px;overflow:hidden;white-space:nowrap;font-family:var(--en);font-weight:800;font-size:clamp(100px,14vw,200px);line-height:1;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.35);pointer-events:none}
.ftg-dkband>div:not(.ftg-dkband__bg){position:relative;display:flex;flex-direction:column;gap:14px;max-width:640px}
.ftg-dkband h2{font-weight:900;font-size:clamp(28px,3.2vw,46px);line-height:1.4}
.ftg-dkband p{font-size:15px;line-height:1.9}
.ftg-dkband .ftg-pill{position:relative;align-self:center}

/* ---------- CTA (black) ---------- */
.ftg-cta{position:relative;overflow:hidden;background:var(--ink);color:#fff;border-radius:24px;padding:clamp(64px,9vw,128px) clamp(24px,6vw,96px) 40px;display:flex;flex-direction:column;gap:40px}
.ftg-cta .ftg-ball{width:52%;background:var(--ink3);right:-14%;bottom:-60%}
.ftg-cta .ftg-orbit{width:30%;right:20%;top:-18%;--ring:#3A3A3A;--dot:18px}
.ftg-cta .ftg-orbit i{left:auto;right:-9px;top:calc(50% - 9px);bottom:auto}
.ftg-cta>*{position:relative}
.ftg-cta .ftg-label{color:#BDBDBD;font-size:15px}
.ftg-cta__title{font-family:var(--en);font-weight:600;font-size:clamp(56px,9vw,140px);line-height:1}
.ftg-cta__row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px}
.ftg-cta__row p{font-size:16px;line-height:2}
.ftg-cta__row a:not(.ftg-pill){color:#fff;border-bottom:1px solid var(--accent)}
.ftg-mask{display:block;overflow:hidden}
.ftg-mask>span{display:inline-block}

/* ---------- footer ---------- */
.ftg-footer{padding:0 var(--gap) var(--gap)}
.ftg-footer__inner{background:var(--ink);color:#fff;border-radius:24px;padding:clamp(48px,6vw,80px) clamp(24px,6vw,88px) 32px;display:flex;flex-direction:column;gap:48px}
.ftg-footer__top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.ftg-footer__company{display:flex;flex-direction:column;gap:16px;max-width:420px}
.ftg-footer__logo{height:52px;width:auto;max-width:none;align-self:flex-start;flex:0 0 auto;object-fit:contain}
.ftg-footer__company p{font-size:14px;line-height:2;color:#BDBDBD}
.ftg-footer a{color:#fff}
.ftg-footer__nav ul{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:14px 48px;font-size:14px;font-weight:700}
.ftg-footer__bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;border-top:1px solid var(--ink3);padding-top:24px;font-family:var(--en);font-size:13px;color:#BDBDBD}
/* フロントのCTAとフッターが連続するので余白調整 */
.home .ftg-footer{padding-top:0}

/* ---------- page hero (sub pages) ---------- */
.ftg-phero{position:relative;overflow:hidden;padding:clamp(64px,8vw,120px) var(--pad) clamp(56px,6vw,96px);min-height:520px}
.ftg-phero .ftg-ball{width:40%;background:var(--ink);right:-12%;bottom:-55%}
.ftg-phero .ftg-orbit{width:22%;right:30%;top:-16%;--ring:#CFCFCD;--dot:16px}
.ftg-phero__p{position:absolute}
.ftg-phero__p1{right:6%;top:14%;width:24%}.ftg-phero__p1 .ftg-ph{aspect-ratio:4/3}
.ftg-phero__p2{right:26%;top:52%;width:15%}.ftg-phero__p2 .ftg-ph{aspect-ratio:1/1}
.ftg-phero__p3{right:3%;top:60%;width:17%}.ftg-phero__p3 .ftg-ph{aspect-ratio:4/5}
.ftg-phero__copy{position:relative;display:flex;flex-direction:column;gap:22px;max-width:640px;z-index:2}
.ftg-crumb{font-size:12px;font-weight:700;color:#555}
.ftg-crumb a{color:#555}
.ftg-crumb a:hover{color:var(--accent)}
.ftg-phero__title{display:flex;flex-direction:column;gap:12px}
.ftg-phero__en{font-family:var(--en);font-weight:600;font-size:clamp(64px,10vw,150px);line-height:.95;letter-spacing:-.01em}
.ftg-phero__ja{font-size:16px;font-weight:900}
.ftg-phero__lead{font-size:15px;line-height:2.1;color:#333;background:rgba(246,246,244,.85);padding-right:8px}
@media (max-width:760px){
  .ftg-phero{padding-bottom:300px}
  .ftg-phero__p1{top:auto;bottom:90px;right:6%;width:52%}
  .ftg-phero__p2{top:auto;bottom:40px;right:auto;left:6%;width:32%}
  .ftg-phero__p3{display:none}
}

/* ---------- works filter ---------- */
.ftg-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.ftg-filter button{border:1px solid var(--ink);background:#fff;color:var(--ink);border-radius:999px;padding:0 22px;min-height:44px;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
.ftg-filter button small{font-family:var(--en);margin-left:8px;opacity:.7;font-size:13px}
.ftg-filter button[aria-pressed="true"]{background:var(--ink);color:#fff}
.ftg-count{margin:0 0 40px;font-size:13px;color:#555}
.ftg-count b{font-family:var(--en);font-size:22px;color:var(--ink)}
.ftg-pager{display:flex;justify-content:center;gap:8px;margin-top:64px;font-family:var(--en);font-weight:700}
.ftg-pager a,.ftg-pager span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;padding:0 14px}
.ftg-pager .current{background:var(--ink);color:#fff}

/* ---------- single (work detail) ---------- */
.ftg-single__head{padding:clamp(48px,6vw,88px) var(--pad) 0}
.ftg-single__meta{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 20px;align-items:center}
.ftg-single__meta time{font-family:var(--en);font-weight:600;font-size:14px}
.ftg-single__title{margin:0 0 48px;font-weight:900;font-size:clamp(32px,5vw,72px);line-height:1.3}
.ftg-single__hero{padding:0 var(--gap)}
.ftg-single__hero .ftg-ph{border-radius:24px;aspect-ratio:16/8}
.ftg-single__body{padding:clamp(64px,8vw,112px) var(--pad);display:flex;flex-wrap:wrap;gap:48px}
.ftg-content{flex:1 1 520px;display:flex;flex-direction:column;gap:20px;font-size:16px;line-height:2.1;color:#333}
.ftg-content h2,.ftg-content h3{color:var(--ink);font-weight:900;line-height:1.5;margin-top:16px}
.ftg-content a{color:var(--ink);border-bottom:1px solid var(--accent);word-break:break-all}
.ftg-content ul{list-style:none}
.ftg-content ul li{position:relative;padding-left:20px}
.ftg-content ul li::before{content:"";position:absolute;left:0;top:.85em;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.ftg-meta{flex:1 1 340px;align-self:flex-start}
.ftg-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ftg-gallery figure{display:flex;flex-direction:column;gap:10px}
.ftg-gallery figure:nth-child(3n+1){grid-column:span 2}
.ftg-gallery figure:nth-child(3n+1) .ftg-gallery__img{aspect-ratio:16/9}
.ftg-gallery__img{border-radius:14px;overflow:hidden;aspect-ratio:4/3;background:#DDDDDB}
.ftg-gallery__img img{width:100%;height:100%;object-fit:cover}
.ftg-gallery figcaption{font-size:12px;color:#555}
.ftg-postnav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:0 var(--pad) 64px}
.ftg-postnav a{flex:1 1 280px;background:#fff;border-radius:16px;padding:20px 24px;display:flex;flex-direction:column;gap:6px;font-weight:900;line-height:1.5}
.ftg-postnav small{font-family:var(--en);font-weight:600;color:var(--mute);letter-spacing:.12em}
.ftg-postnav a:last-child{text-align:right}

/* ---------- service page ---------- */
.ftg-svnav{padding:0 var(--pad) 40px;display:flex;flex-wrap:wrap;gap:10px}
.ftg-svnav a{background:#fff;border-radius:999px;padding:0 20px;min-height:44px;display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:700}
.ftg-svnav b{font-family:var(--en);color:var(--accent)}
.ftg-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.ftg-step{background:#fff;border-radius:20px;padding:32px 28px;display:flex;flex-direction:column;gap:14px}
.ftg-step small{font-family:var(--en);font-weight:600;font-size:13px;letter-spacing:.16em;color:var(--accent)}
.ftg-step b{font-family:var(--en);font-weight:500;font-size:56px;line-height:.9}
.ftg-step strong{font-size:19px;font-weight:900}
.ftg-step span{font-size:14px;line-height:1.9;color:var(--sub)}
.ftg-video{background:#1A1A1A;color:#fff;border-radius:24px;padding:clamp(48px,7vw,104px) clamp(24px,6vw,96px)}
.ftg-video .ftg-heading{margin-bottom:40px}
.ftg-video__row{border-top:1px solid var(--ink3);padding:28px 0;display:flex;flex-wrap:wrap;gap:12px 40px;align-items:baseline}
.ftg-video__row>small{font-family:var(--en);font-weight:600;font-size:14px;color:#FF6B63;flex:0 0 140px}
.ftg-video__row>strong{font-size:clamp(20px,2vw,26px);font-weight:900;flex:1 1 300px}
.ftg-video__row>span{font-size:14px;line-height:1.9;color:#BDBDBD;flex:1 1 320px}

/* ---------- company page ---------- */
.ftg-history{border-left:2px solid var(--ink);margin-bottom:16px}
.ftg-history li{position:relative;padding:0 0 40px 40px}
.ftg-history li::before{content:"";position:absolute;left:-9px;top:8px;width:16px;height:16px;border-radius:50%;background:var(--ink)}
.ftg-history li:last-child::before{background:var(--accent)}
.ftg-history b{font-family:var(--en);font-weight:600;font-size:28px}
.ftg-history p{margin-top:6px;font-size:15px;line-height:1.9}
.ftg-clientlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ftg-clientlist li{background:#fff;border-radius:12px;padding:0 18px;min-height:64px;display:flex;align-items:center;font-size:15px;font-weight:700}
.ftg-access{display:flex;flex-wrap:wrap;gap:32px}
.ftg-access>div{flex:1 1 360px;display:flex;flex-direction:column;gap:24px}
.ftg-map{flex:2 1 560px;min-height:380px;border-radius:20px;overflow:hidden;background:#DDDDDB}
.ftg-map iframe{width:100%;height:100%;min-height:380px;border:0;display:block}

/* ---------- contact page ---------- */
.ftg-routes{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:24px}
.ftg-route{position:relative;overflow:hidden;border-radius:24px;padding:clamp(32px,4vw,56px);display:flex;flex-direction:column;gap:20px;color:#fff}
.ftg-route--accent{background:var(--accent)}
.ftg-route--dark{background:#1A1A1A}
.ftg-route h2{font-size:clamp(26px,2.6vw,36px);font-weight:900;line-height:1.4}
.ftg-route p{font-size:15px;line-height:2}
.ftg-route--dark p{color:#D6D6D6}
.ftg-route .ftg-badge{align-self:flex-start;background:#fff;color:var(--ink);border-radius:999px;padding:6px 14px;font-size:12px;font-weight:900}
.ftg-tags{display:flex;flex-wrap:wrap;gap:8px}
.ftg-tags li{border:1px solid rgba(255,255,255,.7);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:700}
.ftg-route .ftg-pill{margin-top:auto}
.ftg-form{flex:1 1 560px;background:#fff;border-radius:24px;padding:clamp(28px,4vw,56px);display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.ftg-form__f{display:flex;flex-direction:column;gap:8px}
.ftg-form__f label{font-size:14px;font-weight:700}
.ftg-form__f label em{font-style:normal;color:var(--accent);margin-left:6px;font-size:12px}
.ftg-form__full{grid-column:1/-1}
.ftg-field{width:100%;border:1px solid #CFCFCD;border-radius:10px;background:#fff;padding:14px 16px;font-size:16px;color:var(--ink);min-height:48px}
.ftg-field:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
textarea.ftg-field{resize:vertical;min-height:160px}
.ftg-form__foot{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px}
.ftg-check{display:flex;gap:10px;align-items:center;font-size:14px;min-height:44px}
.ftg-check input{width:20px;height:20px;accent-color:var(--accent)}
.ftg-form button.ftg-pill{border:0;cursor:pointer}
.ftg-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ftg-notice{grid-column:1/-1;border-radius:12px;padding:16px 20px;font-weight:700;line-height:1.8}
.ftg-notice--ok{background:#111;color:#fff}
.ftg-notice--err{background:#FCE9E8;color:#9E1B15}
.ftg-cf7 .wpcf7-form-control:not([type=submit]):not([type=checkbox]){width:100%;border:1px solid #CFCFCD;border-radius:10px;padding:14px 16px;font-size:16px}
.ftg-cf7 .wpcf7-submit{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:14px 34px;font-weight:900;cursor:pointer}

/* ---------- generic page / 404 ---------- */
.ftg-page{padding:0 var(--pad) clamp(72px,9vw,128px)}
.ftg-page .ftg-content{max-width:860px}

/* =========================================================
   Animations
   ========================================================= */
@keyframes ftgWipe{0%{transform:translateX(-101%)}45%,55%{transform:translateX(0)}100%{transform:translateX(101%)}}
@keyframes ftgImgIn{0%,49%{opacity:0;transform:scale(1.18)}50%{opacity:1;transform:scale(1.18)}100%{opacity:1;transform:scale(1)}}
@keyframes ftgFloat{from{transform:translateY(-8px)}to{transform:translateY(10px)}}
@keyframes ftgUp{from{transform:translateY(110%)}to{transform:translateY(0)}}
@keyframes ftgFade{from{opacity:0}to{opacity:1}}
@keyframes ftgPop{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes ftgSpin{to{transform:rotate(360deg)}}
@keyframes ftgDown{from{transform:translateY(-120%)}to{transform:translateY(0)}}
@keyframes ftgLoopY{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@keyframes ftgLoopX{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes ftgRise{from{opacity:0;transform:translateY(64px)}to{opacity:1;transform:translateY(0)}}
@keyframes ftgClip{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
@keyframes ftgClipUp{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes ftgPara{to{translate:0 var(--ps,-80px)}}
@keyframes ftgLine{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes ftgSlide{from{transform:translateX(8%)}to{transform:translateX(-38%)}}
@keyframes ftgSlideR{from{transform:translateX(-38%)}to{transform:translateX(8%)}}
@keyframes ftgIris{from{clip-path:circle(9% at 50% 55%)}to{clip-path:circle(85% at 50% 50%)}}
@keyframes ftgZoom{from{transform:scale(1.35)}to{transform:scale(1)}}
@keyframes ftgTextIn{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:translateY(0)}}
@keyframes ftgExpand{from{transform:scale(.86);border-radius:64px}to{transform:scale(1);border-radius:24px}}
@keyframes ftgSweep{0%{transform:translateX(-101%)}3%{transform:translateX(0)}6.5%{transform:translateX(101%)}100%{transform:translateX(101%)}}
@keyframes ftgChar{0%,3%{opacity:0;transform:translateY(110%) rotate(14deg) scale(.9)}7.5%{opacity:1;transform:translateY(0) rotate(0) scale(1)}20.5%{opacity:1;transform:translateY(0) rotate(0) scale(1)}24.5%{opacity:0;transform:translateY(-90%) rotate(-8deg)}100%{opacity:0;transform:translateY(-90%) rotate(-8deg)}}
@keyframes ftgNum{0%{opacity:0;transform:translateX(-40px)}5%{opacity:1;transform:translateX(0)}21%{opacity:1;transform:translateX(0)}25%{opacity:0;transform:translateX(40px)}100%{opacity:0;transform:translateX(40px)}}
@keyframes ftgBar{0%{transform:scaleX(0)}21%{transform:scaleX(1)}25%,100%{transform:scaleX(0)}}

.ftg-bline{display:block;white-space:nowrap}
.ftg-bc{display:inline-block;transform-origin:50% 100%}
.ftg-bsp{width:.28em}
.ftg-bdot{display:inline-block;color:var(--accent);transform-origin:50% 100%}
@keyframes ftgBoing{0%{opacity:0;transform:translateY(70%) scale(1.35,.08)}28%{opacity:1;transform:translateY(-22%) scale(.72,1.5)}46%{transform:translateY(5%) scale(1.18,.8)}62%{transform:translateY(-6%) scale(.92,1.1)}78%{transform:translateY(1.5%) scale(1.04,.96)}90%{transform:translateY(-1%) scale(.99,1.01)}100%{opacity:1;transform:none}}
@keyframes ftgDrop{0%{opacity:0;transform:translateY(-520%) scale(.6,1.7)}42%{opacity:1;transform:translateY(0) scale(1.7,.45)}58%{transform:translateY(-90%) scale(.8,1.25)}72%{transform:translateY(0) scale(1.3,.75)}84%{transform:translateY(-25%) scale(.95,1.05)}93%{transform:translateY(0) scale(1.06,.94)}100%{opacity:1;transform:none}}
.ftg-motion .ftg-boing .ftg-bc,.ftg-motion .ftg-boing .ftg-bdot{opacity:0}
.ftg-motion .ftg-boing.is-in .ftg-bc{animation:ftgBoing 1.25s cubic-bezier(.25,.8,.3,1) both;animation-delay:calc(var(--c) * .05s)}
.ftg-motion .ftg-boing.is-in .ftg-bdot{animation:ftgDrop 1.3s cubic-bezier(.3,.7,.3,1) both;animation-delay:calc(var(--n) * .05s + .35s)}

/* 読み込み時 */
.ftg-motion .ftg-header{animation:ftgDown .9s cubic-bezier(.2,.8,.2,1) both .1s}
.ftg-motion .ftg-ph::after{content:"";position:absolute;inset:0;background:var(--wipe,#111);transform:translateX(-101%);animation:ftgWipe 1.2s cubic-bezier(.75,0,.2,1) both;animation-delay:var(--d,0s)}
.ftg-motion .ftg-ph img{animation:ftgImgIn 1.2s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
.ftg-motion .ftg-float{animation:ftgFloat 5.5s ease-in-out infinite alternate;animation-delay:var(--fd,0s)}
.ftg-motion .ftg-mask:not(.ftg-maskv)>span{animation:ftgUp 1s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0s)}
.ftg-motion .ftg-fade{animation:ftgFade 1.2s ease both;animation-delay:var(--d,0s)}
.ftg-motion .ftg-pop{animation:ftgPop 1.4s cubic-bezier(.2,.9,.2,1) both;animation-delay:var(--d,0s)}
.ftg-motion .ftg-spin{animation:ftgSpin 18s linear infinite}
.ftg-motion .ftg-loopy{animation:ftgLoopY 40s linear infinite}
.ftg-motion .ftg-loopx{animation:ftgLoopX 36s linear infinite}
.ftg-motion .ftg-loopxr{animation:ftgLoopX 44s linear infinite reverse}
.ftg-motion .ftg-scroll__line::after{animation:ftgLine 1.8s ease-in-out infinite alternate}
.ftg-motion .ftg-cyc>span{visibility:visible}
.ftg-motion .ftg-cyc>span::before{content:"";position:absolute;left:0;right:-14px;top:0;bottom:0;background:var(--accent);z-index:2;transform:translateX(-101%);animation:ftgSweep 14s cubic-bezier(.7,0,.2,1) infinite both;animation-delay:calc(1.5s + var(--i) * 3.5s)}
.ftg-motion .ftg-ch{animation:ftgChar 14s cubic-bezier(.2,.9,.25,1.2) infinite both;animation-delay:calc(1.5s + var(--i) * 3.5s + var(--c) * .04s)}
.ftg-motion .ftg-cycnum>span{visibility:visible;animation:ftgNum 14s cubic-bezier(.2,.8,.2,1) infinite both;animation-delay:calc(1.5s + var(--i) * 3.5s)}
.ftg-motion .ftg-bar::after{animation:ftgBar 14s linear infinite both;animation-delay:calc(1.5s + var(--i) * 3.5s)}

/* スクロール連動（対応ブラウザ） */
@supports (animation-timeline: view()){
  .ftg-motion .ftg-rise{animation:ftgRise linear both;animation-timeline:view();animation-range:entry 5% entry 45%}
  .ftg-motion .ftg-clip{animation:ftgClip linear both;animation-timeline:view();animation-range:entry 10% cover 40%}
  .ftg-motion .ftg-clipup{animation:ftgClipUp linear both;animation-timeline:view();animation-range:entry 0% entry 80%}
  .ftg-motion .ftg-para{animation:ftgPara linear both;animation-timeline:scroll(root);animation-range:0 900px}
  .ftg-motion .ftg-slide{animation:ftgSlide linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  .ftg-motion .ftg-slider{animation:ftgSlideR linear both;animation-timeline:view();animation-range:cover 0% cover 100%}
  .ftg-motion .ftg-pin{view-timeline-name:--ftgpin}
  .ftg-motion .ftg-iris{animation:ftgIris linear both;animation-timeline:--ftgpin;animation-range:contain 0% contain 50%}
  .ftg-motion .ftg-iris img{animation:ftgZoom linear both;animation-timeline:--ftgpin;animation-range:contain 0% contain 75%}
  .ftg-motion .ftg-pint1{animation:ftgTextIn linear both;animation-timeline:--ftgpin;animation-range:contain 40% contain 60%}
  .ftg-motion .ftg-pint2{animation:ftgTextIn linear both;animation-timeline:--ftgpin;animation-range:contain 52% contain 72%}
  .ftg-motion .ftg-pint3{animation:ftgTextIn linear both;animation-timeline:--ftgpin;animation-range:contain 64% contain 84%}
  .ftg-motion .ftg-expand{animation:ftgExpand linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
  .ftg-motion .ftg-maskv>span{animation:ftgUp linear both;animation-timeline:view();animation-range:entry 30% entry 90%}
  .ftg-motion .ftg-card.ftg-rise:nth-child(3n+2){animation-range:entry 15% entry 55%}
  .ftg-motion .ftg-card.ftg-rise:nth-child(3n){animation-range:entry 25% entry 65%}
}

/* 非対応ブラウザ（Safari 旧版など）は JS で .is-in を付けて表示 */
.ftg-io .ftg-motion .ftg-rise{opacity:0;transform:translateY(48px);transition:opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1)}
.ftg-io .ftg-motion .ftg-clip{clip-path:inset(0 0 0 100%);transition:clip-path 1.1s cubic-bezier(.7,0,.2,1)}
.ftg-io .ftg-motion .ftg-clipup{clip-path:inset(100% 0 0 0);transition:clip-path 1.1s cubic-bezier(.7,0,.2,1)}
.ftg-io .ftg-motion .ftg-expand{transform:scale(.9);transition:transform 1s cubic-bezier(.2,.8,.2,1)}
.ftg-io .ftg-motion .ftg-maskv>span{transform:translateY(110%);transition:transform 1s cubic-bezier(.2,.8,.2,1)}
.ftg-io .ftg-motion .ftg-pint1,.ftg-io .ftg-motion .ftg-pint2,.ftg-io .ftg-motion .ftg-pint3{opacity:0;transform:translateY(40px);transition:opacity 1s,transform 1s}
.ftg-io .ftg-motion .ftg-pint2{transition-delay:.25s}
.ftg-io .ftg-motion .ftg-pint3{transition-delay:.5s}
.ftg-io .ftg-motion .is-in.ftg-rise,.ftg-io .ftg-motion .is-in.ftg-expand,.ftg-io .ftg-motion .is-in .ftg-pint1,.ftg-io .ftg-motion .is-in .ftg-pint2,.ftg-io .ftg-motion .is-in .ftg-pint3{opacity:1;transform:none}
.ftg-io .ftg-motion .is-in.ftg-clip,.ftg-io .ftg-motion .is-in.ftg-clipup{clip-path:inset(0 0 0 0)}
.ftg-io .ftg-motion .is-in.ftg-maskv>span{transform:none}
.ftg-io .ftg-pin{height:auto}
.ftg-io .ftg-pin__sticky{position:relative}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ftg-motion *,.ftg-motion *::after{animation:none !important;transition:none !important}
  .ftg-motion .ftg-ph::after{display:none}
  .ftg-motion .ftg-cyc>span:not(:first-child),.ftg-motion .ftg-cycnum>span:not(:first-child){visibility:hidden}
  .ftg-motion .ftg-cyc>span::before{display:none}
  .ftg-motion .ftg-boing .ftg-bc,.ftg-motion .ftg-boing .ftg-bdot{opacity:1}
  .ftg-io .ftg-motion .ftg-rise,.ftg-io .ftg-motion .ftg-pint1,.ftg-io .ftg-motion .ftg-pint2,.ftg-io .ftg-motion .ftg-pint3{opacity:1;transform:none}
  .ftg-io .ftg-motion .ftg-clip,.ftg-io .ftg-motion .ftg-clipup{clip-path:none}
  .ftg-io .ftg-motion .ftg-maskv>span,.ftg-io .ftg-motion .ftg-expand{transform:none}
}
.ftg-video__row>span a{color:#fff;border-bottom:1px solid var(--accent)}

/* ===== v1.0.6 : 下半分に赤とアクション ===== */
.ftg-bigtext{background:var(--accent);color:#fff;padding:clamp(56px,7vw,104px) 0;font-size:clamp(64px,9vw,140px);position:relative}
.ftg-bigtext__row{white-space:nowrap;line-height:1.05}
.ftg-bigtext__outline{color:transparent;-webkit-text-stroke:2px rgba(255,255,255,.75)}
.ftg-bigtext__ja{margin:clamp(28px,4vw,48px) var(--pad) 0;display:flex;flex-direction:column;gap:8px;font-family:var(--ja);font-size:clamp(17px,1.6vw,22px);font-weight:900;line-height:1.7;white-space:normal}
.ftg-bigtext__en{font-family:var(--en);font-size:13px;font-weight:700;letter-spacing:.24em;opacity:.85}

/* 見出し：赤いバーがシュッと伸びる＋ドットが弾む */
.ftg-heading__en .ftg-accent{display:inline-block;transform-origin:50% 80%}
.ftg-heading::after{content:"";display:block;width:88px;height:6px;margin-top:6px;background:var(--accent);transform:scaleX(0);transform-origin:left}
.ftg-js .ftg-heading.is-in::after{animation:ftgBarIn .9s cubic-bezier(.7,0,.2,1) .25s forwards}
.ftg-js .ftg-heading.is-in .ftg-heading__en .ftg-accent{animation:ftgDotPop 1.1s cubic-bezier(.3,1.6,.4,1) .5s backwards}
.ftg-js .ftg-motion .ftg-heading:not(.is-in)::after{transform:scaleX(0)}
.ftg-panel .ftg-heading::after,.ftg-video .ftg-heading::after{background:var(--accent)}
@keyframes ftgBarIn{to{transform:scaleX(1)}}
@keyframes ftgDotPop{0%{transform:scale(0) translateY(-120%)}60%{transform:scale(1.6)}100%{transform:scale(1)}}

/* 実績カード：赤い帯が横切って写真が出る */
.ftg-card__img::after{content:"";position:absolute;inset:0;background:var(--accent);transform:translateX(-101%);z-index:2;pointer-events:none}
.ftg-js .ftg-motion .ftg-card:not(.is-in) .ftg-card__img img{opacity:0}
.ftg-js .ftg-motion .ftg-card.is-in .ftg-card__img::after{animation:ftgWipe 1.1s cubic-bezier(.75,0,.2,1) both;animation-delay:var(--cd,0s)}
.ftg-js .ftg-motion .ftg-card.is-in .ftg-card__img img{animation:ftgImgIn 1.1s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:var(--cd,0s)}
.ftg-grid .ftg-card:nth-child(3n+2){--cd:.12s}
.ftg-grid .ftg-card:nth-child(3n){--cd:.24s}
.ftg-card__chip{background:var(--accent);color:#fff}
.ftg-card__date{color:var(--accent)}
.ftg-card__title{transition:color .3s}
.ftg-card:hover .ftg-card__title{color:var(--accent)}

/* 取引先：黒い帯＋赤いラベル */
.ftg-clients{background:var(--ink);border:0}
.ftg-clients__head h2{color:#fff}
.ftg-clients__head span{color:#BDBDBD}
.ftg-clients__chip{background:#1F1F1F;border-color:#333;color:#fff}
.ftg-clients__chip:nth-child(3n+1){background:var(--accent);border-color:var(--accent)}
.ftg-clients__row:nth-of-type(odd) .ftg-clients__chip:nth-child(3n+1){background:#fff;color:var(--ink);border-color:#fff}

/* 会社概要の表：行が順番に出て、左に赤いライン */
.ftg-table dt{position:relative;padding-left:16px}
.ftg-table dt::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;background:var(--accent);transform:scaleY(0);transform-origin:top}
.ftg-js .ftg-motion .ftg-table:not(.is-in) dt,.ftg-js .ftg-motion .ftg-table:not(.is-in) dd{opacity:0}
.ftg-js .ftg-motion .ftg-table.is-in dt,.ftg-js .ftg-motion .ftg-table.is-in dd{animation:ftgRowIn .7s cubic-bezier(.2,.8,.2,1) backwards}
.ftg-js .ftg-motion .ftg-table.is-in dt::before{animation:ftgBarInY .6s cubic-bezier(.7,0,.2,1) forwards}
.ftg-table dt:nth-of-type(1),.ftg-table dd:nth-of-type(1),.ftg-table dt:nth-of-type(1)::before{animation-delay:.05s !important}
.ftg-table dt:nth-of-type(2),.ftg-table dd:nth-of-type(2),.ftg-table dt:nth-of-type(2)::before{animation-delay:.15s !important}
.ftg-table dt:nth-of-type(3),.ftg-table dd:nth-of-type(3),.ftg-table dt:nth-of-type(3)::before{animation-delay:.25s !important}
.ftg-table dt:nth-of-type(4),.ftg-table dd:nth-of-type(4),.ftg-table dt:nth-of-type(4)::before{animation-delay:.35s !important}
.ftg-table dt:nth-of-type(5),.ftg-table dd:nth-of-type(5),.ftg-table dt:nth-of-type(5)::before{animation-delay:.45s !important}
.ftg-table dt:nth-of-type(6),.ftg-table dd:nth-of-type(6),.ftg-table dt:nth-of-type(6)::before{animation-delay:.55s !important}
.ftg-table dt:nth-of-type(7),.ftg-table dd:nth-of-type(7),.ftg-table dt:nth-of-type(7)::before{animation-delay:.65s !important}
.ftg-table dt:nth-of-type(8),.ftg-table dd:nth-of-type(8),.ftg-table dt:nth-of-type(8)::before{animation-delay:.75s !important}
@keyframes ftgRowIn{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@keyframes ftgBarInY{to{transform:scaleY(1)}}
.ftg-table dt::before{transform:scaleY(1)}
.ftg-js .ftg-motion .ftg-table dt::before{transform:scaleY(0)}

/* DAKEDEの3つの特徴：赤い数字が弾んで出る */
.ftg-point{border-top:4px solid var(--accent);transition:transform .3s,box-shadow .3s}
.ftg-point:hover{transform:translateY(-6px);box-shadow:0 16px 32px rgba(0,0,0,.08)}

@media (prefers-reduced-motion:reduce){
  .ftg-js .ftg-motion .ftg-card .ftg-card__img img,.ftg-js .ftg-motion .ftg-table dt,.ftg-js .ftg-motion .ftg-table dd{opacity:1}
  .ftg-js .ftg-motion .ftg-table dt::before,.ftg-heading::after{transform:none}
  .ftg-card__img::after{display:none}
}

/* 長い英字見出し（COMPANY など）が右で切れないように */
.ftg-mask{overflow:visible;clip-path:inset(-25% -100vw 0 -100vw)}
.ftg-phero__copy{max-width:none}
.ftg-phero__lead{max-width:640px}
.ftg-phero__en{font-size:clamp(56px,9.5vw,148px);white-space:nowrap}

/* ===== v1.0.9 : スマホの改行（1〜2文字だけ落ちる）対策 ===== */
.ftg-nb{display:inline-block;max-width:100%}
h1,h2,h3,.ftg-card__title,.ftg-scard__title,strong{text-wrap:balance;word-break:auto-phrase}
p,li,dd,figcaption{text-wrap:pretty;word-break:auto-phrase}
.ftg-pill,.ftg-btn,.ftg-footer__nav a,.ftg-chip,.ftg-pin__label{white-space:nowrap}
.ftg-pill{max-width:100%}
@media (max-width:760px){
  .ftg-hero__title{font-size:min(8.6vw,44px)}
  .ftg-cycnum{font-size:88px}
  .ftg-pin__title{font-size:min(7.4vw,40px)}
  .ftg-pin__text{font-size:14px}
  .ftg-panel__lead{font-size:min(5.6vw,24px)}
  .ftg-dakede__title{font-size:min(7.4vw,40px)}
  .ftg-dkband h2{font-size:min(6.6vw,32px)}
  .ftg-scard__title{font-size:min(6vw,26px)}
  .ftg-scard__num{font-size:72px}
  .ftg-pill{font-size:13px;gap:18px;padding-left:22px}
  .ftg-pill--lg{font-size:15px}
  .ftg-video__row>small{flex-basis:100%}
  .ftg-bigtext__ja{font-size:16px}
  .ftg-phero__lead{font-size:14px}
  .ftg-card__title{font-size:16px}
}

/* ===== v1.0.9 : トップ見出し4つを、それぞれ違う出方に ===== */
.ftg-hero__title{background:rgba(246,246,244,.94)}
.ftg-ch--en{font-family:var(--en);font-weight:800;font-size:1.22em;letter-spacing:-.01em;line-height:1}
/* 2つ目「価値」・4つ目「超えていけ」は赤地に白抜き */
.ftg-cyc>span:nth-child(2) .ftg-accent,.ftg-cyc>span:nth-child(4) .ftg-accent{background:var(--accent);color:#fff;padding:0 .04em}
/* 1つ目・3つ目の赤文字は少し大きく */
.ftg-cyc>span:nth-child(1) .ftg-accent,.ftg-cyc>span:nth-child(3) .ftg-accent{font-size:1.12em}
/* 横切る帯の色を交互に */
.ftg-motion .ftg-cyc>span:nth-child(even)::before{background:#111}

/* 2：右から斜めに飛び込んで、左へ抜ける */
@keyframes ftgCharR{0%,3%{opacity:0;transform:translateX(140%) skewX(-24deg)}7.5%{opacity:1;transform:translateX(0) skewX(0)}20.5%{opacity:1;transform:translateX(0) skewX(0)}24.5%{opacity:0;transform:translateX(-120%) skewX(18deg)}100%{opacity:0;transform:translateX(-120%)}}
/* 3：巨大な文字がドンと落ちてきて、画面が揺れる */
@keyframes ftgCharZ{0%,3%{opacity:0;transform:scale(3.4)}6%{opacity:1;transform:scale(.86)}7.5%{transform:scale(1.06)}9%{opacity:1;transform:scale(1)}20.5%{opacity:1;transform:scale(1)}24.5%{opacity:0;transform:scale(.2)}100%{opacity:0;transform:scale(.2)}}
@keyframes ftgShake{0%,5.8%{transform:none}6.3%{transform:translate(-6px,3px)}6.8%{transform:translate(5px,-4px)}7.3%{transform:translate(-3px,2px)}7.8%{transform:translate(2px,-1px)}8.3%,100%{transform:none}}
/* 4：上から回転しながら降ってきて、下へ落ちる */
@keyframes ftgCharD{0%,3%{opacity:0;transform:translateY(-150%) rotate(-28deg)}7.5%{opacity:1;transform:translateY(0) rotate(0)}20.5%{opacity:1;transform:translateY(0) rotate(0)}24.5%{opacity:0;transform:translateY(140%) rotate(18deg)}100%{opacity:0;transform:translateY(140%)}}

.ftg-motion .ftg-cyc>span:nth-child(2) .ftg-ch{animation-name:ftgCharR;animation-timing-function:cubic-bezier(.16,.9,.3,1)}
.ftg-motion .ftg-cyc>span:nth-child(3) .ftg-ch{animation-name:ftgCharZ;animation-timing-function:cubic-bezier(.3,.6,.3,1)}
.ftg-motion .ftg-cyc>span:nth-child(3){animation:ftgShake 14s linear infinite both;animation-delay:calc(1.5s + var(--i) * 3.5s + .45s)}
.ftg-motion .ftg-cyc>span:nth-child(4) .ftg-ch{animation-name:ftgCharD;animation-timing-function:cubic-bezier(.2,1.2,.4,1)}
@media (prefers-reduced-motion:reduce){.ftg-motion .ftg-cyc>span{animation:none !important}}

.ftg-nw{white-space:nowrap}
.ftg-clients__head h2{white-space:nowrap}

/* v1.1.1 : スマホで横にはみ出さないように */
.ftg-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.ftg-card__text{min-width:0;flex:1 1 auto}
.ftg-mask>span{max-width:100%}
@media (max-width:760px){
  .ftg-single__title{font-size:min(7.4vw,36px)}
  .ftg-footer__nav ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
  .ftg-footer__nav a{white-space:normal}
}

/* v1.1.2 : 実績カードの出方をスタイリッシュに（全面の赤 → 細い赤ライン＋写真が下から現れる） */
.ftg-card__img::after{inset:auto 0 0 0;height:3px;transform:scaleX(0);transform-origin:left;background:var(--accent)}
.ftg-js .ftg-motion .ftg-card.is-in .ftg-card__img::after{animation:ftgLineSweep 1.4s cubic-bezier(.7,0,.2,1) both;animation-delay:var(--cd,0s)}
.ftg-js .ftg-motion .ftg-card:not(.is-in) .ftg-card__img img{opacity:1;clip-path:inset(100% 0 0 0)}
.ftg-js .ftg-motion .ftg-card.is-in .ftg-card__img img{animation:ftgCardReveal 1.3s cubic-bezier(.65,0,.15,1) backwards;animation-delay:calc(var(--cd,0s) + .15s)}
@keyframes ftgLineSweep{0%{transform:scaleX(0);transform-origin:left}45%{transform:scaleX(1);transform-origin:left}46%{transform-origin:right}100%{transform:scaleX(0);transform-origin:right}}
@keyframes ftgCardReveal{0%{clip-path:inset(100% 0 0 0);transform:scale(1.14);filter:grayscale(1) brightness(.85)}60%{clip-path:inset(0 0 0 0);filter:grayscale(.4)}100%{clip-path:inset(0 0 0 0);transform:scale(1);filter:none}}
.ftg-js .ftg-mono.ftg-motion .ftg-card.is-in .ftg-card__img img{filter:grayscale(1) contrast(1.05)}
@media (prefers-reduced-motion:reduce){.ftg-js .ftg-motion .ftg-card .ftg-card__img img{clip-path:none}}

/* ===== v1.1.4 : 動画を見る ===== */
.ftg-clips{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}
.ftg-clip-btn{display:flex;align-items:center;gap:16px;background:#262626;border-radius:16px;padding:10px 20px 10px 10px;color:#fff !important;flex:0 1 420px;min-width:0;transition:background .3s,transform .3s}
.ftg-clip-btn:hover{background:var(--accent);transform:translateY(-3px)}
.ftg-clip-btn__thumb{position:relative;flex:0 0 136px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
.ftg-clip-btn__thumb img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);transition:filter .4s,transform .6s}
.ftg-clip-btn:hover .ftg-clip-btn__thumb img{filter:none;transform:scale(1.08)}
.ftg-clip-btn__thumb i{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 rgba(215,38,30,.6);animation:ftgPulse 2s infinite}
.ftg-clip-btn__thumb i::after{content:"";position:absolute;left:16px;top:12px;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent #fff}
.ftg-clip-btn:hover .ftg-clip-btn__thumb i{background:#fff}
.ftg-clip-btn:hover .ftg-clip-btn__thumb i::after{border-left-color:var(--accent)}
.ftg-clip-btn__txt{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:700;line-height:1.6;min-width:0;color:#fff !important;flex:1 1 auto}
.ftg-clip-btn__txt em{font-style:normal;font-family:var(--en);font-size:12px;letter-spacing:.16em;color:#FF6B63}
.ftg-clip-btn:hover .ftg-clip-btn__txt em{color:#fff}
@keyframes ftgPulse{0%{box-shadow:0 0 0 0 rgba(215,38,30,.6)}70%{box-shadow:0 0 0 14px rgba(215,38,30,0)}100%{box-shadow:0 0 0 0 rgba(215,38,30,0)}}
.ftg-yt{position:fixed;inset:0;z-index:9999;background:rgba(10,10,10,.92);display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;pointer-events:none;transition:opacity .35s}
.ftg-yt.is-open{opacity:1;pointer-events:auto}
.ftg-yt__box{width:min(1100px,100%);aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;transform:scale(.9);transition:transform .45s cubic-bezier(.2,1.4,.4,1)}
.ftg-yt.is-open .ftg-yt__box{transform:scale(1)}
.ftg-yt__box iframe{width:100%;height:100%;border:0;display:block}
.ftg-yt__close{position:absolute;top:20px;right:20px;width:52px;height:52px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:26px;line-height:1;cursor:pointer}
@media (max-width:640px){.ftg-clip-btn{flex-basis:100%}.ftg-clip-btn__thumb{flex-basis:112px}}

/* ===== v1.1.7 : WE BUILD THE GROUND を左右から ===== */
.ftg-bigtext .ftg-btin{overflow:visible}
.ftg-bttrack{display:flex;width:max-content;will-change:transform}
.ftg-bttrack>div{display:flex;flex:none}
.ftg-bttrack--l{animation:ftgBtL 38s linear infinite}
.ftg-bttrack--r{animation:ftgBtR 44s linear infinite}
@keyframes ftgBtL{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes ftgBtR{from{transform:translateX(-50%)}to{transform:translateX(0)}}
/* 入場：上段は右から、下段は左からスッと滑り込む */
.ftg-js .ftg-btin{opacity:0;transition:transform 1.4s cubic-bezier(.16,1,.3,1),opacity .8s ease}
.ftg-js .ftg-btin--l{transform:translateX(45%)}
.ftg-js .ftg-btin--r{transform:translateX(-45%);transition-delay:.15s}
.ftg-js .ftg-btin.is-in{opacity:1;transform:none}
/* 旧スクロール連動は無効化 */
.ftg-motion .ftg-bigtext .ftg-btin{animation:none}
@media (prefers-reduced-motion:reduce){.ftg-bttrack{animation:none}.ftg-js .ftg-btin{opacity:1;transform:none}}

/* ===== v1.1.9 : 舞台（グラウンド） ===== */
.ftg-bigtext__line{display:flex;flex-wrap:wrap;align-items:baseline}
.ftg-bigtext__end{display:inline-flex;align-items:baseline}
.ftg-ruby{display:inline-flex;flex-direction:column;align-items:center;margin:0 .12em}
.ftg-ruby b{font-size:2.3em;font-weight:900;line-height:1.05;letter-spacing:.02em}
.ftg-ruby small{font-size:max(11px,.5em);font-weight:700;letter-spacing:.3em;margin-top:.3em;padding-left:.3em;opacity:.9;line-height:1}

/* ===== v1.2.0 : CONTACT上の円から4つのキーワードが弾け出る ===== */
.ftg-cta>.ftg-cburst{position:absolute;right:30%;top:36%;width:0;height:0;z-index:0;pointer-events:none}
.ftg-cta>*:not(.ftg-cburst){z-index:1}
.ftg-cburst__ball{position:absolute;left:0;top:0;width:min(26vw,400px);aspect-ratio:1;border-radius:50%;background:#2E2E2E;transform:translate(-50%,-50%) scale(.6);transition:transform 1.2s cubic-bezier(.2,1.6,.4,1)}
.ftg-cburst__ball::after{content:"";position:absolute;inset:-14%;border-radius:50%;border:1px solid #3A3A3A}
.ftg-cburst__ring{position:absolute;left:0;top:0;width:min(26vw,400px);aspect-ratio:1;border-radius:50%;border:3px solid var(--accent);transform:translate(-50%,-50%) scale(.5);opacity:0}
.ftg-cburst__w{position:absolute;left:0;top:0;--x:0px;--y:0px;--r:0deg;opacity:0;transform:translate(-50%,-50%) scale(.1)}
.ftg-cburst__w>span{display:block;white-space:nowrap;text-align:center;font-weight:900;font-size:clamp(16px,1.9vw,30px);line-height:1.35;color:#fff}
.ftg-cburst__w em{font-style:normal;background:var(--accent);padding:0 .18em;margin:0 .04em;display:inline-block;line-height:1.25}
.ftg-cburst__w--1{--x:-19vw;--y:-8vw;--r:-6deg}
.ftg-cburst__w--2{--x:11vw;--y:-11vw;--r:5deg}
.ftg-cburst__w--3{--x:-14vw;--y:8vw;--r:4deg}
.ftg-cburst__w--3>span{font-family:var(--en);font-size:clamp(26px,3.2vw,54px);line-height:1.05}
.ftg-cburst__w--4{--x:10vw;--y:9vw;--r:-4deg}
.ftg-cta.is-in .ftg-cburst__ball{transform:translate(-50%,-50%) scale(1);animation:ftgCBallPop 1.2s cubic-bezier(.2,1.6,.4,1) both,ftgCBallBeat 3.2s ease-in-out 1.4s infinite}
.ftg-cta.is-in .ftg-cburst__ring{animation:ftgCRing 1.4s cubic-bezier(.2,.8,.2,1) .25s both}
.ftg-cta.is-in .ftg-cburst__w{animation:ftgCPop .95s cubic-bezier(.2,1.5,.4,1) both,ftgCDrift 5s ease-in-out infinite}
.ftg-cta.is-in .ftg-cburst__w--1{animation-delay:.35s,1.4s}
.ftg-cta.is-in .ftg-cburst__w--2{animation-delay:.5s,1.8s}
.ftg-cta.is-in .ftg-cburst__w--3{animation-delay:.65s,1.6s}
.ftg-cta.is-in .ftg-cburst__w--4{animation-delay:.8s,2s}
@keyframes ftgCBallPop{0%{transform:translate(-50%,-50%) scale(.6)}40%{transform:translate(-50%,-50%) scale(1.18)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes ftgCBallBeat{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.04)}}
@keyframes ftgCRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2.6)}}
@keyframes ftgCPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(0)}60%{opacity:1;transform:translate(calc(-50% + var(--x)*1.1),calc(-50% + var(--y)*1.1)) scale(1.12) rotate(var(--r))}100%{opacity:1;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1) rotate(var(--r))}}
@keyframes ftgCDrift{0%,100%{opacity:1;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1) rotate(var(--r))}50%{opacity:1;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y) - 10px)) scale(1) rotate(var(--r))}}
@media (max-width:760px){
  .ftg-cta{padding-top:300px}
  .ftg-cta>.ftg-cburst{right:auto;left:50%;top:150px}
  .ftg-cburst__ball,.ftg-cburst__ring{width:150px}
  .ftg-cburst__w>span{font-size:15px}
  .ftg-cburst__w--3>span{font-size:28px}
  .ftg-cburst__w--1{--x:-22vw;--y:-92px}
  .ftg-cburst__w--2{--x:24vw;--y:-56px}
  .ftg-cburst__w--3{--x:-22vw;--y:62px}
  .ftg-cburst__w--4{--x:18vw;--y:100px}
}
@media (prefers-reduced-motion:reduce){.ftg-cburst__w{opacity:1;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y)))}.ftg-cta.is-in .ftg-cburst__w,.ftg-cta.is-in .ftg-cburst__ball{animation:none}}


/* ===== v1.2.2 : CONTACT円＋4ワードは見出しの上の帯に収める（重なり防止） ===== */
.ftg-cta{padding-top:clamp(280px,24vw,360px)}
.ftg-cta>.ftg-cburst{right:auto;left:50%;top:clamp(140px,12vw,180px)}
.ftg-cburst__ball,.ftg-cburst__ring{width:min(20vw,300px)}
.ftg-cburst__w>span{font-size:clamp(15px,1.7vw,28px)}
.ftg-cburst__w--3>span{font-size:clamp(24px,2.8vw,46px)}
.ftg-cburst__w--1{--x:-30vw;--y:-34px;--r:-5deg}
.ftg-cburst__w--2{--x:-10vw;--y:44px;--r:4deg}
.ftg-cburst__w--3{--x:10vw;--y:-38px;--r:-3deg}
.ftg-cburst__w--4{--x:30vw;--y:40px;--r:4deg}
@media (max-width:760px){
  .ftg-cta{padding-top:300px}
  .ftg-cta>.ftg-cburst{top:150px}
  .ftg-cburst__ball,.ftg-cburst__ring{width:150px}
  .ftg-cburst__w>span{font-size:15px}
  .ftg-cburst__w--3>span{font-size:28px}
  .ftg-cburst__w--1{--x:-22vw;--y:-92px}
  .ftg-cburst__w--2{--x:24vw;--y:-56px}
  .ftg-cburst__w--3{--x:-22vw;--y:62px}
  .ftg-cburst__w--4{--x:18vw;--y:100px}
}

/* ===== v1.2.3 : 円から段取りキーワードが弾け出る ===== */
.ftg-kwburst{position:absolute;inset:0;pointer-events:none;z-index:1}
.ftg-kw{position:absolute;left:50%;top:55%;--x:0px;--y:0px;--r:0deg;opacity:0;transform:translate(-50%,-50%) scale(.1)}
.ftg-kw>span{display:flex;flex-direction:column;align-items:center;gap:6px;white-space:nowrap;color:#fff;text-shadow:0 4px 24px rgba(0,0,0,.5)}
.ftg-kw b{font-family:var(--en);font-weight:800;font-size:clamp(28px,4.2vw,68px);line-height:1;letter-spacing:-.01em}
.ftg-kw small{background:var(--accent);font-weight:900;font-size:clamp(11px,1vw,15px);letter-spacing:.12em;padding:4px 10px;text-shadow:none}
.ftg-kw--odd b,.ftg-kw--2 b,.ftg-kw--4 b,.ftg-kw--6 b{color:transparent;-webkit-text-stroke:1.5px #fff;text-shadow:none}
.ftg-kw--1{--x:-30vw;--y:-25vh;--r:-6deg}
.ftg-kw--2{--x:0vw;--y:-32vh;--r:3deg}
.ftg-kw--3{--x:30vw;--y:-23vh;--r:6deg}
.ftg-kw--4{--x:-31vw;--y:21vh;--r:5deg}
.ftg-kw--5{--x:31vw;--y:22vh;--r:-5deg}
.ftg-kw--6{--x:0vw;--y:32vh;--r:-3deg}
.ftg-kwburst__ring{position:absolute;left:50%;top:55%;width:18vmin;height:18vmin;margin:-9vmin 0 0 -9vmin;border-radius:50%;border:3px solid var(--accent);opacity:0}
@keyframes ftgKw{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(0deg)}
  8%{opacity:1}
  26%{opacity:1;transform:translate(calc(-50% + var(--x)*1.12),calc(-50% + var(--y)*1.12)) scale(1.15) rotate(var(--r))}
  36%{transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1) rotate(var(--r))}
  72%{opacity:1;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1) rotate(var(--r));filter:blur(0)}
  100%{opacity:0;transform:translate(calc(-50% + var(--x)*1.9),calc(-50% + var(--y)*1.9)) scale(1.5) rotate(var(--r));filter:blur(6px)}
}
@keyframes ftgKwRing{0%{opacity:0;transform:scale(.4)}10%{opacity:1}40%{opacity:0;transform:scale(4)}100%{opacity:0;transform:scale(4)}}
@supports (animation-timeline: view()){
  .ftg-motion .ftg-kw{animation:ftgKw linear both;animation-timeline:--ftgpin;animation-range:contain 0% contain 44%}
  .ftg-motion .ftg-kw--2{animation-range:contain 2% contain 45%}
  .ftg-motion .ftg-kw--3{animation-range:contain 4% contain 46%}
  .ftg-motion .ftg-kw--4{animation-range:contain 6% contain 47%}
  .ftg-motion .ftg-kw--5{animation-range:contain 8% contain 48%}
  .ftg-motion .ftg-kw--6{animation-range:contain 10% contain 49%}
  .ftg-motion .ftg-kwburst__ring{animation:ftgKwRing linear both;animation-timeline:--ftgpin;animation-range:contain 0% contain 40%}
}
.ftg-io .ftg-pin.is-in .ftg-kw{animation:ftgKw 3.8s cubic-bezier(.2,.9,.3,1) both}
.ftg-io .ftg-pin.is-in .ftg-kw--2{animation-delay:.1s}
.ftg-io .ftg-pin.is-in .ftg-kw--3{animation-delay:.2s}
.ftg-io .ftg-pin.is-in .ftg-kw--4{animation-delay:.3s}
.ftg-io .ftg-pin.is-in .ftg-kw--5{animation-delay:.4s}
.ftg-io .ftg-pin.is-in .ftg-kw--6{animation-delay:.5s}
.ftg-io .ftg-pin.is-in .ftg-kwburst__ring{animation:ftgKwRing 3.8s ease-out both}
@media (max-width:640px){
  .ftg-kw b{font-size:24px}
  .ftg-kw small{font-size:10px}
  .ftg-kw--1{--x:-24vw;--y:-28vh}
  .ftg-kw--2{--x:20vw;--y:-20vh}
  .ftg-kw--3{--x:-20vw;--y:-12vh}
  .ftg-kw--4{--x:22vw;--y:14vh}
  .ftg-kw--5{--x:-22vw;--y:22vh}
  .ftg-kw--6{--x:16vw;--y:30vh}
}
@media (prefers-reduced-motion:reduce){.ftg-kwburst{display:none}}

/* ===== v1.2.4 : 円を小さな点からスタート ===== */
@keyframes ftgIris{0%{clip-path:circle(1.2% at 50% 55%)}12%{clip-path:circle(3% at 50% 55%)}100%{clip-path:circle(85% at 50% 50%)}}
.ftg-kwburst__ring{width:6vmin;height:6vmin;margin:-3vmin 0 0 -3vmin}
@keyframes ftgKwRing{0%{opacity:0;transform:scale(.3)}10%{opacity:1}45%{opacity:0;transform:scale(9)}100%{opacity:0;transform:scale(9)}}

/* ===== v1.2.5 : 縦に流れるアウトライン文字を全ページの背景に ===== */
.ftg-bgtext{position:fixed;right:1.5%;top:0;bottom:0;z-index:0;overflow:hidden;pointer-events:none;font-family:var(--en);font-weight:800;font-size:clamp(90px,10vw,150px);line-height:1;color:transparent;-webkit-text-stroke:1.5px #CFCFCD;writing-mode:vertical-rl;white-space:nowrap}
.ftg-bgtext__track{animation:ftgLoopY 60s linear infinite}
.ftg-bgtext__track span{display:block}
.ftg-main>*:not(.ftg-bgtext){position:relative;z-index:1}
@media (max-width:760px){.ftg-bgtext{font-size:72px;right:0;-webkit-text-stroke:1px #D6D6D4}}
@media (prefers-reduced-motion:reduce){.ftg-bgtext__track{animation:none}}


/* ===== v1.2.7 : コラージュ＋ランダムに写真が下から上へ浮かび上がる（?hero=flow） ===== */
.ftg-hero{--H:clamp(720px,64vw,940px)}
.ftg-rise-photos{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ftg-rp{position:absolute;top:100%;margin:0;border-radius:10px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.14);animation:ftgRiseUp var(--dur) linear var(--del) infinite;will-change:transform}
.ftg-rp img{width:100%;height:100%;object-fit:cover;display:block}
.ftg-rp:nth-child(3n) img{filter:grayscale(1)}
.ftg-rp:nth-child(4n+1){opacity:.85}
@keyframes ftgRiseUp{from{transform:translateY(0) rotate(var(--rot))}to{transform:translateY(calc(-1 * var(--H) - 140%)) rotate(calc(var(--rot) * -1))}}
.ftg-hero--flow .ftg-hero__p{z-index:1}
.ftg-hero--flow .ftg-hero__copy{z-index:3}
@media (max-width:760px){.ftg-hero{--H:900px}.ftg-rp{width:calc(var(--w,1) * 22%)!important}}
@media (prefers-reduced-motion:reduce){.ftg-rise-photos{display:none}}
.ftg-rp{border-radius:0}

/* ===== v1.3.0 : カラフル版（?color=pop） 赤・緑・青・黄 ===== */
.ftg-pop{--c-red:#D7261E;--c-green:#00A85A;--c-blue:#1D5BFF;--c-yellow:#FFC400}
/* トップの4キーワード：1赤 2緑 3青 4黄 */
.ftg-pop .ftg-cyc>span:nth-child(2){--accent:var(--c-green)}
.ftg-pop .ftg-cyc>span:nth-child(3){--accent:var(--c-blue)}
.ftg-pop .ftg-cyc>span:nth-child(4){--accent:var(--c-yellow)}
.ftg-pop .ftg-cyc>span:nth-child(4) .ftg-accent{color:#111}
.ftg-pop .ftg-cycnum span:nth-child(2),.ftg-pop .ftg-bars .ftg-bar:nth-child(2){--accent:var(--c-green)}
.ftg-pop .ftg-cycnum span:nth-child(3),.ftg-pop .ftg-bars .ftg-bar:nth-child(3){--accent:var(--c-blue)}
.ftg-pop .ftg-cycnum span:nth-child(4),.ftg-pop .ftg-bars .ftg-bar:nth-child(4){--accent:var(--c-yellow)}
.ftg-pop .ftg-hero .ftg-ball--dot{background:var(--c-yellow)}
/* 黒帯のドット */
.ftg-pop .ftg-band .ftg-accent:nth-of-type(4n+2){color:var(--c-green)}
.ftg-pop .ftg-band .ftg-accent:nth-of-type(4n+3){color:var(--c-blue)}
.ftg-pop .ftg-band .ftg-accent:nth-of-type(4n){color:var(--c-yellow)}
/* 段取りキーワード */
.ftg-pop .ftg-kw--2,.ftg-pop .ftg-kw--6{--accent:var(--c-green)}
.ftg-pop .ftg-kw--3{--accent:var(--c-blue)}
.ftg-pop .ftg-kw--4{--accent:var(--c-yellow)}
.ftg-pop .ftg-kw--4 small{color:#111}
.ftg-pop .ftg-kw--5{--accent:var(--c-blue)}
/* サービス：01緑 02黄 03青 04赤 */
.ftg-pop .ftg-scard:nth-child(1){--accent:var(--c-green)}
.ftg-pop .ftg-scard:nth-child(2){--accent:var(--c-yellow)}
.ftg-pop .ftg-scard:nth-child(3){--accent:var(--c-blue)}
/* 赤い帯：赤→青→緑と色が移り変わる */
@property --bt{syntax:'<color>';inherits:false;initial-value:#D7261E}
.ftg-pop .ftg-bigtext{--bt:var(--c-red);background:var(--bt);animation:ftgBtColor 12s ease-in-out infinite}
@keyframes ftgBtColor{0%,100%{--bt:#D7261E}33%{--bt:#1D5BFF}66%{--bt:#00A85A}}
/* 実績カードのラベル */
.ftg-pop .ftg-card:nth-child(4n+2){--accent:var(--c-green)}
.ftg-pop .ftg-card:nth-child(4n+3){--accent:var(--c-blue)}
.ftg-pop .ftg-card:nth-child(4n){--accent:var(--c-yellow)}
.ftg-pop .ftg-card:nth-child(4n) .ftg-card__chip{color:#111}
/* CONTACTの4ワード */
.ftg-pop .ftg-cburst__w--2{--accent:var(--c-green)}
.ftg-pop .ftg-cburst__w--3{--accent:var(--c-blue)}
.ftg-pop .ftg-cburst__w--4{--accent:var(--c-yellow)}
.ftg-pop .ftg-cburst__w--4 em{color:#111}
.ftg-pop .ftg-cburst__ring{border-color:var(--c-yellow)}
/* 見出しの下線とドットも順番に色替え */
.ftg-pop #service .ftg-heading{--accent:var(--c-blue)}
.ftg-pop #works .ftg-heading{--accent:var(--c-green)}
.ftg-pop .ftg-clients{--accent:var(--c-yellow)}


/* ===== v1.3.2 : カラフル感は中間（やりすぎない） ===== */
.ftg-rp--blk{display:none}
.ftg-pop .ftg-rp--blk{display:block;background:var(--bc);box-shadow:none;aspect-ratio:1;max-width:64px;opacity:.9}
.ftg-pop .ftg-rp--blk:nth-of-type(2n){display:none}
.ftg-pop .ftg-rp--ci{border-radius:50%}
.ftg-pop .ftg-rp--bar{aspect-ratio:5/1;max-width:120px}
/* 4色の細いライン：ヘッダー下とフッター上だけ */
.ftg-pop .ftg-header::after,.ftg-pop .ftg-footer__inner::before{content:"";position:absolute;left:24px;right:24px;height:4px;background:linear-gradient(90deg,var(--c-red) 0 25%,var(--c-green) 25% 50%,var(--c-blue) 50% 75%,var(--c-yellow) 75%);border-radius:2px}
.ftg-pop .ftg-header::after{bottom:-1px}
.ftg-pop .ftg-footer__inner{position:relative}
.ftg-pop .ftg-footer__inner::before{top:0}
/* 取引先：チップの頭に色の点だけ */
.ftg-pop .ftg-clients__chip::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:10px;vertical-align:middle;background:var(--c-red)}
.ftg-pop .ftg-clients__chip:nth-child(4n+2)::before{background:var(--c-green)}
.ftg-pop .ftg-clients__chip:nth-child(4n+3)::before{background:var(--c-blue)}
.ftg-pop .ftg-clients__chip:nth-child(4n)::before{background:var(--c-yellow)}
/* 黄色の文字は読みにくいので濃い黄土色に */
.ftg-pop .ftg-card:nth-child(4n) .ftg-card__date{color:#B88A00}

/* ===== v1.3.5 : トップの実績は小さめ 5列×2段 ===== */
.ftg-grid--top{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.4vw,22px)}
.ftg-grid--top .ftg-card__title{font-size:clamp(13px,1.05vw,16px);line-height:1.55}
.ftg-grid--top .ftg-card__date{font-size:12px}
.ftg-grid--top .ftg-card__chip{font-size:10px;padding:4px 10px;left:10px;top:10px}
.ftg-grid--top .ftg-card__body{gap:8px}
.ftg-grid--top .ftg-arrow{transform:scale(.8);transform-origin:right top}
@media (max-width:1100px){.ftg-grid--top{grid-template-columns:repeat(3,minmax(0,1fr))}.ftg-grid--top .ftg-card:nth-child(n+10){display:none}}
@media (max-width:640px){.ftg-grid--top{grid-template-columns:repeat(2,minmax(0,1fr))}.ftg-grid--top .ftg-card:nth-child(n+10){display:flex}}

/* ===== v1.3.6 : フッター「LET'S DO THIS!」が弾けて組み上がる ===== */
.ftg-lets{padding:clamp(40px,6vw,96px) 0 clamp(32px,4vw,56px);margin-bottom:clamp(32px,4vw,56px);border-bottom:1px solid #2E2E2E;overflow:visible}
.ftg-lets__en{margin:0;font-family:var(--en);font-weight:800;font-size:clamp(56px,11.5vw,190px);line-height:.95;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.ftg-lets__c{display:inline-block}
.ftg-lets__sp{display:inline-block;width:.28em}
.ftg-lets__c--red{color:var(--c-red,#D7261E)}
.ftg-lets__c--green{color:var(--c-green,#00A85A)}
.ftg-lets__c--blue{color:var(--c-blue,#1D5BFF)}
.ftg-lets__c--yellow{color:var(--c-yellow,#FFC400)}
.ftg-lets__ja{margin:18px 0 0;font-weight:900;font-size:clamp(16px,1.6vw,24px);letter-spacing:.2em;color:#BDBDBD}
.ftg-js .ftg-lets__c{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.4)}
.ftg-js .ftg-lets__ja{opacity:0;transform:translateY(20px)}
.ftg-js .ftg-footer__top,.ftg-js .ftg-footer__bottom{opacity:0;transform:translateY(30px)}
.ftg-js .ftg-footer__inner.is-in .ftg-lets__c{animation:ftgLetsIn 1s cubic-bezier(.2,1.4,.35,1) calc(var(--i) * .05s) forwards,ftgLetsBob 3.2s ease-in-out calc(1.6s + var(--i) * .12s) infinite}
.ftg-js .ftg-footer__inner.is-in .ftg-lets__ja{transition:opacity .8s 1.1s,transform .8s 1.1s;opacity:1;transform:none}
.ftg-js .ftg-footer__inner.is-in .ftg-footer__top{transition:opacity .9s 1.4s,transform .9s 1.4s;opacity:1;transform:none}
.ftg-js .ftg-footer__inner.is-in .ftg-footer__bottom{transition:opacity .9s 1.6s,transform .9s 1.6s;opacity:1;transform:none}
@keyframes ftgLetsIn{0%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.4)}60%{opacity:1}80%{transform:translate(0,0) rotate(0) scale(1.12)}100%{opacity:1;transform:none}}
@keyframes ftgLetsBob{0%,100%{transform:none}50%{transform:translateY(-6px)}}
.ftg-lets__en:hover .ftg-lets__c{animation-play-state:running}
@media (max-width:640px){.ftg-lets__en{font-size:13.5vw}}
@media (prefers-reduced-motion:reduce){.ftg-js .ftg-lets__c,.ftg-js .ftg-lets__ja,.ftg-js .ftg-footer__top,.ftg-js .ftg-footer__bottom{opacity:1;transform:none;animation:none}}

/* ===== v1.3.7 : 段取りキーワードのラベル色を重複させない ===== */
.ftg-pop .ftg-kw--1{--accent:var(--c-red)}
.ftg-pop .ftg-kw--2{--accent:var(--c-green)}
.ftg-pop .ftg-kw--3{--accent:var(--c-blue)}
.ftg-pop .ftg-kw--4{--accent:var(--c-yellow)}
.ftg-pop .ftg-kw--5{--accent:var(--c-green)}
.ftg-pop .ftg-kw--6{--accent:var(--c-red)}

/* ===== v1.3.8 : LET'S DO THIS! が出て→弾けて消えて→フッター情報が出る ===== */
.ftg-footer__inner{position:relative}
.ftg-lets{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:0 clamp(24px,5vw,72px);margin:0;border:0;pointer-events:none}
.ftg-js .ftg-footer__inner.is-in .ftg-lets__c{animation:ftgLetsIn 1s cubic-bezier(.2,1.4,.35,1) calc(var(--i) * .05s) forwards,ftgLetsOut .7s cubic-bezier(.6,0,.8,.4) calc(2.9s + var(--i) * .035s) forwards}
.ftg-js .ftg-footer__inner.is-in .ftg-lets__ja{animation:ftgLetsJa 2.6s ease .9s forwards;transition:none;opacity:0}
@keyframes ftgLetsOut{0%{opacity:1;transform:none}100%{opacity:0;transform:translate(calc(var(--x) * -.8),calc(var(--y) * -.8)) rotate(calc(var(--r) * -1)) scale(.3)}}
@keyframes ftgLetsJa{0%{opacity:0;transform:translateY(20px)}20%,75%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-10px)}}
.ftg-js .ftg-footer__inner.is-in .ftg-footer__top{transition:opacity .9s 3.5s,transform .9s 3.5s}
.ftg-js .ftg-footer__inner.is-in .ftg-footer__bottom{transition:opacity .9s 3.7s,transform .9s 3.7s}
html:not(.ftg-js) .ftg-lets{display:none}
@media (prefers-reduced-motion:reduce){.ftg-lets{display:none}}

/* ===== v1.3.9 : LET'S DO THIS! を中央に ===== */
.ftg-lets{padding:0;align-items:center;text-align:center}
.ftg-lets__en{font-size:clamp(44px,9.2vw,160px);max-width:100%}
.ftg-lets__ja{text-align:center;padding-left:.2em}
@media (max-width:640px){.ftg-lets__en{font-size:11vw}}
.ftg-lets__en{position:relative;left:-.125em}

/* ===== v1.4.1 : 検索対策のh1（見た目は今までのラベルと同じ） ===== */
.ftg-hero__h1{margin:0;font-size:13px;font-weight:700;line-height:1.5}
