:root {
    --base-navy: #0f172a;           /* ベースカラー */
    --accent-blue: #2563eb;         /* アクセントカラー */
    --card-bg: rgba(30, 41, 59, 0.7); /* 半透明のカード背景 */
    --text-main: #f8fafc;           /* メイン文字色 */
    --text-dim: #94a3b8;            /* 補足文字色 */
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: "Inter", "Segoe UI", "Hiragino Sans", sans-serif;
    margin: 0;
    /* 暗めのグラデーション背景 */
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.university-name {
    color: var(--accent-blue);
    font-weight: 600;
    margin-top: 8px;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* カード：少し透明なダークカラー */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px); /* 背景をぼかす */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-blue);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn:hover {
    background: #3b82f6; /* 少し明るい青 */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* 経歴タイムライン */
.timeline li {
    list-style: none;
    border-left: 2px solid var(--accent-blue);
    padding: 0 0 20px 20px;
    position: relative;
}

.timeline li span {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: bold;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* フードページ専用：画像とマップ */
.food-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.map-wrapper {
    margin-top: 15px;
    filter: invert(90%) hue-rotate(180deg); /* 地図をダークモード風に反転 */
    opacity: 0.7;
    border-radius: 8px;
    overflow: hidden;
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
 /* 個別調整用のスタイル */
.favorite-img {
    object-fit: contain !important; /* 写真全体が見えるようにする */
    background: rgba(0, 0, 0, 0.2); /* 余白部分を少し暗くして馴染ませる */
}

.visit-card {
    height: auto !important; /* 高さを固定せずコンテンツに合わせる（はみ出し防止） */
    display: flex;
    flex-direction: column;
}

.visit-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 15px;
}

.visit-img-wrapper {
    height: auto !important; /* 高さを自動にして写真の比率を守る */
    min-height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.visit-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ギャラリー部分は枠に合わせる */
}

.visit-description {
    padding: 15px;
    margin-top: auto; /* 説明文を常に下部に配置 */
    border-top: 1px solid var(--border-color);

}
