/* =====================================================
 * CROCES overrides
 *  - レイヤー整理（ヘッダー / スライダー）
 *  - PC：グローバルメニュー文字色を白に
 *  - SP：ハンバーガー + 右からスライドするドロワーナビ
 * =================================================== */

/* 共通：ヘッダーとスライダーのレイヤー整理 */
.l-header {
  position: relative;
  z-index: 1000;
}
.l-header__nav {
  position: relative;
  z-index: 1001;
}
#js-header-slider {
  position: relative;
  z-index: 0;
}

/* スライダー内の背景レイヤがクリックを奪わないように保険 */
#js-header-slider .p-header-slider__item-img,
#js-header-slider .p-header-content__inner {
  pointer-events: none;
}
#js-header-content__link {
  pointer-events: none;
}

/* theme 背景疑似要素の当たり止め（念のため） */
.l-header::before,
.l-header::after {
  pointer-events: none !important;
  z-index: 0 !important;
}


/* =====================================================
 * お知らせ共通レイアウト
 * =================================================== */
/* お知らせ：日付＋カテゴリ と タイトル の間隔調整（PC共通） */
.p-news-list .p-article04__meta {
  margin-bottom: 0;
}

.p-news-list .p-article04__title {
  margin-top: 0em;
  margin-bottom: 0.4em;
}


/* =====================================================
 * PC（1200px以上）：横並びメニュー + 白文字
 *   ※ NANO オリジナルに合わせてブレイクポイントを 1200px に
 * =================================================== */
@media (min-width: 1200px) {

  /* ハンバーガーは PC では非表示 */
  #js-menu-btn {
    display: none !important;
  }

  .l-header__nav .p-global-nav > li > a {
    color: #ffffff;
  }
  .l-header__nav .p-global-nav > li:hover > a {
    color: #ffffff;
  }

  .l-header__nav .p-global-nav > li {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
  }
  .l-header__nav .p-global-nav > li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
  }
}


/* =====================================================
 * SP（～768px）：ヘッダー＋ハンバーガー＋ドロワーメニュー（CROCES版）
 *   769〜1199px は NANO 本体の挙動に完全に任せる
 * =================================================== */
@media (max-width: 768px) {

  /* ---------- 1) ヘッダー帯とロゴ行 ---------- */

  .l-header {
    background: #ffffff !important;
    position: relative;
    z-index: 2000;
  }

  .l-header__inner {
    height: 65px;
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .l-header__logo {
    margin: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
  }

  .l-header__logo img {
    width: 76%;
    height: auto;
    display: block;
  }

  .l-header__logo {
    margin-right: auto;
  }

  /* 右端にネイビーの帯（ハンバーガー領域） */
  .l-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    background: #004b7f;
    z-index: 1999;
    pointer-events: none;
  }

  /* ---------- 2) ハンバーガーボタン ---------- */

  #js-menu-btn {
    display: inline-flex !important;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 40px;
    justify-content: center;
    align-items: center;
    z-index: 2001;
  }

  .p-menu-btn,
  .c-menu-btn {
    position: relative;
    border: none;
  }

  .p-menu-btn::before,
  .c-menu-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 2px;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow:
      0 -7px 0 #ffffff,
      0  7px 0 #ffffff;
  }

  .p-menu-btn::after,
  .c-menu-btn::after {
    content: none !important;
  }
  .p-menu-btn span,
  .c-menu-btn span {
    display: none !important;
  }

  /* ---------- 3) ドロワーメニュー本体 ---------- */

  .l-header__nav {
    position: fixed !important;
    top: 0;
    right: -80%;
    width: 72%;
    max-width: 400px;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid #e5e5e5;
    box-shadow: -10px 0 28px rgba(0,0,0,.12);
    padding-top: 72px;
    overflow-y: auto;
    transition: right .25s ease;
    z-index: 1100;
  }

  .l-header__nav.is-open {
    right: 0 !important;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1050;
  }
  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---------- 4) メニューリスト（縦積み） ---------- */

  #js-header__nav .p-global-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: none !important;
    padding: 0 16px 24px !important;
    margin: 0 !important;
    gap: 0 !important;
    height: auto !important;
  }

  #js-header__nav .p-global-nav > li {
    width: 100% !important;
    height: auto !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }
  #js-header__nav .p-global-nav > li:last-child {
    border-bottom: none !important;
  }

  #js-header__nav .p-global-nav > li > a {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 4px !important;
    white-space: normal !important;
    text-align: left !important;
    justify-content: flex-start !important;
    height: auto !important;
    color: #333333;
    background: #ffffff;
    text-decoration: none;
  }
  #js-header__nav .p-global-nav > li > a:hover {
    background: #f5f5f5;
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }
}


/* ==============================================
 * SP（～768px）：ホームのヒーロー領域の高さ調整
 * ============================================== */
@media (max-width: 768px) {
  .home .mv,
  .home .p-hero,
  .home .p-slider,
  .home .p-header-slider,
  .home [class*="hero"] [class*="slider"],
  .home [class*="header"] [class*="slider"] {
    height: auto !important;
    min-height: 180px !important;
    max-height: none !important;
  }

  .home .mv img,
  .home .p-header-slider__item-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .home .top-visual__title {
    font-size: 1.28rem !important;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    color: #202020;
  }

  .home .top-visual__lead {
    font-size: 1.0rem !important;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
    color: #202020;
  }

  .home #js-header-slider.p-header-slider::after{
    height: 5px;
    background-size: 760px 5px;
  }
}

/* ─────────────────────────
   お知らせ：レスポンシブ調整（スマホ〜タブレット）
   ───────────────────────── */
@media (max-width: 768px) {

  #js-news-tab-list,
  .p-news-tab-list__panel.p-news-list {
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  .p-news-list .p-article04__inner {
    padding: 6px 15px;
  }

  .p-news-list .p-article04__meta {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  #js-news-tab-list .p-news-list .p-article04__title,
  #js-news-tab-list .p-news-list .p-article04__title a {
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }

  .tax-news_category .p-news-list .p-article04__title,
  .tax-news_category .p-news-list .p-article04__title a {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }

  .p-news-list .p-article04__title a {
    line-height: 1.5;
  }
}


/* =========================
   3. ページ別の微調整
   ========================= */

.home #js-news-tab-list {
  margin-bottom: 2.5rem;
}

/* お知らせ一覧タイトル折り返し */
.post-type-archive-news ul.p-news-list li.p-news-list__item.p-article04 h2.p-article04__title,
.post-type-archive-news ul.p-news-list li.p-news-list__item.p-article04 h2.p-article04__title a,
.tax-news_category ul.p-news-list li.p-news-list__item.p-article04 h2.p-article04__title,
.tax-news_category ul.p-news-list li.p-news-list__item.p-article04 h2.p-article04__title a {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

/* お知らせ：パンくず強制表示 */
.post-type-archive-news .p-breadcrumb,
.tax-news_category .p-breadcrumb {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 0;
}

.page-template-page-standard .p-breadcrumb.c-breadcrumb.l-inner {
  padding-left: 0;
  margin-left: 0;
}


/******************************************
  実施内容と担当部局（details）ページ
  図形ブロック（円＋各部局ラベル）
 ******************************************/

/* 見出しまわりはそのまま使う */
.page-id-details h2 {
  clear: both;
  line-height: 0.4;
}

/* このページの本文幅調整だけに限定 */
.page-id-details .page-contents__body {
  padding: 0 20px;
}

/* 図形ブロック全体 */
.page-id-details .details-content {
  margin-top: 24px;
}

/* 円の画像エリア */
.page-id-details .details-content__thumb {
  position: relative;         /* ← ラベル配置の基準にする */
  margin-top: 40px;
  text-align: center;
}

/* SPではそのまま画像を表示 */
.page-id-details .content_img_01_sp {
  max-width: 100%;
  height: auto;
}

/* PCでは背景画像に差し替え */
/*
@media screen and (min-width: 769px) {
  .page-id-details .content_img_01_sp {
    display: none;
  }

  .page-id-details .details-content__thumb_ja {
    background-image: url("../img/content_img_01-1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-height: 534px;
    margin-bottom: 80px;
  }
}
*/

/******************************************
  実施内容と担当部局（details）ページ
  図形ブロック 基本
 ******************************************/
.page-id-details .details-content__thumb {
  text-align: center;
  margin-top: 40px;
}

.page-id-details .content_img_01_sp {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


/* このページ内の ul / ol のデフォルトスタイルを消す */
.page-id-details ol,
.page-id-details ul {
  list-style: none;
}

/* SP〜タブレット（<1201px）のときは、今まで通り縦並びでもOKなら
   特に position を変える必要はありません。 */




/* カードレイアウト */
.page-id-details .details-content__item {
  margin-bottom: 18px;
}

.page-id-details .details-block {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 10px 22px 14px 14px;
  border-radius: 10px;
  background-color: #fff;
}

.page-id-details .details-block__number {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: #187FC4;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0.15em;
}

.page-id-details .details-block__body {
  flex: 1 1 auto;
  min-width: 0;
}

.page-id-details .details-block__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 700;
}

.page-id-details .details-block__desc {
  margin: 0 0 4px;
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 599px) {
  .page-id-details .details-block {
    padding: 10px 18px 14px 12px;
    gap: 18px;
  }

  .page-id-details .details-block__number {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
    margin-top: 0.2em;
  }
}

.page-id-details .details-content p:empty {
  margin: 0;
  padding: 0;
}


/* 東京大学国際オープンイノベーション機構のご案内 */
.page-id-details .page-contents__body .title-border-l,
.page-contents__body h3:not([class]) {
  margin-left: -20px;
  margin-right: -20px;
}

.page-id-details .title-border-l,
.page-id-details h3:not([class]) {
  font-size: 1.5rem;
  font-weight: bold;
  padding-left: 16px;
  border-left: 4px solid #187FC4;
  margin-bottom: 24px;
  margin-top: 70px;
  text-align: left;
}

.page-id-details figure img {
  margin: 1rem auto;
  display: block;
}

.page-id-details p.details-desc  {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 35px;
  word-wrap: break-word;
}

/* 小見出し（丸印） */
.details-content .title-circle,
.details-content h4:not([class]) {
  position: relative;
  font-size: 1.3rem;
  font-weight: bold;
  padding-left: 32px;
  margin-top: 60px;
  margin-bottom: 16px;
  text-align: left;
}

.details-content .title-circle::after,
.details-content h4:not([class])::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #187FC4;
}

/* 外部リンクアイコン */
.details-content a.ioi[target="_blank"]::after {
  content: "\E92A";
  font-family: "design_plus";
  font-size: 1.3em;
  vertical-align: middle;
  position: relative;
  top: 0;
  left: 5px;
}

/******************************************
 * 実施内容と担当部局（details）
 * スマホ幅（〜768px）：ラベルを2列表示（Grid版）
 ******************************************/
@media screen and (max-width: 768px) {
  .page-id-details .details-content__list {
    list-style: none;
    margin: 16px auto 0;
    padding: 0;
    display: grid;                            /* ★ Gridで2列固定 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;                         /* 列間の余白 */
    row-gap: 8px;                             /* 行間の余白 */
    justify-items: start;                     /* 左寄せ（中央にしたければ center） */
  }

  .page-id-details .details-content__list li {
    position: static;                         /* 絶対配置を打ち消す */
    width: auto;                              /* ここはGridに任せる */
    text-align: left;
  }

  .page-id-details .details-content__list li a {
    display: inline-block;
  }
}

/******************************************
  実施内容と担当部局（details）
  PC幅（769px〜）：MTと同じサイズ＆位置
 ******************************************/
@media screen and (min-width: 769px) {

  /* ★ 円ブロック全体は中央に */
  .page-id-details .details-content {
    text-align: center;
  }

  /* 円全体をセンターに置くのは「thumb」だけ */
  .page-id-details .details-content__thumb {
    text-align: center;       /* ここで内側の inline-block を中央寄せ */
    margin-top: 50px;
    margin-bottom: 80px;
  }

  /* 円画像＋ラベルの親：画像の“素の大きさ”で inline-block に */
  .page-id-details .details-content__thumb_ja {
    position: relative;
    display: inline-block;    /* ← 幅を画像に合わせる */
    margin: 90px auto 50px;
  }

  /* 中央の円画像：PC用画像に差し替え、元サイズのまま表示 */
  .page-id-details .content_img_01_sp {
    display: block;
    margin: 0;
    max-width: none;          /* 親に合わせて縮めない */
    height: auto;
    content: url("../../../../uploads/2025/11/content_img_01-1.png");
    /* content: url("/wp-content/uploads/2025/11/content_img_01-1.png"); */
  }

  /* ラベル UL を円画像の上にぴったり重ねる */
  .page-id-details .details-content__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  }

  /* 各ラベルを MT と同じ座標で絶対配置 */
  .page-id-details .details-content__list li {
    position: absolute;
  }

  .page-id-details .details-content__list_01 { top:  15px; left: 143px; }
  .page-id-details .details-content__list_02 { top: -47px; left: 419px; }
  .page-id-details .details-content__list_03 { top:  81px; left:  38px; }
  .page-id-details .details-content__list_04 { top:  70px; left: 621px; }
  .page-id-details .details-content__list_05 { top: 206px; left: -16px; }
  .page-id-details .details-content__list_06 { top: 193px; left: 699px; }
  .page-id-details .details-content__list_07 { top: 340px; left:  10px; }
  .page-id-details .details-content__list_08 { top: 313px; left: 627px; }
  .page-id-details .details-content__list_09 { top: 444px; left: 139px; }
  .page-id-details .details-content__list_10 { top: 415px; left: 460px; }

  /* ★ カードやIOIの本文は左寄せに戻す */
  .page-id-details .details-content__body {
    text-align: left;
    margin-top: 0px;
  }

}


/******************************************
 * 実施内容と担当部局（details）
 * PC幅：ラベル画像を原寸表示に固定
 ******************************************/
@media screen and (min-width: 769px) {
  /* 円周まわりの10個のラベル画像は、テーマの max-width:100% を無効化 */
  .page-id-details .details-content__list img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;       /* ★ これで「親に合わせて縮む」挙動を止める */
  }
}

@media screen and (min-width: 769px) {
  /* details 内の段落は左寄せに戻す（円のブロックはそのまま） */
  .page-id-details .details-content p {
    text-align: left;
  }
}



/****************************************
 * 教育（education）
 ****************************************/
.page-id-education section {
  padding: 0 2.0em 3.0em;
}

.page-id-education a {
  text-decoration: none;
  margin-left: 5px;
}

/* リストのマーカーを再表示する */
.page-contents.page-id-education ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page-contents.page-id-education ul > li::marker {
  content: "";
}

.page-contents.page-id-education ul li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.3em;
  line-height: 1.75;
}

.page-contents.page-id-education ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #187fc4;
}

/* テキスト＋画像を1行に＆縦位置を揃える */
.page-contents.page-id-education p.contact-line {
  display: flex;
  align-items: center;
  column-gap: 0.5em;
  margin: 0 0 0.5em;
}

.page-contents.page-id-education p.contact-line img {
  display: inline-block;
}


/* HOME「お知らせ」タイトルリンクのスタイル調整（強制版） */
.home #js-news-tab-list .p-news-list .p-article04__title a,
.home #js-news-tab-list .p-news-list .p-article04__title a:visited {
  color: #202020 !important;
  text-decoration: none !important;
}

.home #js-news-tab-list .p-news-list .p-article04__title a:hover,
.home #js-news-tab-list .p-news-list .p-article04__title a:focus {
  color: #0066cc !important;
  text-decoration: underline !important;
}


/* =====================================================
 * HOMEヒーロー：PC幅の縦方向に余裕を確保（最新版）
 * =================================================== */
@media (min-width: 769px) {
  .home .mv,
  .home .p-hero,
  .home .p-slider,
  .home .p-header-slider,
  .home [class*="hero"] [class*="slider"],
  .home [class*="header"] [class*="slider"] {
    height: auto !important;
    /* min-height: 480px !important; */
    min-height: 240px !important;
    max-height: none !important;
  }

  .home .top-visual__title,
  .home .top-visual__lead {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}


/* =====================================================
 * HOME：ヒーロー直下の長文説明（案1用）
 * =================================================== */
.home .top-hero-desc {
  margin-top: 24px;
  margin-bottom: 32px;
}

.home .top-hero-desc .about-vision__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}


/* =====================================================
 * CROCES header nav FINAL override (2025-11-28)
 *  - 1200px以上 : PC横並びメニュー
 *  - 1199px以下 : ハンバーガーメニュー（ズーム時も含め一律）
 * =================================================== */

/* 1200px以上：PCナビ（横並びメニュー）、ハンバーガーは非表示 */
@media (min-width: 1200px) {

  /* PC幅ではナビ本体を必ず表示 */
  .l-header__nav {
    display: block !important;
  }

  /* PC幅ではハンバーガーを出さない */
  #js-menu-btn {
    display: none !important;
  }
}

/* 1199px以下：ハンバーガー＋ドロワーメニューに統一
   （ノートPCの 110〜150% ズームもここに入る） */
@media (max-width: 1199px) {

  /* ---------- 1) ヘッダー帯とロゴ行 ---------- */

  .l-header {
    background: #ffffff !important;
    position: relative !important;
    z-index: 2000 !important;
  }

  .l-header__inner {
    height: 65px;
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .l-header__logo {
    margin: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
  }

  .l-header__logo img {
    width: 76%;
    height: auto;
    display: block;
  }

  /* 右端 64px をハンバーガー用のネイビー帯にする */
  .l-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    background: #004b7f;
    z-index: 1999;
    pointer-events: none;
  }

  /* ---------- 2) ハンバーガーボタン ---------- */

  #js-menu-btn {
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    width: 64px;
    height: 40px;
    justify-content: center;
    align-items: center;
    z-index: 2001 !important;
  }

  .p-menu-btn,
  .c-menu-btn {
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* 3本線アイコン（白） */
  .p-menu-btn::before,
  .c-menu-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 2px;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow:
      0 -7px 0 #ffffff,
      0  7px 0 #ffffff;
  }

  /* テーマ側の ::after や span による線は無効化 */
  .p-menu-btn::after,
  .c-menu-btn::after {
    content: none !important;
  }
  .p-menu-btn span,
  .c-menu-btn span {
    display: none !important;
  }

  /* ---------- 3) ドロワーメニュー本体 ---------- */

  .l-header__nav {
    position: fixed !important;
    top: 0;
    right: -80%;
    width: 72%;
    max-width: 400px;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid #e5e5e5;
    box-shadow: -10px 0 28px rgba(0,0,0,.12);
    padding-top: 72px;
    overflow-y: auto;
    transition: right .25s ease;
    z-index: 1100;
    display: block !important;  /* 親テーマの display:none を打ち消し */
  }

  .l-header__nav.is-open {
    right: 0 !important;
  }

  /* 背景オーバーレイ */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1050;
  }
  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---------- 4) メニューリスト（縦積み） ---------- */

  #js-header__nav .p-global-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: none !important;
    padding: 0 16px 24px !important;
    margin: 0 !important;
    gap: 0 !important;
    height: auto !important;
  }

  #js-header__nav .p-global-nav > li {
    width: 100% !important;
    height: auto !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  #js-header__nav .p-global-nav > li:last-child {
    border-bottom: none !important;
  }

  #js-header__nav .p-global-nav > li > a {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 4px !important;
    white-space: normal !important;
    text-align: left !important;
    justify-content: flex-start !important;
    height: auto !important;
    color: #333333;
    background: #ffffff;
    text-decoration: none;
  }

  #js-header__nav .p-global-nav > li > a:hover {
    background: #f5f5f5;
  }

  /* メニュー表示中は背面スクロールを止める（JSで html/body に .nav-open が付く想定） */
  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }
}

/* =====================================================
 * HOME：ヒーロー直下の機構概要ブロック
 *  - 背景色 #F7FAFC
 *  - l-inner と同じ左右マージン（中央寄せ）
 * =================================================== */

.home .top-hero-desc {
  margin: 32px auto 40px;     /* 上32 / 下40、左右は自動で中央寄せ */
  padding: 24px 32px;         /* 内側の余白：左右を少し広めに */
  background: #f7fafc;        /* ご指定の背景色 */
  border-radius: 4px;         /* 角丸。不要なら削除OK */
}

/* セクション見出し「機構概要」 */
.home .top-hero-desc__title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* 本文 */
.home .top-hero-desc .about-vision__desc {
  font-size: 1.0rem;
  line-height: 1.8;
  margin: 0;
}

.p-news-list__item .p-article04__title {
  font-size: 1.0rem;
  padding-bottom: 0.5rem;
  font-weight: 500;
  flex: 1;
  margin-bottom: 0;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-btn {
  margin-top: 4.0rem;
}

@media (max-width: 768px) {
  .home .top-hero-desc .about-vision__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
  }
}



/* ==========================================
 * HOMEヒーロー：タイトル／サブタイトルを
 * しっかり分かるくらい「ふわっと」表示
 * ========================================== */
@keyframes croces-hero-fadeup-strong {
  from {
    opacity: 0;
    transform: translateY(40px);  /* かなり下から */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* タイトルとサブタイトル共通 */
.home .top-visual__title,
.home .top-visual__lead {
  opacity: 0;
  transform: translateY(40px);
  animation: croces-hero-fadeup-strong 0.8s ease-out 0.2s forwards !important;
  /* 0.8s：ゆっくりめ
     0.2s：少しだけ遅れて開始
     forwards：終わった位置を維持 */
}

/* サブタイトルだけ、さらに少しだけ遅らせる */
.home .top-visual__lead {
  animation-delay: 0.35s !important;
}

/* CROCES用：本文の段落余白と行間を調整 */
.p-entry__body p {
  line-height: 1.9;
  margin-bottom: 15px;
  word-wrap: break-word;
}


/* TOPページヘッダーの検索窓を非表示にする */
#index_header_search {
  display: none !important;
}

/* SP時はヘッダーの検索フォームと検索ボタンを非表示 */
@media (max-width: 960px) {
  body.home form[role="search"],
  body.home [id*="search"],
  body.home [class*="search"] {
    display: none !important;
  }
}

/** 404.php  **/
.error404 .p-cover__title {
  color: #ffffff;
  font-size: 46px;
  margin-top: 27.0rem;
}

.error404 .l-contents {
  border-top: 0px solid #ddd;
  margin-bottom: 50px;
  padding-top: 0px;
}

.error404 .p-info__inner {
  display: flex;
  align-items: center;
  height: 0px;
}

/* 404：EX研究会リンクブロックの視認性アップ */
.p-cover__ex-404 {
  /* もともとの inline max-width, font-size, line-height は残したままでOK */
  background: rgba(0, 0, 0, 0.45); /* 星空の上に薄い黒いカードを敷く */
  padding: 16px 20px;
  border-radius: 8px;
}

/* EXリンクの文字色とスタイル */
.p-cover__ex-404 a {
  color: #ffffff;               /* 白文字でコントラストを確保 */
  font-weight: 600;
  text-decoration: none;
}

/* ホバー時の軽いアクセント */
.p-cover__ex-404 a:hover,
.p-cover__ex-404 a:focus {
  text-decoration: underline;
  border-bottom: none;
}

/* PC/SP 出し分け */
.pc-only { display: inline; }
.sp-only { display: none; }

/* スマホ（幅767px以下）では逆にする */
@media screen and (max-width: 1199px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}


