/*
Theme Name: jinbungakurin
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: jinbungakurin
Tags: 
*/


/***************************************************************
ヘッダー
***************************************************************/
/* お問合せボタン設定 */
.h_contact p {
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

.h_contact {
  padding: 0.5px 5px 1px;
  border-radius: 5px;
  text-decoration: none;
}

.h_contact img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.h_contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

/* お問合せボタンと検索フォームの間隔 */
.is-layout-flow > .h_form {
  margin-inline-start: 0.4em;
}

/* 検索枠 */
.wp-block-search__inside-wrapper {
  background-color: #fff;
  height: 2.5em;
  border-radius: 10px;
}

.wp-block-search__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 4px;
}

.search-icon {
  display: block;
  min-height: 27px !important;
  min-width: 27px !important;
}

/* .wp-block-navigation-item__label {
  white-space: nowrap;
  text-overflow: ellipsis;
} */

.header-navigation ul li a span.wp-block-navigation-item__label {
  white-space: nowrap;
  text-overflow: ellipsis;
}


.header-navigation .wp-block-navigation-item__label {
  font-size: clamp(0.8rem, 1.8vw, 1.8rem);
}

/* ナビゲーション区切り線 */
.header-navigation .wp-block-navigation-item::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 1px;
  height: 2.8rem;
  background-image: linear-gradient(white 50%, rgba(255, 255, 255, 0) 0%);
  background-size: 1px 3px;
  margin-right: 0;
  margin-left: clamp(0.1em, 2vw, 4em);
  margin-right: clamp(0.1em, 2vw, 4em);
}

.header-navigation .wp-block-navigation-item:last-child:after {
  margin-right: 0 !important; /* 最後は右マージンを無効 */
}

/* 一番目左メニューにラインを追加 */
.header-navigation .wp-block-navigation-item:first-child::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 1px;
  height: 2.8rem;
  background-image: linear-gradient(white 50%, rgba(255, 255, 255, 0) 0%);
  background-size: 1px 3px;
  margin-right: clamp(0.1em, 2vw, 4em);
}

/* メニューを一行に配置 */
.header-navigation {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.wp-block-navigation__container:only-child,
.wp-block-page-list:only-child {
  flex-grow: 0 !important;
}

/* ヘッダー下ライン */
.header-line {
  border: 5px solid #bae394;
}

/* スライダー */
ul.top_slick {
  list-style: none;
  padding-inline-start: unset;
}
.top_slick {
  opacity: 0;
  transition: opacity 0.3s linear;
}
.top_slick.slick-initialized {
  opacity: 1;
}

.slick-slide img {
  border-radius: 10px;
}

.slick-slide img {
  width: 100%;
  aspect-ratio: 55 / 41;
  margin: 0 auto;
  object-fit: contain;
}

.custom-dots-container {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
  padding-inline-start: unset;
  list-style: none;
}

.custom-dots-container li {
  width: 0.8em;
  height: 0.8em;
  background-color: #bebebe; /* 非アクティブ時の色 */
  border-radius: 50%; /* 正方形を丸にする */
  cursor: pointer; /* ポインタを表示 */
  transition: background-color 0.3s ease; /* 色変更のアニメーション */
}

.custom-dots-container li.slick-active {
  background-color: #005c26; /* アクティブ時の色 */
}
.custom-dots-container li button {
  display: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  padding: 0;
  border: none;
  background-color: transparent;
}

@media (max-width: 900px) {
  .header_logo {
    width: 78%;
  }
}
@media (max-width: 782px) {
  /* .search, */
  .header-navigation {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
  }

  body:not(.search_clm) .search_clm {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
  }

  body.home .header_logo,
  .header_logo {
    display: flex;
    justify-content: center;
  }

  header .wp-block-group {
    margin: 0;
  }
}

/* ハンバーガーメニュー非表示 */
@media (max-width: 600px) {
  .wp-block-navigation__responsive-container-open {
    display: none;
  }

  .wp-block-navigation__responsive-container {
    display: none;
  }
}

@media (min-width: 782px) {
  .sp_clm {
    display: none !important;
  }
}

/***************************************************************
ヘッダーSP版
***************************************************************/
@media (max-width: 782px) {
  .header_logo {
    width: 100%;
  }
  .pc_clm {
    display: none !important;
  }

  /* 以下言語選択表示設定 */
  .sp_lang {
    display: flex;
    align-items: center;
  }

  .sp_lang .trp-language-switcher {
    height: auto !important;
    width: 0 !important;
  }

  .sp_lang .trp-language-switcher > div {
    padding: 4px 20px 3px 5px;
    background-position: calc(100% - 5px) calc(7px + 2px),
      calc(100% - 3px) calc(12px + 0px);
  }

  .sp_lang .trp-ls-shortcode-current-language {
    width: auto !important;
  }

  .sp_lang .trp-ls-shortcode-current-language a {
    padding: 2px 0;
    font-size: clamp(0.6rem, 3vw, 1.05rem);
  }

  .sp_lang .trp-ls-shortcode-language {
    width: auto !important;
    /* width: 0 !important; */
  }

  .sp_lang .trp-ls-shortcode-language a {
    padding: 2px 0;
    font-size: clamp(0.6rem, 3vw, 1.05rem);
  }
}

/***************************************************************
共通
***************************************************************/
@media (max-width: 782px) {
  /* カラムの前後入れ替え */
  .reverse-columns {
    flex-direction: column-reverse;
  }

  /* モバイル版でコンテンツ幅を広げる */
  .full_area {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 「在学生のいま・卒業生のいま」一時的に非表示 */
.page_off {
  display: none !important;
}

.custom-navigation-menu > li.page_off {
  display: none !important;
}

/***************************************************************
ホーム
***************************************************************/
.logo {
  margin-bottom: 0 !important;
}


.logo_txt strong {
  background-image: linear-gradient(to bottom, #0b7661 30%, #269A4A 70%);
  -webkit-background-clip: text;
  color: transparent;
}

.header_txt {
  border-left: 1px solid #383335;
  padding-left: 20px;
}

@media (max-width: 782px) {
  h1 {
    padding: 0 5%;
  }

  .header_left_clm {
    padding-left: 0 !important;
    padding-top: 2em;
  }

  .title-area {
    padding-bottom: 3em;
  }
}

.link01 .wp-block-button__link:hover {
  background-color: #ff9a2f5c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.link02 .wp-block-button__link:hover {
  background-color: #005c2639;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 新着情報 */
.custom-news-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-news-heading {
  flex-shrink: 1; /* h2が縮むのを許可 */
  margin-right: 20px;
  white-space: nowrap;
}

/* 新着情報ボタンを右寄せ */
.custom-news-button-container {
  display: flex;
  justify-content: flex-end;
}

.news_dot {
  border: none;
  border-top: 4px dotted #8f8f8f;
  height: 1px;
  background: none;
}

.notice_date {
  width: 7em;
}

/* カテゴリボタン */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/news'],
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/event'],
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/other'],
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/all'] {
  display: inline-block;
  padding: 3px 20px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ニュースボタンの色 */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/news'] {
  background-color: #f5910f;
}

/* イベントボタンの色 */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/event'] {
  background-color: #7fca26;
}

/* その他ボタンの色 */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/other'] {
  background-color: #73cee2;
}

/* 全てボタンの色 */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/all'] {
  background-color: #7d7e80;
}

/* Hover時の効果 */
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/news']:hover,
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/event']:hover,
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/other']:hover,
.taxonomy-category.is-style-default.wp-block-post-terms
  a[href*='category/all']:hover {
  opacity: 0.8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* カテゴリボタンが複数並ぶ場合の設定 */
.wp-block-post-terms__separator {
  display: none;
}
.taxonomy-category a {
  margin-right: 0.5em;
}
.taxonomy-category a:last-child {
  margin-right: 0;
}

@media (max-width: 782px) {
  .link02 a {
    font-size: clamp(0.8rem, 2.8vw, 1.05rem) !important;
    padding: 0.6rem 1rem !important;
  }

  .taxonomy-category {
    font-size: clamp(0.7rem, 2.8vw, 1.05rem) !important;
  }

  .border01 {
    border-width: 1.5px;
  }

  /* カテゴリボタン */
  .taxonomy-category.is-style-default.wp-block-post-terms
    a[href*='category/news'],
  .taxonomy-category.is-style-default.wp-block-post-terms
    a[href*='category/event'],
  .taxonomy-category.is-style-default.wp-block-post-terms
    a[href*='category/other'],
  .taxonomy-category.is-style-default.wp-block-post-terms
    a[href*='category/all'] {
    padding: 2px 13px;
  }
}

/* 背景画像の斜め切替 */
.education {
  width: 100%;
  margin: 0;
  padding: 10vh 0;
  position: relative;
}

.education::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2024/11/blue_bg.png');
  clip-path: polygon(0 11vw, 100% 0, 100% calc(100% - 11vw), 0 100%);
  z-index: -1;
}

.research {
  width: 100%;
  margin: 0;
  padding: 10vh 0 5vh;
  position: relative;
  overflow: hidden;
}

.research::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2024/12/green_bg.png');
  clip-path: polygon(0 11vw, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.top_title_img {
  max-width: 62%;
}

@media (max-width: 600px) {
  .top_title_img {
    max-width: 90%;
  }
}

/* 共通教育部門  マウスポインターを非表示 */
.no_link .wp-block-button__link {
  pointer-events: none;
}

.btn_more_details .wp-block-button__link::after {
  /* content: '▶'; */
  content: '\25B6';
  display: inline-block;
  margin-left: 12px;
  margin-bottom: 5px;
  font-size: 0.6em;
  color: inherit; /* テキストと同じ色 */
  vertical-align: middle;
}

.btn_more_details .wp-block-button__link:hover {
  opacity: 0.7;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

@media (min-width: 782px) {
  .team_clm01 {
    min-height: 620px;
    max-width: 1200px;
  }

  .team_clm02 {
    min-height: 350px;
    max-width: 1200px;
  }
}

.one_clm {
  position: relative;
}

.txt_clm01 {
  position: relative;
  z-index: 2;
  transform: translate(15%, 150px);
}

.img_clm01 {
  position: relative;
  z-index: 1;
}

.txt_clm02 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-5%, -50%);
  z-index: 2;
}

.img_clm02 {
  position: relative;
  z-index: 1;
}

@media (max-width: 782px) {
  .txt_clm01,
  .txt_clm02 {
    position: static;
    transform: none;
    padding: 0 0 15px 0 !important;
  }

  /* 人文学基礎、デジタルヒューマニティーズ  カラム下余白調整 */
  .wp-container-core-group-is-layout-25,
  .wp-container-core-group-is-layout-33 {
    margin-bottom: 0 !important;
  }

  /* 国際連携教育推進チーム 写真左側調整 */
  .is-layout-flow > .international {
    margin-inline-start: 0;
  }

  /* 在学生のいま・卒業生のいま  カラム下余白調整 */
  .clm_last {
    margin-bottom: 50px !important;
  }

  .btn_more_details,
  .no_link {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem) !important;
  }

  .department {
    line-height: 0.5;
  }

  .catch {
    margin-top: 5px !important;
  }
}

@media (max-width: 420px) {
  .department {
    font-size: 1.6rem !important;
  }
}

/* 装飾画像 */
.deco {
  position: absolute;
  width: clamp(65px, 6vw, 100px);
  height: auto;
  z-index: 0;
}

.head,
.education,
.research {
  position: relative;
  z-index: 2;
}

.deco01 {
  top: 40px;
  left: 2rem;
}

.deco02 {
  top: 600px;
  right: 1.2rem;
}

.deco03 {
  top: -110px;
  left: 2.5rem;
}

.deco04 {
  top: 240px;
  right: 4rem;
}

.deco05 {
  top: 1300px;
  right: 5vw;
}

.deco06 {
  top: 2000px;
  left: 3vw;
}

.deco07 {
  bottom: 1300px;
  right: 3.5vw;
}

.deco08 {
  bottom: 20px;
  right: 4vw;
}

.deco09 {
  top: 40px;
  left: 7vw;
}

.deco10 {
  bottom: 200px;
  right: 5vw;
}

@media (max-width: 782px) {
  .deco {
    width: clamp(40px, 9vw, 80px);
    height: auto;
  }

  .deco01 {
    top: 45vh;
    left: 0.5rem;
  }

  .deco02 {
    top: 110vh;
  }

  .deco03 {
    top: -70px;
    left: 1rem;
  }

  .deco04 {
    top: 125px;
    right: 0.8rem;
  }

  .deco05 {
    top: 1300px;
    right: 0.3rem;
  }

  .deco06 {
    top: 2000px;
    left: 0.2rem;
  }

  .deco07 {
    bottom: 900px;
    right: 0.3vw;
  }

  .deco08 {
    bottom: 20px;
    right: 4vw;
  }

  .deco09 {
    top: 40px;
    left: 4vw;
  }

  .deco10 {
    bottom: 200px;
    right: 2vw;
  }
}

/* 下からスライド */
.fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s, transform 2s;
}

.fade.active {
  opacity: 1;
  transform: translateY(0px);
}

.deco_front {
  z-index: 2;
}

/***************************************************************
第2階層共通
***************************************************************/
main {
  position: relative;
  z-index: 2;
}

.green_deco01 {
  position: absolute;
  width: clamp(65px, 9vw, 550px);
  height: auto;
  z-index: 0;
  top: 5vh;
  left: 1rem;
}

.green_deco02 {
  position: absolute;
  width: clamp(65px, 9vw, 550px);
  height: auto;
  z-index: 0;
  bottom: 60px;
  right: -2rem;
}

@media (max-width: 782px) {
  .green_deco01 {
    width: clamp(40px, 9vw, 80px);
    height: auto;
    top: 8vh;
    left: 0.5rem;
  }

  .green_deco02 {
    width: clamp(30px, 8vw, 80px);
    height: auto;
    bottom: 70px;
    right: 5px;
  }
}

.h1_division_team {
  font-size: clamp(2.8rem, 3.6vw, 9rem) !important;
}

@media (max-width: 782px) {
  .h1_division_team {
    font-size: clamp(1.5rem, 5vw, 6.8rem) !important;
  }

  .wp-block-cover,
  .wp-block-cover-image {
    min-height: 200px;
  }
}

.h1_subt {
  font-size: 0.7em;
  display: inline-block;
  margin-bottom: 0.5em;
}

h2.cap,
h3.cap {
  position: relative;
  padding-left: 20px !important;
  background-color: #f7f8f8;
}

h3.cap,
h4.cap {
  position: relative;
  padding-left: 15px !important;
}

h2.cap::before,
h3.cap::before,
h4.cap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #f05119;
}

h4.cap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #f05119;
}

h5 {
  position: relative;
  padding: 0 2em 0 0.5em;
  display: inline-block;
}
h5::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #f05119, #fff);
}

h6 {
  position: relative;
  display: inline-block;
  padding: 0 33px;
}

h6:before,
h6:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 25px;
  height: 2px;
  border-top: solid 1px #f05119;
  border-bottom: solid 1px #f05119;
}

h6:before {
  left: 0;
}
h6:after {
  right: 0;
}

h2.cap_green::before,
h3.cap_green::before,
h4.cap_green::before {
  background-color: #005c26;
}

h5.h5_green::after {
  background: linear-gradient(to right, #005c26, #fff);
}

h6.h6_green:before,
h6.h6_green:after {
  border-top: solid 1px #005c26;
  border-bottom: solid 1px #005c26;
}

@media (max-width: 782px) {
  .list_left {
    padding-left: 23px !important;
  }
}

.division_team_link a {
  text-decoration: none !important;
}

.division_team_link a:hover {
  text-decoration: underline !important;
}
.syllabus_list {
  padding-left: 0;
  text-decoration: none !important;
}

.syllabus_list li {
  margin-bottom: 0.8em;
}

.syllabus_other a {
  position: relative;
  padding-right: 25px;
}

.syllabus_other a::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2024/12/pdf_img.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: calc(50% + 0.25em); /* 1行の時は50%、2行の場合調整 */
  transform: translateY(-50%);
  right: 0;
}

.syllabus_list_none {
  display: none;
}

/* view more 設置 */
.wp-block-details summary {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  display: inline !important;
  outline: none !important;
  box-shadow: none !important;
  list-style: none;
  cursor: pointer;
  text-align: center; /* 中央寄せ */
}

.wp-block-details summary::after {
  content: 'view more >>';
  color: #f58f0f;
  font-size: 85%;
  cursor: pointer;
  display: inline-block;
  margin-left: 5px;
  padding: 2.5px 15px;
  border: 1px solid #f58f0f;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.wp-block-details summary:hover::after {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-details[open] summary {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  display: inline !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ✖ close 設置 */
.wp-block-details[open] summary::after {
  content: '✖ close';
  color: #f58f0f;
  padding: 2.5px 15px;
  border: 1px solid #f58f0f;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.wp-block-details[open] summary:hover::after {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-details[open] summary::after,
.wp-block-details:not([open]) summary::after {
  display: block;
  width: fit-content;
  margin: 10px auto 0 auto;
}

/* パンくずリスト */
.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem;
  display: flex;
  gap: 10px;
}

.breadcrumbs li {
  display: inline-block;
  word-break: keep-all;
  white-space: nowrap;
}

.breadcrumbs li:last-child {
  display: inline-block;
  word-break: break-all;
  white-space: wrap;
}

.breadcrumbs li a {
  text-decoration: none;
  color: #0d875e;
}

.breadcrumbs li a:hover {
  text-decoration: underline;
}

.breadcrumbs li::after {
  content: '>';
  margin: 0 5px 0 10px;
  color: #555;
}

.breadcrumbs li:last-child::after {
  content: ''; /* 最後の矢印は非表示 */
}

@media (max-width: 782px) {
  .h3_top {
    margin-top: 2em !important;
  }

  .syllabus_other a::after {
    top: 75%;
  }
}

/***************************************************************
人文学林とは
***************************************************************/
p.cap {
  position: relative;
  padding-left: 40px !important;
}

p.cap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #f05119;
}

.organization_li {
  width: 13em;
  display: inline-block;
}

h3.cap02 {
  position: relative;
  padding-left: 20px !important;
}

h3.cap02::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: #005c26;
}

h3.cap02 {
  background-color: #f7f8f8;
  width: 4em;
  margin: 0;
  text-align: left;
}

/************** .about_tb { *********************/
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f7f8f8;
}

td,
th {
  border: 1px solid #353a3f;
  padding: 10px 8px;
  text-align: left;
}

table a {
  color: #005c26;
}

@media (max-width: 938px) {
  .wp-block-list li span {
    display: block;
  }
}

/***************************************************************
DHラボ
***************************************************************/
.google-map {
  width: 100%;
  max-width: 100%; /* コンテンツ幅に合わせる */
}

.google-map iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 16:9 の比率を維持 */
}

/***************************************************************
インターンシップチーム
***************************************************************/
/* 1列目のセル幅調整 */
figure.internship_tb table td:nth-child(1) {
  width: 0;
  white-space: nowrap;
  text-align: center;
}

/***************************************************************
新着情報一覧
***************************************************************/

#news h1 {
  font-size: clamp(2.8rem, 3.6vw, 9rem) !important;
}

#news .notice_date {
  width: 6.5em;
  flex-shrink: 0;
}

#news .wp-container-core-columns-is-layout-2 {
  --wp--preset--spacing--40: unset !important;
  gap: unset !important;
}

#news .taxonomy-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

#news .taxonomy-category a {
  margin-right: unset !important;
}

/* ページリンク全体のスタイル  */
.wp-block-query-pagination-numbers .page-numbers + .page-numbers {
  margin-left: 0.7em;
}

/* 個別のページ番号リンク */
.wp-block-query-pagination-numbers .page-numbers {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: clamp(0.875rem, 0.875rem + calc((1vw - 0.2rem) * 0.34), 16px);
  color: var(--wp--preset--color--custom-); /* リンクの色 */
  text-decoration: none;
  background-color: transparent;
  border: 3px solid #87d0ae;
  border-radius: 50%; /* 角を丸くする */
  font-weight: bold;
}

/* 現在のページ番号 */
.wp-block-query-pagination-numbers .page-numbers.current {
  background-color: #87d0ae; /* 背景色 */
  color: var(--wp--preset--color--custom-white); /* 文字色 */
  cursor: default;
}

/* ホバー時の効果 */
.wp-block-query-pagination-numbers .page-numbers:not(.current):hover {
  background-color: #87d0ae; /* ホバー時の背景色 */
  /* color: var(--wp--preset--color--custom-white); ホバー時の文字色 */
}

/* 前/次ボタンのスタイル */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next-arrow {
  font-size: 1.5em;
  font-weight: bold;
}

/* 前/次ボタンのスタイル */
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next-arrow:hover {
  color: #87d0ae; /* ホバー時の文字色 */
}

@media (max-width: 1120px) {
  .taxonomy-category {
    font-size: clamp(0.7rem, 2.8vw, 1.05rem) !important;
  }
}

/***************************************************************
個別投稿
***************************************************************/

#single_post :where(.wp-block-separator) {
  border-color: #0d875e;
  border-width: 1px 0 1px 0;
  border-style: solid;
  color: #0d875e;
}

@media (max-width: 782px) {
  #single_post .breadcrumbs {
    display: none;
  }
}

/***************************************************************
検索結果
***************************************************************/

#search_result :where(.wp-block-separator) {
  border-color: #0d875e;
  border-width: 1px 0 1px 0;
  border-style: solid;
  color: #0d875e;
}

#search_result .wp-block-search__button {
  background-color: #0d875e;
  color: #fff;
  font-weight: bold;
  word-break: keep-all;
}

/***************************************************************
お問い合わせ
***************************************************************/
.content_main {
  min-height: 65vh;
}
#Form1,
#Form2 {
  display: none;
}

.contact_form_container {
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.contact_form_container .user_type {
  font-size: var(--wp--preset--font-size--large);
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  max-width: 600px;
  justify-content: center;
  margin: 0 auto;
}

.user_type label {
  display: block;
  position: relative;
  padding-left: 0.8em;
  word-break: keep-all;
}

.user_type label input {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.contact_form {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.566), 1.25rem);
  line-height: 1.8;
}

.contact_form label {
  display: block;
}

.contact_form input,
.contact_form select {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  display: block;
  background-color: #f7f8f8;
  border: 1px solid #353a3f;
  border-radius: 2px;
}

.contact_form textarea {
  width: 100%;
  box-sizing: border-box;
  display: block;
  background-color: #f7f8f8;
  border: 1px solid #353a3f;
  border-radius: 2px;
}

.contact_form input.form_submit {
  width: 8em;
  height: 44px;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.566), 1.25rem);
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  background: transparent none;
  border-color: #f05119;
  border-width: 1px;
  border-style: solid;
  color: #f05119;
  cursor: pointer;
}

.contact_form input.form_submit:hover {
  background: #f05119;
  color: var(--wp--preset--color--custom-white);
}

/*必須ラベル*/
.cf7-req {
  font-size: 0.6em;
  padding: 0.2em 0.3em;
  background: #eb2a2a;
  color: #ffffff;
  margin-left: 1em;
  margin-top: -0.2em;
  display: inline-block;
}

.contact_note,
.contact_link {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.566), 1rem);
}

.contact_form .wpcf7-acceptance {
  display: block;
  width: 100%;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

.contact_form .wpcf7-acceptance label {
  display: flex;
}

.contact_form .wpcf7-acceptance .wpcf7-list-item-label {
  word-break: keep-all;
  white-space: nowrap;
  align-content: center;
  margin-left: 1em;
}

.contact_form .wpcf7-acceptance input {
  width: auto;
}

.wpcf7-not-valid-tip {
  box-sizing: border-box;
  max-width: 600px;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 782px) {
  .contact_form_container .user_type {
    gap: 1.2em;
    justify-content: flex-start;
  }
}

/* 送信後 */

.wpcf7-form.sent .cf7-a,
.wpcf7-form.sent p {
  display: none;
}

.wpcf7-response-output {
  max-width: 600px;
  margin-right: auto !important;
  margin-left: auto !important;
}

.wpcf7-spinner {
  display: none;
}

/***************************************************************
フッター
***************************************************************/
footer {
  margin-top: 0;
  padding-top: 0;
}

.footer_h2_link a {
  text-decoration: none;
}

.footer_h2_link a:hover {
  text-decoration: underline;
}

@media (min-width: 782px) {
  /* footer情報PC版で非表示 */
  .mobile_footer_info {
    display: none;
  }

  .footer_search {
    display: none;
  }
}


.newline ul li a {
  white-space: unset;
  line-height: 1.1;
}

/* リストのメニューを改行 */
/* .newline ul li a span {
  white-space: unset;
} */

.footer_menu_list {
  display: none; /* 初期状態で非表示 */
}

@media (max-width: 782px) {
  body {
    padding-bottom: 90px; /* フッターの高さに合わせる */
  }

  .mobile_footer_info {
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
  }

  footer.wp-block-template-part {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    height: 90px;
  }

  .mobile_footer_menu {
    background-color: #fff !important;
    color: #383335 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer_logo,
  .footer-line,
  .footer_map_policy,
  .social_icon,
  .footer_copyright {
    display: none;
  }

  .footer_menu_clms {
    display: flex !important;
    flex-wrap: nowrap !important; /* 折り返しを無効化 */
    justify-content: space-between !important; /* 子要素を均等配置 */
    text-align: center;
    margin-top: 0 !important;
  }

  .footer_menu_clms > .footer_one_clm {
    width: 22%;
    /* margin: 0 1% ; */
  }

  .footer_one_clm {
    padding-top: 0 !important;
  }

  .wp-container-core-columns-is-layout-2 {
    /* --wp--preset--spacing--40: 3%; */
    gap: 2em var(--wp--preset--spacing--40);
  }

  /* サブメニューの幅 */
  .wp-block-group .footer_menu_list {
    width: 300px;
    padding-left: 20px;
    padding-top: 40px;
  }

  .footer_h2 {
    font-size: clamp(0.7rem, 2.2vw, 2rem) !important;
  }

  .footer_menu_list {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 100%;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: -1;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    transition: none;
  }

  .footer_menu_list.open {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .footer_menu_list.animate {
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  /* ヘッダーの語学非表示 */
  .trp-block-container-header {
    display: none !important;
  }
  /* ヘッダーの語学フッター */
  .trp-ls-shortcode-current-language,
  .trp-ls-shortcode-language {
    width: 85% !important;
  }
  .trp-language-switcher .trp-ls-shortcode-language {
    /* display:inline-block; */
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    z-index: 1;
    max-height: 250px;
    overflow-y: auto;
    left: 0;
    top: 0;
    min-height: auto;
  }

  /* 検索設定 */
  .search_form {
    position: fixed;
    bottom: 90px; /* フッターの直上に配置 */
    left: 0;
    width: 95%; /* フッター幅に合わせる */
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 1rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  }

  .search_form.active {
    opacity: 1;
    visibility: visible;
  }

  .toggle_search {
    color: #555a60 !important;
    text-decoration: none;
  }

  .search_engine {
    top: -2% !important;
    right: 0;
    width: 33.57rem !important;
  }
}

/* 「閉じる」ボタン設定 */
@media (min-width: 782px) {
  button.close-submenu {
    display: none;
  }
}

.close-submenu {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #383335;
  font-size: 16px;
  cursor: pointer;
  z-index: 1100;
}

.cs02 {
  position: absolute;
  top: -70px !important;
  right: -6px !important;
  width: 40px;
  height: 40px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cs02 img {
  max-width: 100%;
  max-height: 100%;
}

/***************************************************************
フッターSP版
***************************************************************/
@media (max-width: 782px) {
  .pc_ver {
    display: none;
  }
}

@media (min-width: 782px) {
  .sp_ver {
    display: none;
  }
}

.f_menu {
  position: relative;
  padding-top: 40px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/h_menu.png')
    no-repeat center top;
  background-size: clamp(35px, 10%, 80px);
}

.f_organization {
  position: relative;
  padding-top: 40px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/h_organization.png')
    no-repeat center top;
  background-size: clamp(35px, 10%, 80px);
}

.f_contact {
  position: relative;
  padding-top: 40px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/h_contact.png')
    no-repeat center top;
  background-size: clamp(35px, 10%, 80px);
  overflow: visible;
}

.f_search {
  position: relative;
  background-size: clamp(35px, 10%, 80px);
}

/* お問合せ調整 */
.contact_link {
  display: block;
  margin: 0 auto;
  text-align: center;
  width: fit-content;
}

ul.menu_nav {
  padding-top: 5px !important;
}

/* メニューのアイコン */
.menu_nav .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.menu_nav .wp-block-navigation-item__content::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 20px;
  background-image: url(https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/02/right_triangle.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
}

.menu_nav li:hover {
  color: #005c26;
}

.menu_nav li:hover .wp-block-navigation-item__content::before {
  text-decoration: none !important;
}

.gsoh .wp-block-navigation-item__label {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

.f_lang {
  width: 4.5em;
}

/* footer_menu_list02「組織」の表示 */
.footer_menu_list02 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 24rem;
  height: auto;
  background-color: #fff;
  z-index: -1;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem 0.8rem;
}

.footer_menu_list02.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 1000;
}

/* オーバーレイのスタイル */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* bodyがオーバーレイアクティブの時のスタイル */
body.overlay-active {
  overflow: hidden; /* オーバーレイが表示されている間、スクロールを防止 */
}

/* クリック時にラインが表示されないようにする */
a.toggle_search {
  outline: none;
}

a.toggle_search:focus {
  outline: none;
}

/* 領域全体を囲むスタイル */
.team_m {
  border: 1px solid #353a3f;
  padding: 0.5rem;
  position: relative;
}

.custom-navigation-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.custom-navigation-menu ul li a {
  padding-top: 55px;
  text-decoration: none;
}

.custom-navigation-menu ul li a:hover {
  color: #005c26 !important;
}

.category::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/02/square.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.cat_edu {
  text-align: left !important;
  background-color: #fff;
  padding: 0 0.5rem;
  position: absolute;
  left: 20%; /* 親要素の中央に配置 */
  transform: translate(-43%, -80%);
  margin-top: 0;
}

.cat_res {
  text-align: left !important;
  background-color: #fff;
  padding: 0 0.5rem;
  position: absolute;
  /* top: 50%;  */
  left: 20%; /* 親要素の中央に配置 */
  transform: translate(-58%, -80%);
}

.m_humanities_basics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/humanities_basics.png')
    no-repeat center;
  background-size: contain;
}

.m_internship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/internship.png')
    no-repeat center;
  background-size: contain;
}

.m_digital_humanities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/digital_humanities.png')
    no-repeat center;
  background-size: contain;
}

.m_international_cooperative_education_promotion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/international_cooperative_education_promotion.png')
    no-repeat center;
  background-size: contain;
}

.m_current_students_and_alumni::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/current_students_and_alumni.png')
    no-repeat center;
  background-size: contain;
}

.m_promotion_of_fusion_education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/promotion_of_fusion_education.png')
    no-repeat center;
  background-size: contain;
}

.m_degree::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/degree.png')
    no-repeat center;
  background-size: contain;
}

.m_digital_academia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/digital_academia.png')
    no-repeat center;
  background-size: contain;
}

.m_academic_promotion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/academic_promotion.png')
    no-repeat center;
  background-size: contain;
}

.m_editor_the_journal_of_humanities_and_sciences::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/editor_the_journal_of_humanities_and_sciences.png')
    no-repeat center;
  background-size: contain;
}

.m_bulletin_editor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/bulletin_editor.png')
    no-repeat center;
  background-size: contain;
}

.m_creation_of_society_through_education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/creation_of_society_through_education.png')
    no-repeat center;
  background-size: contain;
}

.m_humanities_basics:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_humanities_basics.png')
    no-repeat center;
  background-size: contain;
}

.m_internship:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_internship.png')
    no-repeat center;
  background-size: contain;
}

.m_digital_humanities:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_digital_humanities.png')
    no-repeat center;
  background-size: contain;
}

.m_international_cooperative_education_promotion:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_international_cooperative_education_promotion.png')
    no-repeat center;
  background-size: contain;
}

.m_current_students_and_alumni:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_current_students_and_alumni.png')
    no-repeat center;
  background-size: contain;
}

.m_promotion_of_fusion_education:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_promotion_of_fusion_education.png')
    no-repeat center;
  background-size: contain;
}

.m_degree:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_degree.png')
    no-repeat center;
  background-size: contain;
}

.m_digital_academia:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_digital_academia.png')
    no-repeat center;
  background-size: contain;
}

.m_academic_promotion:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_academic_promotion.png')
    no-repeat center;
  background-size: contain;
}

.m_editor_the_journal_of_humanities_and_sciences:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_editor_the_journal_of_humanities_and_sciences.png')
    no-repeat center;
  background-size: contain;
}

.m_bulletin_editor:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_bulletin_editor.png')
    no-repeat center;
  background-size: contain;
}

.m_creation_of_society_through_education:hover::before {
  background: url('https://jinbungakurin.hmt.osaka-u.ac.jp/jinbun/wp-content/uploads/2025/01/hov_creation_of_society_through_education.png')
    no-repeat center;
  background-size: contain;
}

.m_humanities_basics a,
.m_internship a,
.m_digital_humanities a,
.m_international_cooperative_education_promotion a,
.m_current_students_and_alumni a,
.m_promotion_of_fusion_education a,
.m_degree a,
.m_digital_academia a,
.m_academic_promotion a,
.m_editor_the_journal_of_humanities_and_sciences a,
.m_bulletin_editor a,
.m_creation_of_society_through_education a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

/* display: flex を無効にする */
.custom-navigation-menu .custom-nav-item {
  margin-bottom: 8px;
  display: block !important;
}

.custom-nav-item .wp-block-navigation-item__label {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ページ先頭に戻るボタン */
@media (min-width: 782px) {
  html {
    scroll-behavior: smooth;
  }
  .pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 16px;
    bottom: 80px;
    background: #fff;
    border: solid 3px #005c26;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 32%);
  }

  .pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #005c26;
    border-right: 3px solid #005c26;
    transform: translateY(20%) rotate(-45deg);
  }
}
