﻿@charset "utf-8";

/* ==========================================================================
   2026 아이치·나고야 아시안게임 - common.css
   Breakpoints : 1280px(컨테이너), 1080px(사이드바 스택), 768px(모바일)
   Grid : 8px
   ========================================================================== */


/* 공통 컨테이너 : 1280px, 그 이하에선 좌우 16px */
.header_inner,
.gnb_inner,
.ticker_inner,
.mainTop_inner,
.main,.sub,
.card_section,
.footer_inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

/* 이미지 노출 방식 */
/* colH : 세로 긴 이미지 — 상단 기준 크롭 */
.thumCont.colH img { object-position: top center; }
/* rowH : 컨테이너 높이에 맞추고 너비는 이미지 비율에 따라 자동 — 넘치는 부분은 overflow:hidden 으로 클립 */
.thumCont.rowH {background-color:#eee;}
.thumCont.rowH img { width: auto !important; height: 100% !important; margin:0 auto;}

/* 섹션 타이틀 */
.sec_tit { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -0.016em; color: #000; }
.sec_tit img{margin-left:8px;}
.sec_tit.lg { font-size: 24px; }
.sec_tit .point { color: #AE000A; }
.sec_tit_link { display: inline-flex; padding-right:18px; background:url(../images/ico_arrow.png) no-repeat 100% 50%; align-items: center; }

/* ==========================================================================
   Sticky Bar (Header + GNB 고정 래퍼)
   ========================================================================== */
.sticky_bar { position: sticky; top: 0; z-index: 100; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {position: relative; background: linear-gradient(95deg, #001841 0%, #11387D 34%, #4A1240 62%, #7A0716 82%, #960105 100%); overflow: hidden;}
.header_inner {position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 0;}

/* 장식용 배경 이미지만 absolute 사용 */
.header_bg_deco { position: absolute; right: 0; top: 0; width: 532px; height: 100%; opacity: 0.1; pointer-events: none; }
.header_bg      { position: absolute; left: 0;  top: 0; width: 940px; height: 100%; pointer-events: none; }

/* 왼쪽: 로고 + 타이틀 + 날짜 */
.header_left { position: relative; z-index: 1; display: flex; flex-direction: column;}
.header_logo {margin-bottom:12px;}
.header_logo img {}
.header_title { margin:0 0 12px 0 ; }
.header_title img { width: 534px; height: 117px; display: block; }
.header_date { margin-top: auto; font-size: 14px; line-height: 20px; color: #F8BE5B; }

/* 오른쪽: 순위 배지 + D-Day + 메달 */
.header_right { position: absolute; top:0; right:0; z-index: 1;}
.header_right.medal .dday{display:none;}
.header_right.dday .medal{display:none;}
.header_right .medal{ display: flex; align-items: center; gap: 8px; }
.header_right .dday{display:none;}
.header_rank_pill {width: 152px; height: 32px; border-radius: 15px; background: #F8BE5B; display: flex; align-items: center; justify-content: center;}
.header_rank_pill span{font-size: 15px; font-weight: 700; color: #011745; line-height:1.2; letter-spacing: -0.016em;}
.header_dday {position:absolute; top:104px; right:-124px; width: 108px; height: 44px; border-radius: 22px; background: #F8BE5B; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #011745;}

/* 메달: CSS Grid 오버레이 — 같은 grid-area에 겹쳐 position 없이 레이어링 */
.header_medals { display: grid; width: 185px; height: 110px; }
.header_medals > * { grid-area: 1 / 1 / 2 / 2; }
.header_medals img { width: 185px; height: 110px; display: block; }
.header_medals .cnt {
  align-self: start; justify-self: start;
  width: 34px; line-height: 20px; text-align: center;
  font-size: 17px; font-weight: 700; letter-spacing: -0.047em;
}
.header_medals .cnt_silver { margin-top: 53px; margin-left: 17px;  color: #959595; }
.header_medals .cnt_gold   { margin-top: 73px; margin-left: 74px;  color: #A07922; }
.header_medals .cnt_bronze { margin-top: 53px; margin-left: 131px; color: #AA734B; }

/* ==========================================================================
   GNB
   ========================================================================== */
.gnb { background: #001A4A; height: 61px; }
.gnb_inner { height: 61px; font-size: 18px; color: #fff; }
.gnb_inner .swiper-wrapper { align-items: stretch; }
.gnb_inner .swiper-slide { width: auto; height: 100%; margin-right:48px;}
.gnb_inner a {
  position: relative; height:100%; padding:0 4px;
  display: flex; align-items: center;
  color: #fff; white-space: nowrap;
  transition: color .2s ease;
}
.gnb_inner a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; border-radius: 2px;
  background: #F8BE5B;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.gnb_inner a:hover { color: #F8BE5B; font-weight: 700; }
.gnb_inner a:hover::after { transform: scaleX(1); }
.gnb_inner a.active { color: #F8BE5B; font-weight: 700; }
.gnb_inner a.active::after { transform: scaleX(1); }

/* ==========================================================================
   오늘의 경기 티커
   ========================================================================== */
.ticker { background: #11387D; height: 50px; }
.ticker_inner { height: 50px; display: flex; align-items: center; }
.ticker_label {
  flex: none; width: 96px; height: 24px; border-radius: 14px; background: #AE000A;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; letter-spacing: -0.016em; color: #fff;
}
.ticker_label .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #F8BE5B;
  animation: dot_blink 0.9s ease-in-out infinite;
}
@keyframes dot_blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.15; transform: scale(0.6); }
}
.ticker_viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; margin-left: 16px; height: 50px; }
.ticker_item { position: relative; width: auto; white-space: nowrap; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 8px; }
.ticker_item em { font-style: normal; font-size: 12px; color: #F8BE5B; }
.ticker_item strong { font-weight: 400; font-size: 16px; letter-spacing: -0.016em; color: #fff; }
.ticker_item span { font-size: 14px; letter-spacing: -0.016em; color: #fff; margin-left: -4px; }
.ticker_item i { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: rgba(255,255,255,0.12); }
.ticker_item:last-child i{display:none;}

/* ==========================================================================
   메인 탑
   ========================================================================== */
.mainTop { background: #F3F6FE; padding: 40px 0; }
.mainTop_inner { display: flex; flex-wrap: wrap; gap: 40px; }
.mainTop_inner .thumCont { overflow:hidden; flex: 7 1 480px; min-width: 0; max-width: 100%; height: auto; border-radius: 8px; object-fit: cover; border-radius:8px;}
.mainTop_inner .thumCont img{display:block; width:100%; height:100%; object-fit: cover; object-position: center; aspect-ratio: 760 / 464;}
.mainTop_inner .txtCont { flex: 4 1 320px; min-width: 280px; display: flex; flex-direction: column; justify-content: center; }
.mainTop_inner .txtCont h2 { font-size: 40px; line-height: 1.4; font-weight: 700; letter-spacing: -0.017em; }
.mainTop_inner .txtCont p { overflow:hidden; margin-top: 16px; font-size: 16px; line-height: 26px; letter-spacing: -0.017em; color: #555; 
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}

/* ==========================================================================
   본문 2단
   ========================================================================== */
.main { padding-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.latest { min-width: 0; }

/* 최신기사 리스트 */
.latest_item { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid #ccc; }
.latest_item:hover{background-color:#F3F6FE}
.latest_item .thumCont {overflow: hidden;  flex: none; width: 200px; height: 128px; border-radius: 4px; background-color:#eee;}
.latest_item .thumCont figure { margin: 0; width: 100%; height: 100%; }
.latest_item .thumCont a { display: block; width: 100%; height: 100%; }
.latest_item .thumCont img {display: block;  width: 100%; height: 100%; object-fit: cover; object-position: center; }
.latest_item .txtCont { flex: 1; min-width: 0; }
.latest_item h3 {overflow:hidden; font-size: 20px; line-height: 32px; font-weight: 700; letter-spacing: -0.024em; 
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.latest_item p {
  margin-top: 4px; font-size: 15px; line-height: 23px; letter-spacing: -0.016em; color: #555;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest_item .date { display: block; margin-top: 8px; font-size: 13px; line-height: 1; color: #555; }

.more_wrap { display: flex; justify-content: center; margin-top: 24px; }
a.btn_more {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 184px; height: 48px; border-radius: 24px; background: #AE000A;
  font-size: 16px; font-weight: 700; letter-spacing: -0.016em; color: #fff;
}
a.btn_more img{margin-left:8px;}

/* 사이드바 */
.sidebar { width: 100%; min-width: 0; }
.sideBox{margin-top:48px;}
.sideBox:first-child{margin-top:0px;}

/* 많이 본 기사 */
.popular_item { display: flex; gap: 8px; padding: 16px 0; border-bottom: 1px solid #ccc; align-items: flex-start; }
.popular_item .rank { flex: none; width: 24px; font-size: 24px; line-height: 25px; font-weight: 700; color: #222; }
.popular_item .rank.top { color: #AE000A; }
.popular_item h3 {
  flex: 1; min-width: 0; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -0.016em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular_item h3 a{display:block;}
.popular_item img { flex: none; width: 88px; height: 64px; border-radius: 4px; object-fit: cover; }

/* 종합순위 */
.rank_table { margin-top: 16px; width: 100%; border: 1px solid #ccc; }
.rt_head, .rt_row { display: flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 700; }
.rt_head { height: 56px; background: #F5F5F5; }
.rt_row { height: 48px; border-top: 1px solid #EAEAEA; }
.rt_row.kr { background: #F9F1F2; box-shadow: inset 0 0 0 2px #AE000A; border-top: 0; }
.rt_row.kr .c_rank, .rt_row.kr .c_nation { color: #AE000A; }
.c_rank { flex: none; width: 32px; text-align: center; white-space: nowrap; }
.c_nation { flex: 1; min-width: 0; margin-left: 8px; }
.c_medal { flex: none; width: 28px; margin-left: 8px; text-align: center; }
.c_medal.gold { color: #AA8A32; }
.c_medal.silver { color: #949494; }
.c_medal.bronze { color: #AA734B; }
.c_total { flex: none; width: 32px; margin-left: 8px; text-align: center; }
.rt_head .c_medal { position: relative; height: 28px; }
.rt_head .c_medal img { position: absolute; inset: 0; width: 28px; height: 28px; }
.rt_head .c_medal span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rank_time { margin-top: 8px; font-size: 12px; color: #555; text-align: right; }

/* 그래픽뉴스 */
.graphic_img { margin-top: 16px; width: 100%; aspect-ratio: 320 / 232; border-radius: 4px; overflow: hidden; }
.graphic_img figure { margin: 0; width: 100%; height: 100%; }
.graphic_img a { display: block; width: 100%; height: 100%; }
.graphic_img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.graphic_txt {
  margin-top: 16px; font-size: 18px; line-height: 26px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==========================================================================
   카드 섹션 (주목 이종목 / 여기는 나고야 / 포토)
   ========================================================================== */
.card_section { margin-top: 64px; }
.card_section + .card_section { margin-top: 56px; }

.card_grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card { color: #000; }
.card .thumCont { width: 100%; aspect-ratio: 400 / 248; border-radius: 4px; overflow: hidden; }
.card .thumCont figure { margin: 0; width: 100%; height: 100%; }
.card .thumCont a { display: block; width: 100%; height: 100%; }
.card .thumCont img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 {margin-top: 8px; font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -0.016em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.card .date { display: none; }

/* 포토 */
.photo_grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.photo { position: relative; display: block; width: 100%; aspect-ratio: 620 / 384; border-radius: 4px; overflow: hidden; }
.photo .thumCont { position: absolute; inset: 0; }
.photo .thumCont figure { margin: 0; width: 100%; height: 100%; }
.photo .thumCont a { display: block; width: 100%; height: 100%; }
.photo .thumCont img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .caption {
  position: absolute; left: 0; right: 0; bottom: 0; height:auto;;
  background: rgba(255,255,255,0.7); display: flex; align-items: center; padding:16px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.016em; color: #000; line-height:1.4;
}

/* ==========================================================================
   서브 페이지 - 최신기사
   ========================================================================== */
.sub {max-width: 1280px; margin: 0 auto;}
.sub_wrap {display: flex;	gap: 64px; align-items: flex-start;	padding: 24px 0 100px;  border-top: 2px solid #001a4a;}
.noFlex{display:block;}
.latest {flex:1; min-width: 0; }

/* ----- 최신기사 리스트 ----- */
.news_list {flex: 1; min-width: 0;}

/* ==========================================================================
   서브 페이지 - 오늘의 경기
   ========================================================================== */
.todayGame{flex:1; width:100%;}
.todayGame .date{position:relative; display:inline-block; margin-bottom:24px; font-size:16px; font-weight:bold; letter-spacing: -.4px; z-index: 2;}
.todayGame .date:after{content:''; position:absolute; bottom:0; left:0; width:100%; height:8px; border-radius:4px; background-color:#F8BE5B; z-index:-1;}
.t_game{position:relative; margin-bottom:24px; padding:18px 24px; border:1px solid #ccc; border-radius:8px; background-color:#F9F9F9; text-align:center;
  box-shadow: 0px 3px 6px rgba(0,0,0, .29);
}
.t_game .event{margin-right:16px; font-size:20px; font-weight:bold;}
.t_game .time{display:flex; justify-content: space-between; align-items: center; position:absolute; top:50%; left:24px; width:132px; margin-top:-.6em; font-size:26px; line-height:1.2; font-weight:bold; }
.t_game .time span{width:40px; margin-left:16px; font-size:14px; text-align: left; font-weight: normal;}
.t_game .time span.ing{color:#11387D;font-weight:bold; }
.t_game .text{display:flex; justify-content: center; align-items: center;}
.t_game .text .info{display:flex; flex-direction: column;}
.t_game .text .info span{text-align: center;}
.t_game .text .info .tit{margin-bottom:8px; font-size:20px; line-height:1.2; color:#000;}
.t_game .text .info .stadium{font-size:13px; color:#555; font-size:13px;}
.t_game.noGame{padding:32px 0;}
.t_game.noGame .text .info .tit{ margin-bottom:0px;}
.game_banner.m{display:none;}
.game_banner img{width:100%;}


/* ==========================================================
   페이지 상단 (타이틀 + 필터 탭)
   ========================================================== */
.tab_filter {display: flex;	gap: 12px; margin: 0 0 24px;}
.tab_btn {display: inline-flex;	align-items: center;	justify-content: center;	height: 35px;	padding: 0 16px;	border: 1px solid #ae000a;	border-radius: 18px;	background: #fff;	font-size: 16px;	font-weight: 700;	color: #ae000a;	transition: background 0.2s, color 0.2s; letter-spacing: -.4px;}
.tab_btn:hover {background: #fdf1f2;}
.tab_btn.active {border-color: #ae000a;	background: #ae000a;	color: #fff;}
.page_head {padding: 40px 0 0;}
.page_title {margin-bottom:24px; font-size: 24px;	font-weight: 700;	color: #000;}

/* ----- 페이지네이션 ----- */
.paging {display: flex;	gap: 12px;align-items: center;	justify-content: center;	margin-top: 40px;}
.paging_btn,
.paging_num {display: inline-flex;	align-items: center;	justify-content: center;	width: 34px;	height: 34px;	border-radius: 50%;	font-size: 14px;	color: #555;}
.paging_num:hover{background:#f2f2f2;}
.paging_btn{opacity: .6;}
.paging_btn:hover{opacity: 1;}
.paging_btn {background: none;	color: #999;}
.paging_btn svg {	width: 16px;	height: 16px;}
.paging_num:hover {	background: #e4e4e4;}
.paging_num.active {	background: #ae000a;	font-weight: 700;	color: #fff;}

/* 페이징 */
/* 페이징 광장 기획특집 예외처리 */

.box-page{display:flex; justify-content: center; align-items: center; margin-top:40px; }
.box-page button{opacity:.5;}
.box-page button:hover{opacity: 1;}
.box-page button.prev{margin-right:18px;}
.box-page button.pprev{margin-right:18px;}
.box-page button.next{margin-left:18px;}
.box-page button.nnext{margin-left:18px;}
.box-page a{display:block; width:34px; height:34px; margin:0 6px; border-radius:50%; line-height:32px; text-align:center; color:#555; font-size:14px;}
.box-page a:hover{	background: #e4e4e4;}
.box-page a.active{background-color:#ae000a; color:#fff; }



/* ----- 사이드 영역 ----- */
.sub_wrap .sidebar {display: flex; flex-direction: column;	flex-shrink: 0;	width: 300px;}

/* ==========================================================================
   서브 페이지 - 그래픽뉴스, 포토
   ========================================================================== */
.gt_list{width:100%; display:flex; justify-content: flex-start; flex-wrap:wrap}
.gt_list article{flex:0 0 calc(25% - 18px); margin:0 24px 24px 0;}
.gt_list article:nth-child(4n){margin-right:0px;}
.gt_list article .thumCont{overflow: hidden; position: relative; width: 100%; aspect-ratio: 282 / 208; margin-bottom: 8px; border: 1px solid #ccc; border-radius: 4px;  box-sizing: border-box;}
.gt_list article .thumCont img{max-width: 100%; width: auto; height: auto; max-height: 100%; margin: 0 auto;}
.gt_list article .thumCont figure{position: absolute; top: 0; left: 0; overflow: hidden; width: 100%; height: 100%;}
.gt_list article .thumCont a{display: flex; width: 100%; height: 100%; text-align: center; align-items: center;}
.gt_list article .titCont .tit{overflow:hidden; font-size:18px; line-height:1.5; font-weight:bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: 200px; background: #001A4A; min-height: 142px; padding-bottom: 32px; }
.footer_inner { display: flex; flex-wrap: wrap; row-gap: 16px; padding-top: 40px; }
.footer_logo { flex: none; opacity: 0.76; margin-top: 16px; }
.footer_logo img { width: 122px; height: 26px; }
.footer_info { margin-left: 64px; flex: 1 1 480px; min-width: 0; font-size: 13px; line-height: 24px; letter-spacing: -0.016em; color: #fff; }
.info_line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
.info_line + .info_line { margin-top: 3px; }
.info_line i { width: 1px; height: 12px; background: #ccc; }
.footer .divider { height: 1px; background: #ccc; margin-top: 12px; }
.footer .copyright { margin-top: 12px; }
