/* トップページ共通スタイル
   もとは6言語ぶんの HTML に <style> で直接書かれていたもの。
   デザインを差し替えるときは、このファイルの :root を書き換えれば6ページすべてに効く。
   日本語版のCSSを共通の土台にし、他言語との差分だけ下に足している。 */
:root {
    --main-color: #3f91de;
    --main-color-light: #79bdf1;
    --navy-d: #1f5493;
    --accent-color: #e07a3f;
    --accent-color-d: #c2621f;
    --cta-color: #e07a3f;
    --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: 900; letter-spacing: 0.02em; color: var(--navy-d); text-decoration: none; display: block; }
  header .logo img { height: 42px; width: auto; display: block; }
  .header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .furi-toggle button {
    font-family: inherit; font-size: 0.85em; cursor: pointer;
    background: #fff; color: var(--text-color); border: 1px solid #ddd;
    border-radius: 999px; padding: 5px 12px; font-weight: 700;
  }
  .furi-toggle button.on { background: var(--cta-color); border-color: var(--cta-color); color: #fff; }
  body.furigana-off rt { display: none; }
  ruby { ruby-position: over; }
  rt { font-size: .5em; font-weight: 400; color: var(--gray, #8a99a8); }
  .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(100deg, #dcf0fd 0%, #b3ddf9 45%, #79bdf1 100%);
    color: var(--navy-d);
    padding: 56px 24px;
    text-align: left;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute; top: -55%; right: -15%; width: 75%; height: 220%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.45), transparent 60%);
    pointer-events: none;
  }
  .hero::after {
    content: "";
    position: absolute; top: 14%; left: -15%; width: 140%; height: 30%;
    background: linear-gradient(100deg, transparent 0%, rgba(63,145,222,.10) 40%, rgba(63,145,222,.24) 50%, rgba(63,145,222,.10) 60%, transparent 100%);
    transform: rotate(-7deg);
    pointer-events: none;
  }
  .hero .hl { color: var(--accent-color); }
  .hero .dots, .hero .ring { display: none; }

  .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: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
    max-width: 1080px; margin: 0 auto; position: relative; z-index: 1;
  }
  .hero-inner { text-align: left; }
  .hero-photo img {
    width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: center 47%;
    border-radius: 6px; display: block;
  }
  .hero h1 {
    font-size: 2.2em; font-weight: 900; margin: 0 0 16px;
    letter-spacing: 0.01em; line-height: 1.5;
  }
  .hero p { max-width: none; margin: 0 0 26px; font-size: 1.02em; color: var(--text-color); }
  .hero .cta-btn {
    display: inline-block; margin-top: 0;
    background: var(--cta-color); color: #fff; font-weight: 700;
    padding: 15px 32px; border-radius: 4px; text-decoration: none;
    box-shadow: 0 3px 0 var(--accent-color-d);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .hero .cta-btn:hover { transform: translateY(-2px); }
  @media (max-width: 860px) {
    .hero-flex { grid-template-columns: 1fr; }
    .hero { text-align: center; padding: 40px 20px; }
    .hero-inner { text-align: center; }
  }

  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; }

/* --- フォームが読み込めなかったときの代わり --- */
.form-fallback{background:#fff;border:2px solid var(--main-color,#0b3d7a);
  border-radius:10px;padding:24px 26px;text-align:left;max-width:560px;margin:0 auto}
.form-fallback p{margin:0 0 10px}
.form-fallback .mail{font-size:1.3rem;font-weight:700;margin:6px 0 14px}
.form-fallback .mail a{color:var(--main-color,#0b3d7a)}
.form-fallback .small{font-size:.88rem;color:#5b6b7b;margin:0;line-height:1.8}
