@charset "UTF-8";

/**
 * 台湾版ヘッダー/フッター専用スタイル
 * header-tw.php / footer-tw.php 用
 *
 * 配色コンセプト：日台友好の混合
 *   --vc-key (#449079)      : 日本版キーカラー（空き家シリーズ緑系）
 *   --tw-brand (#0047AB)    : 台湾版アクセントカラー（青系、現状踏襲）
 *   --tw-brand-dark (#012e6e): 台湾版アクセント濃色（フッター背景）
 *
 * 方針：
 *   - 日本版の緑を基調にしつつ、台湾版アクセントを差し色として配置
 *   - ヘッダー/ロゴは緑ベース、TAIWAN EDITIONは青で対比
 *   - フッターは台湾青の濃色背景に緑のアクセントライン
 */

:root {
  --tw-brand: #0047AB;
  --tw-brand-dark: #012e6e;
  --tw-brand-light: #89a0c8;
  --tw-accent-green: #449079;
}

/* ================================================ */
/* ヘッダー                                         */
/* ================================================ */
.tw-header {
  background: #449079; /* #fff; */
  border-top: 3px solid var(--tw-accent-green);
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

/* 上部のアクセントライン（日台友好の象徴） */
.tw-header::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 50%;
  height: 3px;
  background: var(--tw-brand);
  z-index: 1;
}

.tw-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ロゴ + TAIWAN EDITION */
.tw-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tw-logo-link {
  display: block;
  line-height: 0;
}

.tw-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 台灣版エディション表記（強化版） */
.tw-edition-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--tw-brand) 0%, var(--tw-brand-dark) 100%);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 71, 171, 0.25);
  border-left: 3px solid var(--tw-accent-green);
  line-height: 1.2;
}

.tw-edition-zh {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.tw-edition-en {
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-top: 2px;
}

#billboard {
  margin:0 auto 50px!important;;
}



/* ================================================ */
/* フッター                                         */
/* ================================================ */
.tw-footer {
  background: var(--tw-accent-green);
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 60px;
  position: relative;
  border-top: 3px solid var(--tw-accent-green);
}

.tw-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tw-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.tw-footer-col {
  flex: 1;
  min-width: 200px;
}

.tw-footer-col-wide {
  flex: 2;
  min-width: 280px;
}

.tw-footer-title {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
  padding-left: 8px;
  border-left: 3px solid var(--tw-accent-green);
  font-weight: bold;
}

.tw-footer-body {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  color:#fff;
}

.tw-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 2;
}

.tw-footer-note {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  color: #fff;
}

.tw-footer-note-ja {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.85;
}

.tw-footer-link {
  color: #fff; /* var(--tw-brand-light); */
  text-decoration: none;
}

.tw-footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.tw-footer-link-sub {
  color: #fff;
  text-decoration: none;
}

.tw-footer-link-sub:hover {
  color: #fff;
  text-decoration: underline;
}

.tw-footer-bottom {
  border-top: 1px solid #fff;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* ================================================ */
/* レスポンシブ                                     */
/* ================================================ */
@media (max-width: 768px) {
  .tw-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }

  .tw-logo-wrap {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .tw-logo-img {
    max-width: 70%;
  }

  .tw-edition-label {
    padding: 4px 10px;
  }

  .tw-edition-zh {
    font-size: 13px;
  }

  .tw-edition-en {
    font-size: 9px;
  }

  .tw-footer {
    padding: 30px 16px 16px;
  }

  .tw-footer-grid {
    gap: 24px;
  }

  .tw-footer-col,
  .tw-footer-col-wide {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .tw-logo-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .tw-logo-img {
    max-width: 100%;
  }

  .tw-edition-label {
    align-self: flex-start;
  }
}

/* ================================================ */
/* 台湾版レイアウト全般：フル幅化                   */
/* 日本版の2カラム構造を台湾版では1カラム化         */
/* ================================================ */
.tw-page #contents {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.tw-page #main {
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  float: none !important;
}

/* サイドバー完全非表示 */
.tw-page #side,
.tw-page .sidebar,
.tw-page aside.widget-area,
.tw-page #secondary {
  display: none !important;
}

/* 2カラム用のclearfix等も無効化 */
.tw-page .clear {
  clear: none;
}



/* ================================================ */
/* 台湾版：タイトルブロック（genre_title_cst）幅固定 */
/* ================================================ */
.tw_jpBlock {
  width:100%;
  max-width:880px;
  margin:0 auto;
}
.tw-page .genre_title_cst,
.tw-page .tw-title-block {
  display: inline-block;
    position: relative;
    top: 38px;
    left: 0%;
    min-height: 60px;
    height: auto;
    font-size: 25px !important;
    /* padding: 0 30px; */
    border: 1px solid #999;
    background-color: #449079;
    -moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    -ms-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    z-index: 999;
}



/* タイトル文字色の保証 */
.tw-page .tw-name-zh {
  color: #222 !important;
}







/* ================================================ */
/* スマホ時のヘッダー・フッター中央揃え              */
/* ================================================ */
@media (max-width: 768px) {

  /* ヘッダー：ロゴと台灣版バッジを中央寄せ */
  .tw-header-inner {
    justify-content: center !important;
    text-align: center;
  }

  .tw-logo-wrap {
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    width: 100%;
  }

  .tw-logo-link {
    display: block;
    text-align: center;
  }

  .tw-logo-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .tw-edition-label {
    align-self: center !important;
    margin-top: 8px;
  }

  /* フッター：3カラムを縦並び中央揃えに */
  .tw-footer-inner {
    text-align: center;
  }

  .tw-footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .tw-footer-col,
  .tw-footer-col-wide {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .tw-footer-title {
    border-left: none !important;
    border-bottom: 2px solid var(--tw-accent-green);
    padding-left: 0 !important;
    padding-bottom: 6px;
    display: inline-block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tw-footer-body,
  .tw-footer-note {
    text-align: center;
  }

  .tw-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .tw-footer-nav li {
    text-align: center;
  }

  .tw-footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tw-logo-img {
    max-width: 240px;
  }
}

/* ================================================ */
/* スマホ時の中央揃え（ヘッダー・フッター）          */
/* ================================================ */
@media (max-width: 768px) {

  /* ヘッダー */
  .tw-header-inner {
    justify-content: center !important;
    text-align: center;
  }

  .tw-logo-wrap {
    flex-direction: column;
    align-items: center !important;
    width: 100%;
  }

  .tw-logo-link {
    display: block;
    margin: 0 auto;
  }

  .tw-logo-img {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .tw-edition-label {
    align-self: center !important;
    margin-top: 12px;
  }

  /* フッター */
  .tw-footer-inner {
    text-align: center;
  }

  .tw-footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .tw-footer-col,
  .tw-footer-col-wide {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .tw-footer-title {
    border-left: none !important;
    border-bottom: 2px solid var(--tw-accent-green);
    padding-left: 0 !important;
    padding-bottom: 6px;
    display: inline-block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tw-footer-body,
  .tw-footer-note {
    text-align: center;
  }

  .tw-footer-nav {
    list-style: none;
    padding: 0;
    text-align: center;
  }

  .tw-footer-nav li {
    text-align: center;
  }

  .tw-footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tw-logo-img {
    max-width: 260px;
  }
}

/* ================================================ */
/* PC時のヘッダー余白確保＆左右振り分け              */
/* ================================================ */
@media (min-width: 769px) {
  .tw-logo-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .tw-logo-link {
    flex: 0 0 auto;
  }

  .tw-logo-img {
    max-width: 400px;
    height: auto;
    display: block;
  }

  .tw-edition-label {
    margin-left: auto !important;
    margin-top: 0 !important;
    align-self: center !important;
    flex: 0 0 auto;
  }
}

/* さらに広い画面では余白多めに */
@media (min-width: 1200px) {
  .tw-header-inner {
    padding: 24px 40px !important;
  }

  .tw-logo-img {
    max-width: 440px;
  }
}

