/* ==============================================
   Taiwan Study — newryugaku.jp スタイル準拠版
   フォントサイズは newryugaku.css に任せる
   このファイルは色・角丸・レイアウトのみ上書き
   ============================================== */

/* --- カラートークン（newryugaku.jp 準拠） --- */
:root {
  --tw-sky:       #fff;
  --tw-paper:     #fff;
  --tw-white:     #fff;
  --tw-cloud:     #f5f5f5;
  --tw-ink:       #333;
  --tw-stone:     #757575;
  --tw-fog:       #9e9e9e;
  --tw-charcoal:  #333;
  --tw-signal:    #1a61c7;
  --tw-cobalt:    #3775ce;
  --tw-sky-light: #e3ecf8;

  /* 角丸（newryugaku.jp 準拠） */
  --tw-r-card:   8px;
  --tw-r-btn:    4px;
  --tw-r-icon:   4px;
  --tw-r-img:    8px;
  --tw-r-inner:  4px;

  /* シャドウ（newryugaku.jp 準拠・軽め） */
  --tw-shadow:    0 2px 8px rgba(0, 0, 0, 0.08);
  --tw-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);

  /* newryugaku.css の変数をオリジナルに戻す */
  --blue:      #1a61c7;
  --secondblue:#3775ce;
  --black:     #333;
  --secondary: #757575;
  --inactive:  #9e9e9e;
  --grayback:  #f5f5f5;
  --blueback:  #e3ecf8;
  --dividers:  #e0e0e0;
}

/* --- Base --- */
body {
  background: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* グラデーションブロブ（opacity を弱めて読みやすく） */
.background-module--background--751f7 { display: flex !important; }
.background-module--bg_l--db780,
.background-module--bg_r--cf7ff { opacity: 0.12 !important; }

/* --- Typography（色のみ。サイズは newryugaku.css に任せる） --- */
h1, h2, h3, h4 { color: var(--tw-ink); }
p { color: var(--tw-stone); }
a { color: var(--tw-signal); }
a:hover { color: var(--tw-cobalt); }
strong { color: var(--tw-ink); }

/* --- Header / Left Sidebar --- */
header {
  background: #fff !important;
  border-right: 1px solid var(--dividers) !important;
}
.navbar-module--navigation--3e6cc {
  background: #fff !important;
  border-bottom: 1px solid var(--dividers);
}
.navbar-module--navBar--a0341 { background: #fff !important; }

/* ロゴ */
.navbar-module--logo--34db0 {
  height: auto !important;
  padding: 32px 20px 20px;
  text-align: center;
}
.navbar-module--linkHome--bb4d7 {
  display: block !important;
  height: auto !important;
  font-weight: 700;
  color: var(--tw-ink) !important;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
}
.navbar-module--linkHome--bb4d7 span {
  display: block;
  font-weight: 500;
  color: var(--tw-fog);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.navbar-module--logo--34db0 svg { display: none; }

@media (max-width: 1280px) {
  .navbar-module--logo--34db0 {
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 59px !important;
  }
  .navbar-module--linkHome--bb4d7 {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  .navbar-module--linkHome--bb4d7 span {
    display: inline !important;
    margin-top: 0;
  }
}
/* スマホではサブテキストを非表示・ロゴをハンバーガーボタンに被らないよう制御 */
@media (max-width: 768px) {
  .navbar-module--linkHome--bb4d7 span { display: none !important; }
  .navbar-module--logo--34db0 {
    max-width: calc(100% - 80px);
    overflow: hidden;
  }
}

/* ハンバーガーアイコン中央揃え */
.navbar-module--toggle--69c82 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
}
.navbar-module--toggle--69c82 svg {
  display: block;
  flex-shrink: 0;
}

/* CTAボタン */
.navbar-module--linkContact--2b826 {
  background: var(--tw-signal) !important;
  border-radius: var(--tw-r-btn) !important;
  margin: 0 16px !important;
}
.navbar-module--linkContact--2b826 a { color: #fff !important; }
.navbar-module--linkFaq--98e91 { display: none; }

/* ナビリスト */
.navbar-module--navListItem--b3f48 > span.nav-category {
  display: block;
  font-weight: 600;
  color: var(--tw-signal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 0 6px;
}
.navbar-module--navListItem--b3f48 { padding: 4px 0 !important; }
.navbar-module--navListItem--b3f48 li { padding: 4px 0 !important; }
.navbar-module--navListItem--b3f48 li a {
  font-weight: 500;
  color: var(--tw-stone);
  text-decoration: none;
}
.navbar-module--navListItem--b3f48 li a:hover { color: var(--tw-ink); }

/* --- Main --- */
main { background: transparent; }

/* --- ヒーロー（色・レイアウトのみ。font-size は newryugaku.css に任せる） --- */
.first-view-module--hero--87138 {
  background: transparent;
}
.first-view-module--fistTxt--9f1e2 {
  font-size: clamp(40px, 5vw, 72px) !important;
}
@media (max-width: 768px) {
  .first-view-module--fistTxt--9f1e2 {
    font-size: clamp(36px, 10vw, 52px) !important;
  }
}
.tw-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 64px 5%;
}
@media (max-width: 900px) {
  .tw-hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 5%; }
  .tw-hero-illust { display: none; }
}
.first-view-module--fistTxt--9f1e2 { color: var(--tw-ink) !important; }
.first-view-module--fistDesc--c7a05 { color: var(--tw-stone); }

.first-view-module--heroButton--c4cea {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: 36px;
}
.button-module--button--07666 {
  border-radius: var(--tw-r-btn) !important;
  box-shadow: none !important;
}
.tw-hero-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* --- Page Header --- */
.page-title {
  padding: 48px 5% 32px;
  border-bottom: 1px solid var(--dividers);
}
.page-title h1 { color: var(--tw-ink); }
.page-title p   { color: var(--tw-stone); }

/* --- Breadcrumb --- */
.breadCrumb {
  color: var(--tw-fog);
  padding: 12px 5%;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadCrumb a { color: var(--tw-fog); text-decoration: none; }
.breadCrumb a:hover { color: var(--tw-ink); }
.breadCrumb::before { content: none; }

/* --- Article container --- */
.blogpost-template-module--articleContainer--4cbd8 { max-width: 1600px; margin: 0 auto; }
.blogpost-template-module--articleContent--43b72 { min-width: 0; }
.blogpost-template-module--articleContent--43b72::after { content: ''; display: table; clear: both; }

/* --- Sections（半透明白・グラデを薄く透かす） --- */
.tw-section {
  padding: 72px 5%;
  background: rgba(255, 255, 255, 0.95);
  clear: both;
}
.tw-section-gray {
  background: rgba(245, 245, 245, 0.95);
  padding: 72px 5%;
  clear: both;
}
.tw-section-blue {
  background: rgba(227, 236, 248, 0.95);
  padding: 72px 5%;
  clear: both;
}

.tw-section-header { text-align: center; margin-bottom: 48px; }
.tw-section-header .label {
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tw-signal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.tw-section-header h2 { color: var(--tw-ink); }
.tw-section-header p  { color: var(--tw-stone); margin-top: 12px; line-height: 1.7; }

/* --- Cards --- */
.tw-card-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tw-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .tw-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tw-card-grid, .tw-card-grid-2 { grid-template-columns: 1fr; } }

.tw-card {
  background: #fff;
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-card);
  padding: 24px;
  box-shadow: var(--tw-shadow);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.tw-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.tw-card h3 { color: var(--tw-ink); margin-top: 12px; }
.tw-card p  { color: var(--tw-stone); line-height: 1.75; flex: 1; }
.tw-card a.tw-card-link { color: var(--tw-signal); font-weight: 600; }

/* --- Icon Wrap --- */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--tw-sky-light);
  border-radius: var(--tw-r-icon);
  flex-shrink: 0;
  margin-bottom: 16px;
}
.icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--tw-signal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Service List --- */
.tw-service-list { display: flex; flex-direction: column; gap: 8px; }
.tw-service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-inner);
  position: relative;
  z-index: 1;
}
.tw-service-item h3 { color: var(--tw-ink); }
.tw-service-item p  { color: var(--tw-stone); line-height: 1.75; }

/* --- Check List --- */
.tw-check-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.tw-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.65;
  color: var(--tw-stone);
}
.tw-check-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--tw-signal);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

/* --- Table --- */
.tw-table-wrap { overflow-x: auto; border-radius: var(--tw-r-inner); }
.tw-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.tw-table th, .tw-table td {
  padding: 12px 16px;
  border: 1px solid var(--dividers);
  text-align: left;
}
.tw-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--tw-stone);
  letter-spacing: 0.04em;
}
.tw-table tr:hover td { background: var(--tw-sky-light); }

/* --- FAQ --- */
.tw-faq { display: flex; flex-direction: column; gap: 4px; }
.tw-faq details {
  background: #fff;
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-icon);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.tw-faq summary {
  font-weight: 600;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--tw-ink);
}
.tw-faq summary::after {
  content: "+";
  color: var(--tw-signal);
  flex-shrink: 0;
  font-weight: 400;
}
.tw-faq details[open] summary::after { content: "−"; }
.tw-faq details p {
  padding: 0 20px 16px;
  color: var(--tw-stone);
  line-height: 1.75;
}

/* --- Steps --- */
.tw-steps { display: flex; flex-direction: column; }
.tw-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--dividers);
}
.tw-step:last-child { border-bottom: none; }
.tw-step-img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--tw-r-img);
  object-fit: cover;
  margin-left: auto;
}
@media (max-width: 768px) { .tw-step-img { display: none; } }
.tw-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--tw-signal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.tw-step h3 { color: var(--tw-ink); }
.tw-step p  { color: var(--tw-stone); line-height: 1.7; }

/* --- Text Styles --- */
.tw-highlight { color: var(--tw-cobalt); font-weight: 600; }
.tw-lead { line-height: 1.8; color: var(--tw-stone); margin-bottom: 24px; padding: 0 5%; }
.tw-note {
  color: var(--tw-fog);
  border-left: 3px solid var(--dividers);
  padding-left: 12px;
  margin-top: 16px;
}
.tw-important {
  background: var(--tw-sky-light);
  border-left: 4px solid var(--tw-signal);
  border-radius: 0 var(--tw-r-inner) var(--tw-r-inner) 0;
  padding: 16px 20px;
  margin: 16px 0;
  line-height: 1.7;
}
.tw-important-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tw-cobalt);
}
.tw-important strong { display: inline; font-weight: 600; color: var(--tw-ink); }
.tw-tag {
  display: inline-block;
  background: var(--tw-sky-light);
  color: var(--tw-signal);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--tw-r-btn);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* --- Sidebar --- */
.sideContent { background: #f5f5f5 !important; }
.sidebarIntro { font-weight: 700; color: var(--tw-ink); }
.tw-sidebar-cta { padding: 20px 5%; }
.tw-sidebar-cta p { color: var(--tw-stone); margin-bottom: 16px; line-height: 1.65; }
.tw-sidebar-btn {
  display: block;
  width: 100%;
  max-width: 288px;
  margin: 0 auto 8px;
  text-align: center;
  padding: 12px 0;
  border-radius: var(--tw-r-btn);
  font-weight: 600;
  text-decoration: none;
}
.tw-sidebar-btn-primary { background: var(--tw-signal); color: #fff !important; }
.tw-sidebar-btn-primary:hover { background: var(--tw-cobalt); text-decoration: none; }
.tw-sidebar-btn-line { background: #00b900; color: #fff !important; }
.tw-sidebar-note { color: var(--tw-fog); text-align: center; margin-top: 12px; }

/* --- CTA Banner --- */
.tw-cta-banner {
  background: var(--tw-signal);
  color: #fff;
  padding: 72px 5%;
  text-align: center;
}
.tw-cta-banner h2 { color: #fff; margin-bottom: 12px; }
.tw-cta-banner p  { color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.tw-cta-banner .button-module--button--07666 {
  background: #fff !important;
  border-radius: var(--tw-r-btn) !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}
.tw-cta-banner .button-module--button--07666 a { color: var(--tw-signal) !important; font-weight: 700; }

/* --- Footer（sticky サイドバーより前面に） --- */
footer {
  background: #f5f5f5 !important;
  position: relative;
  z-index: 2;
  clear: both;
}
.footer-module--footer--a2fe4 { background: #f5f5f5; }
.tw-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 48px 5%;
  border-top: 1px solid var(--dividers);
}
.tw-footer-brand { flex: 2; min-width: 200px; }
.tw-footer-brand .logo { font-weight: 700; color: var(--tw-ink); margin-bottom: 10px; }
.tw-footer-brand p { color: var(--tw-stone); line-height: 1.75; }
.tw-footer-nav { flex: 1; min-width: 120px; }
.tw-footer-nav h4 {
  font-weight: 600;
  color: var(--tw-fog);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tw-footer-nav ul { list-style: none; }
.tw-footer-nav li { margin-bottom: 8px; }
.tw-footer-nav a { color: var(--tw-stone); text-decoration: none; font-weight: 500; }
.tw-footer-nav a:hover { color: var(--tw-ink); }
.footer-module--copyright--37395 { color: var(--tw-fog) !important; }

/* --- Illustrations --- */
.tw-illust { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.tw-hero-illust { display: flex; align-items: center; justify-content: center; padding: 24px; }
.tw-page-illust {
  float: right;
  width: 160px;
  margin: 0 0 24px 32px;
  clear: right;
  border-radius: var(--tw-r-img);
  overflow: hidden;
}
.tw-page-illust img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) { .tw-page-illust { display: none; } }
