@charset "utf-8";

/* ==========================================================================
   大学の世界展開力強化事業 — 共通スタイル
   WordPress(Enfold)から静的HTMLへ移行したもの。
   元の子テーマ style.css の設計（CSS変数・ユーティリティ）を引き継いでいます。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 変数
   -------------------------------------------------------------------------- */
:root {
  /* フォント */
  --font-base: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  --font-icon: "Material Symbols Rounded";

  /* 配色 */
  --color-text: #333333;
  --color-brand: #5a432b;
  /* 見出し・フッターの茶 */
  --color-accent: #00aedc;
  /* ボタン・English の水色 */
  --color-accent-hover: #f6feff;
  --color-menu-fx: #00acdc;
  --color-hover-bg: #f8f8f8;   /* SPメニューのタップ／ホバー時 */
  /* メニューのホバー下線 */
  --color-nav: #333333;
  --color-nav-hover: #18278a;   /* アクティブ項目ホバー（オリジナル実測値） */
  --color-nav-current: #333333;   /* 現在ページも通常と同色。区別は下線のみ */
  --color-footer-bg: #f7f3d8;
  --color-border: #dddddd;
  --color-white: #ffffff;

  /* レイアウト */
  --container-max: 1310px;
  --header-pad: 10px;

  /* その他 */
  --transition: 0.2s ease-in-out;
}


/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  word-break: break-word;
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* スクリーンリーダー用（見た目には出ない） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 50px;
}

@media only screen and (max-width: 989px) {
  .container {
    padding: 0 25px;
  }
}

@media only screen and (max-width: 767px) {
  .container {
    width: 85%;
    max-width: 85%;
    padding: 0;
  }
}


/* --------------------------------------------------------------------------
   3. ヘッダー
   実測（PC 1275px / SP 391px）に基づく。
   ・コンテナは PC 90% / 767px以下 85%
   ・ロゴは 378px、ただし最大 calc(100% - 61px)（ハンバーガー領域を確保）
   ・メニューリンクの高さ 88px、その下端 -1px にホバー下線
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid #ebebeb;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  padding: var(--header-pad);
  padding-top: 9px;
  padding-bottom: 8px;
}

/* --- 言語切替（1段目・全幅右寄せ／SPでも表示したまま） --- */
.lang-switch {
  order: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3px;
}

.lang-switch a,
.lang-btn {
  padding: 2px 18px 1px;
  font-size: 15px;
  font-weight: 500;
  line-height: 14px;
  margin-left: 23px;
  color: var(--color-accent);
  background-color: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: 13px;
  transition: background-color var(--transition), color var(--transition);
}

.lang-switch a:hover,
.lang-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* --- ロゴ（イメージマップの代替） --- */
.site-logo {
  order: 2;
  position: relative;
  width: 378px;
  max-width: calc(100% - 61px);
  margin: 0;
  line-height: 0;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.site-logo__link {
  position: absolute;
  display: block;
}

/* 元 <area shape="rect" coords="12,13,536,148">（原寸 758×160 基準） */
.site-logo__link--project {
  left: 1.583%;
  top: 8.125%;
  width: 69.129%;
  height: 84.375%;
}

/* 元 <area shape="circle" coords="667,89,71"> */
.site-logo__link--uec {
  left: 78.628%;
  top: 11.25%;
  width: 18.734%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* --- グローバルナビ --- */
.global-nav {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-panel {
  display: flex;
}

.nav-panel__head {
  display: none;
}

.global-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.global-nav__list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 88px;
  margin-left: 3vw;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-nav);
}

/* --- ホバー下線（元 Enfold の .avia-menu-fx を再現）
       リンク下端 -1px に 2px の線を 0.3秒でフェードイン --- */
.global-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--color-menu-fx);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
}

.global-nav__list > li > a:hover::after,
.global-nav__list > li.is-current > a::after {
  opacity: 1;
  visibility: visible;
}

/* --- ホバー時：通常項目は文字色そのまま（下線のみ）。
       アクティブページの項目だけホバーで文字が紺に --- */
.global-nav__list > li.is-current > a:hover {
  color: var(--color-nav-hover);
}

/* --- 現在ページの項目：文字は黒のまま・下線バーだけ常時表示（実測より） --- */

/* --- ハンバーガー（元 Enfold の av-hamburger--spin を移植）
       押すと中央のバーが225°回転、上のバーは消え、
       下のバーが-90°回って × になります --- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 202;   /* パネルより前面に置き、開いた状態でも × が見えるようにする */
  width: 41px;
  height: 41px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  width: 28px;
  height: 1px;
  background-color: #000;
}

.nav-toggle__bar {
  top: 50%;
  left: 50%;
  margin: -2px 0 0 -14px;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  left: 0;
}

.nav-toggle__bar::before {
  top: -10px;
  transition: top 0.1s 0.34s ease-in,
              opacity 0.1s ease-in;
}

.nav-toggle__bar::after {
  bottom: -10px;
  transition: bottom 0.1s 0.34s ease-in,
              transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* 開いた状態 */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  transform: rotate(225deg);
  transition-delay: 0.14s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out,
              opacity 0.1s 0.14s ease-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out,
              transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --------------------------------------------------------------------------
   1100px以下：右からスライドインするパネル
   実測（SP 402px）：パネル幅 88.6% / 背後は黒31%で覆う
   Englishは上端19px、閉じるボタン中心72px、メニュー開始109px、各項目54px
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  /* 元は 1100px 以下で English ピルの左マージンが 23px→10px */
  .lang-switch a,
  .lang-btn {
    margin-left: 10px;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgb(0 0 0 / 31%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .nav-backdrop.is-open {
    opacity: 1;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    flex-direction: column;
    /* 実測：402px幅→356px、500px幅→365px */
    width: 88.6%;
    max-width: 365px;
    padding-top: 19px;
    overflow-y: auto;
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
  }

  .nav-panel.is-open {
    transform: translateX(0);
  }

  .nav-panel__head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    padding: 0 47px 0 51px;
  }

  .global-nav__list {
    display: block;
    /* 実測：パネル上端19px + English18px + 72px でメニュー開始が109px */
    margin-top: 72px;
    border-top: 1px solid var(--color-border);
  }

  .global-nav__list > li > a {
    display: flex;
    align-items: center;
    height: 54px;
    margin-left: 0;
    /* 背景はパネル全幅に敷くため、余白はリンク側に持たせる */
    padding: 0 47px 0 51px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease-out;
  }

  /* タップ／ホバー時（実測 #f8f8f8・パネル全幅） */
  .global-nav__list > li > a:hover,
  .global-nav__list > li > a:focus {
    background-color: var(--color-hover-bg);
    color: var(--color-text);
  }

  /* オーバーレイでは下線・三角は出さない */
  .global-nav__list > li > a::after,
  .global-nav__list > li.is-current > a::before {
    display: none;
  }
}

/* --- 767px以下：コンテナ幅 85%（Enfoldのモバイル既定） --- */
@media only screen and (max-width: 767px) {
  .site-header__inner {
    width: 85%;
    padding: 10px 10px 10px;
  }

  .lang-switch {
    margin-bottom: 1px;
  }

  /* 元は 767px 以下で English ピルの行高が 14px→23.4px（縦に厚くなる） */
  .lang-switch a,
  .lang-btn {
    line-height: 23.4px;
  }
}


/* --------------------------------------------------------------------------
   4. ヒーロー
   元は LayerSlider（PC用 1920×690 / SP用 1000×800）。
   各テキストレイヤーは元と同じく独立して絶対配置し、座標・文字サイズを
   デザイン原寸に対する比率（cqw）に置き換えて比例縮小させています。
   left値は実機スクリーンショットの実測に合わせています（設計値 100px に対し
   LayerSlider は約112px相当の位置に描画していたため）。
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SPは元画像の左端を見せる（実測：切り出し位置は左寄せ） */
.hero--sp .hero__image {
  object-position: left center;
}

.hero__lead,
.hero__title {
  position: absolute;
  margin: 0;
  color: var(--color-brand);
  font-weight: 600;
  line-height: 1.44;   /* 実測：PC 56.5px/39.8px、SP 40px/27.4px */
  white-space: nowrap;
}

/* --- PC用（990px以上）／原寸 1920×690 --- */
.hero--pc {
  display: block;
  max-width: 1920px;
  aspect-ratio: 1920 / 691;
}

.hero--pc .hero__lead {
  left: 5.84%;
  top: 21.739%;   /* 150px / 690px */
  font-size: 1.25cqw;   /* 24px / 1920px */
}

.hero--pc .hero__title {
  left: 5.84%;
  top: 30.435%;   /* 210px / 690px */
  font-size: 3.125cqw;  /* 60px / 1920px */
}

/* --- SP用（989px以下）／原寸 1000×800 --- */
.hero--sp {
  display: none;
  max-width: 1000px;
  aspect-ratio: 1000 / 800;
}

.hero--sp .hero__lead {
  left: 8.95%;
  top: 21.5%;     /* 172px / 800px */
  font-size: 2.8cqw;    /* 28px / 1000px */
}

.hero--sp .hero__title {
  left: 8.95%;
  top: 30.375%;   /* 243px / 800px */
  font-size: 7cqw;      /* 70px / 1000px */
}

@media only screen and (max-width: 989px) {
  .hero--pc {
    display: none;
  }

  .hero--sp {
    display: block;
  }
}


/* --------------------------------------------------------------------------
   5. 事業概要セクション
   -------------------------------------------------------------------------- */
.intro {
  margin: 50px 0;
  background-image: url("../images/section-bg.png");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  background-attachment: scroll;
}

.intro .container {
  padding-top: 130px;
  padding-bottom: 130px;
}

/* 元は左半分が空カラム、右半分にテキスト */
.intro__body {
  width: 50%;
  margin-left: auto;
}

.intro__heading {
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 1.1;
  color: var(--color-brand);
  border-bottom: 1px solid var(--color-border);
}

.intro__text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;   /* 実測：行ピッチ 32.4px */
  color: var(--color-text);
}

@media only screen and (max-width: 989px) {
  .intro__body {
    width: 100%;
  }
}

/* 767px以下は元の指定どおり margin 45px・見出し 0.8em（= 33.6px） */
@media only screen and (max-width: 767px) {
  .intro {
    margin: 45px 0;
  }

  .intro .container {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .intro__heading {
    font-size: 33.6px;
  }
}


/* --------------------------------------------------------------------------
   6. ボタン（元 .bt）
   -------------------------------------------------------------------------- */
.btn-wrap {
  margin-top: 35px;
  margin-bottom: 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: 48px;
  transition: all var(--transition);
}

.btn::after {
  content: "\e5cc";
  position: absolute;
  right: 15px;
  font-family: var(--font-icon);
  font-size: 18px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn:hover {
  background-color: var(--color-accent-hover);
}

.btn:hover::after {
  right: 12px;
}


/* --------------------------------------------------------------------------
   7. フッター
   カラム幅・文字サイズは実機スクリーンショットの実測値に合わせています。
   （元CSSの 38.8/38.8/18.4% はHTML側のインライン width 指定で上書きされ、
     実際には 25.5/40.7/30.4% で描画されていました）
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-brand);
}

.site-footer__cols {
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
}

.site-footer__col--logo {
  width: 25.45%;
  margin-right: 3.49%;
}

.site-footer__col--address {
  width: 40.68%;
}

.site-footer__col--nav {
  width: 30.38%;
}

/* --- ロゴ（白い角丸パネル） --- */
.site-footer__col--logo a {
  display: block;
  max-width: 510px;
  padding: 7.5% 8%;
  background-color: var(--color-white);
  border-radius: 12px;
}

.site-footer__col--logo img {
  display: block;
  width: 100%;
}

/* --- 住所 --- */
.site-footer__name {
  margin: 0 0 0.8em;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2px;
}

.site-footer__col--address p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

/* --- メニュー --- */
.site-footer__col--nav ul {
  padding-left: 30px;
  border-left: 1px solid rgb(90 67 43 / 30%);
}

.site-footer__col--nav a {
  position: relative;
  display: block;
  padding: 0.4em 3px 0.4em 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-brand);
}

.site-footer__col--nav a::before {
  content: "\e5cc";
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-icon);
}

.site-footer__col--nav a:hover {
  color: #8a6b4a;
}

/* --- コピーライト --- */
.site-footer__copyright {
  margin: 55px 0 0;
  padding-bottom: 32px;
  font-size: 15px;
  color: var(--color-brand);
}

@media only screen and (max-width: 989px) {
  .site-footer__cols {
    display: block;
    padding-top: 45px;
  }

  .site-footer__col--logo,
  .site-footer__col--address,
  .site-footer__col--nav {
    width: 100%;
    margin-right: 0;
  }

  .site-footer__col--logo a {
    max-width: 340px;
    margin-bottom: 30px;
  }

  .site-footer__col--address {
    margin-bottom: 30px;
  }

  .site-footer__col--nav ul {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer__copyright {
    margin-top: 35px;
  }
}


/* --------------------------------------------------------------------------
   8. ページ先頭へ戻る
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 1030;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: 1px solid #ebebeb;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out, background-color 0.3s ease-out;
}

.scroll-top::before {
  content: "\e5ce";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-icon);
  font-size: 22px;
  color: #000;
  transition: color 0.3s ease-out;
}

.scroll-top.is-visible {
  opacity: 0.7;
  visibility: visible;
}

.scroll-top:hover {
  background-color: #f8f8f8;
}

.scroll-top:hover::before {
  color: #00acdc;
}


/* --------------------------------------------------------------------------
   9. 汎用ユーティリティ（元子テーマから継承。他ページで使用）
   -------------------------------------------------------------------------- */
.fw-bold { font-weight: 700; }
.fw-mid { font-weight: 500; }
.ex-ls { letter-spacing: 1.5px; }
.ex-ls2 { letter-spacing: 2px; }
.ex-ls3 { letter-spacing: 0.3em; }
.ex-lh { line-height: 1.9; }
.ex-lh2 { line-height: 1.4; }
.ex-lh3 { line-height: 2.25; }
.ex-spacing { letter-spacing: 5px; }
.ex-fc1 { color: var(--color-accent); }

.pc-only { display: block; }
.sp-only { display: none; }

@media only screen and (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}

/* ============================================================================
   下層ページ共通（概要 / 活動報告 / 連携大学 / お問い合わせ）
   ============================================================================ */

/* --------------------------------------------------------------------------
   10. ページタイトル帯
   実測：PC 高さ121px・背景色#f9f2e8、SP 高さ75px
   -------------------------------------------------------------------------- */
.page-title {
  background-image: url("../images/page-back.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center left;
  background-color: #f8eee4;
  padding: 30px 0;
  text-align: center;
}

/* 元は帯の内側 .container にも上下10pxの余白（帯高 122px の一部） */
.page-title .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-title__heading {
  color: var(--color-brand);
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1.4;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   11. 下層ページ本文
   コンテナ幅は実測 1000px（元CSS: max-width:1100px、左右パディング込みで約1000px）
   -------------------------------------------------------------------------- */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 50px 80px;
  font-size: 18px;
  color: #000;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--color-brand);
}

.page-content > p {
  margin-top: 0.85em;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- ダーク見出しボックス（元 Gutenberg 見出しブロック＋背景色）
       実測：背景 #59432b・白文字・パディング 21px --- */
.box-heading {
  padding: 15px;
  margin: 60px 0 1.5em;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-white);
  background-color: var(--color-brand);
}

/* 本文先頭の帯は上マージンなし（元 h2:first-child） */
.page-content > .box-heading:first-child {
  margin-top: 0;
}

/* --- 見出し（I. / ① など） --- */
/* --- h3相当（I. II. III.）：26px・下線は ::before の border-bottom --- */
.section-heading {
  position: relative;
  margin: 0 0 1em;
  padding-bottom: 18px;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-brand);
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 1px solid var(--color-brand);
}

/* --- h4相当（① ② ③ ④）：23px・左に 2px の縦バー --- */
.sub-heading {
  position: relative;
  margin: 0 0 1em;
  padding-left: 18px;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-brand);
}

.sub-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--color-brand);
}

.page-content ol {
  margin: 0 0 30px;
  padding-left: 1.4em;
  line-height: 1.4;
}

.page-content ol li {
  margin-bottom: 10px;
}

/* --- 活動報告リスト（元 enfold-child の実測を再現）
       マーカーは文字ではなく 4x2px の茶色い長方形（top:12px）
       日付は本文色、リンクタイトルはアクセント水色。下線なし --- */
.report-list {
  margin: 0 0 30px;
  margin-left: 5px;
  padding: 0;
  list-style: none;
}

.report-list > li {
  position: relative;
  margin-bottom: 10px;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* 日付の左に 4x2px の茶色い横棒（元 enfold-child li:before の実測値） */
.report-list > li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 12px;
  width: 4px;
  height: 2px;
  background-color: var(--color-brand);
}

.report-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.report-list a:hover {
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   12. 図版とライトボックス
   拡大表示は本物の magnific-popup（jQuery込み・元テーマから同梱）を使用。
   オプション値は元 Enfold の avia_utilities.av_popup と同一
   （assets/js/lightbox-init.js）。
   ここでは「ホバー時に浮かぶ虫眼鏡アイコン」だけを再現する
   （元は avia.min.js が実行時にDOM挿入している部分で、その関数単体を
     安全に抜き出せなかったため、見た目だけ実測値で再現）。
   -------------------------------------------------------------------------- */

/* 元テーマのアイコンフォント（entypo-fontello-enfold）を同梱 */
@font-face {
  font-family: "entypo-fontello-enfold";
  src: url("../vendor/fonts/entypo-fontello-enfold.woff2") format("woff2"),
       url("../vendor/fonts/entypo-fontello-enfold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.figure {
  margin: 40px auto;
  text-align: center;
}

.figure__link {
  position: relative;
  display: inline-block;
  width: 600px;          /* 元の style="width:600px" を再現 */
  max-width: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 3px;
}

.figure__link img {
  display: block;
  width: 100%;
}

/* --- ホバー時のオーバーレイ（元 Enfold の .image-overlay をそのまま再現）
       白い膜が opacity 0.7 でかかって画像が薄くなり、
       中央に青い円（#00acdc・80×80px）＋アイコン \e869 が
       rotate(-175deg) scale(.2) → rotate(0) scale(1) でポップイン --- */
.figure__link::before,
.figure__link::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 白い膜 */
.figure__link::before {
  content: "";
  inset: 0;
  background: #fff;
  transition: opacity 0.4s ease-in-out;
}

/* 青い円＋アイコン */
.figure__link::after {
  content: "\e869";
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "entypo-fontello-enfold";
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  background: #00acdc;
  border-radius: 50px;
  z-index: 2;
  transition: opacity 0.4s ease-in-out;
}

.figure__link:hover::before,
.figure__link:focus-visible::before {
  opacity: 0.7;
}

.figure__link:hover::after,
.figure__link:focus-visible::after {
  opacity: 1;
  animation: avia_pop_small 0.5s 1 cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes avia_pop_small {
  0%   { transform: rotate(-175deg) scale(0.2); }
  100% { transform: rotate(0) scale(1); }
}

.figure__caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* --------------------------------------------------------------------------
   14. ライトボックス表示の保険
   元テーマ avia.min.js が付けていた .mfp-image-loaded を lightbox-init.js で
   代替しているが、万一そのタイミングが外れても画像が透明のまま
   （真っ黒）にならないよう、ここで最終的な可視性を担保する。
   -------------------------------------------------------------------------- */
.mfp-zoom-in.mfp-ready .mfp-figure {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* --------------------------------------------------------------------------
   15. 連携大学ページ（元 page-id-68）
   2カラム構成。各大学の見出しは上に 6px の茶線、見出し内リンクは下線＋太字。
   -------------------------------------------------------------------------- */
.univ-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.univ-columns > .univ-col {
  flex: 1;
  min-width: 0;
}

/* 大学名見出し（元 page-id-68 の h3：上に 6px 太線、太さは normal） */
.univ-heading {
  position: relative;
  margin: 0 0 1em;
  padding-top: 18px;
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--color-brand);
}

.univ-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: content-box;
  width: 100%;
  height: 2px;
  border-top: 6px solid var(--color-brand);
}

.univ-heading a {
  color: var(--color-brand);
  text-decoration: underline;
  font-weight: bold;
}

/* リード文は <strong> の太字（700）のみ。二重指定しない */

/* 連携大学カラム内の段落も本文段落と同じ体裁に */
.univ-col p {
  margin-top: 0.85em;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* 2カラムが収まらなくなったら1カラムに（元 Gutenberg columns の折り返し） */
@media only screen and (max-width: 767px) {
  .univ-columns > .univ-col {
    flex-basis: 100%;
  }
}
