/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ===== ベース設定 ===== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    background-color: #f5f5f5;
    color: #222;
    margin: 0;
    line-height: 1.75;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 28px;
}

/* ===== ヘッダー ===== */
header {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 68px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 28px; max-width: 130px; object-fit: contain; display: block; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav-link { font-size: 0.875rem; color: #666; font-weight: 500; }
.header-nav-link:hover { color: #004e92; }
.btn-mypage { font-size: 0.875rem; color: #444; font-weight: 500; }
.btn-mypage:hover { color: #004e92; }
.btn-login {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: #004e92;
    padding: 10px 28px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.03em;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
    background: #003a70;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,78,146,0.25);
}

/* ===== ヒーローエリア ===== */
.hero {
    position: relative;
    background: linear-gradient(140deg, #004e92 0%, #000e2c 100%);
    color: #fff;
    text-align: center;
    padding: 120px 24px 100px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1600&q=80&fit=crop') center/cover no-repeat;
    opacity: 0.1;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 44px;
    opacity: 0.85;
    line-height: 1.9;
    font-weight: 400;
}
.btn-search {
    background: #fff;
    color: #004e92;
    padding: 16px 52px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.btn-search:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
    color: #004e92;
}

/* ===== カードリスト（一覧用） ===== */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.card-body { padding: 20px 22px 24px; }

/* ===== タグ ===== */
.tag {
    font-size: 0.73rem;
    background: #f0f4ff;
    color: #004e92;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ===== 詳細ページ（共通） ===== */
.profile-header { text-align: center; margin-bottom: 40px; }

.section-title {
    color: #004e92;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
    font-size: 1.5rem;
    font-weight: 700;
}

.narrative-text {
    font-size: 1.05rem;
    line-height: 2.1;
    white-space: pre-wrap;
    margin-top: 20px;
    color: #333;
}
