/* 葬儀動画ガイド 1.2: MP4専用 / スマホ優先 */
.sfvg-guide,.sfvg-related,.sfvg-modal,.sfvg-float{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
.sfvg-guide,.sfvg-guide *,.sfvg-related,.sfvg-related *,.sfvg-modal,.sfvg-modal *,.sfvg-float{box-sizing:border-box}
.sfvg-guide{max-width:1140px;margin:18px auto 50px;padding:0 14px;color:#284956}
.sfvg-guide__header{padding:27px 12px 23px;text-align:center;background:linear-gradient(180deg,#f0faff,#fff);border-radius:18px;margin-bottom:25px}
.sfvg-guide__eyebrow{display:inline-block;color:#3e829e;letter-spacing:.15em;font-size:11px;font-weight:800}
.sfvg-guide__header h2{margin:6px 0;color:#28546a;font-size:clamp(25px,4.8vw,36px)}
.sfvg-guide__header p{margin:0;color:#71808b;font-size:14px}
.sfvg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.sfvg-card{display:flex;flex-direction:column;width:100%;min-width:0;border:1px solid #d8e7ef;border-radius:17px;overflow:hidden;padding:0;text-align:left;background:#fff;box-shadow:0 5px 16px rgba(38,75,95,.06);cursor:pointer;color:inherit;touch-action:manipulation;appearance:none;-webkit-appearance:none}
.sfvg-card:focus-visible,.sfvg-float:focus-visible,.sfvg-modal__close:focus-visible,.sfvg-modal__actions a:focus-visible{outline:3px solid #237aa1;outline-offset:3px}
.sfvg-card__visual{display:block;position:relative;width:100%;aspect-ratio:9/16;background:linear-gradient(145deg,#d6edf7,#f4f9fc);overflow:hidden}
.sfvg-card__cover{display:block;width:100%;height:100%;object-fit:cover}
.sfvg-card__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;width:54px;height:54px;border-radius:50%;align-items:center;justify-content:center;padding-left:4px;background:rgba(255,255,255,.93);color:#237998;font-size:22px;box-shadow:0 5px 15px rgba(0,0,0,.12)}
.sfvg-card__info{display:flex;flex-direction:column;padding:13px 12px 17px;min-height:72px}
.sfvg-card__title{display:block;color:#274a58;font-size:14px;font-weight:800;line-height:1.55;overflow-wrap:anywhere}
.sfvg-guide__pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:26px auto}
.sfvg-guide__pagination a{display:inline-block;border:1px solid #bad7e5;padding:8px 17px;border-radius:999px;text-decoration:none;color:#2a7493;font-weight:700}
.sfvg-guide__pagination span{color:#5c7480}
.sfvg-guide__notice,.sfvg-guide__empty{color:#70818a;text-align:center;font-size:12px;margin-top:18px;line-height:1.8}
.sfvg-related{max-width:800px;margin:34px auto;padding:20px 18px;border-radius:18px;background:#f4fafc;border:1px solid #d9e8ed;color:#294c5d}
.sfvg-related__heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.sfvg-related__heading h2{margin:0;font-size:20px;color:#315f75}
.sfvg-related__more{font-size:12px;font-weight:700;color:#2a7c9e;text-decoration:none}
.sfvg-related__items{max-width:380px}
.sfvg-related .sfvg-card{display:grid;grid-template-columns:100px 1fr;min-height:130px}
.sfvg-related .sfvg-card__visual{aspect-ratio:auto;min-height:130px;height:100%}
.sfvg-related .sfvg-card__play{width:42px;height:42px;font-size:17px}
.sfvg-related .sfvg-card__info{justify-content:center}
.sfvg-modal[hidden]{display:none!important}
.sfvg-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:14px}
.sfvg-modal__backdrop{position:absolute;inset:0;background:rgba(8,24,34,.86)}
.sfvg-modal__dialog{position:relative;z-index:2;max-height:calc(100vh - 26px);width:min(430px,100%);overflow-y:auto;border-radius:16px;background:#fff;color:#263e49;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.sfvg-modal__close{position:absolute;top:8px;right:9px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:rgba(20,32,39,.84);color:#fff;font-size:31px;line-height:1;cursor:pointer}
.sfvg-modal__media{position:relative;width:100%;background:#0c161b;min-height:180px}
.sfvg-modal__media video{display:block;object-fit:contain;width:100%;height:min(64vh,610px);min-height:260px;border:0;background:#111}
.sfvg-modal__caption{padding:14px 16px 18px}
.sfvg-modal__caption h2{font-size:18px;line-height:1.5;margin:0 0 6px;color:#294a5c}
.sfvg-modal__hint{font-size:12px;line-height:1.7;color:#687c85;margin:0 0 12px}
.sfvg-modal__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sfvg-modal__actions a{display:flex;align-items:center;justify-content:center;padding:10px 7px;min-height:46px;border-radius:11px;background:#e9f5fa;color:#235e76!important;font-weight:800;font-size:12px;text-decoration:none!important;text-align:center}
.sfvg-modal__actions a:last-child{grid-column:1/-1;background:#277c94;color:#fff!important}
.sfvg-float{position:fixed;z-index:99990;bottom:var(--sfvg-offset,100px);width:52px;min-height:60px;border-radius:17px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1px solid #cee3ed;color:#2b7997!important;text-decoration:none!important;box-shadow:0 5px 16px rgba(25,70,95,.16);font-size:11px;font-weight:800;touch-action:manipulation}
.sfvg-float--left{left:12px}
.sfvg-float--right{right:12px}
.sfvg-float:hover{background:#f0f9fd;color:#185d7a!important}
@media(max-width:860px){.sfvg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:560px){.sfvg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sfvg-guide{padding:0 8px}.sfvg-card__info{padding:9px 10px 11px;min-height:66px}.sfvg-card__title{font-size:13px}.sfvg-modal{padding:6px}.sfvg-modal__dialog{max-height:calc(100vh - 12px)}.sfvg-modal__media video{height:min(62vh,575px)}.sfvg-float{width:47px;min-height:52px;bottom:var(--sfvg-offset,100px);font-size:10px;border-radius:15px}.sfvg-float--left{left:8px}.sfvg-float--right{right:8px}}
@media(prefers-reduced-motion:no-preference){.sfvg-card{transition:transform .18s ease,box-shadow .18s ease}.sfvg-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(40,85,100,.14)}}
/* v1.3: 前の動画 / 次の動画 */
.sfvg-modal__nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;margin:13px 0 15px}
.sfvg-modal__navbutton{border:1px solid #bcdce8;border-radius:11px;background:#eaf7fc;color:#235e76;font-size:13px;line-height:1.3;font-weight:800;min-height:46px;padding:9px 6px;cursor:pointer}
.sfvg-modal__navbutton:hover:not(:disabled){background:#d7eef7}
.sfvg-modal__navbutton:disabled{opacity:.33;cursor:not-allowed}
#sfvg-position{font-size:12px;color:#5c7480;text-align:center;min-width:37px;font-weight:700}
.sfvg-modal__navbutton:focus-visible{outline:3px solid #197ca5;outline-offset:2px}
.sfvg-modal__state{color:#fff;font-size:12px;line-height:1.6;padding:0 10px;text-align:center;margin:0}
.sfvg-modal__state:not(:empty){padding:7px 12px}
