/* トップページ共通スタイル
   もとは6言語ぶんの HTML に <style> で直接書かれていたもの。
   デザインを差し替えるときは、このファイルの :root を書き換えれば6ページすべてに効く。
   日本語版のCSSを共通の土台にし、他言語との差分だけ下に足している。 */
:root {
    --main-color: #2c6fbb;
    --main-color-light: #4a8fd6;
    --accent-color: #ff5f7e;
    --cta-color: #8a63f2;
    --bg-light: #f6f8fc;
    --text-color: #2a2a2a;
    --radius: 12px;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.75;
    background: #fff;
  }
  a { color: inherit; }
  header {
    background: #fff;
    color: var(--text-color);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  header .logo { font-size: 1.25em; font-weight: 700; letter-spacing: 0.02em; }
  .lang-switch { display: flex; flex-wrap: wrap; gap: 8px; }
  .lang-switch a {
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.85em;
    transition: background 0.15s, color 0.15s;
  }
  .lang-switch a:hover { background: #f3f3f3; }
  .lang-switch a.current { background: var(--cta-color); border-color: var(--cta-color); color: #fff; font-weight: 700; }
  .hero {
    position: relative;
    background: linear-gradient(120deg, #eaf3ff 0%, #f3ecfb 45%, #fdeef0 100%);
    color: var(--text-color);
    padding: 88px 24px 64px;
    text-align: center;
    overflow: hidden;
  }
  .hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
  }
  .hero::before { width: 420px; height: 420px; top: -180px; right: -120px; background: rgba(138,99,242,0.10); }
  .hero::after { width: 280px; height: 280px; bottom: -140px; left: -80px; background: rgba(255,95,126,0.10); }
  .hero .hl { color: var(--accent-color); }
  .hero .dots {
    position: absolute; width: 96px; height: 96px;
    background-image: radial-gradient(circle, rgba(138,99,242,0.45) 2.4px, transparent 2.6px);
    background-size: 15px 15px; z-index: 0;
  }
  .hero .dots.d1 { top: 26px; left: 36px; }
  .hero .dots.d2 { bottom: 22px; right: 320px; background-image: radial-gradient(circle, rgba(255,95,126,0.4) 2.4px, transparent 2.6px); }
  .hero .ring {
    position: absolute; width: 130px; height: 130px; border-radius: 50%;
    border: 6px solid rgba(45,180,160,0.35); border-right-color: transparent; border-bottom-color: transparent;
    top: 30px; right: 60px; transform: rotate(20deg); z-index: 0;
  }

  .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .news-card { background: #fff; border: 1px solid #e7ebef; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 4px 16px rgba(16,58,92,0.06); }
  .news-card .news-date { font-size: 0.78em; color: var(--cta-color); font-weight: 700; letter-spacing: 0.02em; }
  .news-card h3 { margin: 6px 0 8px; font-size: 1em; color: var(--main-color); line-height: 1.45; }
  .news-card p { font-size: 0.86em; color: #555; margin: 0 0 12px; }
  .news-card a.src-link { font-size: 0.82em; font-weight: 700; color: var(--accent-color); text-decoration: none; border-bottom: 1px solid var(--accent-color); }
  .news-disclaimer { font-size: 0.78em; color: #888; margin-top: 20px; line-height: 1.7; background: var(--bg-light); border-radius: 8px; padding: 14px 20px; }
  .hero-flex {
    display: flex; align-items: center; justify-content: center; gap: 44px;
    flex-wrap: wrap; max-width: 1080px; margin: 0 auto; position: relative; z-index: 1;
  }
  .hero-inner { flex: 1 1 420px; }
  .hero-photo { flex: 0 1 260px; }
  .hero-photo img {
    width: 100%; max-width: 260px; border-radius: 16px; display: block; margin: 0 auto;
    box-shadow: 0 20px 44px rgba(80,60,150,0.18); border: 4px solid #fff;
  }
  .hero h1 {
    font-size: 2em; font-weight: 900; margin: 0 0 16px;
    letter-spacing: 0.01em;
  }
  .hero p { max-width: 620px; margin: 0 auto; font-size: 1.05em; color: #555; }
  .hero .cta-btn {
    display: inline-block; margin-top: 28px;
    background: var(--cta-color); color: #fff; font-weight: 700;
    padding: 13px 32px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 20px rgba(138,99,242,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .hero .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(138,99,242,0.45); }

  main { max-width: 1000px; margin: 0 auto; padding: 48px 24px 40px; position: relative; z-index: 2; }
  section { margin-bottom: 64px; }
  .section-head { text-align: center; margin-bottom: 32px; }
  .section-head h2 {
    display: inline-block; color: var(--main-color); font-size: 1.4em;
    margin: 0; padding-bottom: 10px; border-bottom: 4px solid var(--accent-color);
  }
  .visa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
  }
  .visa-card {
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: 0 4px 16px rgba(16,58,92,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .visa-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(16,58,92,0.12); }
  .visa-card .icon { font-size: 1.8em; margin-bottom: 8px; display: block; }
  .visa-card h3 { margin: 0 0 8px; color: var(--main-color); font-size: 1.05em; }
  .visa-card p { font-size: 0.9em; margin: 0; color: #555; }

  .staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .staff-card { text-align: center; }
  .staff-card img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
    border-radius: var(--radius); margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(16,58,92,0.10);
  }
  .staff-card .org { font-size: 0.8em; color: #777; }
  .staff-card h3 { margin: 4px 0 8px; color: var(--main-color); font-size: 1.05em; }
  .staff-card .quals { font-size: 0.78em; color: #666; text-align: left; padding-left: 18px; margin: 0; }
  .staff-card .quals li { margin-bottom: 3px; }

  .article-teaser {
    background: #fff; border: 1px solid #e7ebef; border-radius: var(--radius);
    padding: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(16,58,92,0.06);
  }
  .article-teaser .badge {
    background: var(--main-color); color: #fff; font-size: 0.75em; font-weight: 700;
    padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 10px;
  }
  .article-teaser h3 { margin: 0 0 8px; font-size: 1.15em; color: var(--main-color); }
  .article-teaser p { margin: 0; color: #555; font-size: 0.92em; }
  .article-teaser a.read-more {
    margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--accent-color);
    text-decoration: none; border-bottom: 2px solid var(--accent-color); padding-bottom: 2px;
  }

  .inquiry-section {
    background: var(--bg-light);
    padding: 48px 24px;
    border-radius: var(--radius);
    text-align: center;
  }
  .hs-form-frame { max-width: 500px; margin: 24px auto 0; text-align: left; }
  footer {
    background: #17232e;
    color: #aab4bd;
    text-align: center;
    padding: 28px;
    font-size: 0.85em;
  }
  footer .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  footer img.footer-logo { height: 26px; opacity: 0.9; }

/* --- 言語ごとの差分（元の見た目をそのまま保つための調整） --- */
html:not([lang="ja"]) body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
html:not([lang="ja"]) .hero h1 { font-size: 1.9em; }
html[lang="vi"] .hero h1 { font-size: 1.8em; }
