
/* 独立したヒーロー試作。WordPress組み込み時は .yb-site 以下を使用します。 */
:root{--paper:#f5f4eb;--ink:#17211b;--green:#baf548;--light:#e2ff72;--side:29%;--font:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #537c20;outline-offset:6px}button:disabled{cursor:default}::selection{background:var(--ink);color:var(--green)}
.yb-sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);padding:46px 13% 35px 4%;padding-right:3.5%;display:flex;flex-direction:column;z-index:20;background:var(--paper);border-right:1px solid rgba(23,33,27,.12)}
.yb-brand{font-weight:900;letter-spacing:-2.4px;font-size:clamp(28px,3.3vw,51px);line-height:1;white-space:nowrap}.yb-brand span{font-size:.48em;letter-spacing:-1px}.yb-brand-caption{font-size:11px;letter-spacing:.12em;margin:15px 0 0;line-height:1.8}.yb-nav{margin-top:clamp(45px,10vh,100px);display:grid;gap:19px}.yb-nav a{display:flex;align-items:baseline;gap:20px;width:max-content;font-size:clamp(22px,2.3vw,36px);font-weight:800;letter-spacing:-.04em}.yb-nav small{font-size:10px;font-weight:400;letter-spacing:0}.yb-nav a span{position:relative}.yb-nav a span:after{content:"";position:absolute;bottom:-4px;left:0;width:0;height:3px;background:var(--ink);transition:width .2s}.yb-nav a:hover span:after{width:100%}.yb-nav a.is-active span:after{width:100%;background:var(--green)}.yb-sidebar-bottom{margin-top:auto;padding-top:32px;font-size:12px;line-height:1.9}.yb-sidebar-bottom p{margin:0 0 20px}.yb-sidebar-bottom small{font-size:10px;letter-spacing:.06em}.yb-status{display:inline-block;width:7px;height:7px;background:#5b8d27;border-radius:50%;margin-right:8px}.yb-menu-toggle{display:none}
.yb-main{margin-left:var(--side)}.yb-story{height:330vh;height:330svh;position:relative}.yb-stage{height:100vh;height:100dvh;position:fixed;left:var(--side);right:0;top:0;overflow:hidden;background:var(--green);isolation:isolate}.yb-hero{position:absolute;inset:0;padding:35px 5.8% 45px;display:flex;flex-direction:column}.yb-eyebrow{display:flex;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.5}.yb-display{font-size:clamp(65px,10.6vw,172px);font-weight:900;line-height:.83;letter-spacing:-.085em;margin:clamp(55px,10vh,110px) 0 0}.yb-display span{display:block}.yb-display .yb-second{margin-top:10px}.yb-display i{font-family:Georgia,serif;font-weight:400;font-size:.9em;letter-spacing:-.11em}.yb-jp{font-size:clamp(24px,3.1vw,49px);font-weight:800;letter-spacing:-.075em;line-height:1.45;margin:32px 0 0}.yb-jp span{display:block}.yb-hero-bottom{display:flex;align-items:flex-end;justify-content:space-between;margin-top:auto;padding-top:24px}.yb-intro{font-size:13px;line-height:1.9;margin:0;letter-spacing:.05em}.yb-scroll{border:0;background:none;display:flex;align-items:center;gap:14px;font-size:11px;font-weight:bold;padding:0;text-align:left}.yb-scroll b{display:grid;place-items:center;border:1px solid var(--ink);border-radius:50%;width:43px;height:43px;font-size:24px;font-weight:400}.yb-star{position:absolute;right:5.8%;top:47%;width:12%;max-width:120px;transform:rotate(-10deg);animation:yb-wobble 3s steps(3,end) infinite}.yb-star svg{width:100%;height:auto;display:block}.yb-star path{fill:var(--paper);stroke:var(--ink);stroke-width:2}.yb-star circle{fill:var(--ink)}@keyframes yb-wobble{0%,100%{transform:rotate(-10deg)}50%{transform:rotate(12deg)}}
.yb-curtain{position:absolute;inset:0;height:300%;width:100%;transform:translateY(88vh);pointer-events:none;will-change:transform;z-index:2}.yb-curtain path{fill:var(--ink)}.yb-about{position:absolute;inset:0;z-index:3;opacity:0;pointer-events:none}.yb-about-top{position:absolute;top:35px;left:5.8%;right:5.8%;display:flex;justify-content:space-between;color:var(--green);font-size:11px;letter-spacing:.08em}.yb-light{position:absolute;left:50%;top:53%;width:40px;height:40px;border-radius:50%;transform:translate(-50%,-50%);background:var(--light);will-change:width,height;box-shadow:0 0 2px 1px rgba(226,255,114,.2)}.yb-message{position:absolute;inset:0;clip-path:circle(20px at 50% 53%);will-change:clip-path}.yb-message-inner{position:absolute;left:50%;top:53%;width:72%;max-width:610px;transform:translate(-50%,-50%);text-align:center}.yb-about-label{font-size:11px;letter-spacing:.18em;font-weight:bold;margin:0 0 25px}.yb-message h2{font-size:clamp(29px,3.7vw,59px);letter-spacing:-.075em;line-height:1.42;margin:0 0 27px;font-weight:800}.yb-message p.yb-body{font-size:clamp(15px,1.45vw,21px);line-height:2.05;letter-spacing:.015em;margin:0}.yb-message .yb-sign{font-weight:900;font-size:22px;letter-spacing:-1px;margin:30px 0 0}.yb-about-bottom{position:absolute;bottom:32px;left:5.8%;right:5.8%;color:var(--green);font-size:11px;display:flex;justify-content:space-between;align-items:center}.yb-about-bottom button{color:inherit;border:none;border-bottom:1px solid currentColor;background:none;padding:8px 0;pointer-events:auto}.yb-progress{position:absolute;bottom:0;left:0;width:100%;height:3px;background:rgba(245,244,235,.15);z-index:6}.yb-progress span{display:block;height:100%;width:0;background:var(--light)}
.yb-end{padding:65px 6%;background:var(--paper);display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:0}.yb-end small{font-size:10px;letter-spacing:.12em}.yb-end p{font-size:24px;font-weight:bold;margin:13px 0 0}.yb-end a{font-size:14px;border-bottom:1px solid;padding:10px 0;white-space:nowrap}
.yb-dialog{background:var(--paper);color:var(--ink);border:1px solid var(--ink);padding:36px;max-width:440px;width:calc(100% - 36px)}.yb-dialog::backdrop{background:rgba(23,33,27,.6)}.yb-dialog h2{font-size:34px;margin:0 0 20px;letter-spacing:-.05em}.yb-dialog p{font-size:15px;line-height:1.9}.yb-dialog button{background:var(--ink);color:var(--paper);border:0;padding:12px 25px;margin-top:15px}
@media(min-width:1650px){:root{--side:28%}.yb-hero{padding-left:7%;padding-right:7%}}
@media(max-height:740px) and (min-width:761px){.yb-display{margin-top:7vh;font-size:9.6vw}.yb-jp{font-size:2.7vw;margin-top:24px}.yb-nav{margin-top:45px;gap:12px}.yb-sidebar{padding-top:32px}.yb-intro{font-size:12px}.yb-message h2{font-size:3.3vw}.yb-message-inner{max-width:550px}.yb-message p.yb-body{font-size:16px;line-height:1.9}.yb-about-label{margin-bottom:15px}.yb-message .yb-sign{margin-top:20px}}
@media(max-width:760px){:root{--side:0%}.yb-sidebar{position:fixed;inset:0 0 auto;width:100%;height:76px;padding:0 22px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid rgba(23,33,27,.15)}.yb-brand{font-size:34px;letter-spacing:-2px}.yb-brand-caption,.yb-sidebar-bottom{display:none}.yb-menu-toggle{display:flex;margin-left:auto;border:0;background:none;align-items:center;gap:10px;font-size:10px;letter-spacing:.05em;padding:10px 0 10px 20px}.yb-menu-toggle b{font-size:26px;font-weight:400;line-height:1}.yb-nav{display:none;position:absolute;top:76px;left:0;right:0;background:var(--paper);margin:0;padding:30px 25px 40px;border-bottom:1px solid var(--ink);gap:20px}.yb-nav.is-open{display:grid}.yb-nav a{font-size:30px}.yb-main{margin-left:0;padding-top:76px}.yb-stage{height:calc(100vh - 76px);height:calc(100dvh - 76px);top:76px;min-height:0}.yb-story{height:310svh;min-height:1700px}.yb-hero{padding:24px 23px 43px}.yb-eyebrow{font-size:9px}.yb-display{font-size:18.6vw;margin-top:63px;line-height:.89}.yb-jp{font-size:7.2vw;margin-top:32px;line-height:1.5}.yb-star{position:relative;right:auto;top:auto;align-self:flex-end;flex:0 0 auto;width:48px;margin:16px 8px 12px 0}.yb-intro{font-size:11px}.yb-scroll{font-size:9px;gap:9px}.yb-scroll b{width:35px;height:35px;font-size:21px}.yb-about-top{top:24px;left:23px;right:23px;font-size:9px}.yb-message-inner{width:84%}.yb-message h2{font-size:8.1vw;line-height:1.5;margin-bottom:22px}.yb-about-label{font-size:9px;margin-bottom:20px}.yb-message p.yb-body{font-size:3.7vw;line-height:2}.yb-message .yb-sign{font-size:20px;margin-top:23px}.yb-about-bottom{bottom:24px;left:23px;right:23px;font-size:9px}.yb-end{padding:40px 24px;align-items:flex-start;flex-direction:column}.yb-end p{font-size:22px}}
/* スクロール位置に直接追従。動きを減らす設定でもレイヤー構造を保ちます。 */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.yb-star{animation:none}}
@media(max-width:760px) and (max-height:740px){.yb-display{margin-top:24px;font-size:16vw}.yb-jp{margin-top:20px;font-size:6.5vw}.yb-star{width:40px;margin-top:12px;margin-bottom:8px}.yb-hero{padding-bottom:24px}.yb-hero-bottom{padding-top:12px}.yb-intro{font-size:10px}}
.yb-end{position:relative;z-index:7}
.yb-story{background:var(--ink)}

/* 白と墨色を土台にした比較案。スクロールの幾何・タイミングは元版を維持。 */
:root{--paper:#f7f7f2;--ink:#30332f;--green:#d0e5a3;--light:#d0e5a3;--font:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,Arial,sans-serif}
.yb-stage{background:#eeeeea}
.yb-sidebar{border-right-color:rgba(48,51,47,.09)}
.yb-brand{font-family:Arial,sans-serif;font-weight:600;letter-spacing:-.055em}
.yb-brand-caption{letter-spacing:.025em;color:#61655e}
.yb-nav a{font-family:Arial,sans-serif;font-weight:400;letter-spacing:0;font-size:clamp(23px,2.2vw,34px)}
.yb-nav a span:after{height:2px;bottom:-6px}
.yb-nav a.is-active span:after{height:5px;border-radius:60% 40% 45% 30%;transform:rotate(-2deg)}
.yb-sidebar-bottom{color:#61655e}
.yb-status{background:#809462}
.yb-eyebrow{font-weight:400;letter-spacing:.04em}
.yb-display{font-family:Arial,sans-serif;font-size:clamp(65px,8.7vw,144px);font-weight:400;letter-spacing:-.055em;line-height:.98;margin-top:clamp(45px,9vh,90px)}
.yb-display .yb-second{margin-top:4px}
.yb-display i{font-family:Arial,sans-serif;font-size:.85em;letter-spacing:-.04em;font-style:normal}
.yb-jp{font-size:clamp(22px,2.6vw,40px);font-weight:500;letter-spacing:.015em;line-height:1.65;margin-top:30px}
.yb-star{position:relative;right:auto;top:auto;align-self:flex-end;flex:0 0 auto;width:58px;margin:15px 8px 10px 0;animation:yb-soft-wobble 5s ease-in-out infinite}
.yb-star path{stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:var(--paper)}
@keyframes yb-soft-wobble{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)}}
.yb-scroll{font-weight:400;line-height:1.7;color:var(--ink)}
.yb-scroll b{border-radius:48% 52% 46% 54%;font-size:22px}
.yb-intro{letter-spacing:.025em}
.yb-light{box-shadow:none}
.yb-about-top,.yb-about-bottom{color:#e1e3d9}
.yb-about-label{font-weight:400;letter-spacing:.08em}
.yb-message h2{font-size:clamp(28px,3.3vw,51px);font-weight:500;letter-spacing:.015em;line-height:1.6}
.yb-message p.yb-body{font-weight:400}
.yb-message .yb-sign{font-family:Arial,sans-serif;font-weight:400;letter-spacing:-.04em}
.yb-end p{font-weight:400}
@media(min-width:761px) and (max-height:800px){
 .yb-display{font-size:clamp(54px,7.8vw,116px);margin-top:28px}
 .yb-jp{font-size:clamp(20px,2.3vw,34px);margin-top:22px}
 .yb-star{width:42px;margin:8px 8px 6px 0}
 .yb-hero-bottom{padding-top:12px}
}
@media(max-width:760px){
 .yb-brand{font-size:31px;letter-spacing:-.055em}
 .yb-menu-toggle{color:var(--ink);font-size:11px}
 .yb-nav a{font-size:27px}
 .yb-hero{padding:24px 23px 30px}
 .yb-eyebrow{font-size:10px}
 .yb-display{font-size:16.5vw;line-height:1.05;margin-top:clamp(30px,7vh,65px);letter-spacing:-.055em}
 .yb-jp{font-size:5.8vw;font-weight:500;line-height:1.8;letter-spacing:0;margin-top:28px}
 .yb-star{width:48px;margin:18px 5px 14px 0}
 .yb-intro{font-size:11px;line-height:1.9}
 .yb-scroll{font-size:10px}
 .yb-message h2{font-size:7vw;letter-spacing:.01em;line-height:1.65}
 .yb-message p.yb-body{font-size:3.7vw}
 .yb-about-label{font-size:10px}
 .yb-about-bottom{font-size:10px}
}
@media(max-width:760px) and (max-height:740px){
 .yb-display{margin-top:23px;font-size:14.6vw}
 .yb-jp{margin-top:18px;font-size:5.5vw}
 .yb-star{width:36px;margin-top:10px;margin-bottom:8px}
 .yb-hero{padding-bottom:24px}
 .yb-hero-bottom{padding-top:10px}
 .yb-intro{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.yb-star{animation:none}}

/* 2026-09-21：円の色・自己紹介コピー・プロフィール導線を改訂。 */
:root{--light:#e2ff72}
.yb-hero-bottom{justify-content:flex-end}
.yb-star{animation:yb-wobble 3s steps(3,end) infinite}
.yb-star path{stroke-width:2;stroke-linejoin:miter}
.yb-star .yb-smile{fill:none}
.yb-message h2{font-weight:800;font-size:clamp(32px,4.1vw,62px);line-height:1.45;letter-spacing:-.035em;margin:0 0 24px}
.yb-message p.yb-body{font-size:clamp(14px,1.3vw,19px);line-height:2;letter-spacing:0}
.yb-body>span{display:block}
.yb-profile-link{display:inline-flex;align-items:center;gap:15px;margin-top:28px;min-height:48px;color:var(--ink);font-family:Arial,sans-serif;font-size:16px;font-weight:700;letter-spacing:.035em;pointer-events:auto}
.yb-profile-arrow{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--ink);color:var(--light);transition:transform .2s ease}
.yb-profile-arrow svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.yb-profile-link:focus-visible{outline:2px solid var(--ink);outline-offset:7px;border-radius:28px}
@media(hover:hover){.yb-profile-link:hover .yb-profile-arrow{transform:translateX(4px)}}
@media(max-width:760px){
 .yb-message-inner{width:86%;max-width:610px}
 .yb-message h2{font-size:clamp(32px,8.1vw,54px);line-height:1.5;margin-bottom:22px}
 .yb-message p.yb-body{font-size:clamp(13px,3.7vw,18px);line-height:1.95}
 .yb-profile-link{margin-top:23px;font-size:15px;gap:13px}
}
@media(max-width:760px) and (max-height:740px){
 .yb-message h2{font-size:clamp(29px,7.6vw,38px);line-height:1.4;margin-bottom:16px}
 .yb-message p.yb-body{font-size:clamp(12px,3.45vw,15px);line-height:1.85}
 .yb-profile-link{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){.yb-star{animation:none}.yb-profile-arrow{transition:none}}


/* Unified draft: About's quiet charcoal, more deliberate medium text. */
.yb-display{font-weight:600;letter-spacing:-.06em}
.yb-jp{font-weight:600;letter-spacing:0}
.yb-brand{font-weight:600}
.yb-nav a.is-active span:after{height:2px;border-radius:0;transform:none;background:var(--ink)}
.yb-story{background:var(--ink)}
.yb-main{background:var(--paper)}
@media(max-width:760px){.yb-display{font-weight:600}.yb-jp{font-weight:600}}

/* Service reset: group the two headline lines; add one line of room above the link. */
.yb-message-inner{--profile-extra:24px;margin-top:calc(var(--profile-extra) / 2)}
.yb-message .yb-message-title{display:table;margin-left:auto;margin-right:auto;text-align:center}
.yb-message-title>span{display:block;white-space:nowrap}
.yb-profile-link{margin-top:calc(28px + var(--profile-extra))}
/* The half-gap offset keeps the headline in place as the link moves down. */
.yb-skip{position:fixed;top:-100px;left:12px;z-index:60;background:var(--ink);color:var(--paper);padding:12px 18px}
.yb-skip:focus{top:12px}
#yb-service{scroll-margin-top:0}
@media(max-width:760px){
 .yb-profile-link{margin-top:calc(23px + var(--profile-extra))}
 #yb-service{scroll-margin-top:76px}
}
@media(max-width:760px) and (max-height:740px){
 .yb-message-inner{--profile-extra:22px}
 .yb-profile-link{margin-top:calc(18px + var(--profile-extra))}
}

/* Move the headline, introduction and View more together in the lime circle. */
.yb-message-inner{top:calc(53% - 21px)}
@media(max-width:760px) and (max-height:670px){.yb-message-inner{top:calc(53% - 15px)}}

/* 2026-10-02：配色の入れ替え（ヒーロー＝チャコール、幕＝生成り、円＝チャコール）、
   円の見出しを赤字修正の演出に、Graphic & Webとロゴを一段細く。 */
:root{--light:#30332f;--red:#f2554a}
.yb-stage{background:var(--ink)}
.yb-hero{color:var(--paper)}
.yb-scroll{color:var(--paper)}
.yb-scroll b{border-color:currentColor}
.yb-star path{stroke:var(--ink)}
.yb-curtain path{fill:var(--paper)}
.yb-about-top,.yb-about-bottom{color:#61655e}
.yb-light{background:var(--ink)}
.yb-message{color:var(--paper)}
.yb-profile-link{color:var(--paper)}
.yb-profile-arrow{background:var(--paper);color:var(--ink)}
.yb-profile-link:focus-visible{outline-color:var(--paper)}
.yb-hero a:focus-visible,.yb-hero button:focus-visible{outline-color:var(--paper)}
/* Arialは標準と太字の2段階のみ。600は太字で表示されていたため、一段細い400に。 */
.yb-display,.yb-brand{font-weight:400}
@media(max-width:760px){.yb-display{font-weight:400}}

/* 円の見出し：「きれいな」に赤線、上に手書きの「伝わる」 */
.yb-message h2{font-size:clamp(28px,3.4vw,52px);letter-spacing:-.02em}
.yb-message .yb-message-title{padding-top:.6em}
.yb-fix{position:relative;display:inline-block;transition:color .4s ease .1s}
.yb-fix-line{position:absolute;left:-4%;top:46%;width:108%;height:.34em;overflow:visible;pointer-events:none;clip-path:inset(0 100% 0 0)}
.yb-fix-line path{fill:none;stroke:var(--red);stroke-width:6px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.yb-fix-word{position:absolute;left:50%;bottom:80%;font-family:"Klee One","Hiragino Maru Gothic ProN",cursive;font-weight:600;font-size:.6em;letter-spacing:.06em;line-height:1;color:var(--red);white-space:nowrap;opacity:0;transform:translateX(-50%) rotate(-5deg);clip-path:inset(0 100% 0 0)}
.is-fixed .yb-fix{color:rgba(247,247,242,.5)}
.is-fixed .yb-fix-line{animation:yb-fix-draw .5s .2s cubic-bezier(.65,0,.35,1) forwards}
.is-fixed .yb-fix-word{animation:yb-fix-write .6s .75s cubic-bezier(.3,0,.2,1) forwards}
@keyframes yb-fix-draw{to{clip-path:inset(0 0 0 0)}}
@keyframes yb-fix-write{from{opacity:1;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0 0 0 0)}}
@media(max-width:760px){
 .yb-message h2{font-size:clamp(25px,7.2vw,44px)}
 .yb-fix-line path{stroke-width:4px}
}
@media(max-width:760px) and (max-height:740px){.yb-message h2{font-size:clamp(24px,6.8vw,36px)}}
@media(prefers-reduced-motion:reduce){
 .yb-fix{transition:none}
 .is-fixed .yb-fix-line,.is-fixed .yb-fix-word{animation:none;clip-path:none;opacity:1}
}

/* 2026-10-04 スマホの揺れ対策：舞台の固定をJSでなくCSSのstickyにし、高さもsvh（URLバーで変わらない）にする。 */
:root{--yb-dwell:60svh}
.yb-stage{position:sticky;left:auto;right:auto;top:0;height:100svh}
.yb-story{height:calc(330svh + var(--yb-dwell))}
@media(max-width:760px){
 .yb-stage{top:76px;height:calc(100svh - 76px);min-height:0}
 .yb-story{height:calc(310svh + var(--yb-dwell));min-height:1700px}
}
/* 円の見出し：「伝わる」を周りの文字と同じ大きさに */
.yb-message .yb-message-title{padding-top:1.25em}
.yb-fix-word{font-size:1em;bottom:84%;transform:translateX(-50%) rotate(-4deg)}

/* 2026-10-04（2回目）スマホで円の画面の下にすき間が出ていたため、高さを「URLバーが隠れたときの画面の高さ」(lvh)に変更。
   iPhoneでは100vhも同じ高さです。高さが変わらないので、揺れ対策はそのまま保てます。 */
.yb-stage{height:100vh;height:100lvh}
@media(max-width:760px){.yb-stage{height:calc(100vh - 76px);height:calc(100lvh - 76px)}}

/* 2026-10-04（3回目）スマホで円が下に寄っていた件。
   舞台（背景）はURLバーが隠れたときの高さ(lvh)のまま、中の文字と円の位置だけを
   URLバーが出ているときの見える高さ(svh)を基準にする。これで円は見えている画面の中央付近に来ます。 */
.yb-hero,.yb-about{bottom:auto;height:100svh}
@media(max-width:760px){.yb-hero,.yb-about{height:calc(100svh - 76px)}}

/* SPのsticky解除時にも、次のセクションと同じ背景を保つ。
   初期画面のチャコールは .yb-stage が描画する。 */
@media(max-width:760px){.yb-story{background:var(--paper)}}

/* SP: 円の完成後に留める60svhをなくし、通常スクロールへ接続。 */
@media(max-width:760px){:root{--yb-dwell:0px}}
