@import url("http://fonts.googleapis.com/earlyaccess/notosansjp.css");
@import url("https://fonts.googleapis.com/css?family=Pacifico");

/* =========================================================
   RESET
========================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  font: inherit;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロール禁止 */
  width: 100%;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: #0070c0;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
a:hover, .active {
  text-decoration: underline;
}
a:active, a:focus, input:active, input:focus {
  outline: 0;
}


/* =========================================================
   共通
========================================================= */
body {
  font-family: "Noto Sans JP", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
h1, h2, h3, h4 {
  font-weight: bold;
  margin-bottom: 0.5em;
}
.inner-wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 80px 0;
  word-break: break-all;
}

/* =========================================================
   ヘッダー
========================================================= */
.header-block {
  display: block;
  height: 80px;
  line-height: 80px;
}
.header-block a {
  color: #000;
  text-decoration: none;
}
.header-block .inner-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.header__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin: 10px 0;
}
.header__title__img {
  height: 100%;
  width: auto;
}
.header-logo img {
  max-height: 50px;
}
.header-block .header__navi {
  display: flex;
  height: 100%;
  position: relative;
  top: -20px;
}
.header-block .header__navi li {
  display: flex;
  width: 110px;
}
.header-block .header__navi li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 1em;
    text-align: center;
    line-height: 1.4;
    font-size: 12px;
}
.header-block .header__navi li.login a {
  background: #4885b5;
  color: #fff;
}
.header-block .header__navi li.student a {
  background: #696969;
  color: #fff;
}
.header-block .header__navi li a span {
    display: block;
    margin-top: 0.3em;
}
/* ナビ */
.header-navi-block {
  background: #376ea4;
}
.header-navi-block ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.75em 0;
}

/* パンくず */
.pankuzu-block .inner-wrap {
  padding: 20px 0;
}
.pankuzu__list {
  display: flex;
  font-size: 0.75rem;
}
.pankuzu__list li:after {
  content: ">";
  padding: 0 8px;
}
.pankuzu__list li a {
  color: #999;
}

/* 検索ボックス */
.mt-site-search-form__query {
  width: 204px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  outline: 1px solid #000;
}
.mt-site-search-form__button {
  position: relative;
  visibility: hidden;
}
.mt-site-search-form__button:after {
  content: "";
  background: url('images/searchicon.png') no-repeat center/15px 15px;
  position: absolute;
  right: 15px;
  top: -4.7px;
  width: 32px;
  height: 32px;
  background-color: #4885b5;
  outline: 1px solid #4885b5;
  cursor: pointer;
  visibility: visible;
}

/* =========================================================
   メイン画像
========================================================= */
#mainImg {
  width: 100%;
  overflow: hidden;
}
#mainImg img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   セクション#sec01,#sec03,#sec04
========================================================= */
#sec01,#sec03,#sec04 {
  margin: 80px 0;
}

#sec01 h2,#sec04 h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 20px 0;
  padding-bottom: 8px;
}
.innerS {
  max-width: 65%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================================
   パララックス
========================================================= */
.parallax {
  position: relative;
  height: 60vh; /* セクションの高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);

  background-size: cover;       /* 画面いっぱいに拡大縮小 */
  background-position: center;  /* 常に中央に配置 */
  background-repeat: no-repeat; /* 繰り返しなし */
  background-attachment: fixed; /* パララックス効果 */
}

.parallax1 {
  background-image: url("images/subImg1.jpg");
}

.parallax2 {
  background-image: url("images/subImg2.jpg");
}

/* スマホ・タブレットでは fixed を外す */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
    height: 40vh; /* 少し低めに調整 */
    font-size: 2rem;
  }
}


/* =========================================================
   大学検索機能
========================================================= */
:root {
  --primary-color: #4885b5;
  --gradient-start: #66a6ff;
  --gradient-mid: #4885b5;
  --gradient-end: #3a72b7;
}

/* 検索セクション全体 */
#sec00 {
  text-align: center;
  padding: 30px 20px;
  background: repeating-linear-gradient(
    -45deg,
    #eaf5ff,
    #eaf5ff 3px,
    #d0e8ff 3px,
    #d0e8ff 7px
  );
  border-radius: 20px;
  max-width: 850px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* タイトル */
.search-title {
  font-size: 35px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding: 7px;
  margin-bottom: 10px;
  border-radius: 12px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.3s;
}

.search-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 70%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  background-size: 200% 100%;
  animation: slideGradient 3s linear infinite;
}

@keyframes slideGradient {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.search-title:hover {
  transform: translateY(-3px) scale(1.02);
}

/* サブタイトル */
.search-subtitle {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 検索ボックス */
.search-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: flex-end;
  padding: 15px 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* フォームグループ */
.form-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.form-group select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #4885b5; /* 濃いブルーで枠をはっきり */
  font-size: 15px;
  background: linear-gradient(145deg, #ffffff, #f0f4ff); /* 薄いグラデで浮き上がり */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* 少し浮き上がる影 */
  transition: all 0.3s;
  cursor: pointer;
}

.form-group select:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.2), 0 0 6px rgba(72,133,181,0.15) inset;
}

.form-group select:focus {
  outline: none;
  border: 2px solid #3a72b7; /* フォーカス時に濃く */
  box-shadow: 0 0 10px rgba(72,133,181,0.5);
}

/* 検索ボタン */
.search-btn-group button {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3a72b7, #4885b5, #66a6ff); /* 濃いブルー系で目立たせる */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25); /* 少し濃い影で浮き上がる */
  transition: all 0.3s;
}

.search-btn-group button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), 0 0 12px rgba(72,133,181,0.3) inset;
}

/* =========================================================
   動画ギャラリー
========================================================= */
.video-hint {
  text-align: center;
  background: 
    repeating-linear-gradient(
      -45deg,                  /* ストライプの角度（斜め） */
      rgba(255,255,255,0.08), /* 薄い白の線 */
      rgba(255,255,255,0.08) 3px,
      transparent 3px,
      transparent 6px
    ),
    linear-gradient(135deg, #667eea, #764ba2); /* 元のグラデーション */
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin:0 auto 25px;
  display: block;
  transition: transform 0.3s;
}

.video-hint:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* 下部2カラム */
.flex-container {
  display: flex;
  gap: 20px;
}

/* 左カラム：25% */
.left-column {
  width: 25%;
}

/* 右カラム：75%（縦スクロール） */
/* 右カラム：75%（縦スクロール） */
.right-column {
  width: 75%;
  padding-right: 10px;     /* スクロールバー分の余白 */
  max-height: 480px; /* 2件分の高さ (カード高さ200px + マージン等) */
  overflow-y: auto;  /* 内部スクロール */
  padding-right: 10px;
}

/* Chrome / Edge / Safari */
.right-column::-webkit-scrollbar {
  width: 10px;
}

.right-column::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.right-column::-webkit-scrollbar-thumb {
  background: #4a8ecf;
  border-radius: 8px;
}

.right-column::-webkit-scrollbar-thumb:hover {
  background: #3a72b7; /* 濃いブルーでホバー表現 */
}

.group-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 長いタイトルでも折り返し可能 */
  gap: 12px;
  margin: 20px 0 30px;
}

.group-selector .tab {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  background: #f9f9f9;
  transition: all 0.2s ease;
  white-space: normal; /* 長いタイトルは折り返し */
  line-height: 1.4;
  text-align: center;
  max-width: 220px; /* タイトルが極端に長くても幅制御 */
}

.group-selector .tab:hover {
  background: #eaf2fb;
  border-color: #3a72b7;
  color: #3a72b7;
}

.group-selector .tab.active {
  background: linear-gradient(135deg, #3a72b7, #4885b5, #66a6ff);
  color: #fff;
}

/* 動画ギャラリーリスト（縦並び） */
.video-gallery {
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 動画カード（縦型コンパクト） */
.video-card {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s;
  margin-bottom: 8px;
}

.video-card:hover {
  transform: translateY(-4px);
}

/* 動画ラッパーを relative にする */
.video-wrapper {
  position: relative;
  display: inline-block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}

.video-wrapper.playing .play-icon {
  opacity: 0;  /* 再生中は非表示 */
}
/* 動画サムネイル */
.video-wrapper video.thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ddd;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
  display: block;
}

/* ホバー時の演出 */
.video-wrapper:hover video.thumb {
  filter: brightness(0.8);
  transform: scale(1.02);
}


/* 情報エリア */
.video-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* タイトル */
.video-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #0077b6;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

/* 説明 */
.video-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.video-content {
  position: relative;
  background: #000;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}
#modalVideo {
  max-width: 100%;
  max-height: 80vh;
}
.close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  padding: 5px 10px;
  cursor: pointer;
}

/* =========================================================
   スマホ対応（レスポンシブ対応）
========================================================= */
@media screen and (max-width: 768px) {

  /* 全体余白調整 */
  .flex-container {
    flex-direction: column; /* 横並び → 縦並び */
    gap: 10px;
  }

  /* 左カラム（ボタンエリア） */
  .left-column {
    width: 100%;
    margin-bottom: 15px;
  }

  .group-selector {
    flex-direction: column; /* ボタン縦並び */
    align-items: stretch;
    gap: 8px;
    margin: 10px 0 20px;
  }

  .group-selector .tab {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
  }

  /* 右カラム（動画リスト） */
  .right-column {
    width: 100%;
    max-height: none; /* スクロール解除 */
    overflow-y: visible;
    padding: 0;
  }

  /* 動画カード */
  .video-card {
    flex-direction: column; /* 縦並び */
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .video-wrapper video.thumb {
    width: 100%;
    height: auto;
    max-width: 480px;
  }

  /* タイトル・説明 */
  .video-title {
    font-size: 1.1rem;
  }

  .video-desc {
    font-size: 0.95rem;
  }

  /* モーダル（動画再生） */
  .video-content {
    width: 95%;
    max-width: none;
  }

  #modalVideo {
    width: 100%;
    height: auto;
  }

  .video-hint {
    font-size: 0.9rem;
    padding: 10px;
  }
}


/* =========================================================
   ギャラリー モーダル（ホバー時の説明カード）
========================================================= */
#gallery-modal {
  position: absolute;
  background: rgba(255, 255, 255, 0.85); /* 半透明ガラス風 */
  backdrop-filter: blur(6px); /* 背景ぼかし（モダンブラウザ対応） */
  border-radius: 12px; /* 角丸 */
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* ふんわりシャドウ */
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; 
  opacity: 0;
  z-index: 1000;
  max-width: 350px; /* 写真より少し小さめに制限 */
}

#gallery-modal.active {
  opacity: 1;
  transform: translateY(-6px); /* ふわっと浮く感じ */
}

/* タイトル */
#gallery-modal h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: #333;
  font-weight: 600;
}

/* 場所 */
#gallery-modal p strong {
  color: #0077b6; /* JICAっぽいブルー系アクセント */
  font-weight: 600;
}

/* 説明文 */
#gallery-modal p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
}

/* ギャラリーの写真リスト */
#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 中央揃え */
  gap: 16px; /* 写真同士の間隔 */
  padding: 0;
  margin: 0;
  list-style: none;
}

#gallery li {
  display: inline-block;
  margin: 12px;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden; /* 画像の角丸を有効に */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 auto; /* サイズ固定 */
  width: 426px; /* 写真と同じ幅 */
}

#gallery li img {
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* ホバーしたときに拡大＋シャドウ */
#gallery li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

#gallery li:hover img {
  transform: scale(1.05);
}

/* =========================================================
   プロジェクト3カラム
========================================================= */
.inner{
	width: 65%;
	margin: 0 auto;
	padding-bottom: 80px;
}
.col3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px; /* カードの間隔 */
}

.col3 li {
  flex: 1; /* 均等に並べる */
  background: #fff;
  border-radius: 8px;
  overflow: hidden; /* 角丸に合わせる */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col3 li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* タイトル部分（大きな四角） */
.col3 .col3title {
  background: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0; /* 余計な余白消す */
}

.col3 .col3title a {
  color: #0070c0;
  text-decoration: none;
}

.col3 .col3title a:hover {
  text-decoration: underline;
}

/* 説明文 */
.col3 li p {
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  text-align: left;
}

/* 本文 */
.col3 li p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  margin: 0;
}


/* =========================================================
   フッター
========================================================= */
.footer-block {
    background-color: #cccccc;
    padding: 80px 0 80px;
}
.footer-block a {
    text-decoration: none;
    color: #000000;
}
.footer-block .inner-wrap {
    flex-direction: column;
}
.footer-block .inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0;
}
.footer-block .footer__title__img {
    width: auto;
    height: 100%;
}
.footer-block .footer__title {
    margin: 0 0 1rem 0;
}
.footer-block .footer__navi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-block .footer__navi li {
    width: auto;
    text-align: center;
    height: 28px;
    padding: 0 12px;
    margin-bottom: 12px;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
}
.footer-block .footer__title {
    width: 360px;
    height: 60px;
    margin-right: 40px;
    display: flex;
    text-align: center;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer__search .inner-wrap {
    padding: 20px 20px 0 20px;
}
.copylight-block {
    padding: 40px 0;
}
.copylight-block p {
    text-align: center;
    font-size: 0.75rem;
}

/* ギャラリー */
#results {
  max-width: 950px;
  margin: 50px auto;
  text-align: center;
}

.result-title {
  font-size: 26px;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #ddd;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: translateY(-6px) rotate(-1.5deg) scale(1.04);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  border-color: var(--primary-color);
}


/* =========================================================
   レスポンシブ調整
========================================================= */
/* レスポンシブ */
@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
 .card{
  margin: 8px;
 } 
  .card-details {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: auto;
}
.card-footer,.group-selector {
    display: block;
}
.group-selector .tab {
  padding: 6px;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 130px;
  margin-bottom: 5px;
}
.desc{
  height: 9em;
}
  section h2 {
    font-size: 1.3rem;
  }
  .header-block .inner-wrap {
    flex-direction: column;
    height: auto;
  }
  .footer-block .inner-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .video-hint{
    margin: 1em 0;
  }
  .parallax {
    font-size: 1.5em;
    height: 250px;
    background-attachment: scroll; /* タブレット以下はfixedだと不自然 */
  } 
  .col3 {
    display: block; /* 横並びを解除 */
  }
  .col3 li {
    margin-top: 20px;
    width: 100%; /* スマホ幅にフィット */
  }
}
@media (max-aspect-ratio: 4/5) {
  .video-content {
    aspect-ratio: auto;
    max-width: 100%;
    max-height: 80vh;
  }
}
@media (min-aspect-ratio: 21/9) {
  .video-content {
    max-width: 98vw;
    max-height: 70vh;
  }
}
