/* front-page only: index.html の <style> ブロック（YouTube機能ブロック／4分割ポータルの速度・可読性調整）を分離 */
.video-feature {
  margin: clamp(42px, 7vw, 86px) auto 0;
  max-width: 880px;
  position: relative;
}
.video-feature__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.video-feature__head h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .08em;
}
.video-feature__lead {
  margin: 0;
  max-width: 620px;
  font-size: 13px;
  line-height: 2;
  color: rgba(47, 43, 38, .68);
}
.video-feature__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d9d0c4;
  box-shadow: 0 24px 70px rgba(47,43,38,.12);
}
.video-feature__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-feature[data-video-reveal] {
  opacity: 0;
  transition:
    opacity 1.05s cubic-bezier(.22, 1, .36, 1),
    transform 1.05s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.video-feature[data-motion="right"] { transform: translate3d(42px, 18px, 0) rotate(.25deg); }
.video-feature[data-motion="left"] { transform: translate3d(-42px, 18px, 0) rotate(-.25deg); }
.video-feature.is-visible { opacity: 1; transform: translate3d(0,0,0) rotate(0); }
.video-feature__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #f2eee6;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 1.1s cubic-bezier(.77,0,.175,1) .18s;
  pointer-events: none;
}
.video-feature[data-motion="left"] .video-feature__frame::before {
  transform-origin: left center;
}
.video-feature.is-visible .video-feature__frame::before {
  transform: scaleX(0);
}
@media (max-width: 767px) {
  .video-feature {
    margin-top: 46px;
  }
  .video-feature__head h3 {
    font-size: 17px;
  }
  .video-feature__lead {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-feature[data-video-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .video-feature__frame::before {
    display: none;
  }
}

/* YouTube Error 153対策：iframeはJSでorigin付き生成 */
.video-feature__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-feature__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #2f2b26;
}
.video-feature__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.04);
}
.video-feature__placeholder span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  background: rgba(47,43,38,.16);
  backdrop-filter: blur(8px);
}
.video-feature__fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(47,43,38,.64);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .05em;
}
.video-feature__fallback a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* portal速度/可読性オーバーライド */
.portals{
  content-visibility:auto;
  contain-intrinsic-size: 720px;
}
.portal{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#2f2a24;
}
.portal img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:translateZ(0);
  backface-visibility:hidden;
}
.portal::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(22,20,18,.36) 0%, rgba(22,20,18,.18) 42%, rgba(22,20,18,.44) 100%),
    linear-gradient(90deg, rgba(22,20,18,.20), rgba(22,20,18,0) 56%);
}
.portal__num{
  z-index:2;
  top:clamp(58px, 5.7vw, 104px) !important;
}
.portal__content{
  z-index:2;
  top:clamp(112px, 9.2vw, 168px) !important;
  bottom:auto !important;
  transform:none !important;
  max-width:min(82%, 420px);
}
.portal__title{
  text-wrap:balance;
}
.portal__click{
  position:absolute !important;
  inset:0 !important;
  z-index:5 !important;
  display:block !important;
  text-indent:-9999px;
  overflow:hidden;
}
.portal:has(.portal__click){ cursor:pointer; }
.portal:has(.portal__click) img{
  transition:transform 1.2s cubic-bezier(.19,1,.22,1), filter .8s ease;
}
.portal:has(.portal__click):hover img{
  transform:scale(1.035) translateZ(0);
  filter:saturate(1.04);
}
@media (max-width:900px){
  .portal__num{top:48px !important;}
  .portal__content{top:96px !important; max-width:86%;}
}
