/* ==============================================
   Taiwan Study — Design System
   Refero Style: Sky Wash / Paper White / Charcoal
   ============================================== */

/* --- Google Fonts (Geist) --- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --tw-sky:       #ebf5ff;
  --tw-paper:     #fafdff;
  --tw-white:     #ffffff;
  --tw-cloud:     #f6f7f8;
  --tw-ink:       #0a0d12;
  --tw-stone:     #535862;
  --tw-fog:       #93979f;
  --tw-charcoal:  #181d27;
  --tw-signal:    #0099ff;
  --tw-cobalt:    #0069e0;
  --tw-sky-light: #e5f6ff;

  /* Radius */
  --tw-r-card:    32px;
  --tw-r-btn:     9999px;
  --tw-r-icon:    16px;
  --tw-r-img:     16px;
  --tw-r-inner:   8px;

  /* Shadow */
  --tw-shadow:    rgba(4, 69, 144, 0.08) 0px 14px 20px 4px;
  --tw-shadow-sm: rgba(4, 69, 144, 0.05) 0px 4px 12px 0px;

  /* Override newryugaku.css vars */
  --blue:      #0099ff;
  --secondblue:#0069e0;
  --black:     #0a0d12;
  --secondary: #535862;
  --inactive:  #93979f;
  --grayback:  #f6f7f8;
  --blueback:  #e5f6ff;
  --dividers:  rgba(83, 88, 98, 0.18);
}

/* --- Base --- */
body {
  background: var(--tw-sky);
  color: var(--tw-ink);
  font-family: 'Geist', 'Inter var', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* グラデーションブロブ非表示（Sky Washに統一） */
.background-module--background--751f7 { display: none !important; }

/* --- Typography (color only, weight/size は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: var(--tw-sky) !important;
  border-right: 1px solid var(--dividers) !important;
}
.navbar-module--navigation--3e6cc {
  background: var(--tw-sky) !important;
  border-bottom: 1px solid var(--dividers);
}

/* ロゴ */
.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-size: 18px;
  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-size: 10px;
  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 {
    font-size: 17px !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  .navbar-module--linkHome--bb4d7 span {
    display: inline !important;
    margin-top: 0;
  }
}

/* CTA ボタン（ブルー） */
.navbar-module--linkContact--2b826 {
  background: var(--tw-signal) !important;
  border-radius: var(--tw-r-btn) !important;
  margin: 0 16px 0 !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-size: 11px;
  font-weight: 600;
  color: var(--tw-fog);
  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-size: 15px;
  font-weight: 500;
  color: var(--tw-stone);
  text-decoration: none;
}
.navbar-module--navListItem--b3f48 li a:hover { color: var(--tw-ink); }

/* ナビバー背景 */
.navbar-module--navBar--a0341 {
  background: var(--tw-sky) !important;
}

/* --- Main --- */
main { background: var(--tw-sky); }

/* --- ヒーロー --- */
.first-view-module--hero--87138 {
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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 {
  font-size: 56px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: var(--tw-ink) !important;
}
@media (max-width: 768px) {
  .first-view-module--fistTxt--9f1e2 { font-size: 36px !important; }
}
.first-view-module--fistDesc--c7a05 {
  font-size: 16px;
  color: var(--tw-stone);
  margin-top: 20px;
  line-height: 1.7;
}
.tw-hero-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ヒーローボタン */
.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;
  height: 52px !important;
  line-height: 52px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  min-width: 240px;
  max-width: 320px !important;
  text-align: center;
  box-shadow: none !important;
}
.button-module--button--07666[style*="var(--blue)"],
.button-module--button--07666[style*="#1a61c7"] {
  background-color: var(--tw-charcoal) !important;
}
.button-module--button--07666 a { display: block; height: 100%; }

/* --- Page Header --- */
.page-title {
  padding: 48px 5% 32px;
  border-bottom: 1px solid var(--dividers);
  background: transparent;
}
.page-title h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tw-ink);
}
.page-title p {
  font-size: 15px;
  color: var(--tw-stone);
  margin-top: 8px;
}

/* --- Breadcrumb --- */
.breadCrumb {
  font-size: 12px;
  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: transparent;
}
.tw-section-gray {
  background: var(--tw-paper);
  padding: 72px 5%;
}
.tw-section-blue {
  background: var(--tw-paper);
  padding: 72px 5%;
}
.tw-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.tw-section-header .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--tw-signal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.tw-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tw-ink);
}
.tw-section-header p {
  font-size: 15px;
  color: var(--tw-stone);
  margin-top: 12px;
  line-height: 1.7;
}

/* --- Cards --- */
.tw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tw-card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}
@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: var(--tw-paper);
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-card);
  padding: 32px;
  box-shadow: var(--tw-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.tw-card:hover {
  box-shadow: rgba(4, 69, 144, 0.12) 0px 20px 32px 4px;
  transform: translateY(-2px);
}
.tw-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--tw-ink);
}
.tw-card p {
  font-size: 13px;
  color: var(--tw-stone);
  line-height: 1.75;
  flex: 1;
}
.tw-card a.tw-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--tw-signal);
  font-weight: 600;
}

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

/* --- Service List --- */
.tw-service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tw-service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--tw-paper);
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-inner);
  box-shadow: var(--tw-shadow-sm);
}
.tw-service-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tw-ink);
}
.tw-service-item p {
  font-size: 13px;
  color: var(--tw-stone);
  line-height: 1.75;
}

/* --- Check List --- */
.tw-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.tw-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  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); box-shadow: var(--tw-shadow-sm); }
.tw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--tw-paper);
}
.tw-table th, .tw-table td {
  padding: 14px 18px;
  border: 1px solid var(--dividers);
  text-align: left;
}
.tw-table th {
  background: var(--tw-cloud);
  font-weight: 600;
  color: var(--tw-stone);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.tw-table tr:hover td { background: var(--tw-sky-light); }

/* --- FAQ --- */
.tw-faq { display: flex; flex-direction: column; gap: 8px; }
.tw-faq details {
  background: var(--tw-paper);
  border: 1px solid var(--dividers);
  border-radius: var(--tw-r-icon);
  overflow: hidden;
  box-shadow: var(--tw-shadow-sm);
}
.tw-faq summary {
  font-size: 15px;
  font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--tw-ink);
}
.tw-faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--tw-signal);
  flex-shrink: 0;
  font-weight: 400;
}
.tw-faq details[open] summary::after { content: "−"; }
.tw-faq details p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--tw-stone);
  line-height: 1.75;
}

/* --- Steps --- */
.tw-steps { display: flex; flex-direction: column; gap: 0; }
.tw-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 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;
  display: block;
}
@media (max-width: 768px) { .tw-step-img { display: none; } }
.tw-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--tw-charcoal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.tw-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tw-ink);
}
.tw-step p { font-size: 13px; color: var(--tw-stone); line-height: 1.7; }

/* --- Text Styles --- */
.tw-highlight { color: var(--tw-cobalt); font-weight: 600; }
.tw-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--tw-stone);
  margin-bottom: 24px;
  padding: 0 5%;
}
.tw-note {
  font-size: 13px;
  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: 20px 24px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.7;
}
.tw-important-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tw-cobalt);
  letter-spacing: -0.01em;
}
.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-cobalt);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--tw-r-btn);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* --- Sidebar --- */
.sideContent { background: var(--tw-sky) !important; }
.sidebarIntro {
  font-size: 15px;
  font-weight: 700;
  color: var(--tw-ink);
  letter-spacing: -0.01em;
}
.tw-sidebar-cta { padding: 24px 5%; }
.tw-sidebar-cta p {
  font-size: 13px;
  color: var(--tw-stone);
  margin-bottom: 20px;
  line-height: 1.65;
}
.tw-sidebar-btn {
  display: block;
  width: 100%;
  max-width: 288px;
  margin: 0 auto 10px;
  text-align: center;
  padding: 13px 0;
  border-radius: var(--tw-r-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.tw-sidebar-btn-primary {
  background: var(--tw-signal);
  color: white !important;
  box-shadow: var(--tw-shadow-sm);
}
.tw-sidebar-btn-primary:hover { background: var(--tw-cobalt); text-decoration: none; }
.tw-sidebar-btn-line {
  background: #00b900;
  color: white !important;
}
.tw-sidebar-note {
  font-size: 11px;
  color: var(--tw-fog);
  text-align: center;
  margin-top: 14px;
}

/* --- CTA Banner --- */
.tw-cta-banner {
  background: var(--tw-signal);
  color: white;
  padding: 72px 5%;
  text-align: center;
  border-radius: 0;
}
.tw-cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
  letter-spacing: -0.02em;
}
.tw-cta-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.tw-cta-banner .button-module--button--07666 {
  background: white !important;
  border-radius: var(--tw-r-btn) !important;
  height: 52px !important;
  line-height: 52px !important;
  margin: 0 auto !important;
}
.tw-cta-banner .button-module--button--07666 a { color: var(--tw-signal) !important; font-weight: 700; }

/* --- Footer --- */
footer { background: var(--tw-cloud) !important; }
.footer-module--footer--a2fe4 { background: var(--tw-cloud); }
.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-size: 17px;
  font-weight: 700;
  color: var(--tw-ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.tw-footer-brand p { font-size: 13px; color: var(--tw-stone); line-height: 1.75; }
.tw-footer-nav { flex: 1; min-width: 120px; }
.tw-footer-nav h4 {
  font-size: 10px;
  font-weight: 600;
  color: var(--tw-fog);
  margin-bottom: 14px;
  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 { font-size: 13px; 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; } }
