@charset "UTF-8";
/* -------------------------
   ローディング画面
-------------------------- */
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  background: linear-gradient(120deg, rgba(0, 123, 148, 0.15), var(--green), rgba(0, 123, 148, 0.08));
  background-size: 200% 200%;
  animation: bgMove 6s ease-in-out infinite alternate;
  transition: opacity 1s ease, visibility 1s ease;
}
@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
#loading.loaded {
  opacity: 0;
  visibility: hidden;
}
.logo-anim {
  text-align: center;
  color: var(--green);
  letter-spacing: 0.1em;
  animation: logoIn 1.8s ease-out forwards;
}
.logo-anim img {
  width: 150px;
  height: 150px;
}
.logo-anim .line1 {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}
.logo-anim .line2 {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}
@keyframes logoIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
    letter-spacing: 0.3em;
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    letter-spacing: 0.1em;
  }
}
/* -------------------------
   Heroエリア
-------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slideshow img.active {
  opacity: 1;
}
.hero-text {
  position: absolute;
  bottom: 20%;
  left: 8%;
  /*  transform: translateX(-50%);*/
  color: #fff;
  font-size: clamp(4rem, 6vw, 5rem);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeText 1.2s ease-in-out forwards 2.0s;
  max-width: 90%;
  box-sizing: border-box;
  line-height: 1.2;
}
/* 縦方向アニメーション */
@keyframes fadeText {
  from {
    opacity: 0;
    transform: translateY(20%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* -------------------------
   メインコンテンツ表示
-------------------------- */
body.loaded main {
  opacity: 1;
  transition: opacity 1.2s ease;
}
/* -------------------------
   スクロール横はみ出し防止
-------------------------- */
html, body {
  overflow-x: hidden;
}
/* -------------------------
   共通
-------------------------- */
main section {
  padding: 4rem 4%;
}
.topsite-message-taitle {
  /*  text-align: center;
*/ padding-bottom: 1.6rem;
  font-size: 1.8rem;
  display: flex;
  font-weight: 500;
}
.topsite-message-taitle span {
  display: block;
  padding-right: 1.6rem;
}
#topsite h1 {
  display: flex;
  flex-direction: column;
}
#topsite h2 {
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  /*  text-align: center;
*/
}
#topsite h3 {
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  /*  text-align: center;
*/
}
.topsite-button {
  display: inline-flex; /* フレックスで中央寄せ */
  align-items: center; /* 縦方向中央 */
  justify-content: center; /* 横方向中央 */
  height: 3rem; /* 高さを決めて左右を半円に */
  margin-top: 3rem;
  padding: 0 5rem; /* 左右の余白 */
  background-color: rgba(0, 123, 148, 1);
  color: #fff; /* 文字色を白 */
  text-decoration: none; /* 下線を消す */
  font-size: 1.6rem;
  font-weight: 400;
  border-radius: 9999px; /* 両端を丸く（ピル型） */
  transition: background .2s ease, transform .2s ease;
}
.topsite-button:hover {
  background-color: rgba(0, 123, 148, 0.85); /* 少し淡く */
  transform: translateX(2px); /* ふわっと */
}
.topsite-button:active {
  transform: translateX(0);
}
.topsite-button:focus {
  outline: 3px solid rgba(0, 123, 148, 0.4);
  outline-offset: 2px;
}
/* 外部リンク矢印 */
/* サイズ、色、太さを制御するためのCSS */
.external-arrow, .internal-arrow {
  flex-shrink: 0;
  /* 矢印全体のサイズを設定 */
  width: 1rem;
  height: 1rem;
  /* デフォルトの色、太さ、線端のスタイルを設定 */
  stroke: var(--green); /* 色の変更 */
  stroke-width: 20; /* 線の太さの変更 */
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.external-arrow.wihte {
  stroke: #fff; /* 色の変更 */
}
/* 矢じりの太さの微調整（オプション） */
.external-arrow .arrowhead {
  /* 矢じり部分の線の太さを、矢印の幹とは別に調整することも可能 */
  /* stroke-width: 6; */
}
/* ホバー時の色の変更（例） */
.external-arrow:hover {
  stroke: var(--green95);
}
/* 内部リンク矢印 */
/* サイズ、色、太さを制御するためのCSS */
/* SVG全体のサイズと、線のデフォルトスタイルを設定 */
.internal-arrow.white {
  stroke: #fff; /* 色の変更 */
}
.topsite-right-item p {
  padding: 2rem 0 0;
}
/* -------------------------
   トピックス
-------------------------- */
.topics-item {
  overflow-x: hidden;
}
/* --- メタ情報 --- */
.topic-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: #333;
}
.topic-label {
  display: inline-block;
  background-color: #eef6f8;
  color: #007b94;
  padding: 0.2em 0.6em;
  border-radius: 0.5em;
  font-weight: 600;
}
.topic-meta time {
  color: #666;
  font-size: 0.85em;
}
/* --- 共通 --- */
.topics-container li {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: block;
  position: relative;
  margin: 0.5em 0;
}
/* li全体をリンク化 */
.topics-item > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}
/* 画像 */
.topics-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* --- テキスト共通 --- */
.topics-text {
  position: relative;
  padding: 1rem; /* 上下左右余白確保 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  color: #333;
  height: auto;
}
/* topic-meta と Pの左右余白確保 */
.topics-text .topic-meta, .topics-text p {
  margin: 0;
  box-sizing: border-box;
}
/* Pタグ省略表示 */
.topics-text p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2; /* モバイルもPCも2行で省略 */
  line-height: 1.4em;
  max-height: calc(1.4em * 2);
}
/* --- 背景画像タイプ（オーバーレイ） --- */
.topics-item.topics-bg-item {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.topics-item.topics-bg-item .topics-image {
  display: none;
}
/* 黒帯をli全体にかぶせる */
.topics-item.topics-bg-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1; /* テキストより下 */
}
/* オーバーレイ記事のテキスト */
.topics-item.topics-bg-item .topics-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem; /* 上下左右余白 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2; /* 黒帯より上 */
  color: #fff;
}
/* topics-bg-item の画像を暗くする */
.topics-bg-item .topics-image img {
  filter: brightness(70%);
}
/* topic-metaとP文字色を白に */
.topics-item.topics-bg-item .topic-meta, .topics-item.topics-bg-item .topic-meta time, .topics-item.topics-bg-item .topics-text p {
  color: #fff;
}
.linkfortopics {
  text-align: center;
  padding-bottom: 2rem;
}
/* -------------------------
   Topics 自動横スライドショー
-------------------------- */
.topsite-topics-container {
  position: relative;
  width: 100%; /* ← 全体は1画面幅に固定 */
  overflow: hidden; /* ← スライドがはみ出さないように */
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(233, 231, 226, .3);
}
.topsite-topics-left-item h2 {
  text-align: center;
}
.topics-container li {
  aspect-ratio: 5 / 4;
}
.topics-image {
  height: 66.66%;
}
.topics-text {
  height: 33.33%;
}
.topics-item.topics-bg-item .topics-text {
  height: 33.33%;
}
.topics-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50vw; /* モバイルファースト */
  max-height: 360px;
}
.topics-container {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%; /* ← 横幅を100%に固定 */
}
.topics-item {
  flex: 0 0 100%; /* ← 各スライドを1画面分 */
  position: relative;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: 8px;
}
/* アクティブスライド */
.topics-item.active {
  opacity: 1;
  transform: translateX(0);
}
/* 背景画像表示 */
.topics-item.topics-bg-item .topics-image {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* インジケーター wrapper */
.topics-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
/* インジケータードット */
.topics-indicators span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s;
}
.topics-indicators span.active {
  background: var(--green);
}
.topsite-admission-item li {
  border-bottom: var(--gray) 1px solid;
  padding: 2rem 0;
}
.topsite-admission-item li:first-child {
  border-top: var(--gray) 1px solid;
}
.topsite-admission-left-item h2 {
  padding-bottom: 2rem;
}
.ad-link {
  border-top: var(--gray) .8px solid;
}
.ad-link a {
  width: 100%;
  height: 100%;
}
.ad-link-flex {
  padding: 3rem 0;
}
.ad-link-flex-date {
  display: flex;
  column-gap: 1rem;
}
.ad-link-flex-date p {
  width: 7rem;
  text-align: center;
  color: #fff;
  background: var(--green);
}
.ad-link-flex-date time {
  color: var(--green);
  font-weight: 500;
  flex: 1;
}
.ad-link-flex-content {
  padding: 1rem 0 0 7.5rem;
}
/* 共通設定（スマホ・タブレット：省略なし） */
.ad-link-flex-content-p1 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-decoration-line: underline;
}
.ad-link-flex-content-p2 {
  color: var(--green);
  font-weight: 400;
  margin-top: 1rem;
}
.ad-scheduleP :last-child {
  padding-left: 1em;
  text-decoration: none;
}
.ad-link-pref-span {
  display: inline-block;
}
.topsite-notes-container {
  padding: 2rem 0 0;
}
.topsite-dp {
  padding: 4rem 0;
  background-color: rgba(233, 231, 226, .3);
}
.topsite-dp-container {
  padding: 0 4%;
}
.topsite-dp-container h2 {
  text-align: center;
  padding-bottom: 1rem;
}
.topsite-dp-container p {
  text-align: justify;
}
.topsite-dp-course-item {
  flex: 1;
}
.topsite-dp-course-container h3 {
  padding: 1rem 4%;
}
.topsite-dp-ec h3 {
  text-align: right;
}
.topsite-dp-course-container {
  padding: 0 0 0;
}
.topsite-dp-course-container img {
  width: 100%;
}
.topsite-dp-ic-img {
  padding-right: 6rem;
}
.topsite-dp-ec-img {
  padding-left: 6rem;
}
/* -------------------------
   topsite-dp-course-item 画像トリミング（5:4）
-------------------------- */
.topsite-dp-course-item picture {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4; /* ← アスペクト比を固定 */
  overflow: hidden;
}
.topsite-dp-course-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 画像をトリミングして埋める */
  display: block;
}
.topsite-nsdgs-container {
  background: rgba(233, 231, 226, .3);
  border-radius: 8px;
}
.topsite-nsdgs-text {
  padding: 1.6rem;
  display: flex;
  align-items: center;
}
.nsdgs-item1 h2 {
  text-align: center;
  padding-top: 1.6rem;
}
.topsite-nsdgs-text div {
  width: 100%;
}
.topsite-nsdgs-text div:first-child {
  flex: 1;
}
.topsite-nsdgs-text div:last-child {
  text-align: center;
  flex-basis: 2rem;
}
@media (min-width: 768px) {
  .hero {
    height: 75vh;
  }
  .hero-text {
    left: 10%;
    bottom: 12%;
    transform: none;
    text-align: left;
    font-size: clamp(3rem, 5vw, 6.5rem);
  }
  .topsite-message-taitle {
    font-size: 1.8rem;
    text-align: left;
    padding-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
  }
  #topsite h2 {
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
  }
  .topsite-message-container {
    display: flex;
    width: 100%;
  }
  .topics-section {
    height: 40vw;
  }
  .topics-image {
    height: 80%;
  }
  .topics-text {
    height: 20%;
  }
  .topics-item.topics-bg-item .topics-text {
    height: 20%;
  }
  .topsite-topics-container {
    padding: 8rem;
    border-radius: 8px;
    background-color: rgba(233, 231, 226, .3);
  }
  .topics-container li {
    aspect-ratio: 4 / 3;
  }
  .topsite-left-item {
    width: 100%;
    flex: 3;
    z-index: 2;
  }
  .topsite-right-item {
    padding-left: 1.6rem;
    width: 100%;
    flex: 4;
    border-left: var(--gray) 1px solid;
    z-index: 3;
  }
  .topsite-right-item p {
    padding: 2rem 0 0;
  }
  .topsite-topics-left-item h2 {
    text-align: center;
    font-size: 2rem;
  }
  .topsite-dp-course-container {
    display: flex;
    padding: 0 4%;
    gap: 3rem;
  }
  .topsite-dp-ic-img {
    padding-right: 0;
  }
  .topsite-dp-ec-img {
    padding-left: 0;
  }
  .topsite-nsdgs-container {
    padding: 1.6rem;
    display: flex;
    align-items: center;
    background: var(--gray2);
    border-radius: 8px;
  }
  .nsdgs-item1 h2 {
    text-align: center;
    padding-top: 0;
  }
  .topsite-nsdgs-container, .nsdgs-item1, .nsdgs-item2 {
    width: 100%;
  }
  .nsdgs-item1 {
    flex: 4;
  }
  .nsdgs-item2 {
    flex: 6;
  }
}
@media (min-width: 1024px) {
  main {
    padding-top: 3rem;
  }
  main section {
    padding: 5rem 4%;
  }
  .hero {
    height: 76vh;
  }
  .hero-text {
    left: 12%;
    bottom: 15%;
    font-size: clamp(4rem, 4vw, 8rem);
  }
  .topsite-message-taitle {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    flex-direction: row;
  }
  #topsite h2 {
    font-size: 2.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
  }
  .topsite-message-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
  }
  .topics-container li {
    aspect-ratio: 4 / 4;
  }
  .topsite-left-item {
    width: 100%;
    flex: 4;
  }
  .topsite-right-item {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
    width: 100%;
    flex: 2;
    border-left: var(--gray) 1px solid;
  }
  .topics-section {
    height: 30vw;
  }
  .topics-image {
    height: 80%;
  }
  .topics-text {
    height: 20%;
  }
  .topics-item.topics-bg-item .topics-text {
    height: 20%;
  }
  /*   スライド残像対策（左に残らない） */
  .topics-item:not(.active) {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
  }
  .topsite-topics-container {
    display: flex;
    column-gap: 8rem;
    align-items: center;
  }
  .topsite-topics-left-item {
    padding-top: 0;
    width: 100%;
    flex: 1;
  }
  .topsite-topics-right-item {
    width: 100%;
    flex: 1;
  }
  .topics-admission-container {
    display: flex;
    align-items: flex-start;
  }
  .topsite-admission-left-item {
    width: 100%;
    flex: 1;
  }
  .topsite-admission-left-item h2 {
    padding-bottom: 0;
  }
  .topsite-admission-right-item {
    width: 100%;
    flex: 1;
    border-left: var(--gray) 1px solid;
    padding-left: 4.5rem;
  }
  .ad-link-flex {
    display: flex;
    align-items: flex-start;
    column-gap: 2rem;
  }
  /* 左側：横並び固定幅 */
  .ad-link-flex-date {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    flex-shrink: 0; /* ← つぶれ防止 */
    width: 24rem; /* ← デザインに応じて調整（例：24〜30rem程度） */
  }
  .ad-link-flex-date p {
    width: 12rem; /* 「イベント」部分の幅 */
    text-align: center;
    color: #fff;
    background: var(--green);
    flex-shrink: 0;
  }
  .ad-link-flex-date time {
    color: var(--green);
    font-weight: 500;
    flex: 1;
    white-space: nowrap; /* 日付の折り返し防止 */
  }
  /* 右側：本文部分 */
  .ad-link-flex-content {
    padding: 0;
    flex: 1;
    min-width: 0; /* ← これがないと省略されません */
  }
  /* 本文テキスト：2行で省略 */
  .ad-link-flex-content-p1 {
    padding-left: 2rem;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-decoration-line: underline;
    border-left: solid var(--gray) 1px;
    /* ▼ 2行で省略（…）▼ */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: calc(1.6em * 2); /* 2行分でカット */
  }
  .topsite-dp-course-container {
    display: flex;
    padding: 0 4%;
    gap: 0;
  }
  .topsite-dp-container p {
    padding: 1rem 20rem;
  }
  .topsite-dp-course-item picture {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* ← アスペクト比を固定 */
    overflow: hidden;
  }
  .topsite-dp-container.topsite-dp-course-link {
    text-align: center;
  }
}