/* ============================================================
   哈尔滨国际传播中心 — 韓國語版 Home
   テーマ：ブルー + ライトグレー Footer + パープルボタン
   ============================================================ */

:root {
  /* カラー */
  --color-bg:           #ffffff;
  --color-bg-blue:      #3a5fd9;     /* ヘッダーのブルー（少し深め） */
  --color-bg-blue-2:    #4a72e0;     /* 明るいブルー */
  --color-bg-blue-3:    #2e4fc1;     /* ホバー時の深いブルー */
  --color-purple:       #6a4dcc;     /* ボタンのパープル */
  --color-purple-hov:   #7c5fe0;
  --color-card:         #ffffff;
  --color-border:       rgba(10, 26, 58, 0.10);
  --color-border-2:     rgba(10, 26, 58, 0.18);
  --color-text:         #303030;
  --color-text-hover:   #4477ed;
  --color-text-soft:    #5a6d96;
  --color-text-on-blue: #ffffff;
  --color-primary:      #1e88e5;

  /* サイズ */
  --container-w:        1200px;
  --header-h:           70px;
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;

  /* フォント */
  --font-kr:            'Noto Sans SC', 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-en:            'Poppins', var(--font-kr);

  /* 動き */
  --ease:               cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, /* 固定ヘッダー分のアンカーずれ補正 */
html { scroll-padding-top: var(--header-h); }

body { margin: 0; padding: 0; }
body {
  font-family: var(--font-kr);
  background: #ebebed;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-primary); }
button {
  font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit;
}
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0.01em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;              /* absolute → 스크롤 시 사라지는 문제 수정 */
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-bg-blue);
  color: var(--color-text-on-blue);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
/* 스크롤 시: 그림자 + 약간 진하게 (JS 하드코딩 제거) */
.site-header.is-scrolled {
  background: rgba(58, 95, 217, .97);    /* = --color-bg-blue #3a5fd9 */
  box-shadow: 0 2px 14px rgba(26, 58, 122, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  width: 200px;
}
.logo-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 9px; letter-spacing: 0.04em; }
.logo-en { font-weight: 600; color: rgba(255,255,255,.95); font-family: var(--font-en); }
.logo-cn { font-size: 11px; font-weight: 600; color: #fff; margin-top: 2px; }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex; align-items: center; justify-content: center; gap: 50px;
}
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.88);
  border-bottom: 2px solid transparent;
  transition: all .2s var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* 다국어 드롭다운（네비게이션과 높이 일치） */
.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;              /* = 네비게이션 항목의 padding */
  font-size: 13px;                /* = 네비게이션 항목의 font-size */
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;               /* = 네비게이션 항목의 line-height */
  color: rgba(255,255,255,.88);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-globe { flex-shrink: 0; opacity: .9; }
.lang-caret { flex-shrink: 0; transition: transform .25s var(--ease); }
.lang-dropdown.open .lang-btn { color: #fff; border-bottom-color: #fff; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  z-index: 200;
}
.lang-dropdown.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang-menu a:hover { background: var(--color-bg-blue); color: #fff; }
.lang-menu a.active { color: var(--color-primary); font-weight: 700; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  margin-top: var(--header-h);
  /* height: 460px;
  overflow: hidden;
  display: flex; 
  align-items: center; 
  justify-content: center; */
}
.hero-bg {
  width: 100%;
  /* position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; */
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 24px;
  color: #fff;
  width: 100%;
  max-width: var(--container-w);
}
.hero-title {
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
  margin: 0 0 12px;
}
.hero-sub {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  margin: 0;
  letter-spacing: 0.05em;
}


/* ============================================================
   3 뉴스 카드 (Hero 아래)
   ============================================================ */
.news-cards-section {
  margin-top: -80px;
  position: relative;
  z-index: 3;
  padding-bottom: 50px;
}
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.news-card {
  background: var(--color-card);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover h3{
  color: var(--color-text-hover);
}
.news-card a { display: flex; align-items: stretch; gap: 14px; }
.nc-thumb {
  width: 150px; height: 150px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #cdd9ef;
}
.nc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  margin: 25px 0 6px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nc-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; margin: 0 0 15px 0;
  color: var(--color-text);
}
.nc-loc svg { flex-shrink: 0; }

.slider-nav {
  display: flex; justify-content: center;
  margin-top: 20px;
}
.nav-arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.nav-arrow:hover { background: var(--color-bg-blue-3); }


/* ============================================================
   写真 + ニュースリスト (1+2)
   ============================================================ */
.photo-news-block { padding-bottom: 50px; }
.pn-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 25px;
}
.pn-main {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: #cdd9ef;
  min-height: 280px;
  aspect-ratio: 16/9;
}
.carousel-item {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.carousel-item.active { opacity: 1; pointer-events: auto; }
.carousel-link {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
  display: flex;
  align-items: center;
}
.carousel-caption {
  font-size: 16px;
  font-weight: 500;
}
.carousel-dots {
  position: absolute;
  bottom: 0;
  right: 16px;
  display: flex; gap: 6px;
  z-index: 10;
  align-items: center;
  padding: 10px 0;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s;
}
.dot.active { background: #fff; }
.pn-main:hover .carousel-caption { color: var(--color-primary); }
.pn-list {
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.pn-list2 {
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.pn-list li { 
  border-bottom: 1px solid var(--color-border); 
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pn-list2 li { 
  border-bottom: 1px solid var(--color-border); 
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pn-list a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: padding .2s var(--ease), color .2s var(--ease);
}
.pn-list li span {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}
.pn-list2 li span {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}
.pn-list2 a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  transition: padding .2s var(--ease), color .2s var(--ease);
}
.pn-list2 p { 
  color: #4478ee;
}

.pn-list a:hover {
  color: var(--color-primary);
}
.pn-list2 a:hover {
  color: var(--color-primary);
}


/* ============================================================
   비디오
   ============================================================ */
.media-block { padding-bottom: 50px; }
.block-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-left: 4px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.video-card:hover h3{
  color: var(--color-primary);
}
.video-card a { display: block; }
.vc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #cdd9ef;
  display: flex; align-items: center; justify-content: center;
}
.play-icon { transition: transform .2s var(--ease); }
.video-card:hover .play-icon { transform: scale(1.1); }
.video-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 14px 16px;
  margin: 0;
}


/* ============================================================
   QUICK LINKS (2x2)
   ============================================================ */
.quicklinks { padding: 60px 0; background-color: #c5c5c5; }
.ql-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}
.ql-item {
  display: flex;
  align-items: flex-start;    
  gap: 16px;
  padding: 12px;
  color: #2e2f31;
}
.ql-row {
  flex: 1;
  padding: 20px 0 10px 0;
  border-bottom: 1px solid #2e2f31;
  transition: border-color .2s var(--ease);
}
.ql-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color .2s var(--ease);
}
.ql-arrow {
  font-size: 16px;
  line-height: 1;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #2e2f31;
  margin-left: auto;              /* 矢印を下線の右端に寄せる */
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.ql-thumb {
  width: 100px; height: 100px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #cdd9ef;
}
/* ホバー：文字・下線を青、矢印は青い円に白抜き */
.ql-item:hover .ql-title { color: #4576ef; }
.ql-item:hover .ql-row   { border-color: #4576ef; }
.ql-item:hover .ql-arrow {
  background: #4576ef;
  color: #fff;
  transform: translateX(2px);
}


/* ============================================================
   FOOTER  (ライトグレー)
   ============================================================ */
.site-footer {
  padding-top: 60px;
  padding-bottom: 0;
  background: #c5c5c5;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}
.footer-head { text-align: center; padding-bottom: 24px; }
.footer-welcome {
  font-size: 50px;
  font-weight: 500;
  color: #4377ef;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}
.footer-divider {
  border: 0; border-top: 1px solid #7c7c7c;
  margin: 0 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 0;
  align-items: start;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 32px;
}
.fcol {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 90px;
}

.fcol a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.fcol a:hover { color: var(--color-primary); }

.footer-social {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.social-icons { display: flex; gap: 30px; }
.sicon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  border-radius: 50%;
  transition: all .2s var(--ease);
}
.sicon:hover { color: #fff; background: #4576ef; }

/* パープルのボタン */
.click-btn {
  display: inline-block;
  padding: 8px 32px;
  background: #4377ef;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  border-radius: 20px;
  transition: all .2s var(--ease);
}
.click-btn:hover { background: #1e88e5; color: #fff; }

.city-skyline {
  width: 100%; height: 90px;
  opacity: 0.55;
  pointer-events: none;
}
.city-skyline svg { width: 100%; height: 100%; display: block; }

/* ============================================
   Hamburger menu (mobile only) - 3 spans
   ============================================ */
.header-right {
  margin-left: auto;            /* スマホ・デスクトップ共通で右端へ */
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;                 /* hidden on desktop */
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  order: 10;                     /* push to far right (same as RU version) */
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


#pagearea a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 30px;
    height: 30px;
    background-color: #bbbbbb;
    color: white;
    font-size: 0.75rem !important;
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

#pagearea a:hover {
    background-color: #666666;
    color: white;
}

#pagearea .now {
    background-color: #666666;
    color: white;
}

#pagearea .disable {
    cursor: not-allowed;
}