/* デザイン一新 D の下層（2026-11-05）。台本＝15_トラスタスWeb/scripts/dkit.py（手で直さない） */
body.d{--cream:#FFF6EA;--cream2:#FFF1DD;--sky:#EAF5FC;--blue:#8DC7E9;--blue-d:#2f7fa8;--orange:#F2A03D;--orange-d:#C26F0E;--ink:#1d2b3a;--navy:#2f7fa8;
  background:var(--cream);color:var(--ink)}
body.d h1,body.d main h2,body.d .sh h2,body.d .pband-t{font-family:"M PLUS Rounded 1c","Noto Sans JP",sans-serif;font-weight:900;letter-spacing:.01em}
body.d main{overflow-x:clip}
/* ヘッダー */
body.d .site-header{z-index:30;background:rgba(255,246,234,.9);backdrop-filter:blur(10px);border-bottom:0;transition:box-shadow .3s,background .3s}
body.d .site-header.on{background:rgba(255,255,255,.94);box-shadow:0 6px 24px rgba(29,43,58,.08)}
body.d .site-header nav a{color:var(--ink)}
body.d .site-header nav a:hover,body.d .site-header nav a[aria-current]{border-bottom-color:var(--orange)}
@media (min-width:861px){body.d .site-header{position:sticky;top:0}}
/* ボタン（押せる形） */
body.d .btn-main,body.d .btn6{background:var(--orange)!important;border-color:var(--orange)!important;color:#fff!important;border-radius:999px;box-shadow:0 7px 0 #D9822A,0 14px 28px rgba(242,160,61,.32)!important;transition:transform .15s,box-shadow .15s}
body.d .btn-main:hover,body.d .btn6:hover{transform:translateY(3px);box-shadow:0 4px 0 #D9822A,0 8px 18px rgba(242,160,61,.3)!important}
body.d .header-cta .btn-main{box-shadow:0 4px 0 #D9822A!important}
/* 看板（hero）：写真と紺をやめて、クリーム地＋右にキャラクター */
body.d .hero{background:transparent}
body.d .hero-photo,body.d .hero-photo[class*=hero-]{background:radial-gradient(circle at 85% 40%,#D7EEFB 0,transparent 45%),linear-gradient(160deg,#FFF6EA,#FFF1DD)!important;color:var(--ink);min-height:min(70vh,560px);position:relative;overflow:hidden}
body.d .hero-photo::after{content:"";position:absolute;right:max(1.5vw,calc(50% - 640px));top:50%;width:min(38vw,500px);aspect-ratio:1.4;translate:0 -50%;background:var(--hero-art) center/contain no-repeat;animation:dfloat 5s ease-in-out infinite;filter:drop-shadow(0 24px 24px rgba(29,43,58,.14));pointer-events:none}
body.d .hero-photo::before{content:"";position:absolute;right:max(0vw,calc(50% - 660px));top:50%;width:min(40vw,520px);aspect-ratio:1;translate:0 -50%;border-radius:42% 58% 63% 37%/41% 44% 56% 59%;background:linear-gradient(140deg,#CFEAFA,#8DC7E9);opacity:.55;animation:dwob 12s ease-in-out infinite}
body.d .hero-inner{position:relative;z-index:2;max-width:min(520px,46vw)!important;margin-left:max(24px,calc(50% - 600px))!important;margin-right:auto!important}
body.d .hero-inner h1{color:var(--ink);font-size:clamp(30px,3.6vw,50px);line-height:1.3}
body.d .hero-inner .eyebrow{display:inline-block;background:#fff;color:var(--blue-d);border-radius:999px;padding:.35em 1.1em;box-shadow:0 6px 16px rgba(29,43,58,.07)}
body.d .hero-inner .lead,body.d .hero-inner .small,body.d .hero-inner p{color:var(--ink)}
body.d .hero-inner .badges li{background:#fff;border-color:transparent;color:var(--ink);box-shadow:0 4px 12px rgba(29,43,58,.06)}
@keyframes dfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes dwob{0%,100%{border-radius:42% 58% 63% 37%/41% 44% 56% 59%}50%{border-radius:58% 42% 38% 62%/55% 61% 39% 45%}}
/* 暗い面をやめる（11/05 20:40 岩見さん「急に暗い」） */
body.d section.dark,body.d section.dark.bgimg{background:linear-gradient(160deg,#EAF5FC,#FFF6EA)!important;color:var(--ink)}
body.d .dark.bgimg::before{background:linear-gradient(100deg,rgba(255,246,234,.95),rgba(255,246,234,.86) 55%,rgba(234,245,252,.7))!important}
body.d section.dark :is(h2,h3,strong,p,li,.thirty,.small,.lead,.pain-t,.own-t,dd,dt,span){color:var(--ink)!important}
body.d section.dark .eyebrow{color:var(--blue-d)!important}
body.d .dark :is(.card,.ic-card,.pain){background:#fff!important;border:0!important;box-shadow:0 12px 30px rgba(29,43,58,.08)!important}
body.d .dark .ic{background:#FFF1DD;color:var(--orange-d)}
body.d .dark .btn:not(.btn-main){border-color:var(--ink);color:var(--ink)}
body.d thead th{background:var(--blue)!important;color:var(--ink)!important}
body.d :is(.ba-after,.own-all){background:linear-gradient(140deg,#FFE2BC,#FFF1DD)!important;color:var(--ink)!important;box-shadow:0 14px 30px rgba(242,160,61,.2)!important}
body.d :is(.ba-after,.own-all) *{color:var(--ink)!important}
body.d .cat .ic{background:var(--orange);color:#fff}
body.d .site-footer{background:#EAF5FC;color:var(--ink)} body.d .site-footer a{color:var(--blue-d)}
/* 背景に人の写真を敷いた節（bgimg）は写真をやめる */
body.d section.bgimg{background-image:none!important}
body.d section.bgimg:not(.dark){background:linear-gradient(160deg,#FFF6EA,#fff)!important}
body.d .bgimg::before{display:none!important}
/* よくある質問の分類の帯（紺→淡いオレンジ） */
body.d .faq-band{background:linear-gradient(120deg,#FFE2BC,#FFF1DD)!important;color:var(--ink)!important;border-radius:24px!important;overflow:hidden}
body.d .faq-band :is(h2,p){color:var(--ink)!important}
body.d .faq-band img{object-fit:cover}
/* 最後の問い合わせの帯 */
body.d section.closing{background:linear-gradient(140deg,#FFE2BC,#FFF1DD 60%,#EAF5FC)!important;border-radius:48px 48px 0 0;position:relative;overflow:hidden}
body.d section.closing::after{content:"";position:absolute;right:4%;bottom:-10px;width:150px;aspect-ratio:742/900;background:url(images/d/ai-chara.png) center/contain no-repeat;animation:dfloat 3.6s ease-in-out infinite}
/* 箱・写真を丸く、浮かせる */
body.d .ic-card,body.d .card,body.d .plan,body.d details,body.d .faq-i{border-radius:24px!important}
body.d .ic-card{box-shadow:0 12px 30px rgba(29,43,58,.08);transition:transform .35s cubic-bezier(.3,1.4,.5,1),box-shadow .35s}
body.d .ic-card:hover{transform:translateY(-6px) rotate(-.6deg);box-shadow:0 20px 40px rgba(29,43,58,.12)}
body.d .ic-card figure img{transition:transform .6s} body.d .ic-card:hover figure img{transform:scale(1.06)}
body.d .ic-card figure{background:#fff}
body.d main img[src*="images/d/"]{height:auto}
body.d :is(.ic-card,.pband-ph,.pn-ph) img[src*="images/d/"]{height:100%;object-fit:cover}
body.d main section:nth-of-type(even):not(.dark):not(.closing):not(.hero){background:#fff}
body.d .pband-ph img{object-position:center}
body.d .pband-in .pband-t{background:rgba(255,255,255,.92);color:var(--ink)!important;border-radius:22px;padding:.5em .9em;text-shadow:none!important}
body.d .pband::before,body.d .pband::after{background:none!important}
body.d main section.pband{background:var(--cream)!important}
body.d .pband-t b{color:var(--orange-d)!important}
body.d .eyebrow{color:var(--blue-d)}
body.d .sh h2 em,body.d main h2 em{color:var(--orange-d);font-style:normal}
/* 画面に入ったら跳ねて出る */
body.d .d-rv{opacity:0;transform:translateY(28px) scale(.97);transition:opacity .7s ease calc(var(--i,0)*.07s),transform .7s cubic-bezier(.3,1.3,.5,1) calc(var(--i,0)*.07s)}
body.d .d-rv.d-in{opacity:1;transform:none}
@media (max-width:860px){
 /* 11/06 岩見さん「スマホ版、FVが全て文字。PC版のレイアウト壊さずに」＝スマホでは絵を看板の一番上へ（旧：文の下＝最初の画面に入らなかった） */
 body.d .hero-photo{min-height:auto;padding-top:calc(min(56vw,300px) + 18px)!important;padding-bottom:36px!important}
 body.d .hero-photo::after{top:10px;bottom:auto;translate:-50% 0;left:50%;right:auto;width:min(80vw,420px)}
 body.d .hero-photo::before{top:-6vw;bottom:auto;translate:-50% 0;left:50%;right:auto;width:min(72vw,380px)}
 body.d .hero-inner{max-width:none!important;margin-left:auto!important;margin-right:auto!important}
 /* 上のメニューは1行にして横に動かす（2行で看板が下へ押されていた） */
 body.d .site-header nav{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-top:4px}
 body.d .site-header nav::-webkit-scrollbar{display:none}
 body.d .site-header nav ul{flex-wrap:nowrap!important;white-space:nowrap;gap:0 18px}
 body.d .site-header nav li{flex:none}
 body.d section.closing::after{width:90px;right:2%}
}
@media (prefers-reduced-motion:reduce){body.d *{animation:none!important;transition:none!important}body.d .d-rv{opacity:1;transform:none}}
body.d.p-owner .hero-photo{--hero-art:url(images/d/hero-toss.png)}
body.d.p-service .hero-photo{--hero-art:url(images/d/hero-service.png)}
body.d.p-practice .hero-photo{--hero-art:url(images/d/hero-practice.png)}
body.d.p-faq .hero-photo{--hero-art:url(images/d/hero-faq.png)}
body.d.p-company .hero-photo{--hero-art:url(images/d/hero-company.png)}
body.d.p-contact .hero-photo{--hero-art:url(images/d/hero-contact.png)}
body.d.p-guide-choose .hero-photo{--hero-art:url(images/d/hero-guide.png)}
body.d.p-ai-agent-cost .hero-photo{--hero-art:url(images/d/hero-service.png)}
body.d.p-fukuoka-ai .hero-photo{--hero-art:url(images/d/hero-company.png)}
body.d.p-claude-code .hero-photo{--hero-art:url(images/d/hero-practice.png)}
body.d.p-ai-agent .hero-photo{--hero-art:url(images/d/hero-guide.png)}
body.d.p-ai-start .hero-photo{--hero-art:url(images/d/hero-toss.png)}
body.d.p-ai-secretary .hero-photo{--hero-art:url(images/d/hero-owner.png)}
body.d.p-ai-inquiry .hero-photo{--hero-art:url(images/d/hero-contact.png)}
body.d.p-ai-homepage .hero-photo{--hero-art:url(images/d/hero-practice.png)}
body.d.p-ai-report .hero-photo{--hero-art:url(images/d/hero-service.png)}
body.d.p-ai-sns .hero-photo{--hero-art:url(images/d/hero-toss.png)}
body.d.p-ai-quote .hero-photo{--hero-art:url(images/d/hero-service.png)}
body.d.p-ai-order .hero-photo{--hero-art:url(images/d/hero-company.png)}
body.d.p-ai-hr .hero-photo{--hero-art:url(images/d/hero-contact.png)}
body.d.p-ai-knowledge .hero-photo{--hero-art:url(images/d/hero-faq.png)}
body.d.p-ai-design .hero-photo{--hero-art:url(images/d/hero-practice.png)}
body.d.p-ai-files .hero-photo{--hero-art:url(images/d/hero-legal.png)}
body.d.p-ai-seo .hero-photo{--hero-art:url(images/d/hero-guide.png)}
body.d.p-ai-lp .hero-photo{--hero-art:url(images/d/hero-toss.png)}
body.d.p-ai-app .hero-photo{--hero-art:url(images/d/hero-practice.png)}
body.d.p-tokushoho .hero-photo{--hero-art:url(images/d/hero-legal.png)}
body.d.p-privacy .hero-photo{--hero-art:url(images/d/hero-legal.png)}
body.d.p-404 .hero-photo{--hero-art:url(images/d/hero-legal.png)}
/* 絵で「何ができるか」（2026-11-05 22:08） */
body.d .fl{position:relative}
body.d .fl .fl-b{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:circle(0% at 85% 85%);transition:clip-path .9s cubic-bezier(.6,0,.2,1);z-index:1}
body.d .flip.on .fl-b{clip-path:circle(150% at 85% 85%)}
body.d .fl-lab{position:absolute;z-index:2;top:10px;left:auto;right:10px;font-size:12px;font-weight:900;border-radius:999px;padding:.2em .8em;transition:opacity .4s,transform .4s;box-shadow:0 4px 10px rgba(29,43,58,.15)}
body.d .fl-la{background:#fff;color:var(--ink)} body.d .fl-lb{background:var(--blue);color:var(--ink);opacity:0;transform:translateY(-6px)}
body.d .flip.on .fl-la{opacity:0} body.d .flip.on .fl-lb{opacity:1;transform:none}
body.d .fl-sol,body.d .can-call,body.d .kg-call{position:absolute;z-index:2;left:8px;right:8px;bottom:8px;margin:0!important;background:rgba(255,255,255,.95);border-radius:12px;padding:.45em .7em;font-size:12.5px!important;font-weight:900;line-height:1.45;color:var(--ink);box-shadow:0 8px 18px rgba(29,43,58,.14);text-align:left}
body.d .fl-sol{opacity:0;transform:translateY(10px) scale(.96);transition:opacity .5s .35s,transform .5s cubic-bezier(.3,1.5,.5,1) .35s}
body.d .fl-sol::before,body.d .kg-call::before{content:"✓";display:inline-grid;place-items:center;width:1.4em;height:1.4em;border-radius:50%;background:var(--orange);color:#fff;font-size:.85em;margin-right:.45em}
body.d .flip.on .fl-sol{opacity:1;transform:none}
body.d .role figure,body.d .kg figure{position:relative}
body.d .can-call,body.d .kg-call{opacity:0;transform:translateY(12px) scale(.94);transition:opacity .5s .3s,transform .55s cubic-bezier(.3,1.5,.5,1) .3s}
body.d .kg-call b{color:var(--orange-d)}
body.d .d-in .can-call,body.d .d-in .kg-call,body.d .shot-on .can-call,body.d .shot-on .kg-call{opacity:1;transform:none}
body.d .kg figure{aspect-ratio:4/3}
/* 困りごとの箱は絵を上に大きく（絵で伝える） */
body.d .pn.flip{grid-template-columns:1fr!important;min-height:0}
body.d .pn.flip .pn-ph{aspect-ratio:3/2;min-height:0}
@media (min-width:961px){body.d .pn-grid:has(.flip){grid-template-columns:repeat(3,1fr)}}
@media (max-width:960px) and (min-width:561px){body.d .pn-grid:has(.flip){grid-template-columns:repeat(2,1fr);max-width:none}}
/* 集客の3つ目（紺の箱）を明るく */
body.d .rf-last{background:#FFF1DD!important;border-color:transparent!important}
body.d .rf-last :is(p,b,.rf-n,.rf-v,.rf-s){color:var(--ink)!important}
body.d .rf-last b{color:var(--orange-d)!important}
/* 元の暗い面のまま白だった太字（社長の方へ「最初の担当を1つ」の担当名など）を、明るい面で読める色に（11/06 岩見さん「不自然な空白」） */
body.d :where(.dark) :is(b,strong){color:var(--ink)!important}
/* 最後の行に1〜2文字だけ残る改行を減らす（11/06 岩見さん「不自然な改行」） */
body.d main :is(p,li,dd,td,figcaption,h2,h3){text-wrap:pretty}
/* 水色の面に白い文字（読みにくい）だった箱を、濃い文字に */
body.d :is(.other-box,.num-card.num-main,.tl-label,.mm-table th),body.d :is(.other-box,.num-card.num-main,.tl-label,.mm-table th) *{color:var(--ink)!important}
body.d :is(.other-box,.num-card.num-main) b{color:var(--orange-d)!important}
body.d .pain-grid .pr-tag{color:var(--ink)!important}
body.d .other-box .ob-plus{color:var(--orange)!important;background:#fff!important}
body.d .nine li::before{color:var(--ink)!important}
/* チェック欄が1つずつ付いていく */
body.d .cando-list.check li::before{transition:background .3s,border-color .3s}
body.d .cando-list.check li::after{content:"✓";position:absolute;left:3px;top:.2em;color:#fff;font-weight:900;font-size:14px;opacity:0;transform:scale(.3);transition:opacity .3s,transform .35s cubic-bezier(.3,1.8,.5,1)}
body.d .cando-list.check li.ck::before{background:var(--orange)!important;border-color:var(--orange)!important}
body.d .cando-list.check li.ck::after{opacity:1;transform:none}
/* 看板の札（PC だけ） */
body.d .h-calls{position:absolute;z-index:3;right:max(1.5vw,calc(50% - 640px));top:50%;width:min(38vw,500px);aspect-ratio:1.4;translate:0 -50%;pointer-events:none}
body.d .call{position:absolute;right:-2%;display:flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:.35em .9em .35em .4em;font-size:14px;font-weight:900;white-space:nowrap;box-shadow:0 8px 20px rgba(29,43,58,.14);opacity:0;transform:scale(.6);animation:dcallin .55s cubic-bezier(.3,1.6,.5,1) var(--d) forwards}
body.d .call i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--orange);color:#fff;font-style:normal;font-size:12px}
@keyframes dcallin{to{opacity:1;transform:none}}
@media (max-width:860px){body.d .h-calls{display:none}}

/* 語の途中で折れないように（11/06） */
t-g{white-space:nowrap;display:inline!important}
/* 表は「入りきらないときだけ」折る（「どこでも折る」だと、スマホで値の列が細くなり語が切れる） */
body.d main :is(td,th){overflow-wrap:break-word}
/* 横に動かして見る表（選び方の比較表）の見出しは1行で */
body.d .gd-t th{white-space:nowrap}
t-g:has(> b){display:inline-block!important}
@media (max-width:560px){
 body.d table.kv,body.d table.kv tbody,body.d table.kv tr,body.d table.kv th,body.d table.kv td{display:block;width:auto}
 body.d table.kv tr{padding:.7em 0;border-bottom:1px solid rgba(29,43,58,.1)}
 body.d table.kv th{padding:0 0 .2em;border:0;font-size:.85em;color:#6b7a86}
 body.d table.kv td{padding:0;border:0}
 /* 11/22 スマホで横にはみ出す比較表を、行ごとの箱に縦に積む（gd-stack を付けた表だけ。横スクロールで右の列が見えない問題） */
 body.d .gd-scroll:has(> table.gd-stack){overflow:visible}
 body.d table.gd-stack,body.d table.gd-stack tbody,body.d table.gd-stack tr,body.d table.gd-stack td{display:block;width:auto;min-width:0!important}
 body.d table.gd-stack thead{display:none}
 body.d table.gd-stack tr{padding:.8em 1em;border-bottom:1px solid rgba(29,43,58,.1)}
 body.d table.gd-stack td{padding:.15em 0!important;border:0!important}
 body.d table.gd-stack td:first-child{font-weight:700;color:var(--blue,#2f7fa8)}
 body.d table.gd-stack td[data-f]::before{content:attr(data-f)" "}
 body.d table.gd-stack td[data-l]::before{content:attr(data-l)"：";font-size:.85em;color:#6b7a86;margin-right:.3em}
}

/* お問い合わせのフォーム（11/06） */
body.d .cf-form,body.d .cf-done{max-width:680px;margin:0 auto;background:#fff;border-radius:28px;padding:clamp(22px,4vw,40px);box-shadow:0 18px 40px rgba(29,43,58,.08)}
body.d .cf-f{margin:0 0 20px}
body.d .cf-lbl{display:block;font-weight:700;margin:0 0 8px;color:var(--ink)}
body.d .cf-req{display:inline-block;font-size:12px;background:var(--orange);color:#fff;border-radius:999px;padding:.1em .7em;margin-left:.4em;vertical-align:2px}
body.d .cf-in{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:.8em 1em;border:2px solid #E3E8EC;border-radius:14px;background:#FBFCFD;color:var(--ink)}
body.d .cf-in:focus{outline:none;border-color:var(--blue-d);background:#fff}
body.d textarea.cf-in{resize:vertical}
body.d .cf-chks{display:flex;flex-wrap:wrap;gap:8px}
body.d .cf-chk{display:inline-flex;align-items:center;gap:.4em;border:2px solid #E3E8EC;border-radius:999px;padding:.45em .9em;cursor:pointer;background:#FBFCFD;font-size:15px}
body.d .cf-chk input{accent-color:var(--orange);width:18px;height:18px;margin:0}
body.d .cf-chk:has(input:checked){border-color:var(--orange);background:#FFF1DD}
body.d .cf-err{color:#C0392B;font-size:14px;margin:.4em 0 0;min-height:0}
body.d .cf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
body.d .cf-ts{margin:6px 0 12px}
body.d .cf-act{text-align:center;margin-top:10px}
body.d .cf-btn{min-width:240px;border:0;cursor:pointer;font:inherit;font-weight:900}
body.d .cf-btn:disabled{opacity:.6;cursor:wait}
body.d .cf-msg{color:#C0392B;text-align:center;margin:.8em 0 0}
body.d .cf-done{text-align:center;display:flex;flex-direction:column;justify-content:center}
body.d .cf-done[hidden]{display:none}
body.d .cf-done-h{font-size:24px;font-weight:900;color:var(--orange-d);margin:0 0 .4em}
