/* yunoji theme-2.css — theme.css の続き（ボタン・カルーセル・Media・Company・フッター・案件リンク・オープニング・スマホ） */

/* ===== ボタン ===== */
.wp-block-button__link.has-accent-background-color, .wp-block-button__link.has-contrast-background-color { font-size: .8rem; font-weight: 500; padding: .8rem 1.8rem; letter-spacing: .06em; }

/* ===== カルーセル（横に流れる）：企画／リノベ記事のアイキャッチを自動で ===== */

/* ===== Media ===== */

/* ===== Company ===== */
/* COMPANY：地の色・文字色はブロック設定（#eef3f5 / contrast）。ここは表の線だけ */
.yunoji-section--company h2 { font-weight: 700; letter-spacing: .04em; font-family: var(--wp--preset--font-family--body); }
.yunoji-company__table table { border: 0; border-top: 1px solid rgba(58,102,118,.5); }
.yunoji-company__table td { border: 0; border-bottom: 1px solid rgba(58,102,118,.18); padding: 1rem .2rem; font-size: .95rem; line-height: 1.8; vertical-align: top; }
.yunoji-company__table td:first-child { width: 9em; letter-spacing: .1em; opacity: .75; }

/* ===== フッター ===== */
/* テンプレート直下の要素間の隙間（動画が覗く帯）を消す */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.yunoji-footer { overflow-x: clip; overflow-y: visible; }
.yunoji-footer__cols { align-items: flex-start; }
.yunoji-footer a { text-decoration: none; color: inherit; }
.yunoji-footer__brand { display: inline-flex; padding-right: 2.5rem; border-right: 1px solid rgba(255,255,255,.35); }
.yunoji-footer__brand a { display: flex; flex-direction: column; gap: 1.25rem; color: #fff !important; }
.yunoji-footer__en { font-size: .8rem; letter-spacing: .45em; font-weight: 400; }
.yunoji-footer__ja { writing-mode: vertical-rl; font-family: var(--wp--preset--font-family--heading); font-size: 3.2rem; line-height: 1; letter-spacing: .25em; }
.yunoji-footer__head { font-weight: 700; font-size: .8rem; margin: 0 0 .9rem; }
.yunoji-footer__list { list-style: none; padding: 0 0 0 .5rem; margin: 0; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.yunoji-footer__list li { margin-bottom: .6rem; }
/* 右端からはみ出す白い大きな丸の中に、青い丸ボタン */
.yunoji-footer__contact-wrap { position: relative; height: 240px; }
.yunoji-footer__contact-wrap::before { content: ""; position: absolute; top: -90px; right: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.yunoji-footer__contact { position: absolute; top: 20px; right: 40px; display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: var(--yunoji-accent); color: #fff !important; font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.yunoji-footer__bar { padding: .75rem 0; position: relative; z-index: 1; }
.yunoji-footer__bar p { margin: 0; font-size: .75rem; letter-spacing: .04em; }

/* ===== 記事下：同じ案件の記事 ===== */
.yunoji-case-links { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e3e3e3; }
.yunoji-case-links__title { font-size: 1.25rem; margin: 0 0 1.5rem; }
.yunoji-case-links__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.yunoji-case-links__item a { display: grid; gap: .5rem; text-decoration: none; }
.yunoji-case-links__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }   /* height:auto が無いと img の height 属性が勝って縦長になる（2026-11-15） */
.yunoji-case-links__type { font-size: .75rem; letter-spacing: .08em; color: var(--yunoji-accent); }
.yunoji-case-links__all { margin-top: 1.5rem; text-align: right; }

/* ===== 動きを減らす設定の人 ===== */
@media (prefers-reduced-motion: reduce) {
  html.yunoji-js .yunoji-reveal { opacity: 1; transform: none; transition: none; }
  .yunoji-hero .wp-block-cover__video-background { display: none; }
  .yunoji-logo__ring, .yunoji-hero__logo span, .yunoji-hero__sub { animation: none; }
}

/* ===== スマホ ===== */
@media (max-width: 781px) {
  .yunoji-hero__inner { padding-top: 5rem; }
  .yunoji-hero__brand { width: 100%; text-align: left; }
  .yunoji-hero__brand { --logo-size: clamp(4rem, 22vw, 7rem); }
  .yunoji-hero__logo { margin-left: 0; }
  .yunoji-hero__sub { margin-left: 0; text-align: left; width: auto; --sub-dx: 0px; }
  .yunoji-about-card.is-2, .yunoji-about-card.is-3 { margin-top: 0; }
  .yunoji-fields { grid-template-columns: 1fr; }
  .yunoji-service { min-height: 0; padding-top: .2rem; padding-bottom: .6rem; }
  .yunoji-service::before { height: auto; bottom: 0; }          /* 灰色の帯をカードの高さに合わせる（固定の高さだと帯同士がつながる） */
  .yunoji-service::after { top: 1.1rem; }                         /* アイコンは見出しの横 */
  .yunoji-section .has-text-align-right { text-align: left; }     /* 右揃えの導入文は、スマホでは左揃え */
  .yunoji-about-card { max-width: 520px; margin-left: auto; margin-right: auto; }   /* 1列のとき写真が巨大にならないように */
  .yunoji-footer__brand { border-right: 0; }
  .yunoji-footer__contact-wrap { height: 200px; }
  .yunoji-footer__contact-wrap::before { right: 50%; transform: translateX(50%); top: -40px; width: 280px; height: 280px; }
  .yunoji-footer__contact { right: 50%; transform: translateX(50%); top: 20px; }
}

/* ===== オープニング（トップのみ） ===== */
html.has-intro { overflow: hidden; }
.yunoji-intro { position: fixed; inset: 0; z-index: 1000; background: #fff; display: grid; place-items: center; opacity: 1; transition: opacity 2.2s ease; cursor: pointer; }
.yunoji-intro.is-leaving { opacity: 0; pointer-events: none; }
.yunoji-intro__stage { position: relative; width: min(52vw, 520px); aspect-ratio: 1; }
.yunoji-intro__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 1.2s ease; }
.yunoji-intro__open { opacity: 1; }
/* 開いたノートの上に二行 */
.yunoji-intro__skip { position: absolute; right: 1.5rem; bottom: 1.5rem; background: none; border: 1px solid #bbb; color: #777; font-size: .75rem; letter-spacing: .2em; padding: .5rem 1rem; cursor: pointer; }
.yunoji-intro__skip:hover { border-color: #3a3a3a; color: #3a3a3a; }
@media (max-width: 781px) {
  .yunoji-intro__stage { width: 80vw; }
}

/* ===== キーカラー：青。朱はロゴの「ゆ」だけ（2026-11-16 本人：ナビの●・お問い合わせの丸は青と白に） ===== */
:root { --yunoji-key: #3a6676; }
.yunoji-logo__mark::after { color: var(--yunoji-key, #3a6676) !important; }                                   /* ロゴの「ゆ」 */
.yunoji-nav .wp-block-navigation-item + .wp-block-navigation-item::before { background: currentColor; opacity: .45; }  /* ナビの● */
.yunoji-nav .wp-block-navigation__submenu-container .wp-block-navigation-item::before { display: none; }  /* SERVICE の下の一覧には●を付けない */
@media (min-width: 600px) { .yunoji-nav .wp-block-navigation__submenu-container { min-width: 15rem; padding: .5rem 0; color: var(--wp--preset--color--contrast); border-color: rgba(58,102,118,.25); }
  .yunoji-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; padding: .6rem 1.4rem; font-size: .85rem; letter-spacing: .08em; } }
.yunoji-footer__contact { background: #fff; color: var(--wp--preset--color--deep) !important; transition: background .3s, color .3s; } .yunoji-footer__contact:hover { background: var(--yunoji-accent); color: #fff !important; }                                           /* お問い合わせの丸 */
.yunoji-footer a:hover { color: var(--yunoji-accent); }
a:hover { color: var(--yunoji-key); }

/* H2 の矢印（motion.js が文字の実寸を測って描く）：文字の下端の横線 → 右上へ立ち上がり → 先端で羽が開く。色はキーカラー */
.yunoji-h2arrow { position: relative; }
.yunoji-h2arrow__svg { position: absolute; pointer-events: none; overflow: visible; }
.yunoji-h2arrow__svg path { fill: none; stroke: var(--yunoji-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
/* 確認用（?shot）：ヒーローを低くして、下のセクションを撮影できるようにする */
html.yunoji-shot .yunoji-hero, html.yunoji-shot .yunoji-phero { min-height: 520px !important; height: 520px !important; }

/* ===== 想い＋代表STAFF（案2、2026-11-16）：本から泡が上る飾りだけ。列幅・余白・文字はブロック設定 ===== */
.yunoji-omoi__book { position: relative; }
.yunoji-omoi__book img { mix-blend-mode: multiply; height: auto; }
.yunoji-omoi__bub { position: absolute; left: 50%; bottom: 60%; border-radius: 50%; border: 1.5px solid rgba(140,183,198,.95); background: rgba(140,183,198,.14); opacity: 0; animation: yunoji-rise 12s ease-in-out infinite; pointer-events: none; }
.yunoji-omoi__bub.is-fill { background: rgba(140,183,198,.35); border-color: transparent; }
@keyframes yunoji-rise { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 12% { opacity: .9; } 60% { opacity: .7; } 100% { transform: translate(var(--dx,0), var(--dy,-520px)) scale(1.05); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .yunoji-omoi__bub { display: none; } }
@media (max-width: 781px) { .yunoji-omoi__book { max-width: 280px; margin: 0 auto 1rem !important; } .yunoji-omoi__bub { display: none; } }
/* ポストカード（/renovation/ 05 スケッチ）：縁は白の四角（グループ、余白はブロック設定）、中の絵だけ角丸（画像の角丸はブロック設定）。ここは影・内側の細線・傾きだけ */
.yunoji-postcard { box-shadow: 0 8px 24px rgba(58,102,118,.16); }
.yunoji-postcard img { display: block; }
.yunoji-postcard--l { transform: rotate(-4deg); }
.yunoji-postcard--r { transform: rotate(3deg); position: relative; z-index: 1; }
.yunoji-postcard--t1{transform:rotate(-6deg)} .yunoji-postcard--t2{transform:rotate(7deg)} .yunoji-postcard--t3{transform:rotate(-3deg)} .yunoji-postcard--t4{transform:rotate(5deg)} .yunoji-postcard--t5{transform:rotate(4deg)} .yunoji-postcard--t6{transform:rotate(-7deg)} .yunoji-postcard--t7{transform:rotate(9deg)} .yunoji-postcard--t8{transform:rotate(-4deg)}
@media (max-width: 781px) { .yunoji-postcard--r { margin-left: 0 !important; margin-top: 1.5rem !important; } .yunoji-postcard--l { margin-right: 0 !important; } .yunoji-postcards .yunoji-postcard { margin: 0 !important; } .yunoji-postcards { flex-wrap: wrap !important; } .yunoji-notebook .wp-block-columns.yunoji-postcards > .wp-block-column { flex-basis: calc(50% - .75rem) !important; } }

/* ===== サービスの概要の塊（.yunoji-ov、2026-11-16 決定）：飾りだけ。文字の大きさ・余白・列幅はブロック設定 ===== */

.yunoji-works .wp-block-post-featured-image { overflow: hidden; margin: 0; }
.yunoji-works .wp-block-post-featured-image img { transition: transform .8s ease; }
.yunoji-works li:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.yunoji-works .wp-block-post-title a { text-decoration: none; display: block; }
.yunoji-works__word { display: block; font-family: var(--wp--preset--font-family--heading); line-height: 1.6; letter-spacing: .04em; }
.yunoji-works__name { display: block; margin-top: .35em; font-family: var(--wp--preset--font-family--body); font-size: .72rem; color: var(--wp--preset--color--muted); letter-spacing: .04em; }
html.yunoji-js .yunoji-ov .yunoji-works li { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.3,1); }
html.yunoji-js .yunoji-ov .yunoji-works li.is-in { opacity: 1; transform: none; }
.yunoji-ov__txt { position: relative; } .yunoji-ov__txt > :not(svg) { position: relative; z-index: 3; }
.yunoji-ov { isolation: isolate; overflow: hidden; } .yunoji-ov__txt.yunoji-orbit, .yunoji-ov__txt.yunoji-rings { overflow: visible; } .yunoji-ov__txt > svg { z-index: -1; }
.yunoji-ov--blue .yunoji-works__name { color: rgba(255,255,255,.72); }
/* マーケ（淡い青・黒文字）：特徴リストの線は黒の透けでそろえる */
 

@media (max-width: 781px) { .yunoji-ov .wp-block-column:has(.yunoji-works) { order: 2; } .yunoji-works .wp-block-post-template { grid-template-columns: 1fr 1fr !important; gap: 1.2rem !important; } }

/* 見積書の判子：画面に入ると「トンっ」と押される（motion.js の yunoji-play → is-visible） */
.yunoji-sheet__stamp img { transform: rotate(-6deg); opacity: .9; transform-origin: 50% 60%; }
html.yunoji-js .yunoji-sheet__stamp.yunoji-play img { opacity: 0; }
html.yunoji-js .yunoji-sheet__stamp.yunoji-play.is-visible img { animation: yunoji-stamp .55s cubic-bezier(.3,0,.4,1) .35s both; }
html.yunoji-js .yunoji-sheet:has(.yunoji-sheet__stamp.is-visible) { animation: yunoji-thud .3s ease-out .62s; }
@keyframes yunoji-stamp { 0% { opacity: 0; transform: translateY(-14px) scale(1.9) rotate(-12deg); } 55% { opacity: .95; transform: scale(.9) rotate(-5deg); } 72% { transform: scale(1.04) rotate(-6.4deg); } 100% { opacity: .9; transform: scale(1) rotate(-6deg); } }
@keyframes yunoji-thud { 0%,100% { transform: none; } 35% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { html.yunoji-js .yunoji-sheet__stamp.yunoji-play img { opacity: .9; animation: none; } html.yunoji-js .yunoji-sheet { animation: none !important; } }

/* /planning/ イベント写真：青の欄の下端にまたがるので手前に */
.yunoji-plan-photos { position: relative; z-index: 3; }

/* 782〜1023px：狭い横並びを縦に積む（2026-11-17 レスポンシブ確認） */
@media (min-width: 782px) and (max-width: 1023px) {
  .yunoji-services, .yunoji-pscene .wp-block-columns, .yunoji-footer__links { flex-wrap: wrap !important; }
  .yunoji-services > .wp-block-column { flex-basis: 100% !important; max-width: 560px; margin-inline: auto; }
  .yunoji-pscene .wp-block-columns > .wp-block-column, .yunoji-footer__links > .wp-block-column:first-child { flex-basis: 100% !important; }
  .yunoji-omoi__book img { transform: scale(1.55); transform-origin: 50% 100%; }   /* タブレット：本と泡を大きく */
}
/* スマホ：サービスの枠を同じ幅に、事例の題をひと回り小さく（2026-11-18） */
@media (max-width: 781px) { .yunoji-services { padding: 0 !important; } .yunoji-works__word { font-size: .8125rem; line-height: 1.55; } .yunoji-works__name { font-size: .65rem; } }
/* 記事が0件の欄は出さない（記事を公開すると自動で現れる）2026-11-18 */
.yunoji-notebook__sec--scrap:has(.wp-block-query-no-results) { display: none; }
.yunoji-ov .wp-block-column:has(.yunoji-works):not(:has(.wp-block-post-template > li)) { display: none; }
