/* 株式会社楽一番 トップページ
   色・余白は :root の変数で一括変更できます */
:root{--brand:#aa263b;--brand2:#d8455d;--ink:#111827;--text:#2b3340;--muted:#667085;--soft:#f6f4f5;--line:#e7e2e4;--navy:#0c1424;color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(72px + env(safe-area-inset-top,0px))}
body{margin:0;background:#fff;color:var(--text);font:16px/1.85 "Noto Sans JP","Hiragino Sans","Yu Gothic",system-ui,sans-serif}
a{color:inherit}
.w{max-width:1160px;margin:0 auto;padding:0 5%}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:transparent;z-index:41;transition:background .25s}
body.scrolled::before{background:#fffffff2}
header{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:40;transition:background .25s}
header{background:transparent;border-bottom:1px solid transparent;transition:background .25s,border-color .25s}
header.s{background:#fffffff2;backdrop-filter:blur(8px);border-bottom-color:var(--line)}
header .w{display:flex;align-items:center;justify-content:space-between;height:72px;max-width:1260px}
.logo{display:flex;align-items:center;color:#fff;text-decoration:none;transition:color .25s}
header.s .logo{color:var(--brand)}
.logo svg{display:block;max-height:44px}
nav{display:flex;gap:22px;align-items:center;font-size:.8125rem;letter-spacing:.06em}
nav a{color:#fff;text-decoration:none}
header.s nav a{color:var(--ink)}
header.s nav a.c{color:#fff}
nav a:hover{opacity:.75}
header.s nav a:hover{color:var(--brand);opacity:1}
header.s nav a.c:hover{color:#fff;opacity:.9}
nav a.c:hover{color:#fff;opacity:.9}
nav .c{background:var(--brand);color:#fff;padding:7px 18px;border-radius:999px;font-weight:700}
.lg{position:relative}.lg summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;color:#fff;padding:6px 12px;border:1px solid #ffffff77;border-radius:999px}
header.s .lg summary{color:var(--ink);border-color:var(--line)}.lg summary::-webkit-details-marker{display:none}.lg .ic{width:16px;height:16px}
.lg ul{position:absolute;right:0;top:calc(100% + 8px);list-style:none;margin:0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #0c142420;min-width:150px;z-index:5}
.lg li a{display:block;padding:8px 12px;border-radius:8px;color:var(--ink)}.lg li a:hover{background:var(--soft)}
.mb{display:none;background:none;border:1px solid #ffffff88;color:#fff;padding:7px 14px;border-radius:6px;font:inherit;font-size:.8125rem}
header.s .mb{border-color:var(--line);color:var(--ink)}
/* hero */
.hero{background:url("../videos/herovideo6.jpg") center/cover no-repeat,linear-gradient(180deg,#0a1220,#0c1424);color:#fff;padding:150px 0 120px;overflow:hidden}
.hero .w{display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:center}
.eb{font-size:.75rem;letter-spacing:.24em;color:#f4a3b1;margin:0 0 20px;display:flex;align-items:center;gap:12px}
.eb::before{content:"";width:36px;height:1px;background:#f4a3b1}
h1{font-size:clamp(2.2rem,5.6vw,4.2rem);line-height:1.18;margin:0 0 22px;font-weight:800;letter-spacing:-.01em}
h1 em{font-style:normal;background:linear-gradient(90deg,#f19aa9,#fff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.l{max-width:520px;color:#e6eaf1;margin:0 0 12px}
.hero .zh{font-size:.875rem;color:#8e99ac;margin:0 0 30px}
.btn{display:inline-block;padding:14px 30px;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9375rem}
.btn.p{background:var(--brand);color:#fff}
.btn.g{border:1px solid #ffffff88;color:#fff;margin-left:10px}
.hero{position:relative;min-height:600px;display:flex;align-items:center;text-align:center}
.hero .w{position:relative;z-index:1;display:block;width:100%}
.hv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.hv.on{opacity:1}
.ov{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.hero .eb{justify-content:center}
.rt{display:grid;font-size:clamp(1.9rem,5vw,3.6rem);min-height:2.5em;margin:0 0 18px;align-items:center}
.rt span{grid-area:1/1;opacity:0;transition:opacity 1.1s ease}
.rt span.on{opacity:1}
.hero p.l{margin:0 auto 28px;text-align:center}
.hero .btn.g{margin-left:10px}
.globe{width:100%;height:auto;display:block}
.arc{stroke-dasharray:6 7;animation:fl 2.4s linear infinite}
@keyframes fl{to{stroke-dashoffset:-26}}
.stats{margin-top:-56px;position:relative;z-index:2}
.sg{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-radius:16px;box-shadow:0 14px 40px #0c14242b;overflow:hidden}
.sg div{padding:26px 12px;text-align:center;border-right:1px solid var(--line)}
.sg div:last-child{border:0}
.sg b{display:block;font-size:clamp(1.6rem,3.2vw,2.3rem);line-height:1.2;color:var(--brand)}
.sg b small{font-size:.5em;margin-left:2px}
.sg span{font-size:.8125rem;color:var(--muted)}
section{padding:96px 0}
.k{font-size:.75rem;letter-spacing:.26em;color:var(--brand);font-weight:700;margin:0 0 10px}
h2{font-size:clamp(1.6rem,3.8vw,2.5rem);line-height:1.4;margin:0 0 22px;color:var(--ink);letter-spacing:-.005em}
.soft{background:var(--soft)}
/* concept */
.cn{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.q{font-size:1.0625rem;color:var(--muted);margin:0}
.bento{display:grid;gap:14px}
.bi{display:grid;grid-template-columns:52px 1fr;gap:16px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}
.bi i{width:52px;height:52px;border-radius:14px;background:var(--brand);color:#fff;display:grid;place-items:center;font-style:normal;font-weight:800}
.bi h3{margin:0 0 4px;font-size:1.0625rem;line-height:1.5;color:var(--ink)}
.bi p{margin:0;font-size:.9rem;color:var(--muted)}
/* flow */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:40px;position:relative}
.fs{text-align:center;padding:0 12px;position:relative}
.fs .d{width:76px;height:76px;margin:0 auto 14px;border-radius:50%;background:#fff;border:2px solid var(--brand);display:grid;place-items:center;color:var(--brand);font-weight:800;position:relative;z-index:1}
.fs:not(:last-child)::after{content:"";position:absolute;top:38px;left:calc(50% + 44px);right:calc(-50% + 44px);border-top:2px dashed #cfa0aa}
.fs b{display:block;color:var(--ink)}
.fs span{font-size:.8125rem;color:var(--muted);display:block;line-height:1.7;margin-top:2px}
/* services */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:34px}
.sc{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.sc:hover{transform:translateY(-5px);box-shadow:0 18px 36px #0c142420}
.sc img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--g)}
.sc .t{padding:20px 22px 8px;flex:1}
.sc small{font-size:.6875rem;letter-spacing:.18em;color:var(--brand);font-weight:700}
.sc h3{margin:2px 0 6px;font-size:1.0625rem;line-height:1.5;color:var(--ink)}
.sc p{margin:0;font-size:.875rem;color:var(--muted);line-height:1.75}
.sc .go{padding:6px 22px 18px;font-size:.8125rem;font-weight:700;color:var(--brand)}
/* strengths */
.why{display:grid;grid-template-columns:.6fr 1.4fr;gap:24px;align-items:stretch}
.wp{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:40px 30px;border-radius:22px;background:linear-gradient(150deg,#aa263b,#5e1220);color:#fff}
.wp::after{content:"6";position:absolute;right:-6px;bottom:-70px;font-size:15rem;font-weight:800;line-height:1;color:#ffffff14}
.wp .k{color:#ffc1cb}.wp h2{color:#fff;margin-bottom:14px;font-size:clamp(1.5rem,2.4vw,2.1rem)}.wp p:last-child{margin:0;color:#ffe3e8;font-size:.9375rem;position:relative;z-index:1}
.sg6{display:grid;grid-template-columns:1fr 1fr;gap:14px}
/* history */
.hs{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 5% 24px;margin:30px -5% 0}
.hc{flex:0 0 250px;scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.hc time{font-weight:800;color:var(--brand);font-size:1.25rem;display:block}
.hc p{margin:6px 0 0;font-size:.875rem;color:var(--text);line-height:1.7}
/* partners */
.pg{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin-top:30px}
.pg span{flex:0 0 calc(20% - 10px);background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 10px;text-align:center;font-weight:800;font-size:.9375rem;color:#4a5262;display:grid;place-items:center;min-height:88px}
.pg span img{display:block;max-width:100%;width:auto;object-fit:contain}
.pg span:nth-child(1){color:#e60012}.pg span:nth-child(2){color:#111}.pg span:nth-child(3){color:#bf0000}.pg span:nth-child(4){color:#c4161c}.pg span:nth-child(5){color:#0a4da2}.pg span:nth-child(6){color:#d6001c}.pg span:nth-child(7){color:#005bac}.pg span:nth-child(8){color:#ff4400}.pg span:nth-child(9){color:#d7000f}.pg span:nth-child(10),.pg span:nth-child(11){color:#111}
/* news */
.nw{display:grid;grid-template-columns:1.3fr 1fr;gap:48px}
.tabs{display:flex;gap:6px;margin-bottom:6px}
.tabs button{border:0;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 16px;font:inherit;font-size:.8125rem;cursor:pointer;color:var(--muted)}
.tabs button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.ls{list-style:none;margin:0;padding:0}
.ls li{display:grid;grid-template-columns:82px 1fr;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.ls time{color:var(--muted);font-size:.8125rem;padding-top:2px}
.ls a{text-decoration:none}.ls a:hover{color:var(--brand)}
.pane[hidden]{display:none}
/* message + company */
.msg{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:center}
.ph{aspect-ratio:1;border-radius:20px;background:linear-gradient(145deg,#fbe3e8,#f1b9c4);display:grid;place-items:center}
.ph img{width:62%}
.msg blockquote{margin:0;font-size:1.0625rem;color:var(--text)}
.msg blockquote p{margin:0 0 12px}
.msg cite{display:block;font-style:normal;font-weight:700;color:var(--ink)}
table{border-collapse:collapse;width:100%;font-size:.9rem;margin-top:10px}
th,td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{width:150px;color:var(--muted);font-weight:600}
.note{font-size:.8125rem;color:var(--muted)}
.ct{background:linear-gradient(120deg,#aa263b,#5e1220);color:#fff;text-align:center;padding:88px 0}
.ct h2{color:#fff}
.ct .k{color:#ffc1cb}
.fmw{max-width:720px;margin:34px auto 0;text-align:left;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 8px 28px #0c14241a;color:var(--text)}
.ct p{max-width:640px;margin:0 auto 10px}
footer{background:var(--soft);border-top:1px solid var(--line);color:var(--muted);font-size:.8125rem;padding:34px 0}
footer .w{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between}
footer a{text-decoration:none;margin-right:16px}
@media(max-width:960px){.hero .w,.cn,.nw,.msg{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.sg6{grid-template-columns:1fr 1fr}.why{grid-template-columns:1fr}.pg span{flex-basis:calc(33.333% - 8px)}.msg .ph{max-width:260px}}
/* ヘッダーのメニュー：1120px以下で「メニュー＋」に切り替え */
@media(max-width:1120px){
.mb{display:block}
nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;background:#fffffffa;border-bottom:1px solid var(--line);padding:6px 5% 16px}
.lg summary{color:var(--ink);border:0;padding:12px 0;border-bottom:1px solid var(--line);border-radius:0}.lg ul{position:static;box-shadow:none;border:0;padding:0 0 0 8px;min-width:0}
nav.o{display:flex}
nav a{padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink)}
nav .c{text-align:center;margin-top:12px;border:0}
}
@media(max-width:760px){
.hero{padding:112px 0 96px}
.btn.g{margin:12px 0 0}
section{padding:64px 0}
.sg{grid-template-columns:1fr 1fr}.sg div{border-bottom:1px solid var(--line)}.sg div:nth-child(5){grid-column:1/-1;border-bottom:0}
.cards,.sg6{grid-template-columns:1fr}
.flow{grid-template-columns:1fr 1fr;row-gap:30px}.fs::after{display:none!important}
.pg span{flex-basis:calc(50% - 6px)}
.ls li{grid-template-columns:1fr;gap:0}
th{width:96px}
}
@media(prefers-reduced-motion:reduce){.rt span,.hv{transition:none}html{scroll-behavior:auto}.arc{animation:none}.sc{transition:none}}

/* 簡体字は専用フォントで描画し、日本語とウェイト・字形を揃える */
:lang(zh-Hans){font-family:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
.ic{width:26px;height:26px;display:block}
.bi i{color:#fff}
.fs .d .ic{width:32px;height:32px}
:lang(zh-Hant){font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}
.sg6 div{display:grid;grid-template-columns:46px 1fr;grid-template-rows:1fr auto auto 1fr;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px}
.sg6 em{grid-column:1;grid-row:1/5;display:grid;place-items:center;background:#fde6ea;color:var(--brand);font-style:normal;font-weight:800;font-size:.9375rem;letter-spacing:.02em}
.sg6 b{grid-column:2;grid-row:2;padding:22px 18px 4px 20px;font-size:1.0625rem;line-height:1.5;color:var(--ink)}
.sg6 span{grid-column:2;grid-row:3;padding:0 18px 22px 20px;font-size:.875rem;line-height:1.8;color:var(--text)}
@media(max-width:760px){.sg6 div{grid-template-columns:42px 1fr}}

/* ---- 動き：ヒーロー表示・スクロールイン（JSが .rv を付与。JS無効時は通常表示） ---- */
@keyframes hu{from{opacity:0;translate:0 22px}to{opacity:1;translate:0 0}}
.hero .w>*{animation:hu .9s cubic-bezier(.2,.7,.2,1) both}
.hero .w>:nth-child(2){animation-delay:.12s}
.hero .w>:nth-child(3){animation-delay:.24s}
.hero .w>:nth-child(4){animation-delay:.36s}
.rv{opacity:0;translate:0 26px;transition:opacity .7s ease var(--d,0s),translate .7s cubic-bezier(.2,.7,.2,1) var(--d,0s)}
.rv.in{opacity:1;translate:0 0}
.sc.rv{transition:opacity .7s ease var(--d,0s),translate .7s cubic-bezier(.2,.7,.2,1) var(--d,0s),transform .25s,box-shadow .25s}
@media(prefers-reduced-motion:reduce){.hero .w>*{animation:none}.rv{opacity:1;translate:none;transition:none}}

/* ---- ACCESS（地図と写真） ---- */
.ac{font-size:1.0625rem;margin:0 0 24px}
.ac span{display:block;font-size:.875rem;color:var(--muted)}
.mp{height:380px;border-radius:18px;overflow:hidden;background:#e9e5e7;border:1px solid var(--line)}
.mp iframe{display:block;width:100%;height:100%;border:0}
.mpn{height:100%;display:grid;place-content:center;gap:6px;text-align:center;padding:20px;color:var(--muted);font-size:.875rem}
.gmap{font-size:.8125rem;margin:10px 0 0;text-align:right}.gmap a{color:var(--brand)}
.gal{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:14px;margin-top:36px}
.gp{flex:0 0 calc(25% - 10.5px);aspect-ratio:3/2;overflow:hidden;border:0;padding:0;border-radius:12px;background:#e9e5e7;cursor:zoom-in;display:block}
.gp img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.gp:hover img{transform:scale(1.05)}
@media(max-width:960px){.gp{flex-basis:calc(33.333% - 9.4px)}}
@media(max-width:760px){.mp{height:280px}.gal{gap:10px}.gp{flex-basis:calc(50% - 5px)}}
@media(prefers-reduced-motion:reduce){.gp img{transition:none}}
/* ---- 写真の拡大表示（クリックで開き、もう一度クリックで閉じる） ---- */
.lb{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:calc(4vw + env(safe-area-inset-top,0px)) 4vw calc(4vw + env(safe-area-inset-bottom,0px));background:rgba(10,14,22,.9);cursor:zoom-out;opacity:0;transition:opacity .25s ease}
.lb[hidden]{display:none}
.lb.open{opacity:1}
.lb img{display:block;max-width:min(92vw,1100px);max-height:86vh;width:auto;height:auto;border-radius:10px;transform:scale(.96);transition:transform .25s ease}
.lb.open img{transform:none}
.lbx{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:14px;width:44px;height:44px;border:0;border-radius:50%;background:#ffffff26;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
@media(prefers-reduced-motion:reduce){.lb,.lb img{transition:none}}
.btns{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.btns .btn{margin:0!important}.hero .btns{justify-content:center}

/* サービスカードが列数で割り切れないとき：最後の1枚を横長にして空きを作らない */
@media(min-width:961px){.cards .sc:last-child:nth-child(3n+1){grid-column:1/-1;flex-direction:row;align-items:stretch}.cards .sc:last-child:nth-child(3n+1) img{width:40%;flex:none;aspect-ratio:auto;height:100%;min-height:260px}.cards .sc:last-child:nth-child(3n+1) .t{padding:32px 34px 8px;align-self:center}.cards .sc:last-child:nth-child(3n+1) .go{position:absolute;right:30px;bottom:24px}.cards .sc{position:relative}}
@media(min-width:761px) and (max-width:960px){.cards .sc:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:1120px){nav{background:#fff;box-shadow:0 18px 30px -18px #0c142440}}

/* ---- サービスカード：横型・2列（PC）／横型・1列（タブレット）／縦型（スマホ） ---- */
.cards{grid-template-columns:1fr 1fr;gap:20px}
.cards .sc,.cards .sc:last-child:nth-child(3n+1){grid-column:auto;display:grid;grid-template-columns:42% 1fr;grid-template-rows:1fr auto;flex-direction:initial;position:relative;min-height:200px}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:1/3;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover}
.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:22px 24px 4px;align-self:start}
.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{position:static;padding:4px 24px 20px;align-self:end}
.cards .sc h3{font-size:1.125rem}
.cards .sc p{font-size:.8125rem;line-height:1.7}
.cards .sc .go::after{content:"";display:inline-block}
.cards .sc img{transition:transform .5s ease}
.cards .sc:hover img{transform:scale(1.04)}
.cards .sc{overflow:hidden}
/* 奇数枚の最後は横幅いっぱい */
.cards .sc:last-child:nth-child(odd){grid-column:1/-1;grid-template-columns:calc(21% - 5px) 1fr}
@media(max-width:960px){.cards{grid-template-columns:1fr}.cards .sc,.cards .sc:last-child:nth-child(odd){grid-column:auto;grid-template-columns:40% 1fr}}
@media(max-width:560px){
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:1fr;grid-template-rows:auto 1fr auto}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:auto;height:auto;aspect-ratio:16/9}
}
@media(prefers-reduced-motion:reduce){.cards .sc img{transition:none}}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{height:0;min-height:100%}@media(max-width:560px){.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{height:auto;min-height:0}}.cards .sc{min-height:210px}
/* ---- サービスカード：横型・1列（画像は4:3固定） ---- */
.cards,.cards .sc:last-child:nth-child(odd){grid-template-columns:1fr}
.cards{gap:16px}
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-column:auto;grid-template-columns:240px 1fr auto;grid-template-rows:auto;align-items:center;min-height:0}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:auto;width:240px;height:auto;min-height:0;aspect-ratio:4/3;object-fit:cover}
.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:20px 28px;align-self:center}
.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:0 28px 0 0;align-self:center;white-space:nowrap}
.cards .sc h3{font-size:1.1875rem}
.cards .sc p{font-size:.875rem}
@media(max-width:760px){
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:132px 1fr;grid-template-rows:auto auto}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:1/3;width:132px;height:100%;aspect-ratio:auto;min-height:99px}
.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:14px 16px 2px;align-self:end}
.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:0 16px 14px;align-self:start}
.cards .sc h3{font-size:1rem}.cards .sc p{font-size:.8125rem;line-height:1.6}
}
@media(max-width:760px){.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{height:auto;min-height:0;aspect-ratio:4/3;align-self:center;margin-left:12px;border-radius:10px}.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:132px 1fr;padding:12px 0}.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:0 16px 2px}.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:0 16px}.cards .sc img{width:120px}}
@media(max-width:760px){.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:1fr;grid-template-rows:auto;padding:0}.cards .sc img,.cards .sc:last-child:nth-child(3n+1){}.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:auto;width:100%;height:auto;aspect-ratio:4/3;margin:0;border-radius:0}.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:18px 20px 4px;align-self:start}.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:4px 20px 18px}.cards .sc h3{font-size:1.0625rem}}
/* ホバー：カード自体は動かさない（下端で点滅するのを防ぐ）。影と枠色・画像のズームで反応 */
.sc:hover,.sc.rv.in:hover{transform:none}
.cards .sc:hover{box-shadow:0 18px 36px -14px #0c142433;border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
/* 中間幅（561〜960px）：縦型2列。奇数枚の最後は横型で全幅 */
@media(min-width:561px) and (max-width:960px){
.cards{grid-template-columns:1fr 1fr}
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;padding:0;align-items:stretch}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:auto;width:100%;height:auto;min-height:0;aspect-ratio:4/3;margin:0;border-radius:0}
.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:18px 20px 4px;align-self:start}
.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:4px 20px 18px;align-self:end}
.cards .sc h3{font-size:1.0625rem}.cards .sc p{font-size:.8125rem}
.cards .sc:last-child:nth-child(odd){grid-column:1/-1;grid-template-columns:calc(50% - 8px) 1fr;grid-template-rows:1fr auto}
.cards .sc:last-child:nth-child(odd) img{grid-row:1/3}
.cards .sc:last-child:nth-child(odd) .t{align-self:end;padding:20px 24px 4px}
.cards .sc:last-child:nth-child(odd) .go{align-self:start;padding:4px 24px 20px}
}
@media(max-width:560px){
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:1fr;grid-template-rows:auto;padding:0}
.cards .sc img,.cards .sc:last-child:nth-child(3n+1) img{grid-row:auto;width:100%;height:auto;aspect-ratio:4/3;margin:0;border-radius:0}
.cards .sc .t,.cards .sc:last-child:nth-child(3n+1) .t{padding:18px 20px 4px;align-self:start}
.cards .sc .go,.cards .sc:last-child:nth-child(3n+1) .go{padding:4px 20px 18px}
}
/* 761〜960px は上の2列指定が優先されるよう、横型1列の指定を 961px 以上に限定 */
@media(min-width:761px) and (max-width:960px){.cards .sc,.cards .sc:last-child:nth-child(3n+1){grid-template-columns:1fr}}
@media(min-width:761px) and (max-width:960px){.cards .sc:last-child:nth-child(odd){grid-template-columns:calc(50% - 8px) 1fr}}
/* 2列時：最後の1枚も他と同じ幅・縦型（右は空き） */
@media(min-width:561px) and (max-width:960px){
.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto 1fr auto}
.cards .sc:last-child:nth-child(odd) img{grid-row:auto}
.cards .sc:last-child:nth-child(odd) .t{align-self:start;padding:18px 20px 4px}
.cards .sc:last-child:nth-child(odd) .go{align-self:end;padding:4px 20px 18px}
}
/* サービスカード：アイコンを右下に大きく薄くあしらい、色味をほんのり */
.cards .sc{position:relative;isolation:isolate;background:linear-gradient(120deg,#fff 55%,color-mix(in srgb,var(--ic,#999) 9%,#fff))}
.cards .sc>*:not(.sic){position:relative;z-index:1}
.cards .sc .sic{position:absolute;z-index:0;right:-34px;bottom:-40px;width:180px;height:180px;aspect-ratio:1;opacity:.16;object-fit:contain;transition:transform .5s ease,opacity .3s;pointer-events:none}
.cards .sc:hover .sic{transform:rotate(-8deg) scale(1.06);opacity:.26}
.cards .sc .sic{grid-row:auto!important;min-height:0!important;border-radius:0!important;margin:0!important}
.cards .sc small{color:color-mix(in srgb,var(--ic,var(--brand)) 75%,#000)}
@media(max-width:960px){.cards .sc .sic{width:150px;height:150px;right:-28px;bottom:-32px}}
@media(prefers-reduced-motion:reduce){.cards .sc .sic{transition:none}}
/* アイコンは最後のカードでも同じ位置・大きさ（他の img 指定より優先） */
.cards .sc .sic.sic.sic{position:absolute;right:-34px;bottom:-40px;width:180px;height:180px;aspect-ratio:1;object-fit:contain;grid-row:auto;min-height:0;margin:0;border-radius:0}
@media(max-width:960px){.cards .sc .sic.sic.sic{width:150px;height:150px;right:-28px;bottom:-32px}}
.more{margin:16px 0 0;font-size:.875rem;font-weight:700}.more a{color:var(--brand);text-decoration:none}
/* コンテンツ幅：左右の余白を最大58pxに抑え、ウインドウを広げても中身が縮まないように */
.w{padding-left:min(5%,58px);padding-right:min(5%,58px)}
header .w{padding-left:min(5%,58px);padding-right:min(5%,58px)}
/* 拡大表示：最初から最終サイズで表示し、高解像度画像は同じ枠のまま差し替え（2段階に拡大しない） */
.lb img{width:min(92vw,1100px,calc(86vh * 1.5));height:auto;max-width:none;max-height:none;aspect-ratio:3/2;object-fit:contain}

/* ---- ファーストビュー：動画を画面いっぱい（100vh） ---- */
.hero{min-height:100vh;min-height:100svh;padding:96px 0 110px;box-sizing:border-box}
.stats{margin-top:0;padding-top:56px}
.scr{position:absolute;left:50%;bottom:28px;z-index:2;translate:-50% 0;display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff;text-decoration:none;font-size:.6875rem;letter-spacing:.24em;opacity:.85}
.scr::after{content:"";width:1px;height:48px;background:linear-gradient(#fff,#fff0);animation:scr 2s ease-in-out infinite;transform-origin:top}
@keyframes scr{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
@media(prefers-reduced-motion:reduce){.scr::after{animation:none}}
@media(max-width:760px){.hero{padding:96px 0 110px}.stats{padding-top:32px}}
/* ---- 事業紹介 ---- */
.biz{padding-top:72px}
.bz{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;align-items:start}
.bzh{position:sticky;top:110px}
.bzlead{margin:0;font-size:1.0625rem;font-weight:700;color:var(--muted);line-height:1.8}
.bzt p{margin:0 0 1.1em;line-height:2}
.bzt p:first-child{font-size:1.125rem;font-weight:700;color:var(--ink)}
.bzt strong{color:var(--brand)}
@media(max-width:960px){.bz{grid-template-columns:1fr;gap:16px}.bzh{position:static}}
@media(max-width:560px){.hero .eb{flex-wrap:wrap;text-align:center;letter-spacing:.16em;font-size:.625rem}.hero .eb .ebx{display:block;width:100%}.hero .eb::before{display:none}}
.dom{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:40px 0 8px}
.dm{position:relative;background:#fff;border:1px solid var(--line,#e6e8ee);border-radius:16px;padding:24px 22px 22px;display:flex;flex-direction:column;overflow:hidden}
.dm::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--brand)}
.dmh{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.dmi{width:48px;height:48px;border-radius:12px;background:var(--brand);color:#fff;display:grid;place-items:center}
.dmi svg{width:26px;height:26px}
.dmn{text-align:right;font-size:1.5rem;font-weight:800;color:#e3c4ca;line-height:1;letter-spacing:.02em}
.dmn small{display:block;margin-top:6px;font-size:.625rem;letter-spacing:.16em;color:var(--muted)}
.dm h3{margin:0 0 8px;font-size:1.0625rem;color:var(--ink)}
.dm p{margin:0 0 16px;font-size:.8125rem;line-height:1.85;color:var(--muted);flex:1}
.dmt{display:flex;flex-wrap:wrap;gap:6px}
.dmt a,.dmt span{font-size:.6875rem;font-weight:700;padding:4px 10px;border-radius:99px;border:1px solid var(--line,#e6e8ee);color:var(--ink);text-decoration:none;background:#f7f8fa;transition:border-color .2s,color .2s}
.dmt a:hover{border-color:var(--brand);color:var(--brand)}
@media(max-width:1080px){.dom{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.dom{grid-template-columns:1fr}}
/* 事業領域 6枚：PC 3列 */
.dom{grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:960px){.dom{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.dom{grid-template-columns:1fr}}
/* サービスカード：ページキャプチャ */
.cards .sc img.cap{object-position:50% 0;background:#f3f4f6}
.cards .sc img.cap{object-position:0 0}
.cards .sc img.cap[src*="cap-food"]{object-position:50% 0}
/* キャプチャ画像は 16:9（撮影比率 1.6〜1.8 に近く、切れが少ない） */
.cards .sc img.cap{aspect-ratio:16/9}
@media(min-width:961px){
.cards .sc,.cards .sc:last-child:nth-child(odd),.cards .sc:last-child:nth-child(3n+1){grid-template-columns:320px 1fr auto}
.cards .sc img.cap{width:320px}
}
/* ===== MOVIE（国際物流センター紹介動画） ===== */
.mvs{background:radial-gradient(80% 120% at 100% 0%,#1d2b4a 0%,transparent 60%),#0c1424;color:#fff;overflow:hidden}
.mvw{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:56px;align-items:center}
.mvs .k{color:#ff8a9c}
.mvh h2{color:#fff}
.mvh p{color:#c9d1e0;line-height:1.95;margin:0 0 1em}
.mvh .mven{margin-top:28px;padding-left:14px;border-left:3px solid var(--brand);font-size:.8125rem;letter-spacing:.06em;color:#8c98b0;line-height:1.7}
.mvp{position:relative;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 30px 60px -20px #000a,0 0 0 1px #ffffff14}
.mvp video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;object-fit:cover}
.mvb{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:0;padding:0;cursor:pointer;color:#fff;font:inherit;background:url("../videos/movie-poster.webp") center/cover no-repeat,#0c1424}
.mvb::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0c142400 40%,#0c1424aa);transition:background .3s}
.mvi{position:relative;width:88px;height:88px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 0 #aa263b99;animation:mvpulse 2.2s ease-out infinite;transition:transform .3s}
.mvi::after{content:"";position:absolute;left:36px;top:29px;border-style:solid;border-width:15px 0 15px 24px;border-color:transparent transparent transparent #fff}
.mvt{position:relative;font-size:.75rem;font-weight:700;letter-spacing:.24em}
.mvb:hover .mvi,.mvb:focus-visible .mvi{transform:scale(1.08)}
.mvb:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.mvp.on .mvb{display:none}
@keyframes mvpulse{0%{box-shadow:0 0 0 0 #aa263b99}100%{box-shadow:0 0 0 26px #aa263b00}}
@media(prefers-reduced-motion:reduce){.mvi{animation:none}}
@media(max-width:960px){.mvw{grid-template-columns:1fr;gap:28px}.mvh .mven{margin-top:16px}}
@media(max-width:560px){.mvp{border-radius:12px;margin:0 -2%}.mvi{width:68px;height:68px}.mvi::after{left:28px;top:22px;border-width:12px 0 12px 19px}}
.mvw{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
.mvh h2{font-size:clamp(1.5rem,2.5vw,2.125rem);line-height:1.5}
.mvb::before{background:#0c1424a6}
.mvb:hover::before{background:#0c142480}
.mvt{text-shadow:0 2px 8px #0008}
.mvh .nowrap{white-space:nowrap}
.mvw{grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr);gap:48px}
.mvh h2{font-size:clamp(1.5rem,2.1vw,2rem)}
@media(max-width:400px){.mvh .nowrap{white-space:normal}}
/* 読み込み直後は切り替えのフェードを止める（スタイル適用前の全見出し表示→フェードアウトで一瞬重なって見えるのを防ぐ） */
html:not(.rt-ready) .rt span{transition:none!important}
html:not(.rt-ready) .rt span:not(.on){visibility:hidden}
/* 事業領域が5枚のとき（飲食を一時非表示中）：PCは上3枚・下2枚を幅いっぱいに */
@media(min-width:961px){.dom:has(>.dm:nth-of-type(5):last-of-type){grid-template-columns:repeat(6,1fr)}.dom:has(>.dm:nth-of-type(5):last-of-type)>.dm{grid-column:span 2}.dom:has(>.dm:nth-of-type(5):last-of-type)>.dm:nth-of-type(n+4){grid-column:span 3}}
/* キャプチャ画像：最後のカード（奇数枚の最後）にも同じ 16:9・幅を適用 */
.cards .sc img.cap,.cards .sc:last-child:nth-child(odd) img.cap,.cards .sc:last-child:nth-child(3n+1) img.cap{aspect-ratio:16/9;height:auto;min-height:0}
@media(min-width:961px){.cards .sc:last-child:nth-child(odd) img.cap,.cards .sc:last-child:nth-child(3n+1) img.cap{width:320px}}
/* MOVIE：タブレット・スマホは1列（上の2列指定より後ろに置いて確実に効かせる） */
@media(max-width:960px){
.mvw{grid-template-columns:1fr;gap:28px}
.mvh{max-width:640px}
.mvh .mven{margin-top:16px}
}
@media(max-width:560px){
.mvw{gap:22px}
.mvh h2{font-size:1.5rem;line-height:1.5}
.mvh .nowrap{white-space:nowrap}
.mvh p{font-size:.9375rem;line-height:1.85}
.mvh .mven{font-size:.75rem}
.mvp{margin:0 calc(min(5%,58px) * -1 + 4px);border-radius:10px}
.mvi{width:64px;height:64px}.mvi::after{left:26px;top:21px;border-width:11px 0 11px 18px}
.mvt{font-size:.6875rem}
}
@media(max-width:360px){.mvh h2{font-size:1.3rem}}
/* 外部サイトへのリンク：↗アイコン（新しいタブで開く） */
.ext{display:inline-block;width:.85em;height:.85em;margin-left:.35em;vertical-align:-.05em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 01-1 1H5a1 1 0 01-1-1V7a1 1 0 011-1h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 01-1 1H5a1 1 0 01-1-1V7a1 1 0 011-1h5'/%3E%3C/svg%3E") center/contain no-repeat}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dmt .ext,.dmt .vh{padding:0;border:0;border-radius:0;font-size:inherit}.dmt .ext{background:currentColor}
