/* ============================ 全体の基本設定 ============================ */
 html, body {
	 margin: 0;
	 padding: 0;
	 font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
	 background: #f5f5f5;
	 color: #333;
	 box-sizing: border-box;
}
 *, *::before, *::after {
	 box-sizing: inherit;
}
/* リンク */
 a {
	 color: #0078ff;
	 text-decoration: none;
}
 a:hover {
	 opacity: 0.8;
}
/* カード共通（PC用） */
 .card {
	 background: #ffffff;
	 width: 100%;
	 max-width: 480px;
	 padding: 32px;
	 border-radius: 20px;
	 box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	 margin: 0 auto;
}
/* ボタン共通 */
 .btn {
	 display: block;
	 width: 100%;
	 padding: 16px;
	 font-size: 18px;
	 text-align: center;
	 border-radius: 14px;
	 color: white;
	 text-decoration: none;
	 margin-bottom: 16px;
}
 .btn-primary {
	 background: #0078ff;
}
 .btn-green {
	 background: #00a86b;
}
 .btn-red {
	 background: #ff4d4d;
}
/* ロゴ */
 .site-header .logo-link, .site-header .logo-link span {
	 text-decoration: none !important;
	 color: inherit !important;
}
/* ========================================= スクロールニュース全体の枠 ========================================= */
 .cs-scroll-wrapper {
	 width: 100%;
	 max-width: 800px;
	 margin: 0 auto 2em;
	 border: 1px solid #e2e8f0;
	 border-radius: 12px;
	 background-color: #ffffff;
	 overflow: visible;
	/* ← スクロールバーが隠れない */
	 box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
/* ========================================= ヘッダー ========================================= */
 .cs-scroll-header {
	 background-color: #f8fafc;
	 border-bottom: 1px solid #e2e8f0;
	 padding: 16px 24px;
}
 .cs-scroll-header-title {
	 font-size: 1.1rem;
	 font-weight: 800;
	 color: #1e293b;
	 letter-spacing: 0.05em;
}
/* ========================================= スクロール領域 ========================================= */
 .cs-scroll-container {
	 max-height: 280px;
	 overflow-y: auto;
	 -webkit-overflow-scrolling: touch;
}
/* ========================================= リスト ========================================= */
 .cs-scroll-list {
	 list-style: none;
	 padding: 0;
	 margin: 0;
}
 .cs-scroll-item {
	 border-bottom: 1px dashed #e2e8f0;
	 min-height: 60px;
	/* ← 高さを確保してスクロール発生 */
}
 .cs-scroll-item:last-child {
	 border-bottom: none;
}
/* ========================================= リンク（横並びニュース） ========================================= */
 .cs-scroll-link {
	 display: flex;
	 align-items: center;
	 padding: 16px 24px;
	 text-decoration: none !important;
	 transition: background-color 0.2s ease;
}
 .cs-scroll-link:hover {
	 background-color: #f1f5f9;
}
/* ========================================= 日付 ========================================= */
 .cs-scroll-date {
	 font-size: 0.9rem;
	 color: #64748b;
	 margin-right: 20px;
	 white-space: nowrap;
}
/* ========================================= バッジ ========================================= */
 .cs-news-badge {
	 display: inline-block;
	 font-size: 0.75rem;
	 font-weight: 700;
	 line-height: 1;
	 padding: 6px 10px;
	 border-radius: 4px;
	 margin-right: 20px;
	 white-space: nowrap;
	 min-width: 90px;
	 text-align: center;
}
/* ▼ バッジ色 */
 .cs-badge-important {
	 background-color: #fef2f2;
	 color: #ef4444;
	 border: 1px solid #fca5a5;
}
 .cs-badge-update {
	 background-color: #eff6ff;
	 color: #3b82f6;
	 border: 1px solid #93c5fd;
}
 .cs-badge-release {
	 background-color: #f0fdf4;
	 color: #22c55e;
	 border: 1px solid #86efac;
}
/* ========================================= タイトル ========================================= */
 .cs-news-title {
	 font-size: 0.95rem;
	 font-weight: 700;
	 color: #1e293b;
	 line-height: 1.5;
}
/* ========================================= カスタムスクロールバー ========================================= */
 .cs-scroll-container::-webkit-scrollbar {
	 width: 10px;
}
 .cs-scroll-container::-webkit-scrollbar-track {
	 background-color: #f8fafc;
}
 .cs-scroll-container::-webkit-scrollbar-thumb {
	 background-color: #94a3b8;
	 border-radius: 4px;
}
 .cs-scroll-container::-webkit-scrollbar-thumb:hover {
	 background-color: #64748b;
}
/* ========================================= 検索フォーム ========================================= */
 .form-wrapper {
	 width: 100%;
	 max-width: 450px;
	 padding: 15px;
	 margin: 40px auto;
	 background: #f7f7f7;
	 border-radius: 10px;
	 box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
/* clearfix */
 .cf:before, .cf:after {
	 content: "";
	 display: table;
}
 .cf:after {
	 clear: both;
}
/* 入力欄 */
 .form-wrapper input {
	 width: calc(100% - 110px);
	 height: 40px;
	 padding: 10px;
	 float: left;
	 font-size: 15px;
	 border: 1px solid #ccc;
	 background: #fff;
	 border-radius: 3px 0 0 3px;
	 transition: all .2s ease;
}
 .form-wrapper input:focus {
	 outline: none;
	 border-color: #0078ff;
	 box-shadow: 0 0 3px rgba(0,120,255,0.4);
}
/* プレースホルダー */
 .form-wrapper input::placeholder {
	 color: #999;
	 font-style: italic;
}
/* ボタン */
 .form-wrapper button {
	 float: right;
	 height: 40px;
	 width: 110px;
	 border: none;
	 cursor: pointer;
	 font-size: 15px;
	 font-weight: bold;
	 color: #fff;
	 background: #0078ff;
	 border-radius: 0 3px 3px 0;
	 transition: background .2s ease;
}
 .form-wrapper button:hover {
	 background: #0a6fe0;
}
 .form-wrapper button:active {
	 background: #065bb8;
}
/* ボタンの矢印装飾 */
 .form-wrapper button:hover:before {
	 border-right-color: #0a6fe0;
}
 .form-wrapper button:active:before {
	 border-right-color: #065bb8;
}
 .form-wrapper button {
	 position: relative;
	 overflow: hidden;
}
 .form-wrapper button:before {
	 content: '';
	 position: absolute;
	 border-width: 8px 8px 8px 0;
	 border-style: solid;
	 border-color: transparent #0078ff transparent transparent;
	 top: 12px;
	 left: 0;
}
 .search-title {
	 text-align: center;
	 font-size: 24px;
	 font-weight: 600;
	 color: #333;
	 margin-top: 40px;
	 margin-bottom: 20px;
	 letter-spacing: 0.5px;
}
/* ============================ 特徴セクション（完全版） ============================ */
 .section.features {
	 padding: 60px 0;
	 background: #f5f5f5;
}
 .section.features .container {
	 max-width: 1100px;
	 margin: 0 auto;
}
 .feature-grid {
	 display: grid;
	 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	 gap: 30px;
	 margin-top: 40px;
}
 .feature-item {
	 background: #fff;
	 padding: 25px;
	 border-radius: 12px;
	 box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	 display: block;
}
 .feature-item h3 {
	 margin-bottom: 10px;
	 font-size: 20px;
	 color: #333;
}
 .feature-item p {
	 color: #555;
	 line-height: 1.6;
}
/* ============================ fade-in アニメーション（安全版） ============================ */
 .fade-in {
	 opacity: 0;
	 transform: translateY(15px);
	 transition: opacity 0.8s ease, transform 0.8s ease;
	 will-change: opacity, transform;
}
 .fade-in.visible {
	 opacity: 1;
	 transform: translateY(0);
}
/* 特徴アイテムの遅延 */
 .feature-item.fade-in:nth-of-type(1) {
	 transition-delay: 0.1s;
}
 .feature-item.fade-in:nth-of-type(2) {
	 transition-delay: 0.25s;
}
 .feature-item.fade-in:nth-of-type(3) {
	 transition-delay: 0.4s;
}
 .feature-item.fade-in:nth-of-type(4) {
	 transition-delay: 0.55s;
}
 .feature-item.fade-in:nth-of-type(5) {
	 transition-delay: 0.7s;
}
/* ============================ 大学生向け・使い方 ============================ */
 .university-section {
	 background: #f7f9fc;
}
 .university-section > .container > p {
	 max-width: 700px;
	 margin: 0 auto 30px;
	 text-align: center;
	 line-height: 1.8;
	 color: #555;
}
 .university-links {
	 display: grid;
	 grid-template-columns: repeat(3, 1fr);
	 gap: 20px;
	 max-width: 1000px;
	 margin: 0 auto;
}
 .university-link {
	 display: block;
	 padding: 24px;
	 background: #ffffff;
	 border-radius: 16px;
	 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	 color: #333;
	 text-decoration: none;
	 transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 .university-link:hover {
	 transform: translateY(-3px);
	 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	 opacity: 1;
}
 .university-link h3 {
	 margin: 0 0 10px;
	 font-size: 19px;
	 color: #0078ff;
}
 .university-link p {
	 margin: 0;
	 font-size: 14px;
	 line-height: 1.7;
	 color: #555;
}
/* ============================ スマホ対応 ============================ */
 @media screen and (max-width: 600px) {
	 .card, .mypage-card, .edit-card, .public-card, .qr-card {
		 max-width: 100% !important;
		 width: 100% !important;
		 padding: 24px !important;
		 border-radius: 0 !important;
		 box-shadow: none !important;
		 background: #ffffff !important;
		 margin: 0 !important;
	}
	 body {
		 background: #ffffff !important;
	}
	 .cs-scroll-wrapper {
		 width: 90%;
		 max-width: 800px;
		 margin: 0 auto 2em;
		 border: 1px solid #e2e8f0;
		 border-radius: 12px;
		 background-color: #ffffff;
		 overflow: visible;
		 box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	}
	 .mypage-wrapper, .edit-wrapper, .public-wrapper, .qr-wrapper {
		 padding: 0 !important;
		 min-height: auto !important;
	}
	 .btn {
		 padding: 10px !important;
		 font-size: 20px !important;
		 border-radius: 16px !important;
	}
	 .sns-item {
		 border-radius: 16px !important;
		 padding: 18px !important;
	}
	 .cs-scroll-header {
		 padding: 12px 16px;
	}
	 .cs-scroll-link {
		 flex-wrap: wrap;
		 align-items: flex-start;
		 padding: 16px;
	}
	 .cs-scroll-date {
		 margin-bottom: 8px;
	}
	 .cs-news-badge {
		 margin-bottom: 8px;
		 margin-right: 0;
	}
	 .cs-news-title {
		 width: 100%;
		 font-size: 0.9rem;
	}
	/* ========================================= 検索フォーム ========================================= */
	 .form-wrapper {
		 max-width: 80%;
		 margin: 20px auto;
	}
	 .form-wrapper input {
		 width: calc(100% - 70px);
	}
	 .form-wrapper button {
		 width: 70px;
	}
	 .search-title {
		 font-size: 20px;
		 margin-top: 30px;
		 margin-bottom: 15px;
	}
	 .search-title::after {
		 content: "プロフィール検索";
		 display: block;
	}
	 .search-title {
		 font-size: 22px;
	}
	/* 元のテキストを消す */
	 .search-title {
		 visibility: hidden;
	}
	 .search-title::after {
		 visibility: visible;
	}
	 .university-section {
		 padding: 40px 16px !important;
	}
	 .university-section > .container {
		 width: 100%;
	}
	 .university-section > .container > p {
		 font-size: 14px;
		 line-height: 1.8;
		 margin: 0 auto 25px;
		 text-align: left;
	}
	 .university-links {
		 display: flex;
		 flex-direction: column;
		 gap: 10px;
		 width: 100%;
	}
	 .university-link {
		 position: relative;
		 padding: 17px 42px 17px 18px;
		 border-radius: 12px;
		 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	}
	 .university-link:hover {
		 transform: none;
		 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	}
	 .university-link::after {
		 content: "›";
		 position: absolute;
		 right: 17px;
		 top: 50%;
		 transform: translateY(-50%);
		 font-size: 24px;
		 color: #aaa;
	}
	 .university-link h3 {
		 margin: 0 0 5px;
		 font-size: 16px;
		 color: #0078ff;
	}
	 .university-link p {
		 font-size: 13px;
		 line-height: 1.6;
		 color: #777;
	}
}

