/* yunoji theme-4.css — 企画ノート本体（紙・見開き・めくり・付箋・切り抜き帳）。theme-3.css から分割 */

/* ===== 紙（ノート本体） ===== */
.yunoji-notebook { background-color: #fbfaf7; padding-top: 0; }   /* 地は無地のクリーム。方眼は表紙と切り抜き帳だけ */
.yunoji-notebook__sec { position: relative; }

.yunoji-notebook__sec--scrap { background-image: url(../img/paper-grid.webp); background-size: 1200px auto; background-color: #fff; }
.yunoji-notebook__sec--scrap { border-top: 1px solid rgba(140,183,198,.35); border-bottom: 1px solid rgba(140,183,198,.35); }
/* 流れの章：布の波形の飾りは 2026-11-15 に廃止（本人） */
.yunoji-notebook__sec--flow > * { position: relative; z-index: 1; }
.yunoji-notebook__sec--flow .yunoji-spread { background: #fff; }

/* 見開き：中央に綴じ目の影 */
.yunoji-spread { position: relative; gap: 0 !important; background: rgba(255,255,255,.55); border: 1px solid rgba(140,183,198,.35); box-shadow: 0 14px 40px rgba(60,80,90,.08); margin-top: 3rem; }
.yunoji-spread::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0,0,0,.08); box-shadow: 0 0 24px 10px rgba(0,0,0,.05); }

/* ページをめくる：右ページが綴じ目を軸に開く（スクロールで） */
.yunoji-notebook__sec--flow .yunoji-spread { perspective: 1800px; }
html.yunoji-js .yunoji-notebook__sec--flow .yunoji-spread .yunoji-nb__page--r { transform-origin: left center; transform: rotateY(-105deg); opacity: .2; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity .9s ease; background: linear-gradient(to right, rgba(0,0,0,.06), rgba(255,255,255,0) 18%); }
html.yunoji-js .yunoji-notebook__sec--flow .yunoji-spread.is-visible .yunoji-nb__page--r { transform: rotateY(0); opacity: 1; }
html.yunoji-js .yunoji-notebook__sec--flow .yunoji-spread .yunoji-nb__page--l { opacity: 0; transition: opacity .8s ease .2s; }
html.yunoji-js .yunoji-notebook__sec--flow .yunoji-spread.is-visible .yunoji-nb__page--l { opacity: 1; }
/* 見開き自体のフェード（yunoji-reveal）は、めくりと重ならないよう弱める */
html.yunoji-js .yunoji-notebook__sec--flow .yunoji-spread.yunoji-reveal { transform: none; opacity: 1; }
.yunoji-nb__page { padding: 3rem 3rem 2.5rem; }
.yunoji-nb__page--r { padding-left: 3.5rem; }

/* 文字 */

.yunoji-nb__h { font-weight: 400; position: relative; display: table; }
.yunoji-nb__h.has-text-align-center { margin-left: auto; margin-right: auto; }
.yunoji-nb__pno { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; letter-spacing: .2em; color: #8a8a8a; margin: 0 0 .4rem; }
.yunoji-nb__memo { font-family: var(--wp--preset--font-family--heading); color: #555; font-size: .95rem; letter-spacing: .06em; margin: 1rem 0 0; transform: rotate(-1deg); }

.yunoji-nb__page--r { position: relative; }

/* テープで貼った写真 */
.yunoji-tape { position: relative; margin: .5rem auto 0; width: 92%; transform: rotate(var(--rot, -2deg)); background: #fff; padding: 10px 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.yunoji-tape img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.yunoji-tape::before, .yunoji-tape::after { content: ""; position: absolute; top: -12px; width: 80px; height: 26px; background: rgba(255,236,160,.75); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-8deg); }
.yunoji-tape::before { left: 18px; } .yunoji-tape::after { right: 18px; transform: rotate(7deg); }
.yunoji-tape figcaption { font-size: .75rem; color: #666; letter-spacing: .08em; margin-top: .5rem; text-align: right; font-family: var(--wp--preset--font-family--heading); }

/* 付箋 */
.yunoji-stickies { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }
.yunoji-sticky { display: inline-block; padding: 1.1rem 1.3rem; min-width: 11rem; max-width: 16rem; font-size: .92rem; line-height: 1.8; font-weight: 500; color: #333; transform: rotate(var(--r, 0deg)); box-shadow: 2px 4px 10px rgba(0,0,0,.1); position: relative; }
.yunoji-sticky::before { content: ""; position: absolute; left: 50%; top: -8px; width: 40px; height: 14px; margin-left: -20px; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.yunoji-sticky.is-y { background: #fff3a8; } .yunoji-sticky.is-b { background: #d6ecf3; } .yunoji-sticky.is-p { background: #f7d9d4; } .yunoji-sticky.is-g { background: #e2f0d0; } .yunoji-sticky.is-w { background: #fff; border: 1px dashed #999; box-shadow: none; }
.yunoji-stickies--sm { justify-content: flex-start; gap: .6rem; margin-top: 1.4rem; }
.yunoji-stickies--sm .yunoji-sticky { min-width: 0; padding: .4rem .8rem; font-size: .82rem; }
.yunoji-stickies--sm .yunoji-sticky::before { display: none; }
.yunoji-stickies--sm .yunoji-sticky:first-child { font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; padding: .5rem 1rem; }

/* 最後のページ：罫線の紙と手書きメモ */

.yunoji-notebook .wp-block-buttons { margin-top: 2.5rem; }

/* 切り抜き帳：WORKS */
.yunoji-scrap { margin-top: 3rem; }
.yunoji-scrap .yunoji-works__grid { gap: 3rem 2.5rem !important; }
.yunoji-scrap .yunoji-works__grid > li { position: relative; background: #fff; padding: 10px 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: rotate(-1deg); }
.yunoji-scrap .yunoji-works__grid > li:nth-child(3n+2) { transform: rotate(1.2deg); }
.yunoji-scrap .yunoji-works__grid > li:nth-child(3n) { transform: rotate(-.6deg); }
.yunoji-scrap .yunoji-works__grid > li::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: rgba(255,236,160,.75); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.yunoji-scrap img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.yunoji-scrap .yunoji-works__meta { margin: .7rem 0 .2rem; gap: .7rem; font-size: .72rem; color: #777; align-items: center; }
.yunoji-scrap .wp-block-post-terms a { color: var(--yunoji-accent); text-decoration: none; }
.yunoji-scrap .wp-block-post-title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 400; line-height: 1.7; }
.yunoji-scrap .wp-block-post-title a { text-decoration: none; color: #333; }
.yunoji-works__more { margin-top: 3.5rem; }
.yunoji-works__more a { display: inline-block; border: 1px solid #999; padding: .6rem 2rem; font-size: .8rem; letter-spacing: .1em; text-decoration: none; color: #333; background: #fff; }

@media (max-width: 781px) {
  
  .yunoji-phero__inner { padding-top: 6rem; }
  .yunoji-spread::before { display: none; }
  .yunoji-nb__page { padding: 1.8rem 1.4rem; }
  
  .yunoji-sticky { min-width: 0; max-width: none; width: calc(50% - .6rem); font-size: .85rem; }
  .yunoji-scrap .yunoji-works__grid > li { transform: none; }
}

/* マーケティングサポート /ads-support/（余白・枠線・文字サイズはブロック設定。ここは飾りだけ） */

.yunoji-ads__who li, .yunoji-ads__steps li { word-break: keep-all; overflow-wrap: anywhere; }

.yunoji-ads__plan p { margin: 0; text-align: center; }
.yunoji-ads__plans > .wp-block-column > .yunoji-ads__plan { height: 100%; box-sizing: border-box; }
.yunoji-ads__inc { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px dotted #c9d9de; font-size: .9rem; }
.yunoji-ads__inc li { padding: .35em 0 .35em 1.4em; position: relative; }
.yunoji-ads__inc li::before { content: ""; position: absolute; left: .2em; top: .85em; width: .55em; height: .3em; border-left: 2px solid var(--yunoji-accent); border-bottom: 2px solid var(--yunoji-accent); transform: rotate(-45deg); }
.yunoji-ads__who { list-style: none; padding: 0; }
.yunoji-ads__who li { padding: .8em 0 .8em 1.6em; border-bottom: 1px dotted #c9d9de; position: relative; }
.yunoji-ads__who li::before { content: ""; position: absolute; left: .2em; top: 1.35em; width: .55em; height: .3em; border-left: 2px solid var(--yunoji-accent); border-bottom: 2px solid var(--yunoji-accent); transform: rotate(-45deg); }
.yunoji-ads__steps { list-style: none; counter-reset: st; padding: 0; }
.yunoji-ads__steps li { counter-increment: st; position: relative; padding: .2em 0 1.6em 3.2rem; }
.yunoji-ads__steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--yunoji-accent); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.yunoji-ads__steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.3rem; bottom: .2rem; width: 1px; background: #c9d9de; }

/* マーケのデータ（背景の飾り）：かけらがスクロールに合わせて1つずつうっすら浮かぶ。SVG は motion.js が差し込む */
.yunoji-mktlines { position: relative; overflow: hidden; }
.yunoji-mktdata { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.yunoji-mktdata__i { position: absolute; fill: none; stroke: var(--yunoji-accent); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2,.7,.3,1); }
.yunoji-mktdata__i.is-on { opacity: .45; transform: none; }
.yunoji-mktlines > *:not(.yunoji-mktdata) { position: relative; z-index: 1; }
@media (max-width: 781px) { .yunoji-mktdata__i { width: 80px !important; height: 80px !important; } }

/* 代表STAFFの枠：青い線の枠に、左下へずらした細い線をもう1本（飾り） */
.yunoji-staff-card { box-shadow: -9px 9px 0 -1px #fff, -9px 9px 0 0 var(--yunoji-accent); }
@media (max-width: 781px) { .yunoji-staff-card { padding: 2rem 1.25rem !important; } }

/* /ads-support/：3つの特徴・こんなことを感じる方に・STAFF を1枚の方眼紙でつなぐ（線は画面に固定して位置をそろえる） */
body:has(.yunoji-ads__hero) { --gridimg: linear-gradient(to right, rgba(140,183,198,.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(140,183,198,.16) 1px, transparent 1px), linear-gradient(to right, rgba(140,183,198,.32) 1px, transparent 1px), linear-gradient(to bottom, rgba(140,183,198,.32) 1px, transparent 1px); }
body:has(.yunoji-ads__hero) .yunoji-section--grid,
body:has(.yunoji-ads__hero) .yunoji-section--white:has(.yunoji-staff-card),
.yunoji-ads__whocover::before { background-color: #fff; background-image: var(--gridimg); background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px; background-position: center top; background-attachment: fixed; }
body:has(.yunoji-ads__hero) .yunoji-section--grid::before, body:has(.yunoji-ads__hero) .yunoji-section--grid::after { display: none; }
/* 窓：方眼紙を上下左右に残し、左の内側だけくり抜く（右端は短くぼかす） */
.yunoji-ads__whocover { background: transparent !important; --wm: clamp(1.25rem, 5vw, 4rem); --wv: 3.5rem; }
.yunoji-ads__whocover::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask: linear-gradient(#000, #000) top left / 100% var(--wv) no-repeat, linear-gradient(#000, #000) bottom left / 100% var(--wv) no-repeat, linear-gradient(#000, #000) top left / var(--wm) 100% no-repeat, linear-gradient(90deg, transparent 43%, #000 47%);
          mask: linear-gradient(#000, #000) top left / 100% var(--wv) no-repeat, linear-gradient(#000, #000) bottom left / 100% var(--wv) no-repeat, linear-gradient(#000, #000) top left / var(--wm) 100% no-repeat, linear-gradient(90deg, transparent 43%, #000 47%); }
.yunoji-ads__whocover > * { position: relative; z-index: 1; }
@media (max-width: 781px) { .yunoji-ads__whocover::before { -webkit-mask: none; mask: none; } }   /* スマホは窓なし（2026-11-18 本人） */

/* 見開きを1つにしてスクロールでめくる（flipbook.js、PCのみ）2026-11-15 */
.yunoji-flip__dots span { cursor: pointer; }
.yunoji-flip__stage { position: relative; perspective: 2200px; background: #fff; }
.yunoji-flip__stage::before { z-index: 5; }
.yunoji-flip__stage .yunoji-nb__page { position: absolute; top: 0; width: 50%; box-sizing: border-box; background: #fff !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: 1 !important; transition: none !important; }
.yunoji-flip__stage .yunoji-nb__page--l { left: 0; transform-origin: right center; }
.yunoji-flip__stage .yunoji-nb__page--r { left: 50%; transform-origin: left center; }
.yunoji-flip__dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.2rem; }
.yunoji-flip__dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--yunoji-accent, #8cb7c6); transition: background .3s; }
.yunoji-flip__dots span.is-on { background: var(--yunoji-accent, #8cb7c6); }
.yunoji-flip__hint { text-align: center; margin: .7rem 0 0; font-size: .72rem; letter-spacing: .12em; color: var(--wp--preset--color--muted); }   /* タブレットのめくりの案内（flipbook.js） */
/* スマホの流れ：表紙を読んでから開く本（flipbook.js の mobile()）2026-11-18 */
.yunoji-mbook { position: relative; }
.yunoji-mbook__stick { position: sticky; top: 72px; perspective: 1800px; }
.yunoji-mbook__box { position: relative; }
.yunoji-mbook__box > .yunoji-spread { margin: 0 !important; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.yunoji-mbook .yunoji-nb__page--l .yunoji-stickies, .yunoji-mbook .yunoji-nb__page--l .yunoji-nb__memo { display: none; }
.yunoji-mbook__cover { position: absolute; left: 0; right: 0; top: 0; z-index: 5; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.yunoji-mbook__face, .yunoji-mbook__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.yunoji-mbook__face { background: var(--wp--preset--color--deep, #3a6676); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; padding: 0 2rem; text-align: center; box-shadow: inset 10px 0 0 rgba(0,0,0,.18); }
.yunoji-mbook__back { transform: rotateY(180deg); background: #f4f1ea; }
.yunoji-mbook__pno { margin: 0; font-family: monospace; font-size: .7rem; letter-spacing: .2em; color: rgba(255,255,255,.75); }
.yunoji-mbook__h { margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; letter-spacing: .08em; }
.yunoji-mbook__face .yunoji-stickies { justify-content: center; margin-top: .4rem; gap: .5rem; }
.yunoji-mbook__face .yunoji-sticky { width: auto !important; min-width: 0; padding: .3rem .8rem; font-size: .8rem; }
.yunoji-mbook__face .yunoji-sticky:first-child { font-size: .95rem; }
.yunoji-mbook__face .yunoji-sticky { color: #fff; border-color: rgba(255,255,255,.5) !important; background: transparent !important; }
.yunoji-mbook__face .yunoji-sticky.is-p { background: rgba(255,255,255,.92) !important; color: #3a6676; }
.yunoji-mbook__memo { margin: 0; font-family: var(--wp--preset--font-family--heading); color: rgba(255,255,255,.88); }
.yunoji-mbook__sc { position: absolute; bottom: 1.4rem; font-size: .62rem; letter-spacing: .2em; color: rgba(255,255,255,.6); }
.yunoji-mbook .yunoji-ch { opacity: 0; color: transparent; text-shadow: 0 0 10px rgba(40,40,40,.45); }
.yunoji-mbook .is-writing .yunoji-ch { opacity: 1; color: inherit; text-shadow: 0 0 0 transparent; transition: opacity .5s ease, color .7s ease, text-shadow .9s ease; transition-delay: calc(var(--i) * 26ms); }
