:root {
    --bg: #f3f0ea;
    --card-bg: #ffffff;
    --accent: #476f9f;
    --accent-soft: #dbe5f2;
    --text-main: #222831;
    --text-muted: #6b7480;
    --border-soft: rgba(0, 0, 0, 0.06);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        "Inter",
        "Noto Sans JP",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;

    /* 背景画像を使用 */
    background-color: #f3ece4; /* 画像が読み込めないときのフォールバックカラー */
    background-image: url("img/bg.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* 画面全体を覆う */
    background-attachment: fixed;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

@media (min-width: 960px) {
    .page {
        padding: 40px 16px 72px;
    }
}

/* ヘッダー */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.lab-name {
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs span {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-soft);
    color: var(--accent);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(
        135deg,
        rgba(228, 238, 247, 0.96),
        rgba(241, 245, 249, 0.98)
    );
    border-radius: 26px;
    padding: 24px 22px 22px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 18px 18px;
    }
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* プロフィール画像 + 名前エリア */
.hero-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

@media (max-width: 540px) {
    .hero-header-row {
        align-items: flex-start;
    }
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    background: #d1d5db;
}

.hero-header-text {
    flex: 1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.chip {
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.hero-name-main {
    font-size: clamp(1.7rem, 2.2vw + 1rem, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-name-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.hero-handle {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}

/* SNSリンク */
.hero-social {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-social-link {
    font-size: 0.84rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.1s ease;
}

.hero-social-link:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.hero-social-icon {
    font-size: 1rem;
}

.hero-summary {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-main);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hero-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-muted);
}

/* Hero サイドカード */
.hero-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.hero-card-list li + li {
    margin-top: 3px;
}

.hero-card-list strong {
    font-weight: 600;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* セクション共通 */
.section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-main);
}

.section-title span {
    font-size: 0.86rem;
    font-weight: 500;
    margin-left: 10px;
    color: var(--text-muted);
    text-transform: none;
}

.section-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 基本情報 + 趣味 */
.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 22px;
}

@media (max-width: 800px) {
    .info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(6px);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: var(--accent-soft);
    display: inline-block;
}

.basic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.basic-table th,
.basic-table td {
    padding: 6px 2px;
    text-align: left;
}

.basic-table th {
    width: 5em;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.basic-table tr + tr th,
.basic-table tr + tr td {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hobby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hobby-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f7fb;
    font-size: 0.84rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 資格 */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.badge {
    padding: 9px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-soft);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.badge-tag {
    font-size: 0.74rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--text-muted);
}

/* 職歴タイムライン */
.timeline {
    position: relative;
    padding-left: 16px;
    margin: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent-soft),
        rgba(148, 163, 184, 0.3)
    );
}

.timeline-item {
    position: relative;
    padding-left: 14px;
    padding-bottom: 14px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
}

.timeline-main {
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-tag {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.76rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f5f5f5;
    color: var(--text-muted);
}

/* 興味分野タグ */
.interest-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-soft);
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.interest-tag-code {
    font-size: 0.78rem;
    padding: 2px 5px;
    border-radius: 6px;
    background: #edf2ff;
    color: #475569;
}

/* フッター */
.site-footer {
    margin-top: 40px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.8);
}

.site-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer span {
    opacity: 0.9;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(107, 116, 128, 0.6);
}

.site-footer a:hover {
    border-bottom-style: solid;
}
