/* FC67コンパクトカルーセル v1.0 - 既存スポンサー広告CSSを維持 */
.trl-fc67-carousel{max-width:100%;margin:18px 0 32px;color:#263b53;font-size:14px;line-height:1.65;overflow:visible}
.trl-fc67-carousel *{box-sizing:border-box}
.trl-fc67-carousel .trl-fc67-guide{padding:13px 16px;margin:0 0 14px;border:1px solid #cbdcf0;border-radius:12px;background:#f2f7fe}
.trl-fc67-carousel .trl-fc67-guide strong{display:block;font-size:15px;color:#173b5c}
.trl-fc67-carousel .trl-fc67-guide p{margin:5px 0 0;color:#475569;font-size:13px}
.trl-fc67-carousel .trl-fc67-radio,.trl-fc67-carousel .trl-fc67-expand-switch{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.trl-fc67-carousel .trl-fc67-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 14px}
.trl-fc67-carousel .trl-fc67-tabs label{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:49px;padding:9px 7px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#173b5c;font-size:12px;font-weight:800;line-height:1.3;text-align:center;cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s}
.trl-fc67-carousel .trl-fc67-tabs label small{font-size:10px;color:#64748b;font-weight:700;white-space:nowrap}
.trl-fc67-carousel .trl-fc67-tabs label:hover{border-color:#93b4d8;background:#f1f6fd}
.trl-fc67-carousel .trl-fc67-panel{display:none;min-width:0;padding:14px 14px 12px;border:1px solid #dce4ee;border-radius:12px;background:#fff;box-shadow:0 1px 5px rgba(15,23,42,.04)}
.trl-fc67-carousel .trl-fc67-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 3px}
.trl-fc67-carousel .trl-fc67-panel-head h3{margin:0!important;padding:0!important;border:0!important;font-size:17px!important;color:#173b5c!important;line-height:1.5!important}
.trl-fc67-carousel .trl-fc67-count{padding:3px 8px;border-radius:999px;background:#e8f1ff;color:#174a8b;font-size:11px;font-weight:800}
.trl-fc67-carousel .trl-fc67-desc{margin:5px 0 10px;color:#52647a;font-size:12px;line-height:1.55}
.trl-fc67-carousel .trl-fc67-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;min-height:29px}
.trl-fc67-carousel .trl-fc67-hint{font-size:11px;color:#64748b}
.trl-fc67-carousel .trl-fc67-arrows{display:none;align-items:center;gap:6px}
.trl-fc67-carousel[data-fc67-js="1"] .trl-fc67-arrows{display:flex}
.trl-fc67-carousel .trl-fc67-arrow{display:inline-flex;align-items:center;justify-content:center;width:34px;height:30px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#173b5c;font-size:21px;font-weight:700;line-height:1;cursor:pointer}
.trl-fc67-carousel .trl-fc67-arrow:disabled{opacity:.35;cursor:default}
.trl-fc67-carousel .trl-fc67-viewport{display:flex;overflow-x:auto;overscroll-behavior-x:contain;gap:12px;padding:2px 2px 12px;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#c4d2e4 transparent;-webkit-overflow-scrolling:touch}
.trl-fc67-carousel .trl-fc67-card{min-width:0;flex:0 0 min(88%,640px);scroll-snap-align:start;border:1px solid #dce4ee;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.04)}
.trl-fc67-carousel .trl-fc67-card-head{padding:9px 11px 7px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.trl-fc67-carousel .trl-fc67-card h4{margin:0!important;padding:0!important;border:0!important;font-size:13px!important;line-height:1.45!important;color:#173b5c!important;font-weight:800!important}
.trl-fc67-carousel .trl-fc67-slot{padding:8px;overflow:hidden;min-width:0}
.trl-fc67-carousel .trl-fc67-pr-label{display:block;margin:0 0 5px;color:#92400e;font-size:10px;font-weight:800}
.trl-fc67-carousel .trl-fc67-slot img{max-width:100%;height:auto}
.trl-fc67-carousel .trl-fc67-expand-label{display:block;width:max-content;max-width:100%;margin:11px auto 0;padding:8px 18px;border:1px solid #b8cce4;border-radius:9px;background:#f0f6ff;color:#174a8b;font-size:12px;font-weight:800;text-align:center;cursor:pointer}
.trl-fc67-carousel .trl-fc67-expand-label .expanded{display:none}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;scroll-snap-type:none;padding-bottom:4px}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-controls .trl-fc67-arrows{display:none}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-expand-label .collapsed{display:none}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-expand-label .expanded{display:inline}
.trl-fc67-carousel .trl-fc67-disclosure{padding:12px 14px;margin:13px 0 0;border:1px solid #ead29c;border-radius:10px;background:#fffcf3;color:#70551f;font-size:11px;line-height:1.7}
.trl-fc67-carousel .trl-fc67-disclosure p{margin:0}
.trl-fc67-carousel .trl-fc67-disclosure p+p{margin-top:5px}
.trl-fc67-carousel .trl-fc67-hq{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0 0;padding:13px 15px;border-radius:10px;background:#edf3fa}
.trl-fc67-carousel .trl-fc67-hq strong{color:#173b5c;font-size:13px}
.trl-fc67-carousel .trl-fc67-hq p{margin:4px 0 0;color:#50657b;font-size:11px}
.trl-fc67-carousel .trl-fc67-hq a{display:inline-block;flex:none;padding:8px 11px;border-radius:7px;background:#1d4ed8;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:800}
.trl-fc67-carousel .trl-fc67-toolbar-note{margin:9px 0 0;font-size:11px;color:#64748b;text-align:right}
.trl-fc67-carousel .trl-fc67-expand-label:focus-visible,.trl-fc67-carousel .trl-fc67-arrow:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.trl-fc67-carousel .trl-fc-sponsor{overflow:hidden;border-radius:6px}
.trl-fc67-carousel .trl-fc-banner-img{height:auto;object-fit:contain}
@media(max-width:800px){.trl-fc67-carousel .trl-fc67-tabs{display:flex;overflow-x:auto;gap:8px;padding:0 0 8px;scroll-snap-type:x proximity;scrollbar-width:thin}.trl-fc67-carousel .trl-fc67-tabs label{flex:0 0 136px;scroll-snap-align:start;min-height:45px}}
@media(max-width:640px){.trl-fc67-carousel .trl-fc67-panel{padding:10px}.trl-fc67-carousel .trl-fc67-panel-head h3{font-size:15px!important}.trl-fc67-carousel .trl-fc67-card{flex-basis:calc(100% - 24px)}.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{grid-template-columns:minmax(0,1fr)}.trl-fc67-carousel .trl-fc67-hq a{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.trl-fc67-carousel .trl-fc67-viewport{scroll-behavior:auto}.trl-fc67-carousel .trl-fc67-tabs label{transition:none}}

/* FC67 autoplay controls: 10s category / 5s banner, both user-pausable */
.trl-fc67-carousel .trl-fc67-auto-bar{display:none;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin:-4px 0 11px;padding:0 2px;color:#64748b;font-size:11px}
.trl-fc67-carousel[data-fc67-js="1"] .trl-fc67-auto-bar{display:flex}
.trl-fc67-carousel .trl-fc67-auto-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:4px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#173b5c;font-size:12px;font-weight:800;line-height:1.4;cursor:pointer}
.trl-fc67-carousel .trl-fc67-auto-toggle[aria-pressed="true"]{background:#e8f1ff;border-color:#9bbbe7}
.trl-fc67-carousel .trl-fc67-auto-toggle:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.trl-fc67-carousel .trl-fc67-auto-bar{display:none!important}}

/* FC67 v4: make the playback control visibly available even on reduced-motion devices. */
.trl-fc67-carousel[data-fc67-js="1"] .trl-fc67-auto-bar{display:flex!important;visibility:visible!important;opacity:1!important}
@media(prefers-reduced-motion:reduce){.trl-fc67-carousel[data-fc67-js="1"] .trl-fc67-auto-bar{display:flex!important}}

/* v4: three-up ad carousel and original image ratio, isolated to this station article section.
   The ad plugin currently assumes 640x180, but uploaded 1672x941 recruiting images are 16:9.
   Reset the forced aspect ratio; preserve each sponsor creative without cropping. */
.trl-fc67-carousel{container:trl-fc67-inline/inline-size}
.trl-fc67-carousel .trl-fc67-viewport{gap:12px;scroll-padding-inline:2px}
.trl-fc67-carousel .trl-fc67-controls{justify-content:flex-end}
.trl-fc67-carousel .trl-fc67-viewport > .trl-fc67-card{
  flex:0 0 calc((100% - 28px)/3);
  min-height:230px;
  display:flex;flex-direction:column;
  scroll-snap-align:start;
}
.trl-fc67-carousel .trl-fc67-card-head{
  display:flex;align-items:center;min-height:45px;
  padding:9px 11px;
}
.trl-fc67-carousel .trl-fc67-slot{
  flex:1;display:flex;flex-direction:column;justify-content:center;
  padding:0;min-width:0;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor,
.trl-fc67-carousel .trl-fc67-slot .trl-fc-banner-link,
.trl-fc67-carousel .trl-fc67-slot .trl-fc-open-link{
  display:block;width:100%;max-width:none;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-banner-img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  margin:0!important;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-open-banner,
.trl-fc67-carousel .trl-fc67-slot .trl-fc-direct-banner{
  min-height:185px;
}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:1020px){
  .trl-fc67-carousel .trl-fc67-viewport>.trl-fc67-card{flex-basis:calc((100% - 16px)/2)}
  .trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .trl-fc67-carousel .trl-fc67-viewport>.trl-fc67-card{flex-basis:calc(100% - 4px)}
  .trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{grid-template-columns:minmax(0,1fr)}
}
@container trl-fc67-inline (max-width:950px){
  .trl-fc67-carousel .trl-fc67-viewport>.trl-fc67-card{flex-basis:calc((100% - 16px)/2)}
  .trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container trl-fc67-inline (max-width:620px){
  .trl-fc67-carousel .trl-fc67-viewport>.trl-fc67-card{flex-basis:calc(100% - 4px)}
  .trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{grid-template-columns:minmax(0,1fr)}
}

/* v5 production fix: stabilize ad height under SWELL lazy-loading.
   The 1x1 lazy placeholder must NOT determine an offscreen card's height.
   All 67 standard recruiting creatives currently use 1672x941 (approx 16:9).
   Contracted sponsors retain the FC plugin's standard 640x180 ratio.
   This CSS never changes the plugin, the underlying ad, or impression tracking. */
.trl-fc67-carousel .trl-fc67-viewport {
  align-items:flex-start!important; /* never stretch loaded cards to 1x1 placeholders */
}
.trl-fc67-carousel .trl-fc67-viewport > .trl-fc67-card {
  align-self:flex-start!important;
  height:auto!important;
  min-height:0!important;
}
.trl-fc67-carousel .trl-fc67-slot {
  flex:none!important;
  display:block!important;
  padding:0!important;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-banner-img {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--recruit .trl-fc-banner-img {
  aspect-ratio:1672 / 941!important;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--active .trl-fc-banner-img {
  aspect-ratio:640 / 180!important;
}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--recruit .trl-fc-banner-link,
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--active .trl-fc-banner-link {
  display:block!important;
  width:100%!important;
}
/* Default recruit banner is edge-to-edge. No internal blank framing. */
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--recruit {line-height:0}
.trl-fc67-carousel .trl-fc67-slot .trl-fc-sponsor--recruit img {vertical-align:top}

/* FC67 v7: uninterrupted horizontal marquee (leftward), without duplicated ads. */
.trl-fc67-carousel .trl-fc67-viewport {
  scroll-snap-type:none!important;
  scroll-behavior:auto!important;
  overflow-anchor:none!important;
  scroll-padding-inline:0!important;
  scrollbar-width:none;
}
.trl-fc67-carousel .trl-fc67-viewport::-webkit-scrollbar{display:none}
.trl-fc67-carousel .trl-fc67-card{scroll-snap-align:none!important}
.trl-fc67-carousel .trl-fc67-expand-switch:checked~.trl-fc67-viewport{
  scroll-behavior:auto!important;
}
