/**
 * YASA LOGI テーマ独自スタイル
 *
 * Tailwind のユーティリティで表現できない装飾（手書き風の枠線、赤い糸のキャンバス、
 * PAGE TOP ボタン、WordPress 本文まわり）をここにまとめる。
 * tailwind.css の後に読み込まれる前提。
 */

:root {
    --yl-accent: #e63946;
    --yl-text: #2c2c2c;
    --yl-bg: #fcfcfc;
    --yl-hero-overlay: 0.4;
    --yl-line: #eeeeee;
}

/* ---------------------------------------------
   セクション背景色 / カードの色（カスタマイザー）

   値はすべて inc/customizer-css.php が :root に出力する CSS 変数。
   セクション背景は「空欄 = 継承」を表現するため、変数が無いとき・
   transparent のときは親（body）の背景がそのまま透ける。
--------------------------------------------- */
.yl-sec--news { background-color: var(--yl-sec-news, transparent); }
.yl-sec--reason { background-color: var(--yl-sec-reason, transparent); }
.yl-sec--services { background-color: var(--yl-sec-services, transparent); }
.yl-sec--works { background-color: var(--yl-sec-works, transparent); }
.yl-sec--problems { background-color: var(--yl-sec-problems, transparent); }
.yl-sec--process { background-color: var(--yl-sec-process, transparent); }
.yl-sec--company { background-color: var(--yl-sec-company, transparent); }
.yl-sec--cta { background-color: var(--yl-sec-cta, transparent); }

/* カードの色（.yl-tile 系）は tailwind.src.css の @layer components 側に置いている。
   theme.css に書くと読み込み順で hover:bg-gray-900 などのユーティリティより
   後勝ちしてしまい、ボタンのホバーが効かなくなるため。 */

/* ---------------------------------------------
   基本設定
--------------------------------------------- */
body {
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    background-color: var(--yl-bg);
    color: var(--yl-text);
    letter-spacing: 0.1em;
    line-height: 2.2;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Tailwind のグレースケールに無い中間色 */
.text-gray-550 {
    color: #555555;
}

/* .sketch-border は tailwind.src.css の @layer components に定義している
   （Tailwind の hover:bg-* などのユーティリティで上書きできるようにするため）。 */

/* お困りごとカード専用のホバースタイル */
.problem-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover {
    background-color: var(--yl-problem-hover, #1a1c23) !important;
    border-color: var(--yl-problem-hover, #1a1c23) !important;
    color: #ffffff !important;
}

.problem-card:hover * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.problem-card:hover .text-gray-400,
.problem-card:hover .text-gray-550 {
    color: #e5e7eb !important;
}

.problem-card:hover .tsukkomi {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* フッター上の「お問い合わせ」ボタン専用ホバースタイル */
.contact-red-btn {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #ffffff;
    color: var(--yl-text);
}

.contact-red-btn:hover {
    background-color: var(--yl-accent) !important;
    border-color: var(--yl-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

/* ---------------------------------------------
   手書き風のアンダーライン
--------------------------------------------- */
.sketch-underline {
    position: relative;
    display: inline-block;
}

.sketch-underline::after {
    content: "";
    position: absolute;
    left: -5%;
    bottom: 2px;
    width: 110%;
    height: 1px;
    background-color: #333333;
    transform: rotate(-0.5deg) scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sketch-underline.is-active::after {
    transform: rotate(-0.5deg) scaleX(1);
}

/* 極細の線 */
.hairline {
    height: 1px;
    background-color: var(--yl-line);
    width: 100%;
}

/* 小さなツッコミ用テキスト */
.tsukkomi {
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 0.6rem;
    font-style: italic;
}

.tsukkomi--accent {
    color: var(--yl-accent);
}

/* ---------------------------------------------
   ぼんやり浮き出るアニメーション
--------------------------------------------- */
@keyframes ylFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: ylFadeIn 1.2s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade {
        animation: none;
    }
}

/* ---------------------------------------------
   ヒーロー（背景動画）
--------------------------------------------- */
.hero-video {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: #ffffff;
}

.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, var(--yl-hero-overlay));
    z-index: 1;
    pointer-events: none;
}

.hero-video__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ---------------------------------------------
   PAGE TOP ボタン
--------------------------------------------- */
.page-top {
    position: fixed;
    right: 22px;
    bottom: 72px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--yl-text);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-top:hover {
    opacity: 0.55;
    transform: translateY(-4px);
}

.page-top__arrow {
    position: relative;
    width: 1px;
    height: 48px;
    background: var(--yl-text);
}

.page-top__arrow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--yl-text);
    border-left: 1px solid var(--yl-text);
    transform: translate(-3.5px, 1px) rotate(45deg);
}

.page-top__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .page-top {
        right: 14px;
        bottom: 24px;
        font-size: 9px;
        gap: 6px;
    }
    .page-top__arrow {
        height: 32px;
    }
}

/* ---------------------------------------------
   スマホ用メニューオーバーレイ
--------------------------------------------- */
.mobile-menu-overlay {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    /* ページ全体の背景色に追従させる（color-mix 非対応なら不透明の背景色） */
    background-color: var(--yl-bg, #fcfcfc);
    background-color: color-mix(in srgb, var(--yl-bg, #fcfcfc) 95%, transparent);
}

.mobile-menu-overlay.is-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/*
 * スマホメニューの閉じるボタン。
 *
 * ハンバーガーボタンはヘッダー内にあり、ヘッダーが z-30 + relative で
 * スタッキングコンテキストを作るためオーバーレイ（z-40）の下に潜る。
 * さらにヘッダーは通常フローのため、スクロールした状態でメニューを開くと
 * 画面外にあって押せない。そこでオーバーレイ側に固定の × を置き、
 * 開いている間はハンバーガーを隠して × 1 つに集約する。
 */
body.menu-open #menuToggleBtn {
    display: none;
}

.mobile-menu__close {
    position: absolute;
    top: 32px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.mobile-menu__close span {
    position: absolute;
    width: 22px;
    height: 1px;
    background-color: var(--yl-text);
    transition: background-color 0.3s ease;
}

.mobile-menu__close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu__close:hover span {
    background-color: #999999;
}

@media (min-width: 768px) {
    .mobile-menu__close {
        display: none;
    }
}

/* ---------------------------------------------
   背景の「運命の赤い糸」キャンバス
--------------------------------------------- */
#redThreadCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2; /* ヒーロー(z-10)の後ろ、背景の前 */
}

/* ---------------------------------------------
   フォーム
--------------------------------------------- */
.form-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--yl-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #333333;
    box-shadow: 0 0 0 1px #333333;
    background-color: #ffffff;
}

/* ---------------------------------------------
   WordPress 本文（投稿・固定ページ）
--------------------------------------------- */
.yl-prose {
    font-size: 13px;
    line-height: 2.4;
    color: #555555;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.yl-prose > * + * {
    margin-top: 1.8em;
}

.yl-prose h2 {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    color: var(--yl-text);
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.6em;
    margin-top: 3em;
}

.yl-prose h3 {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--yl-text);
    font-weight: 400;
    margin-top: 2.5em;
}

.yl-prose h4 {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--yl-text);
    font-weight: 400;
    margin-top: 2em;
}

.yl-prose a {
    color: var(--yl-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.yl-prose a:hover {
    color: var(--yl-accent);
}

.yl-prose ul,
.yl-prose ol {
    padding-left: 1.4em;
}

.yl-prose ul {
    list-style: disc;
}

.yl-prose ol {
    list-style: decimal;
}

.yl-prose li + li {
    margin-top: 0.6em;
}

.yl-prose blockquote {
    border-left: 2px solid #dddddd;
    padding: 0.4em 0 0.4em 1.6em;
    color: #888888;
    font-style: italic;
}

.yl-prose img,
.yl-prose iframe,
.yl-prose video {
    max-width: 100%;
    height: auto;
}

.yl-prose figcaption {
    font-size: 11px;
    color: #999999;
    margin-top: 0.8em;
    text-align: center;
}

.yl-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: #f6f6f6;
    padding: 0.15em 0.45em;
    border-radius: 2px;
}

.yl-prose pre {
    background: #f6f6f6;
    padding: 1.4em;
    overflow-x: auto;
    border-radius: 2px;
}

.yl-prose pre code {
    background: transparent;
    padding: 0;
}

.yl-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.yl-prose th,
.yl-prose td {
    border: 1px solid #eeeeee;
    padding: 0.8em 1em;
    text-align: left;
}

.yl-prose hr {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 3em 0;
}

.yl-link-pages {
    margin-top: 2.5em;
    font-size: 11px;
    letter-spacing: 0.2em;
}

/* 投稿ナビ・コメント */
.yl-comment-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
    font-weight: 300;
}

.yl-comment-list .children {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 1.5em;
}

.yl-comment-form label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #555555;
    margin-bottom: 0.6em;
}

.yl-comment-form input[type="text"],
.yl-comment-form input[type="email"],
.yl-comment-form input[type="url"],
.yl-comment-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--yl-text);
    border-radius: 2px;
    outline: none;
}

.yl-comment-form input:focus,
.yl-comment-form textarea:focus {
    border-color: #333333;
    box-shadow: 0 0 0 1px #333333;
}

/* WordPress 標準クラス */
.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 管理バー表示時のヘッダー位置調整 */
.admin-bar .page-top {
    bottom: 96px;
}

/* =============================================
   記事装飾ショートコード（yl-*）
   旧テーマ yasalogic から移植したショートコードの表示。
   出力クラス名は維持しつつ、本テーマのデザインに合わせて再定義している。
   ============================================= */

/* --- マーカー --- */
.yl-marker,
.is-style-yl-marker {
    background: linear-gradient(transparent 62%, rgba(230, 197, 118, 0.45) 62%);
    padding: 0 0.1em;
}

.yl-marker--blue,
.is-style-yl-marker-blue {
    background: linear-gradient(transparent 62%, rgba(150, 178, 205, 0.45) 62%);
}

/* --- ボックス --- */
.yl-box {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 1.6em 1.8em;
    margin: 2em 0;
    border-radius: 2px;
    position: relative;
}

.yl-box__title {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--yl-text);
    margin-bottom: 0.8em;
    font-weight: 500;
}

.yl-box__body > :first-child {
    margin-top: 0;
}

.yl-box__body > :last-child {
    margin-bottom: 0;
}

.yl-box--memo { border-left: 2px solid #d8d8d8; }
.yl-box--point { border-left: 2px solid #c8a86b; }
.yl-box--info { border-left: 2px solid #96b2cd; }
.yl-box--check { border-left: 2px solid #8fae8f; }
.yl-box--warn { border-left: 2px solid var(--yl-accent); }

.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 {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 1.6em 1.8em;
    border-radius: 2px;
}

.is-style-yl-box-memo { border-left: 2px solid #d8d8d8; }
.is-style-yl-box-point { border-left: 2px solid #c8a86b; }
.is-style-yl-box-info { border-left: 2px solid #96b2cd; }
.is-style-yl-box-check { border-left: 2px solid #8fae8f; }
.is-style-yl-box-warn { border-left: 2px solid var(--yl-accent); }

/* --- ボタン --- */
.yl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1em 2.4em;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-decoration: none;
    border: 1px solid #333333;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.4em 0;
}

.yl-btn--primary {
    background: #ffffff;
    color: var(--yl-text);
}

.yl-btn--ghost {
    background: transparent;
    color: #666666;
    border-color: #cccccc;
}

.yl-btn:hover {
    background: #1a1c23;
    color: #ffffff;
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

.yl-btn__arrow {
    font-size: 0.9em;
}

/* --- ふきだし --- */
.yl-balloon {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    margin: 2.2em 0;
}

.yl-balloon--right {
    flex-direction: row-reverse;
}

.yl-balloon__face {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
}

.yl-balloon__face > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #dddddd;
    border-radius: 50%;
    background: #fcfcfc;
    font-size: 16px;
}

.yl-balloon__face em {
    display: block;
    font-size: 10px;
    font-style: normal;
    color: #999999;
    margin-top: 0.5em;
    letter-spacing: 0.05em;
}

.yl-balloon__text {
    position: relative;
    flex: 1;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2em 1.5em;
}

.yl-balloon--gold .yl-balloon__text { border-color: #e4d5b7; }
.yl-balloon--blue .yl-balloon__text { border-color: #cddae6; }

.yl-balloon__text::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-left: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transform: rotate(45deg);
}

.yl-balloon--left .yl-balloon__text::before { left: -5px; }
.yl-balloon--right .yl-balloon__text::before {
    right: -5px;
    transform: rotate(-135deg);
}

.yl-balloon__text > :first-child { margin-top: 0; }
.yl-balloon__text > :last-child { margin-bottom: 0; }

/* --- ステップ --- */
.yl-steps {
    margin: 2.4em 0;
    border-left: 1px solid #e5e5e5;
    padding-left: 2.2em;
}

.yl-step {
    position: relative;
    padding-bottom: 2.2em;
}

.yl-step:last-child { padding-bottom: 0; }

.yl-step__mark {
    position: absolute;
    left: -2.65em;
    top: 0.5em;
    width: 9px;
    height: 9px;
    border: 1px solid #999999;
    border-radius: 50%;
    background: #ffffff;
}

.yl-step__ttl {
    display: block;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--yl-text);
    margin-bottom: 0.6em;
}

.yl-step__body > :last-child { margin-bottom: 0; }

/* --- FAQ --- */
.yl-faq {
    border-bottom: 1px solid #eeeeee;
    margin: 0;
}

.yl-faq summary {
    cursor: pointer;
    padding: 1.2em 2em 1.2em 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--yl-text);
    position: relative;
    list-style: none;
}

.yl-faq summary::-webkit-details-marker { display: none; }

.yl-faq summary::after {
    content: "+";
    position: absolute;
    right: 0.2em;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 15px;
}

.yl-faq[open] summary::after { content: "−"; }

.yl-faq__a {
    padding: 0 0 1.6em;
    color: #666666;
}

.yl-faq__a > :first-child { margin-top: 0; }

/* --- ブログカード --- */
.yl-card {
    display: flex;
    gap: 1.4em;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 1.2em;
    margin: 2em 0;
    text-decoration: none;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.yl-card:hover {
    border-color: #999999;
    transform: translateX(3px);
}

.yl-card__thumb {
    flex-shrink: 0;
    width: 120px;
    line-height: 0;
}

.yl-card__thumb img {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.yl-card__thumb.is-empty {
    height: 84px;
    background: #f4f4f4;
}

.yl-card__b {
    display: block;
    min-width: 0;
}

.yl-card__label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #aaaaaa;
    margin-bottom: 0.5em;
}

.yl-card__t {
    display: block;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--yl-text);
    line-height: 1.9;
}

.yl-card__x {
    display: block;
    font-size: 11px;
    color: #999999;
    margin-top: 0.5em;
    line-height: 1.9;
}

/* --- ランキング --- */
.yl-rank {
    display: flex;
    gap: 1.2em;
    border-bottom: 1px solid #eeeeee;
    padding: 1.4em 0;
}

.yl-rank__no {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333333;
    border-radius: 50%;
    font-size: 12px;
}

.yl-rank__ttl {
    display: block;
    font-size: 13px;
    letter-spacing: 0.15em;
    margin-bottom: 0.4em;
    color: var(--yl-text);
}

.yl-rank__body > :last-child { margin-bottom: 0; }

/* --- タブ --- */
.yl-tabs {
    margin: 2.4em 0;
}

.yl-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
}

.yl-tabs__btn {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 0.9em 1.4em;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #999999;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-bottom: -1px;
}

.yl-tabs__btn:hover { color: var(--yl-text); }

.yl-tabs__btn.is-on {
    color: var(--yl-text);
    border-bottom-color: #333333;
}

.yl-tab {
    display: none;
    padding-top: 1.6em;
}

.yl-tab.is-on { display: block; }

/* JS が無効な場合はすべて表示して内容が読めるようにする */
.no-js .yl-tab { display: block; }

/* --- PR ボックス --- */
.yl-pr {
    border: 1px dashed #dddddd;
    padding: 1.4em 1.6em;
    margin: 2em 0;
    position: relative;
    background: #fcfcfc;
}

.yl-pr__label {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #999999;
    border: 1px solid #dddddd;
    padding: 0.2em 0.8em;
    border-radius: 999px;
    margin-bottom: 0.8em;
}

.yl-pr__body > :last-child { margin-bottom: 0; }

/* --- 比較表 --- */
.yl-compare {
    overflow-x: auto;
    margin: 2em 0;
}

.yl-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.yl-compare th,
.yl-compare td {
    border: 1px solid #eeeeee;
    padding: 0.9em 1em;
}

.yl-compare th {
    background: #fafafa;
    font-weight: 500;
}

/* --- 人気記事 --- */
.yl-popular {
    margin: 2em 0;
    border-top: 1px solid #eeeeee;
}

.yl-popular__item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em 0;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
    color: var(--yl-text);
    transition: transform 0.4s ease;
}

.yl-popular__item:hover { transform: translateX(4px); }

.yl-popular__no {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    border-radius: 50%;
    font-size: 10px;
    color: #999999;
}

.yl-popular__t {
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: 1.9;
}

@media (max-width: 640px) {
    .yl-card {
        flex-direction: column;
    }
    .yl-card__thumb {
        width: 100%;
    }
    .yl-balloon__face > span {
        width: 42px;
        height: 42px;
    }
    .yl-balloon__face {
        width: 42px;
    }
}

/* ---------------------------------------------
   導入事例 3D カルーセル
--------------------------------------------- */
/*
 * 元デザインは perspective を指定していないため、カードは平面のまま横に並ぶ。
 * 立体的なカバーフローにしたい場合は下の 3 行のコメントを外す。
 */
/*
.perspective-1000 {
    perspective: 1000px;
}
*/

.carousel-3d-card {
    will-change: transform, opacity;
}
