/* =========================================================
   記事装飾（AFFINGER風の機能をオリジナルCSSで実装）
   ボックス／ふきだし／マーカー／ボタン／見出し／目次／関連記事／トップへ戻る
   色は既存のブランド変数（--primary 金 / --secondary 青 / --soft-sky）を使用。
   ========================================================= */

/* ---- 本文の見出しデザイン ---- */
.entry-content h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.7rem);
  line-height: 1.4; margin: 2.6rem 0 1.1rem; padding: .45rem 0 .55rem .9rem;
  border-left: 5px solid var(--primary); border-bottom: 2px solid var(--outline-variant);
}
.entry-content h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.28rem;
  margin: 2.1rem 0 .9rem; padding-left: .75rem; border-left: 4px solid var(--secondary);
}
.entry-content h4 {
  font-weight: 700; font-size: 1.12rem; margin: 1.7rem 0 .7rem;
  padding-bottom: .3rem; border-bottom: 2px dotted var(--outline-variant);
}
.entry-content a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--primary); }
.entry-content img { border-radius: .6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content blockquote {
  margin: 1.6rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--outline-variant);
  color: var(--ink-soft); background: var(--surface-alt); border-radius: .3rem;
}

/* ---- マーカー ---- */
.yl-marker, .is-style-yl-marker { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--primary-fixed) 85%, transparent) 62%); font-weight: 700; padding: 0 .08em; }
.yl-marker--blue, .is-style-yl-marker-blue { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--soft-sky) 95%, transparent) 62%); font-weight: 700; padding: 0 .08em; }

/* ---- ボックス ---- */
.yl-box,
.is-style-yl-box-memo, .is-style-yl-box-point, .is-style-yl-box-info, .is-style-yl-box-check, .is-style-yl-box-warn {
  position: relative; margin: 1.7rem 0; padding: 1.2rem 1.35rem; border-radius: .7rem;
  border: 1px solid var(--outline-variant); background: #fff;
}
.yl-box__title { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .5rem; color: var(--ink); }
.yl-box__body > :first-child { margin-top: 0; } .yl-box__body > :last-child { margin-bottom: 0; }

.yl-box--memo, .is-style-yl-box-memo { border-color: color-mix(in srgb, var(--secondary) 40%, #fff); background: color-mix(in srgb, var(--soft-sky) 22%, #fff); }
.yl-box--memo .yl-box__title { color: var(--secondary); }
.yl-box--point, .is-style-yl-box-point { border-color: color-mix(in srgb, var(--primary) 45%, #fff); background: color-mix(in srgb, var(--primary-fixed) 20%, #fff); }
.yl-box--point .yl-box__title { color: var(--primary); }
.yl-box--info, .is-style-yl-box-info { border: 1px solid var(--outline-variant); border-left: 4px solid var(--secondary); }
.yl-box--check, .is-style-yl-box-check { border: 1px solid var(--outline-variant); border-left: 4px solid var(--primary); }
.yl-box--warn, .is-style-yl-box-warn { border-color: #e6c34a; background: #fdf6df; }
.yl-box--warn .yl-box__title { color: #9a7b12; }

/* ---- ふきだし ---- */
.yl-balloon { display: flex; align-items: flex-start; gap: .9rem; margin: 1.7rem 0; }
.yl-balloon--right { flex-direction: row-reverse; }
.yl-balloon__face { flex: 0 0 auto; width: 58px; text-align: center; }
.yl-balloon__face > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--ink);
  background: color-mix(in srgb, var(--primary-fixed) 48%, #fff); }
.yl-balloon--blue .yl-balloon__face > span { background: color-mix(in srgb, var(--soft-sky) 72%, #fff); }
.yl-balloon__face em { display: block; margin-top: .3rem; font-style: normal; font-size: .7rem; color: var(--ink-soft); line-height: 1.3; }
.yl-balloon__text { position: relative; background: #fff; border: 1px solid var(--outline-variant); border-radius: .8rem; padding: .9rem 1.1rem; max-width: 42rem; }
.yl-balloon__text > :first-child { margin-top: 0; } .yl-balloon__text > :last-child { margin-bottom: 0; }
.yl-balloon__text::before { content: ""; position: absolute; top: 20px; left: -8px; width: 15px; height: 15px; background: #fff; border-left: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); transform: rotate(45deg); }
.yl-balloon--right .yl-balloon__text::before { left: auto; right: -8px; transform: rotate(225deg); }

/* ---- 本文用ボタン ---- */
.yl-btn { text-transform: none; letter-spacing: .02em; }
.yl-btn__arrow { display: inline-block; transition: transform .3s var(--ease-bounce); }
.yl-btn:hover .yl-btn__arrow { transform: translateX(4px); }

/* ---- 目次 ---- */
.yl-toc { border: 1px solid var(--outline-variant); background: var(--surface-alt); border-radius: .8rem; padding: 1.1rem 1.3rem; margin: 1.5rem 0 2.2rem; }
.yl-toc__ttl { margin: 0; font-family: var(--display); font-weight: 700; }
.yl-toc__ttl button { background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.yl-toc__ttl button::before { content: "≡"; color: var(--primary); }
.yl-toc__ttl button::after { content: "▾"; color: var(--primary); transition: transform .3s; }
.yl-toc[aria-expanded="false"] .yl-toc__ttl button::after { transform: rotate(-90deg); }
.yl-toc[aria-expanded="false"] .yl-toc__body { display: none; }
.yl-toc__body { margin-top: .8rem; }
.yl-toc__body > ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.yl-toc__l2 { counter-increment: toc; margin: .15rem 0; }
.yl-toc__l2 > a::before { content: counter(toc) ". "; color: var(--primary); font-weight: 700; }
.yl-toc a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: .18rem 0; }
.yl-toc a:hover { color: var(--primary); }
.yl-toc__sub { list-style: disc; padding-left: 1.4rem; margin: .1rem 0 .4rem; }
.yl-toc__sub a { color: var(--ink-soft); }

/* ---- 関連記事 ---- */
.yl-related { margin-top: 3.2rem; }
.yl-related__ttl { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 1.2rem; padding-left: .7rem; border-left: 4px solid var(--primary); }
.yl-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.yl-related__card { display: block; border: 1px solid var(--outline-variant); border-radius: .7rem; overflow: hidden; background: #fff; transition: transform .3s var(--ease-bounce), box-shadow .3s; }
.yl-related__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.yl-related__thumb { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, color-mix(in srgb, var(--soft-sky) 55%, #fff), color-mix(in srgb, var(--primary-fixed) 40%, #fff)); }
.yl-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yl-related__b { padding: .85rem 1rem 1rem; }
.yl-related__date { font-size: .72rem; color: var(--secondary); }
.yl-related__t { display: block; font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.5; margin-top: .3rem; color: var(--ink); }

/* ---- トップへ戻る ---- */
.yl-topbtn { position: fixed; right: 1.1rem; bottom: 1.1rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--outline-variant); background: color-mix(in srgb, #fff 88%, transparent); backdrop-filter: blur(6px);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 900; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.yl-topbtn.is-on { opacity: 1; visibility: visible; transform: none; }
.yl-topbtn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.yl-topbtn svg { width: 20px; height: 20px; }

/* ---- パンくず ---- */
.yl-crumbs { margin: 0 0 1.4rem; }
.yl-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; color: var(--ink-soft); }
.yl-crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.yl-crumbs li:not(:last-child)::after { content: "›"; color: var(--outline); }
.yl-crumbs a { color: var(--secondary); text-decoration: none; }
.yl-crumbs a:hover { color: var(--primary); }
.yl-crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---- SNSシェア ---- */
.yl-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2.2rem 0 .5rem; }
.yl-share__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); margin-right: .2rem; }
.yl-share__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  font-family: var(--body); font-size: .82rem; font-weight: 700; border: 1px solid var(--outline-variant); background: #fff; color: var(--ink); cursor: pointer; transition: transform .25s var(--ease-bounce), background .25s, color .25s; }
.yl-share__btn:hover { transform: translateY(-2px); }
.yl-share__btn--x:hover { background: #111; color: #fff; border-color: #111; }
.yl-share__btn--fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.yl-share__btn--line:hover { background: #06c755; color: #fff; border-color: #06c755; }
.yl-share__btn--copy.is-copied { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- 記事下CTA ---- */
.yl-cta { margin: 3rem 0 0; border-radius: 1.1rem; padding: 2rem; border: 1px solid var(--outline-variant);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-fixed) 26%, var(--surface)), color-mix(in srgb, var(--soft-sky) 26%, var(--surface))); }
.yl-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.yl-cta__ttl { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 .4rem; color: var(--ink); }
.yl-cta__tx { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- ステップ ---- */
.yl-steps { margin: 1.7rem 0; counter-reset: ylstep; border-left: 2px solid var(--outline-variant); padding-left: 1.4rem; }
.yl-step { position: relative; padding: 0 0 1.4rem; }
.yl-step:last-child { padding-bottom: 0; }
.yl-step__mark { counter-increment: ylstep; position: absolute; left: calc(-1.4rem - 15px); top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--surface); }
.yl-step__mark::after { content: counter(ylstep); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.yl-step__ttl { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; color: var(--ink); }
.yl-step__body > :last-child { margin-bottom: 0; }

/* ---- FAQ（開閉） ---- */
.yl-faq { border: 1px solid var(--outline-variant); border-radius: .6rem; margin: .8rem 0; background: #fff; overflow: hidden; }
.yl-faq summary { cursor: pointer; list-style: none; padding: 1rem 2.6rem 1rem 2.6rem; position: relative; font-weight: 700; color: var(--ink); }
.yl-faq summary::-webkit-details-marker { display: none; }
.yl-faq summary::before { content: "Q"; position: absolute; left: 1rem; color: var(--primary); font-family: var(--display); font-weight: 800; }
.yl-faq summary::after { content: "＋"; position: absolute; right: 1rem; color: var(--primary); transition: transform .25s; }
.yl-faq[open] summary::after { transform: rotate(45deg); }
.yl-faq__a { padding: 0 1.2rem 1.1rem 2.6rem; color: var(--ink-soft); }
.yl-faq__a > :first-child { margin-top: 0; } .yl-faq__a > :last-child { margin-bottom: 0; }

/* ---- ブログカード（内部リンク） ---- */
.yl-card { display: grid; grid-template-columns: 160px 1fr; gap: 0; margin: 1.6rem 0; border: 1px solid var(--outline-variant); border-radius: .7rem; overflow: hidden; background: #fff; transition: box-shadow .3s, transform .3s var(--ease-bounce); }
.yl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.yl-card__thumb { display: block; }
.yl-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yl-card__thumb.is-empty { background: linear-gradient(135deg, color-mix(in srgb, var(--soft-sky) 55%, #fff), color-mix(in srgb, var(--primary-fixed) 40%, #fff)); }
.yl-card__b { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.yl-card__label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.yl-card__t { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.yl-card__x { font-size: .84rem; color: var(--ink-soft); line-height: 1.6; }

/* ---- ランキング ---- */
.yl-rank { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin: 1.3rem 0; padding: 1.2rem 1.3rem 1.2rem 1.2rem; border: 1px solid var(--outline-variant); border-radius: .7rem; background: #fff; }
.yl-rank__no { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-family: var(--display); font-weight: 800; color: #fff; background: var(--outline); }
.yl-rank[data-no="1"] .yl-rank__no { background: #c9a227; }
.yl-rank[data-no="2"] .yl-rank__no { background: #9aa0a6; }
.yl-rank[data-no="3"] .yl-rank__no { background: #b07a48; }
.yl-rank__ttl { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; color: var(--ink); }
.yl-rank__body > :last-child { margin-bottom: 0; }

/* ---- 本文テーブル ---- */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--outline-variant); padding: .7rem .9rem; text-align: left; }
.entry-content thead th, .entry-content table th:first-child { background: var(--surface-alt); font-weight: 700; }
.entry-content tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-alt) 45%, #fff); }
.entry-content .wp-block-table { overflow-x: auto; }

/* ---- スマホ固定フッターメニュー ---- */
.yl-fixnav { display: none; }
@media (max-width: 768px) {
  .yl-fixnav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--outline-variant); }
  .yl-fixnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
  .yl-fixnav li { flex: 1; }
  .yl-fixnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .5rem 0 .55rem; color: var(--ink); }
  .yl-fixnav__ic { width: 22px; height: 22px; color: var(--primary); }
  .yl-fixnav__t { font-size: .64rem; font-weight: 600; letter-spacing: .02em; }
  .yl-fixnav a:active { background: color-mix(in srgb, var(--primary-fixed) 30%, transparent); }
  body { padding-bottom: 60px; }
  .yl-topbtn { display: none; } /* スマホは固定メニュー＋追従CTAがあるため非表示 */
}

@media (max-width: 800px) {
  .yl-related__grid { grid-template-columns: 1fr; }
  .yl-cta__in { flex-direction: column; align-items: flex-start; }
  .yl-card { grid-template-columns: 110px 1fr; }
}
/* ---- タブ切替 ---- */
.yl-tabs { margin: 1.7rem 0; }
.yl-tabs__nav { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 2px solid var(--outline-variant); }
.yl-tabs__btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  padding: .6rem 1.1rem; border-radius: .5rem .5rem 0 0; position: relative; }
.yl-tabs__btn.is-on { color: var(--primary); }
.yl-tabs__btn.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); }
.yl-tab { display: none; padding: 1.2rem .2rem; }
.yl-tab.is-on { display: block; }
.yl-tab > :first-child { margin-top: 0; } .yl-tab > :last-child { margin-bottom: 0; }

/* ---- 広告・PRラベル ---- */
.yl-pr { position: relative; border: 1px solid var(--outline-variant); border-radius: .7rem; padding: 1.4rem 1.3rem 1.2rem; margin: 1.7rem 0; background: #fff; }
.yl-pr__label { position: absolute; top: -.7rem; left: 1rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: #fff; background: var(--outline); border-radius: 999px; padding: .15rem .7rem; }
.yl-pr__body > :first-child { margin-top: 0; } .yl-pr__body > :last-child { margin-bottom: 0; }

/* ---- 比較表 ---- */
.yl-compare table { width: 100%; border-collapse: collapse; }
.yl-compare th, .yl-compare td { border: 1px solid var(--outline-variant); padding: .7rem .8rem; text-align: center; }
.yl-compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.yl-compare tbody th, .yl-compare tbody td:first-child { background: var(--surface-alt); text-align: left; font-weight: 700; }
.yl-compare tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-alt) 45%, #fff); }

/* ---- 追従目次（広い画面のみ） ---- */
.yl-toc-float { display: none; }
@media (min-width: 1280px) {
  .yl-toc-float { display: block; position: fixed; top: 120px; left: max(1.5rem, calc((100vw - 1240px) / 2 - 30px)); width: 230px; max-height: 70vh; overflow: auto;
    background: #fff; border: 1px solid var(--outline-variant); border-radius: .7rem; padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); z-index: 500; }
  .yl-toc-float__ttl { font-family: var(--display); font-weight: 700; font-size: .82rem; margin: 0 0 .6rem; color: var(--primary); letter-spacing: .04em; }
  .yl-toc-float ul { list-style: none; margin: 0; padding: 0; }
  .yl-toc-float li { margin: .1rem 0; }
  .yl-toc-float li.lv3 { padding-left: .9rem; }
  .yl-toc-float a { display: block; font-size: .78rem; line-height: 1.4; color: var(--ink-soft); text-decoration: none; padding: .25rem .5rem; border-left: 2px solid transparent; border-radius: 0 .3rem .3rem 0; }
  .yl-toc-float a:hover { color: var(--primary); }
  .yl-toc-float a.is-active { color: var(--primary); border-left-color: var(--primary); background: color-mix(in srgb, var(--primary-fixed) 22%, #fff); font-weight: 700; }
}

/* ---- サイト内検索 ---- */
.yl-searchform { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--outline-variant); border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; max-width: 26rem; }
.yl-searchform input[type="search"] { flex: 1; border: 0; background: none; font: inherit; padding: .5rem 0; color: var(--ink); }
.yl-searchform input[type="search"]:focus { outline: none; }
.yl-searchform button { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.yl-searchform button:hover { background: var(--primary); }
.yl-searchform button svg { width: 18px; height: 18px; }
.yl-search-box { margin-bottom: 2rem; }

/* ---- 人気記事ランキング ---- */
.yl-popular { list-style: none; counter-reset: pop; margin: 0; padding: 0; }
.yl-popular__item { border-bottom: 1px solid var(--outline-variant); }
.yl-popular__item a { display: grid; grid-template-columns: 2rem 64px 1fr; gap: .8rem; align-items: center; padding: .7rem 0; }
.yl-popular__no { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: .8rem; color: #fff; background: var(--outline); }
.yl-popular__no[data-no="1"] { background: #c9a227; } .yl-popular__no[data-no="2"] { background: #9aa0a6; } .yl-popular__no[data-no="3"] { background: #b07a48; }
.yl-popular__thumb { width: 64px; height: 44px; border-radius: .4rem; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--soft-sky) 55%, #fff), color-mix(in srgb, var(--primary-fixed) 40%, #fff)); }
.yl-popular__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yl-popular__t { font-family: var(--display); font-weight: 700; font-size: .9rem; line-height: 1.45; color: var(--ink); }

/* ---- フッターウィジェット ---- */
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0 0 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--outline-variant); }
.footer-widgets .widget-title { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 1rem; color: var(--ink); }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets a:hover { color: var(--primary); }
.footer-search { margin: 0 0 2rem; }
@media (max-width: 800px) {
  .footer-widgets { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- 追従CTA ---- */
.yl-fcta { position: fixed; right: 18px; bottom: 76px; z-index: 950; display: inline-flex; align-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease-bounce), transform .35s var(--ease-bounce); }
.yl-fcta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.yl-fcta__link { display: flex; align-items: center; gap: .75rem; background: var(--ink); color: #fff; border-radius: 999px;
  padding: .65rem 1.25rem .65rem .8rem; box-shadow: 0 18px 38px -14px rgba(30, 35, 20, .55); transition: background .3s; }
.yl-fcta__link:hover { background: var(--primary); }
.yl-fcta__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: 0 0 auto; }
.yl-fcta__ic svg { width: 18px; height: 18px; color: #fff; }
.yl-fcta__tx { display: flex; flex-direction: column; line-height: 1.25; }
.yl-fcta__tx b { font-family: var(--display); font-size: .92rem; font-weight: 700; }
.yl-fcta__tx small { font-size: .68rem; opacity: .85; }
.yl-fcta__close { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--outline-variant);
  background: #fff; color: var(--ink-soft); font-size: .95rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft); }
.yl-fcta__close:hover { color: var(--ink); }
@media (max-width: 768px) {
  .yl-fcta { right: 10px; left: 10px; bottom: 64px; justify-content: center; } /* 固定メニューの上 */
  .yl-fcta__link { width: 100%; justify-content: center; border-radius: 12px; padding: .8rem 1rem; }
  .yl-fcta__tx small { display: none; }
}

/* ---- DEMO動画セクション ---- */
.demo__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.demo__card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--soft-sky) 55%, #fff), color-mix(in srgb, var(--primary-fixed) 42%, #fff)); box-shadow: var(--shadow-card); }
.demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__poster--ph { background: transparent; }
.demo__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease-bounce), background .3s; }
.demo__card:hover .demo__play { transform: translate(-50%, -50%) scale(1.08); background: var(--primary); }
.demo__play svg { width: 28px; height: 28px; margin-left: 3px; }
.demo__label { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .35); padding: .3rem .8rem; border-radius: 999px; }
.demo-modal[hidden] { display: none; }
.demo-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1.2rem; }
.demo-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 22, 16, .78); }
.demo-modal__box { position: relative; width: min(960px, 100%); }
.demo-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: .6rem; overflow: hidden; }
.demo-modal__frame iframe, .demo-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-modal__close { position: absolute; top: -2.6rem; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 800px) { .demo__grid { grid-template-columns: 1fr; } }

/* ---- Service詳細（テクニカルUI） ---- */
.svc-h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 2.4rem 0 1rem; padding-left: .7rem; border-left: 4px solid var(--primary); }
.svc-tag { display: inline-block; font-size: .68rem; font-weight: 700; color: #fff; background: var(--secondary); border-radius: 999px; padding: .1rem .6rem; margin-right: .6rem; vertical-align: middle; }
.svc-effect { background: color-mix(in srgb, var(--primary) 9%, #fff); border-left: 3px solid var(--primary); border-radius: .4rem; padding: .9rem 1.1rem; color: var(--ink); margin: 0 0 1.5rem; }
.svc-effect span { display: block; font-size: .72rem; font-weight: 700; color: var(--primary); letter-spacing: .06em; margin-bottom: .25rem; }
.svc-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin: 0 0 1rem; }
.svc-ba__col { background: #fff; border: 1px solid var(--outline-variant); border-radius: .8rem; padding: 1.1rem 1.2rem; }
.svc-ba__col--after { border-color: color-mix(in srgb, var(--primary) 45%, var(--outline-variant)); background: color-mix(in srgb, var(--primary-fixed) 14%, #fff); }
.svc-ba__label { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--secondary); margin-bottom: .5rem; }
.svc-ba__col--after .svc-ba__label { color: var(--primary); }
.svc-ba__col ul { margin: 0; padding-left: 1.1rem; }
.svc-ba__col li { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
.svc-ba__arrow { display: grid; place-items: center; color: var(--primary); font-size: 1.4rem; font-weight: 700; }
.svc-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-tool { font-family: var(--body); font-size: .82rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--outline-variant); border-radius: .5rem; padding: .4rem .8rem; }
.svc-tools__note { font-size: .78rem; color: var(--ink-soft); margin: .7rem 0 0; }
.svc-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.svc-note { background: #fff; border: 1px solid var(--outline-variant); border-radius: .7rem; padding: 1rem 1.1rem; }
.svc-note__t { display: block; font-family: var(--display); font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.svc-note__d { font-size: .88rem; color: var(--ink-soft); line-height: 1.65; }
.work-detail__row { display: grid; grid-template-columns: 3.2rem 1fr; gap: .7rem; background: #fff; border: 1px solid var(--outline-variant); border-radius: .6rem; padding: .8rem 1rem; align-items: baseline; }
.work-detail__row > span { font-size: .7rem; font-weight: 700; color: var(--secondary); }
.work-detail__row--effect > span { color: var(--primary); }
@media (max-width: 700px) {
  .svc-ba { grid-template-columns: 1fr; }
  .svc-ba__arrow { transform: rotate(90deg); }
}

/* ---- MonkeyGuide（マウス追従の小さな猿） ---- */
.yl-monkey { position: fixed; left: 0; top: 0; z-index: 960; pointer-events: none; will-change: transform; transition: opacity .3s; filter: drop-shadow(0 6px 10px rgba(30, 35, 20, .25)); }
.yl-monkey img { display: block; width: 100%; height: 100%; }
.yl-monkey__canvas { display: block; width: 100%; height: 100%; }
/* 3Dモデル読込前/失敗時のみフォールバックimgを表示。読込後は3Dのみ。 */
.yl-monkey--3d .yl-monkey__ph { position: absolute; inset: 0; opacity: .5; transition: opacity .3s; }
.yl-monkey--3d:not(.is-loading) .yl-monkey__ph { opacity: 0; visibility: hidden; }
.yl-monkey--3d.is-loading .yl-monkey__canvas { opacity: 0; }
.yl-monkey.is-hidden { opacity: 0; }
.yl-monkey.is-wave img { animation: yl-monkey-wave .7s ease-in-out; transform-origin: 50% 90%; }
@keyframes yl-monkey-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.yl-monkey__bubble { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); border: 1px solid var(--outline-variant); border-radius: .7rem; padding: .4rem .7rem; font-size: .72rem; font-weight: 600;
  box-shadow: var(--shadow-soft); pointer-events: none; }
.yl-monkey__bubble[hidden] { display: none; }
.yl-monkey__off { position: absolute; left: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--outline-variant);
  background: #fff; color: var(--ink-soft); font-size: .7rem; line-height: 1; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .2s; }
.yl-monkey:hover .yl-monkey__off { opacity: 1; }
/* ラッパーは pointer-events:none のため、3D版は消すボタンを常に薄く表示（ボタン自身は反応する）。 */
.yl-monkey--3d .yl-monkey__off { opacity: .35; }
.yl-monkey--3d .yl-monkey__off:hover { opacity: 1; }
/* カーソルが止まって猿が「座る」と、×を大きく見せてクリックしやすくする。 */
.yl-monkey--3d.is-settled .yl-monkey__off { opacity: 1; width: 22px; height: 22px; left: -7px; top: -7px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

@media (prefers-reduced-motion: reduce) {
  .yl-related__card, .yl-btn__arrow, .yl-topbtn, .yl-share__btn, .yl-card, .yl-faq summary::after, .yl-searchform button, .yl-fcta, .yl-fcta__link, .demo__play { transition: none; }
  .yl-monkey { display: none; }
}
