@charset "utf-8";
/* CSS Document */

/* =======================================
各募集要項のカード
======================================== */
.row {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}
.card {
	position: relative;
	border: 3px solid #007acc;
	padding: 1.2rem;
	box-sizing: border-box;
	height: 100%;
}
.card.yl{
	background: #ffffe8;
}
.card.pk{
	background: #ffebef;
}
.card.gr{
	background: #eeffee;
}
.card.bl{
	background: #d6f1ff;
}

.card::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 0;
	border-left: 25px solid transparent;
	border-bottom: 25px solid #007acc;
}
.card-link {
	flex: 1;
	max-width: calc(50% - 0.75rem);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: block;
}
.card-link:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/*グレーアウトにする　無効化にする*/
.card.disabled,
.card-link.disabled {
	pointer-events: none;          /* マウス操作完全無効化 */
	opacity: 0.5;                  /* グレーアウト */
	filter: grayscale(60%); /* 100%より自然なグレートーンに */
	opacity: 0.9;           /* 薄すぎる場合は透明度も調整 */
	cursor: default;               /* 通常カーソル */
	transform: none !important;    /* 浮き上がり防止 */
	box-shadow: none !important;   /* 影を消す */
	transition: none !important;   /* アニメーションも無効に */
}
.card.disabled::after {
	display: none;
}


/* =======================================
各募集要項のカード
======================================== */
.title {
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 0.4rem;
}
.subtext {
	font-size: 0.9rem;
	color: #333;
	margin-top: 0.3rem;
}
.badges {
	margin-top: 0.3rem;
}
.badge-new {
	display: inline-block;
	font-weight: bold;
	font-size: 0.8rem;
	padding: 0.2em 0.6em;
	margin-right: 0.3em;
	margin-left: 0.3em;
	border-radius: 50px;
	color: #fff;
	background: #D907B8;
}
.badge-scholarship {
	display: inline-block;
	font-weight: bold;
	font-size: 0.8rem;
	padding: 0.2em 0.6em;
	margin-right: 0.3em;
	margin-left: 0.3em;
	border-radius: 50px;
	color: #fff;
	background: #0099cc;
}
.tag {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.9rem;
	font-weight: bold;
	padding: 0.2em 0.7em;
	border-radius: 4px;
	color: white;
}
.tag.sengan {
	background-color: #f8c200;
	color: #005bac;
}
.tag.heigan {
	background-color: #cce8ff;
	color: #005bac;
}


@media (max-width: 600px) {
	.row {
		flex-direction: column;
	}
	.card-link {
		max-width: 100%;
	}
}


/* =======================================
資料請求等
======================================== */
.card2-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}
.card2 {
	background-color: #E4F2F8;
	border: 4px solid #007acc;
	border-radius: 8px;
	text-align: center;
	padding: 1rem 1rem;
	text-decoration: none;
	color: #000;
	transition: border-color 0.3s ease;
	position: relative;
}

.card2:hover {
	border-color: #F59600;
}

.card2 img {
	width: 70px;
	height: 70px;
	transition: transform 0.3s ease;
}

.card2:hover img {
	transform: scale(0.8);
}

.card2-title {
	font-weight: bold;
	margin-top: 1rem;
	font-size: 1.1rem;
}

.card2-desc {
	font-size: 0.7rem;
	margin-top: 0.5rem;
}

/*資料請求等　グレーアウト*/
.card2.disabled {
	pointer-events: none;        /* クリック無効化 */
	opacity: 0.5;                /* グレーアウト */
	filter: grayscale(100%);     /* 白黒にする（任意） */
	transition: opacity 0.3s ease;
}


/* =======================================
幅いっぱいのボタン
======================================== */
.fancy-button {
    display: flex;
    flex-direction: column; /* 縦方向に要素を並べる */
    justify-content: center; /* 縦の中央揃え */
    align-items: center; /* 横の中央揃え */
    width: 100%;
    height: 150px; /* 高さ固定 */
    padding: 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000;
    background-color: #e3e0ff;
    border: 3px solid #007acc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* ホバーで背景・文字色変化 */
.fancy-button:hover {
    border-color: #F59600;
}

/* 幅いっぱいのボタン（グレーアウト） */
.fancy-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

/* =======================================
メインのタイトル
======================================== */
.special-title {
  font-size: clamp(1.6rem, 4vw, 2rem); /* フォントサイズをレスポンシブ対応 */
  font-weight: bold;
  text-align: center; /* 中央揃え */
  padding: 0.4rem 0; /* 上下の余白を追加 */
  color: #333; /* 文字色 */
  display: block; /* 幅いっぱいに広げる */
  position: relative; /* 下線の基準を設定 */
  width: 100%; /* コンテンツ幅いっぱい */
}

/* 黄色の下線 */
.special-title::after {
  content: "";
  position: absolute;
  bottom: -5px; /* 文字の下に配置 */
  left: 50%; /* 中央揃え */
  transform: translateX(-50%); /* 水平方向に中央へ */
  width: 50%; /* 下線の幅 */
  height: 6px;
  background-color: #FFDE00; /* 黄色の下線 */
  border-radius: 3px; /* 少し角丸に */
}

/* =======================================
区切り用タイトル
======================================== */
.separator-ttl {
	position: relative;
	padding: 0 0 0.5rem 0;
	text-align: center;
	border-bottom: 3px dashed #0272c4;
	color: #0272c4;
	letter-spacing: 0.3em;
}

/* =======================================
項目用のタイトル
======================================== */
.kinds-ttl {
  font-size: clamp(1.4rem, 4vw, 2rem); /* レスポンシブ対応のフォントサイズ */
  font-weight: bold;
  text-align: left; /* 左揃え */
  padding: 0.5rem;
  color: #007acc;
  display: block; /* 親要素の幅いっぱいに適用 */
  position: relative; /* 下線の基準となる位置を設定 */
  width: 100%; /* コンテンツの幅いっぱいに */
}

/* 下線のベース（全体） */
.kinds-ttl::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* コンテンツの幅いっぱいに広げる */
  height: 4px;
  background: linear-gradient(to right, #007acc 20%, #A1D7FC 80%); /* 左80%は濃い色、右20%は薄い色 */
}
