/*
Theme Name: TGTV AVANT Child
Template: avant_tcd060
Version: 2.0.13
Description: つながるテレビ PRESS / Editorial redesign
Text Domain: tgtv-avant-child
*/
/* PRESS: article tables can use the entire content column. */
.p-entry__body table, .p-entry__body .wp-block-table, .p-entry__body .wp-block-table table,
.p-entry__content table, .p-entry__content .wp-block-table table {width:100%;max-width:100%;box-sizing:border-box;}
/* Month selector: scroll horizontally on narrow viewports without squashing years. */
@media(max-width:767px){#js-calendar{overflow-x:auto;-webkit-overflow-scrolling:touch;}}

/* TGTV PRESS event detail header, image and mobile readability */
.tgtv-event-header{max-width:1100px;margin:0 auto;padding:38px 24px 24px;box-sizing:border-box}
.tgtv-event-heading{max-width:900px;margin:0 auto}
.tgtv-event-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tgtv-event-period{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 12px;margin-bottom:15px;font-size:14px;line-height:1.7;color:#444}
.tgtv-event-period__label{background:#fff0df;color:#a65300;border-radius:4px;padding:3px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.tgtv-event-period__value{overflow-wrap:anywhere}
.tgtv-event-title{font-size:clamp(25px,3vw,36px);font-weight:700;line-height:1.45;margin:0;color:#1e2430;overflow-wrap:anywhere}
.tgtv-event-featured{margin:0 0 28px}
.tgtv-event-featured img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:767px){
 .tgtv-event-header{padding:24px 20px 20px}
 .tgtv-event-period{font-size:13px;margin-bottom:12px}
 .tgtv-event-title{font-size:26px;line-height:1.45}
 .tgtv-event-featured{margin-bottom:22px}
}



/* TGTV PRESS — independent editorial homepage. */
.tgtv-press-lead,.tgtv-press-lead *{box-sizing:border-box}
.tgtv-press-lead{background:#f6f7f8;color:#20242b;padding:36px 20px 44px}
.tgtv-press-lead__inner{max-width:1200px;margin:0 auto}
.tgtv-press-lead a{text-decoration:none;color:inherit}
.tgtv-press-lead__top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:22px;align-items:stretch}
.tgtv-press-feature,.tgtv-press-sidebar{background:#fff;border:1px solid #e4e6e9;min-width:0}
.tgtv-press-feature{display:flex;flex-direction:column}
.tgtv-press-feature__image{display:flex;align-items:center;justify-content:center;background:#eef0f3;aspect-ratio:16/9;overflow:hidden}
.tgtv-press-feature__image img{width:100%;height:100%;object-fit:contain;display:block}
.tgtv-press-feature__body{padding:22px 26px 25px;flex:1}
.tgtv-press-eyebrow,.tgtv-press-sidebar__heading>span,.tgtv-press-events__heading>div>span{font-size:11px;letter-spacing:.12em;font-weight:800;color:#ed6b21}
.tgtv-press-eyebrow span{letter-spacing:0;color:#656b75;margin-left:8px}
.tgtv-press-feature h2{font-size:clamp(21px,2.1vw,30px);line-height:1.45;margin:12px 0 14px;font-weight:750;overflow-wrap:anywhere}
.tgtv-press-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#727984;font-size:12px}
.tgtv-press-chip{display:inline-block;background:#fff1e8;color:#bd5119;padding:5px 9px;border-radius:4px;font-size:11px;font-weight:700;line-height:1.35}
.tgtv-press-sidebar{padding:20px 20px 8px}
.tgtv-press-sidebar__heading{display:flex;align-items:baseline;gap:12px;padding-bottom:15px;border-bottom:1px solid #e7e8eb}
.tgtv-press-sidebar__heading strong{font-size:19px}
.tgtv-press-sidecard{display:grid;grid-template-columns:42% minmax(0,1fr);gap:13px;padding:15px 0;border-bottom:1px solid #edf0f2;min-width:0}
.tgtv-press-sidecard:last-child{border-bottom:0;padding-bottom:4px}
.tgtv-press-sidecard__image{display:flex;align-items:center;justify-content:center;background:#f1f2f4;aspect-ratio:16/10;overflow:hidden}
.tgtv-press-sidecard__image img{width:100%;height:100%;object-fit:contain;display:block}
.tgtv-press-sidecard__body{min-width:0}
.tgtv-press-sidecard h3{font-size:15px;line-height:1.55;margin:8px 0 0;font-weight:700;overflow-wrap:anywhere}
.tgtv-press-events{margin-top:26px}
.tgtv-press-events__heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.tgtv-press-events__heading h2{font-size:25px;margin:5px 0 0;line-height:1.35}
.tgtv-press-events__heading>a{font-size:13px;font-weight:700;color:#a44d23;white-space:nowrap}
.tgtv-press-events__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tgtv-press-eventcard{background:#fff;border:1px solid #e4e6e9;min-width:0}
.tgtv-press-eventcard__image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#eff1f3;overflow:hidden}
.tgtv-press-eventcard__image img{width:100%;height:100%;object-fit:contain;display:block}
.tgtv-press-eventcard__body{padding:12px 14px 14px}
.tgtv-press-eventcard h3{font-size:16px;line-height:1.5;margin:7px 0;font-weight:700;overflow-wrap:anywhere}
.tgtv-press-eventcard p{font-size:12px;line-height:1.6;color:#666f79;margin:0;overflow-wrap:anywhere}
.tgtv-press-empty{padding:20px 0;color:#6d737a}
@media(max-width:900px){
 .tgtv-press-lead__top{grid-template-columns:minmax(0,1fr)}
 .tgtv-press-sidebar{padding:18px}
 .tgtv-press-events__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .tgtv-press-lead{padding:0 0 18px}
 .tgtv-press-lead__top{gap:0}
 .tgtv-press-feature,.tgtv-press-sidebar{border-left:0;border-right:0}
 .tgtv-press-feature__body{padding:16px 18px 20px}
 .tgtv-press-feature h2{font-size:21px;margin:10px 0 12px}
 .tgtv-press-sidebar{padding:16px 16px 0;margin-top:8px}
 .tgtv-press-sidecard{grid-template-columns:40% minmax(0,1fr);gap:12px;padding:12px 0}
 .tgtv-press-sidecard h3{font-size:14px}
 .tgtv-press-events{margin-top:16px;padding:0 16px}
 .tgtv-press-events__heading h2{font-size:21px}
 .tgtv-press-events__heading>a{font-size:11px}
 .tgtv-press-events__grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .tgtv-press-eventcard{display:grid;grid-template-columns:40% minmax(0,1fr)}
 .tgtv-press-eventcard__image{height:auto;aspect-ratio:16/9;align-self:start}
 .tgtv-press-eventcard__body{padding:10px 12px}
 .tgtv-press-eventcard h3{font-size:14px;margin:6px 0}
}

/* Event archive thumbnails: consistent 16:9, no cropping of text-bearing posters. */
.p-upcoming-event .p-article07__img{width:100%;height:auto;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;background:#eef0f3;overflow:hidden}
.p-upcoming-event .p-article07__img img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}

/* Accessible featured article carousel */
.tgtv-press-slider{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e4e6e9}
.tgtv-press-slider__slides{flex:1;min-width:0}
.tgtv-press-slider .tgtv-press-slide{border:0;height:100%}
.tgtv-press-slider .tgtv-press-slide[hidden]{display:none}
.tgtv-press-slider__controls{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:0 20px 15px;color:#626b74;font-size:12px}
.tgtv-press-slider__controls button{background:#f0f1f3;border:0;border-radius:50%;width:34px;height:34px;cursor:pointer;color:#222;font-size:24px;line-height:1}
.tgtv-press-slider__controls button:focus-visible{outline:2px solid #d65a1c;outline-offset:2px}

/* AVANT native homepage special articles: uniform 16:9 thumbnails. */
.p-index-special .p-article06__img,
.p-index-special .p-article09__img {
  width:100%; aspect-ratio:16/9; height:auto;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; background:#eef0f3;
}
.p-index-special .p-article06__img img,
.p-index-special .p-article09__img img {
  display:block; width:100%; height:100%; object-fit:contain; object-position:center;
}

/* TGTV PRESS independent special section — no AVANT image overlays. */
.tgtv-special,.tgtv-special *{box-sizing:border-box}
.tgtv-special{margin:52px 0 60px;color:#24272d}
.tgtv-special__header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:23px;border-bottom:1px solid #dedfe2;padding-bottom:20px}
.tgtv-special__eyebrow{font-size:12px;letter-spacing:.13em;color:#dc662a;font-weight:800}
.tgtv-special__header h2{font-size:30px;line-height:1.35;margin:6px 0 8px;font-weight:800}
.tgtv-special__header p{margin:0;color:#69717b;font-size:13px}
.tgtv-special__more{color:#a64d22;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.tgtv-special__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
.tgtv-special__card{background:#fff;border:1px solid #e5e7ea;min-width:0;overflow:hidden}
.tgtv-special__image{display:flex;aspect-ratio:16/9;width:100%;background:#eff0f3;align-items:center;justify-content:center;overflow:hidden}
.tgtv-special__image img{width:100%;height:100%;object-fit:contain;display:block;max-width:none;max-height:none}
.tgtv-special__placeholder{color:#9299a2;font-size:14px;letter-spacing:.1em}
.tgtv-special__body{padding:18px 18px 21px}
.tgtv-special__category{font-size:11px;font-weight:750;color:#b95022;background:#fff1e8;padding:5px 8px;border-radius:3px;display:inline-block}
.tgtv-special__body h3{font-size:17px;line-height:1.55;font-weight:750;margin:12px 0 12px;overflow-wrap:anywhere}
.tgtv-special__body h3 a{color:#24272d;text-decoration:none}
.tgtv-special__body time{color:#858b93;font-size:12px}
@media(max-width:900px){.tgtv-special__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tgtv-special{margin:26px 0 28px}.tgtv-special__header{align-items:start;gap:12px}.tgtv-special__header h2{font-size:23px}.tgtv-special__header p{font-size:12px}.tgtv-special__more{font-size:11px;white-space:normal;text-align:right;max-width:115px}.tgtv-special__grid{grid-template-columns:1fr;gap:16px}.tgtv-special__body{padding:15px 16px 18px}.tgtv-special__body h3{font-size:16px}}

/* Past event archive: poster entirely visible, date BELOW image. */
.p-past-event .p-article07__img{width:100%;height:auto;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef0f3}
.p-past-event .p-article07__img::before{content:none}
.p-past-event .p-article07__img img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.p-past-event .tgtv-past-event__date{margin-top:12px;color:#66717c;font-size:13px;line-height:1.65}
.p-past-event .tgtv-past-event__date p{margin:0}
.p-past-event .p-article07__cat{margin-top:10px}

/* Responsive special heading: keep copy inside viewport. */
.tgtv-special__header>div{min-width:0;flex:1 1 auto}
.tgtv-special__header p{max-width:100%;overflow-wrap:anywhere;word-break:normal;line-height:1.7}
@media(max-width:600px){.tgtv-special__header{flex-wrap:wrap;align-items:flex-start}.tgtv-special__header>div{flex-basis:100%}.tgtv-special__more{max-width:none;text-align:left;white-space:normal}}

/* v2.0.10: maintain real 16:9 media boxes in mobile horizontal cards.
   Override earlier stretched-grid rules rather than stretching the poster. */
@media(max-width:600px){
 .tgtv-press-eventcard,.tgtv-press-sidecard{align-items:start}
 .tgtv-press-eventcard__image,.tgtv-press-sidecard__image{
   width:100%;height:auto;aspect-ratio:16/9;align-self:start;min-width:0;
   display:flex;align-items:center;justify-content:center;overflow:hidden;background:#eef0f3;
 }
 .tgtv-press-eventcard__image img,.tgtv-press-sidecard__image img{
   display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;
 }
 .tgtv-press-eventcard__body,.tgtv-press-sidecard__body{min-width:0}
}
