/* yunoji theme-3.css — 第2階層「企画ノート」。ページ全体が1冊のノート。紙・テープ・付箋・ページ番号 */

/* ===== 冒頭：写真＋青灰、右に縦書きの札 ===== */
.yunoji-phero.wp-block-cover { min-height: 72vh; }
.yunoji-phero .wp-block-cover__inner-container { width: 100%; }
.yunoji-phero__inner { padding: 7rem 0 4rem; gap: 2rem; }
.yunoji-phero__copy .yunoji-label { color: rgba(255,255,255,.85) !important; }
.yunoji-phero__copy .yunoji-label::before { background: rgba(255,255,255,.85); }
.yunoji-phero__title { font-weight: 400; letter-spacing: .08em; margin: .25rem 0 .5rem; }
.yunoji-phero__en { letter-spacing: .3em; opacity: .85; }

/* ===== こういうシーンで（yunoji-scene3）
   位置・大きさ・余白・文字サイズはブロックの設定（編集画面の右側）で持つ。ここは飾りと重なり順だけ。数値を上書きしない ===== */

            /* カードを写真の前に */
      /* 二重線 */

/* 訪問者の心の声（点線で区切る静かなリスト） */

/* 問いかけを ＼ ／ で囲む */

/* 心の声：□チェック。スクロールで上から順に入る */

 
 
/* 返事を載せた斜めの矢印帯。位置・余白・文字はブロック設定、ここは形と傾きと伸びる動き */

/* 左から伸びる：マスクで隠す（clip-path で隠すと「画面に入った」判定が起きないため） */

/* タブレット・スマホ：縦に積むので、重なり用のずらしだけ解除（ここだけは上書き）。重ねる構図は 1024px 以上だけ */
/* 天体の回転（.yunoji-orbit、orbit.js）：重なり順だけ。地の色・余白はブロック設定 */
.yunoji-orbit { position: relative; overflow: hidden; }
.yunoji-orbit__sky { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.yunoji-orbit .wp-block-cover__inner-container { z-index: 3; }
.yunoji-orbit > section { position: relative; z-index: 3; }
.yunoji-orbit__sky.is-fixed { position: fixed; }
.wp-block-cover.yunoji-orbit > .yunoji-orbit__sky { z-index: 1; }   /* 動画の上、文字の下 */
.wp-block-cover.yunoji-orbit > .wp-block-cover__inner-container { z-index: 2; }
/* 波紋（.yunoji-ripple、ripple.js）：WebGL のキャンバスを動画の位置に重ね、準備ができたら元の動画を隠す */
.yunoji-ripple__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.yunoji-ripple__gl.is-fixed { position: fixed; }
.yunoji-ripple__gl.is-on { opacity: 1; }
.yunoji-ripple:has(.yunoji-ripple__gl.is-on) .yunoji-ripple__src { opacity: 0; }
/* /ads-support/：コンセプトの青から方眼紙へ。方眼の線を白から浮かび上がらせる（上端のぼかしだけ戻す） */
html body .yunoji-ads__concept + .yunoji-section--grid::before { display: block; height: 10rem; z-index: 0; }

/* パズルのピース（/planning/、puzzle.js が図に置き換える）2026-11-15 */
.yunoji-puzzle.is-built { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yunoji-puzzle__fig { display: block; width: 100%; height: auto; overflow: visible; }
.yunoji-puzzle__fig text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.yunoji-puzzle__fig .ja { font-family: var(--wp--preset--font-family--body); font-size: 21px; font-weight: 500; letter-spacing: .14em; }
.yunoji-puzzle__fig .en { font-family: "Cormorant Garamond", var(--wp--preset--font-family--heading); font-size: 15px; font-weight: 500; letter-spacing: .14em; opacity: .85; }
.yunoji-puzzle__line { fill: none; stroke: var(--yunoji-accent, #8cb7c6); opacity: 0; }
/* 天体の欄のコンセプトは少し速く現れる（2026-11-15） */
html.yunoji-js .yunoji-orbit__concept .yunoji-reveal { transform: translateY(14px); transition-duration: .6s; }
/* 「こういうシーンで」の項目の札（新しく／改善／打開）：番号の下に小さく（案C） */
.yunoji-pscene .yunoji-ads__feat li { min-height: 3.6rem; }
.yunoji-pscene__tag { position: absolute; left: 0; top: 3.35rem; width: 3.2rem; padding-top: .2rem; border-top: 1px solid var(--yunoji-accent, #8cb7c6); color: #5f8d9c; font-family: var(--wp--preset--font-family--body); font-size: .7rem; letter-spacing: .2em; line-height: 1.4; }

/* めくりの右ページ：開くと文字が上から1字ずつ浮かび上がる（flipbook.js が .yunoji-ch に分ける）2026-11-15 */
.yunoji-flip__stage .yunoji-ch { opacity: 0; color: transparent; text-shadow: 0 0 10px rgba(40,40,40,.45); }
.yunoji-flip__stage .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); }
/* 斜体＝大きく見せる言葉（蛍光の下線は 2026-11-15 に不採用） */
.yunoji-nb__page--r em { font-style: normal; font-size: 1.3em; font-weight: 500; letter-spacing: .06em; }

/* 木の年輪（.yunoji-rings、rings.js）：重なり順だけ。地の色・余白はブロック設定（/renovation/）2026-11-15 */
.yunoji-rings { position: relative; overflow: hidden; }
.yunoji-rings__svg { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.yunoji-rings .wp-block-cover__inner-container { z-index: 3; }
.yunoji-rings > section { position: relative; z-index: 3; }
html.yunoji-js .yunoji-rings__concept .yunoji-reveal { transform: translateY(14px); transition-duration: .6s; }
/* こういうシーンで（リノベ）：重ねた小さい写真の白い縁と影（位置・大きさ・重なりの余白はブロック設定） */

/* ===== 記事ページ（A3「白へ溶ける扉」、2026-11-15 本人決定）：ここは飾りだけ。幅・揃え・余白・白への溶け方（写真ブロックのオーバーレイ）はテンプレートのブロック設定 ===== */
.yunoji-article__open { position: relative; overflow: hidden; }
.yunoji-article__open .wp-block-post-featured-image { margin: 0; }
.yunoji-article__open:not(:has(img))::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 60% 24% at 68% 100%, rgba(140,183,198,.38) 0 1px, transparent 1px 36px); -webkit-mask-image: linear-gradient(#000 20%, transparent 90%); mask-image: linear-gradient(#000 20%, transparent 90%); }  /* 写真のない記事：薄い地に波紋 */
.yunoji-article__title { position: relative; z-index: 1; }
.yunoji-article__tag { border: 1px solid var(--yunoji-accent); border-radius: 2px; padding: 0 .7em; line-height: 1.8; }
.yunoji-article__tag a { text-decoration: none; }
.yunoji-article__body > h2 { display: table; margin-left: auto; margin-right: auto; text-align: center; }   /* H2 だけ中央（本人決定）。H3・本文は左 */
.yunoji-article__body > h2::before { content: "◇"; display: block; color: var(--yunoji-key); font-size: .6rem; line-height: 1; margin-bottom: 1.6em; letter-spacing: 0; }
.yunoji-article__body > h2::after { content: ""; display: block; width: 2.4rem; height: 1px; background: var(--yunoji-accent); margin: .8em auto 0; }
.yunoji-article__body .wp-block-pullquote { max-width: 560px; margin-left: auto; margin-right: auto; }        /* 引用：上下を朱の短い線ではさむ。書体・色は theme.json */
.yunoji-article__body .wp-block-pullquote blockquote::before, .yunoji-article__body .wp-block-pullquote blockquote::after { content: ""; display: block; width: 1px; height: 2.2rem; background: var(--yunoji-key); margin: 0 auto 1em; }
.yunoji-article__body .wp-block-pullquote blockquote::after { margin: 1em auto 0; }
.yunoji-article__body .wp-block-pullquote p { margin: 0; }
.yunoji-article__body .wp-block-pullquote cite { font-family: var(--wp--preset--font-family--body); font-size: .8rem; font-style: normal; }

/* 半年でこう変わる（/ads-support/）：言葉のリスト .yunoji-curve は curve.js が図に描き替える。JS が動く時だけ隠す（編集画面ではリストのまま） */
html.yunoji-js ul.yunoji-curve { display: none; }
/* 間伐材の枠（/renovation/ 01 素材の補足、写真3枚）：重なり順・影だけ。重なりの量は画像ブロックの余白。スマホは重なりを弱める */
.yunoji-optc__top, .yunoji-optc__sub, .yunoji-optc__card { position: relative; z-index: 1; }
.yunoji-optc__card { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
@media (max-width: 781px) { .yunoji-optc__top { margin: 0 0 0 40% !important; } .yunoji-optc__main { margin: -3rem 0 0 !important; } .yunoji-optc__sub { margin: -4rem 40% 0 0 !important; } .yunoji-optc__card { margin: -2rem 1rem 0 !important; } }

/* スマホのメニュー（ハンバーガーの中）：全部右揃え、区切りの●と文字のにじみは出さない（2026-11-18） */
.yunoji-nav .is-menu-open .wp-block-navigation__container, .yunoji-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-end !important; }
.yunoji-nav .is-menu-open .wp-block-navigation-item { align-items: flex-end !important; }
.yunoji-nav .is-menu-open .wp-block-navigation-item::before { display: none !important; }
.yunoji-nav .is-menu-open .wp-block-navigation__submenu-container { padding: .6rem 0 .2rem !important; gap: .9rem; margin: 0 !important; }
.yunoji-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0 !important; }
.yunoji-nav .is-menu-open .wp-block-navigation-item__content { text-shadow: none !important; color: var(--wp--preset--color--contrast) !important; }
.yunoji-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: .85rem; color: #555 !important; }
/* スマホ：コンセプトの青と方眼紙の境に出る細い線をなくす（固定の動画が1pxのすき間からのぞく／方眼の1本目が境に乗る） */
@media (max-width: 781px) {
  .yunoji-ads__concept + .yunoji-section--grid { margin-top: -2px !important; background-position: center 20px !important; }
}
.yunoji-nav .is-menu-open .wp-block-navigation__container { padding-right: 1.4rem !important; }   /* メニューの右に少し余白 */

/* リノベ 01〜03 のスマホの写真の並び（案2 リズム、2026-11-18）：大きさと位置を章ごとに変え、すき間は 10px と 44px の2種類だけ
   a＝頭に画面いっぱいの縦長→文→横長→正方形2枚／b＝文→右端まで伸びる横長→右に寄せた縦長→正方形2枚／c＝頭に画面いっぱいの縦長→文→左に寄せた縦長→正方形2枚 */
@media (max-width: 781px) {
  .yunoji-rchap > .wp-block-columns:first-of-type { gap: 0 !important; margin: 0 !important; }
  .yunoji-rchap > .wp-block-columns:first-of-type { display: flex; flex-direction: column; }
  .yunoji-rchap > .wp-block-columns:first-of-type > .wp-block-column:has(> .wp-block-image) { order: -1; margin-bottom: 44px; }
  .yunoji-rchap--b > .wp-block-columns:first-of-type > .wp-block-column:has(> .wp-block-image) { order: 2; margin: 44px 0 0; }
  .yunoji-rchap .wp-block-image { margin: 0 !important; }
  .yunoji-rchap--a > .wp-block-columns:first-of-type .wp-block-image, .yunoji-rchap--c > .wp-block-columns:first-of-type .wp-block-image { width: 100vw; margin-left: calc(50% - 50vw) !important; }
  .yunoji-rchap--a > .wp-block-columns:first-of-type img, .yunoji-rchap--c > .wp-block-columns:first-of-type img { aspect-ratio: 4/5 !important; }
  .yunoji-rchap--a { padding-top: 0 !important; }
  .yunoji-rchap--c { padding-top: 0 !important; }
  .yunoji-rchap--b > .wp-block-columns:first-of-type .wp-block-image { margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.25rem)) !important; }
  .yunoji-rchap > .wp-block-image { margin-top: 44px !important; }
  .yunoji-rchap--a > .wp-block-image img { aspect-ratio: 16/9 !important; }
  .yunoji-rchap--b > .wp-block-image { margin-left: 22% !important; }
  .yunoji-rchap--c > .wp-block-image { margin-right: 22% !important; }
  .yunoji-rchap--b > .wp-block-image img, .yunoji-rchap--c > .wp-block-image img { aspect-ratio: 4/5 !important; }
  .yunoji-rchap > .wp-block-image + .wp-block-columns { display: flex; flex-wrap: nowrap !important; gap: 10px !important; margin-top: 10px !important; }
  .yunoji-rchap > .wp-block-image + .wp-block-columns > .wp-block-column { flex: 1 1 0 !important; }
  .yunoji-rchap > .wp-block-image + .wp-block-columns img { aspect-ratio: 1/1 !important; }
}
.yunoji-article__open .wp-block-post-featured-image__overlay { bottom: -2px; }   /* 記事の冒頭：写真の下端に細い線（写真が1pxのぞく）が出ないように */
/* 一覧ページの絞り込みボタン（丸い札、押したものが深い青）2026-11-18 */
.yunoji-kindfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
.yunoji-kindfilter button { font: inherit; font-size: .85rem; letter-spacing: .1em; background: #fff; color: #3a6676; border: 1px solid #b9cfd7; border-radius: 999px; padding: .45rem 1.4rem; cursor: pointer; transition: background .3s, color .3s; }
.yunoji-kindfilter button.is-on { background: #3a6676; border-color: #3a6676; color: #fff; }
.yunoji-kindfilter i { font-style: normal; font-family: var(--wp--preset--font-family--en); opacity: .7; margin-left: .4rem; }
.yunoji-archive__list .wp-block-post-template > li[hidden] { display: none; }
