/* yunoji theme v0.4 — STUDIO版トップの再現。アクセント #8cb7c6 */
:root { --yunoji-accent: #8cb7c6; --yunoji-accent-soft: #dfe8eb; --yunoji-gray: #eeeeee; }

/* ===== ヘッダー（公開画面では動画の上に固定） ===== */
.yunoji-header { z-index: 50; padding: 1rem 0; color: var(--wp--preset--color--base); }
html.yunoji-js .yunoji-header { position: fixed; inset: 0 0 auto 0; transition: background .3s, color .3s; }
html.yunoji-js .yunoji-header.is-scrolled { background: rgba(255,255,255,.9); color: var(--wp--preset--color--contrast); backdrop-filter: blur(8px); }
.yunoji-header a { color: inherit; text-decoration: none; }
.yunoji-nav .wp-block-navigation-item__content { letter-spacing: .1em; font-size: .95rem; }
.yunoji-nav .wp-block-navigation-item + .wp-block-navigation-item::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; margin: 0 1rem 0 .25rem; vertical-align: middle; }
.yunoji-nav .wp-block-navigation__responsive-container-open { color: inherit; }

/* 丸ロゴ：中央に「ゆ」、周囲の文字が回転 */
.yunoji-logo { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; color: inherit; }
.yunoji-logo__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: yunoji-spin 24s linear infinite; font-family: var(--wp--preset--font-family--body); }
/* ロゴはヘッダーの文字色に左右されず、常に白丸＋青灰の「ゆ」。回転文字はヒーロー上では白、スクロール後は青灰 */
.yunoji-logo__mark { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(140,183,198,.35); }
.yunoji-logo__mark::after { content: "ゆ"; color: var(--yunoji-accent); font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; }
html.yunoji-js .yunoji-header.is-scrolled .yunoji-logo { color: var(--yunoji-accent); }
@keyframes yunoji-spin { to { transform: rotate(360deg); } }

/* ===== ヒーロー（core/cover の動画を画面に固定） ===== */
.yunoji-hero.wp-block-cover { min-height: 100svh; }
html.yunoji-js .yunoji-hero .wp-block-cover__video-background,
html.yunoji-js .yunoji-hero .wp-block-cover__background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.yunoji-hero .wp-block-cover__video-background { object-fit: cover; }
html.yunoji-js .yunoji-hero .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.yunoji-hero__inner { width: 100%; padding: 6rem 0 4rem; }
.yunoji-hero__copy { max-width: 32rem; }
.yunoji-hero__title { font-weight: 400; letter-spacing: .06em; margin-bottom: 1.5rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; }  /* ヒーローだけ少し大きく */
.yunoji-hero__lead { line-height: 2.4; letter-spacing: .1em; }
.yunoji-hero__brand { text-align: right; --logo-size: clamp(5rem, 14vw, 11rem); }
.yunoji-hero__logo { writing-mode: vertical-rl; font-size: var(--logo-size); line-height: 1; letter-spacing: 0; font-weight: 400; margin: 0 0 1rem auto; }
/* 1文字ずつ左へずらして階段状に */
.yunoji-hero__logo span { display: inline-block; margin-block-end: .08em; --dx: 0em; transform: translateX(var(--dx)); }
.yunoji-hero__logo span:nth-child(2) { --dx: -.12em; }
.yunoji-hero__logo span:nth-child(3) { --dx: -.24em; }
/* 読み込み後、揃った状態から少しずつずれていく */
html.yunoji-js .yunoji-hero__logo span { animation: yunoji-slide 1.6s cubic-bezier(.2,.7,.2,1) .6s both; }
html.yunoji-js .yunoji-hero__logo span:nth-child(3) { animation-delay: .9s; }
@keyframes yunoji-slide { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
/* 事務所名：「字」（左に .24em ずれている）の真下で中央揃え。右から滑り込む */
.yunoji-hero__sub { letter-spacing: .1em; width: var(--logo-size); margin-left: auto; text-align: center; white-space: nowrap; --sub-dx: calc(var(--logo-size) * -0.24); transform: translateX(var(--sub-dx)); }
html.yunoji-js .yunoji-hero__sub { animation: yunoji-sub-in 1.4s cubic-bezier(.2,.7,.2,1) 1.3s both; }
@keyframes yunoji-sub-in { from { opacity: 0; transform: translateX(calc(var(--sub-dx) + 3rem)); } to { opacity: 1; transform: translateX(var(--sub-dx)); } }

/* オープニング中は「ゆの字」のずれと事務所名の滑り込みを止めておき、解除後に動かす */
html.intro-hold .yunoji-hero__logo span, html.intro-hold .yunoji-hero__sub { animation-play-state: paused !important; }

/* ===== セクション共通 ===== */
.yunoji-front { position: relative; z-index: 1; }
/* 固定したオーバーレイ(z-index:0)より上に各セクションを置く。セクション間の隙間は0に */
.yunoji-front .yunoji-section { position: relative; z-index: 1; }
.yunoji-front .wp-block-post-content > * { margin-block-start: 0 !important; }
.yunoji-section--fade { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 45%, #fff 100%); padding-top: clamp(14rem, 30vh, 22rem) !important; }
.yunoji-section--white { background: #fff; }
/* 項と項の間：画面の高さに応じて広めに */
.yunoji-section--white, .yunoji-section--glass, .yunoji-section--company { padding-top: clamp(7rem, 16vh, 12rem) !important; padding-bottom: clamp(7rem, 16vh, 12rem) !important; }
.yunoji-section--fade { padding-bottom: clamp(7rem, 16vh, 12rem) !important; }
.yunoji-section--glass { background: rgba(255,255,255,.6); backdrop-filter: grayscale(1) brightness(1.08) blur(1.5px); -webkit-backdrop-filter: grayscale(1) brightness(1.08) blur(1.5px); }
.yunoji-label { letter-spacing: .06em; margin-bottom: .25rem; font-size: clamp(1.05rem, .9rem + .65vw, 1.35rem); font-weight: 300; }
.yunoji-section h2.has-x-large-font-size, .yunoji-section h3.has-x-large-font-size { margin-top: 0; margin-bottom: 1.5rem; font-weight: 400; }
.yunoji-footer { position: relative; z-index: 1; }

/* スクロールで現れる（JSが動く時だけ最初は隠す） */
html.yunoji-js .yunoji-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
html.yunoji-js .yunoji-reveal.is-visible { opacity: 1; transform: none; }

/* Concept の欄（企画・マーケ・リノベのページで使用）：泡の列を中央に */
.yunoji-concept { align-items: center !important; }
.yunoji-concept > .wp-block-column { align-self: center !important; }

/* ===== About 1：3枚を段違いに ===== */
.yunoji-about-cards { margin-top: 5rem; align-items: flex-start; }
.yunoji-about-card.is-2 { margin-top: 4rem; }
.yunoji-about-card.is-3 { margin-top: 8rem; }
.yunoji-about-card h3 { margin: 1rem 0 .5rem; font-weight: 400; }
.yunoji-about-card .has-muted-color { margin-top: .25rem; }

/* ===== About 2：ベン図と4領域（方眼紙の上に） ===== */
.yunoji-section--grid {
  background-color: #fff;
  background-image: 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);
  background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px; background-position: center top; }
/* 上下の縁は白にぼかして、前後のセクションと馴染ませる */
.yunoji-section--grid { position: relative; }
.yunoji-section--grid::before, .yunoji-section--grid::after { content: ""; position: absolute; left: 0; right: 0; height: 8rem; pointer-events: none; }
.yunoji-section--grid::before { top: 0; background: linear-gradient(to bottom, #fff, rgba(255,255,255,0)); }
.yunoji-section--grid::after { bottom: 0; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.yunoji-section--grid > * { position: relative; z-index: 1; }
.yunoji-fields { margin-top: 5rem; }
.yunoji-fields .wp-block-column > .yunoji-field + .yunoji-field { margin-top: 2.5rem; }
.yunoji-field { text-align: center; }
.yunoji-field::before { content: ""; display: inline-block; width: 40px; height: 40px; background: var(--yunoji-accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.yunoji-field__title { font-size: 1.1rem; font-weight: 400; margin: .5rem 0 .4rem !important; letter-spacing: .08em; }
.yunoji-field__text { font-size: .85rem; color: #555; margin: 0 !important; line-height: 1.9; }
.yunoji-field--home::before   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/%3E%3C/svg%3E"); }

.yunoji-field--pen::before    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75zm17.7-10.2a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z'/%3E%3C/svg%3E"); }

.yunoji-field--trend::before  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E"); }
.yunoji-field--store::before  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z'/%3E%3C/svg%3E"); }
.yunoji-venn svg { width: 100%; height: auto; display: block; }

/* ===== About 3：代表 ===== */
.yunoji-staff { margin-top: 4rem; }
.yunoji-staff h3 { font-weight: 400; margin-top: 0; }
.yunoji-staff__en { font-size: .7rem; letter-spacing: .1em; margin-left: 1rem; font-family: var(--wp--preset--font-family--body); color: #555; }

/* ===== Service：3カード＋サポート枠 ===== */
.yunoji-services { margin-top: 5rem; gap: 2rem; padding: 0 1rem; }
.yunoji-services > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; }
.yunoji-service { position: relative; min-height: 10rem; }   /* 左の余白 4.5rem はブロック設定 */
.yunoji-service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3.75rem; background: rgba(243,243,243,.85); }   /* 灰色の帯は白線の枠いっぱい */
.yunoji-service::after { content: ""; position: absolute; left: 1.1rem; top: calc(50% - .75rem); width: 1.5rem; height: 1.5rem; background: var(--yunoji-accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.yunoji-service--plan::after  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M2 19c0-3.5 3-6 7-6s7 2.5 7 6zm14-1c0-2-1-3.7-2.6-4.8.5-.1 1-.2 1.6-.2 3 0 5 1.8 5 5z'/%3E%3C/svg%3E"); }
.yunoji-service--reno::after  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v8H6zM4 12h16v3h-2v6h-2v-6H8v6H6v-6H4z'/%3E%3C/svg%3E"); }
.yunoji-service--media::after { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 6 10h3l-4 6h5v4h4v-4h5l-4-6h3z'/%3E%3C/svg%3E"); }
.yunoji-service--support::after { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E"); }  /* 右肩上がり（発展） */
.yunoji-service h3 { font-weight: 400; margin: 1.6rem 0 .5rem; letter-spacing: .06em; }

.yunoji-service--support h3 { margin-top: .25rem; }
.yunoji-service--support .wp-block-buttons { margin-top: 1.25rem; }

/* 折り返しは文の区切り（<wbr> を入れた所）だけで */
.yunoji-section--grid h2, .yunoji-section--grid p { word-break: keep-all; overflow-wrap: anywhere; }

/* ベン図：丸が1つずつ順に出て、最後に「ゆの字の視点」 */
html.yunoji-js .yunoji-venn.yunoji-play circle, html.yunoji-js .yunoji-venn.yunoji-play text { opacity: 0; }
html.yunoji-js .yunoji-venn.yunoji-play circle { transform: scale(.55); transform-box: fill-box; transform-origin: center; }
.yunoji-venn.is-visible circle { opacity: 1 !important; transform: none !important; transition: opacity .7s ease, transform .9s cubic-bezier(.2,.75,.3,1); }
.yunoji-venn.is-visible text { opacity: 1 !important; transition: opacity .6s ease; }
.yunoji-venn.is-visible .v1 { transition-delay: .1s; }  .yunoji-venn.is-visible text.v1 { transition-delay: .5s; }
.yunoji-venn.is-visible .v2 { transition-delay: .45s; } .yunoji-venn.is-visible text.v2 { transition-delay: .85s; }
.yunoji-venn.is-visible .v3 { transition-delay: .8s; }  .yunoji-venn.is-visible text.v3 { transition-delay: 1.2s; }
.yunoji-venn.is-visible .v4 { transition-delay: 1.15s; } .yunoji-venn.is-visible text.v4 { transition-delay: 1.55s; }
.yunoji-venn.is-visible text.v5 { transition-delay: 1.95s; }
@media (prefers-reduced-motion: reduce) { .yunoji-venn.is-visible circle, .yunoji-venn.is-visible text { transition: none; } }
.yunoji-services > .wp-block-column > .yunoji-service { height: 100%; box-sizing: border-box; }   /* 下段3枚の白線の枠を同じ高さに */

/* 事例集（/renovation/ 案D、2026-11-16）：上3件は台帳・残りは棚。CSS は罫線と番号だけ（余白・列幅・文字はブロック設定） */
.yunoji-ledger__list { counter-reset: w; border-top: 1px solid #d9d9d9; }
.yunoji-ledger__list > li { counter-increment: w; border-bottom: 1px solid #d9d9d9; }
.yunoji-ledger__list .wp-block-column:last-child::before { content: counter(w, decimal-leading-zero); display: block; font-family: var(--wp--preset--font-family--en); font-size: 1.9rem; line-height: 1; color: var(--wp--preset--color--accent); margin-bottom: .6rem; }
.yunoji-works .wp-block-post-terms a { color: inherit; text-decoration: none; }
