@charset "UTF-8";

/* --- Variables --- 
   サイト全体の色調や数値を管理します 
--- */
:root {
    --bg-color: rgb(24, 26, 27);
    --text-main: rgb(232, 230, 227);
    --text-dim: rgba(232, 230, 227, 0.6);
    --accent: #ffffff;
    --card-bg: rgba(45, 48, 50, 0.8);
    --tag-bg: rgba(255, 255, 255, 0.07);
    --transition-speed: 0.5s;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 固定ヘッダーに隠れないよう、スクロール停止位置を調整 */
    scroll-padding-top: 100px; 
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header / Hero (Collapsing logic) --- 
   初期状態は画面中央付近に大きく表示、スクロールで上部へ固定 
--- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15vh 0;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0 2rem;
    transition: all var(--transition-speed) ease;
}

/* Profile Image */
.header-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(232, 230, 227, 0.1);
    transition: all var(--transition-speed) ease;
}

/* Name & Title */
.brand-text {
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.header-name {
    font-size: 3rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
}

.header-title {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
    transition: all var(--transition-speed) ease;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    /* text-transform: uppercase; を削除（小文字も表示可能に） */
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-item:hover {
    color: var(--text-main);
}

/* --- 🌟 Shrunk State (スクロール後のヘッダー状態) 🌟 --- */
.header.shrunk {
    padding: 1rem 0;
    background-color: rgba(24, 26, 27, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.shrunk .header-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

.header.shrunk .profile-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header.shrunk .header-image {
    width: 45px;
    height: 45px;
}

.header.shrunk .brand-text {
    text-align: left;
}

.header.shrunk .header-name {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.header.shrunk .header-title {
    display: none;
}

/* --- Layout Sections --- */
.hero-spacer {
    height: 90vh;
}

.main-content {
    width: 100%;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 12rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 8rem;
    }
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin: 0;
    padding-top: 0.5rem;
}

/* About Me Content */
.story-block {
    margin-bottom: 4rem;
}

.story-block h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.story-block p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

/* --- 02. Certifications (コンテナデザイン) --- */
.cert-grid {
    display: grid;
    gap: 1.2rem;
}

.cert-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cert-date {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

.cert-card h4 {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- 03. Technical Skills (ボタン・タグデザイン) --- */
.skills-group {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-category h5 {
    margin: 0 0 1.2rem 0;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background: var(--tag-bg);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tags span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
.footer {
    padding: 6rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* ==========================================
   SYSTEM OBSERVABILITY SECTION (New Relic)
   ========================================== */
.system-monitor-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 24px;
    background-color: #1e293b; /* ダークグレーの背景 */
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #f8fafc;
}

.system-monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.system-status-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #10b981; /* 稼働中の鮮やかなグリーン */
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.system-status-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #10b981;
}

.system-provider-label {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
}

.system-monitor-description {
    margin-bottom: 24px;
}

.system-monitor-text-primary {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

.system-monitor-text-secondary {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
}

.system-monitor-image-area {
    position: relative;
    background-color: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 8px;
    overflow: hidden;
}

.system-monitor-screenshot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: brightness(0.95);
}

/* スマホ対応（レスポンシブ表示） */
@media (max-width: 640px) {
    .system-monitor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .system-provider-label {
        align-self: flex-end;
    }
}

/* ==========================================
   02. CERTIFICATIONS & SYSTEM OBSERVABILITY
   (RICHER UI STYLES ADDED BY ANTIGRAVITY)
   ========================================== */
.cert-grid {
    display: grid;
    gap: 1.5rem;
}
.cert-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}
/* モバイル表示時のレスポンシブ対応 */
@media (max-width: 600px) {
    .cert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .badge-btn, .badge-status-tag {
        align-self: flex-start;
        width: 100%;
        text-align: center;
    }
}
/* 各資格カードのホバー時テーマグロー（光彩）効果 */
.cert-card.aws-cert:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.12),
                0 0 1px 1px rgba(255, 153, 0, 0.2);
}
.cert-card.completed-cert:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}
.cert-card.learning-cert:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}
.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}
.cert-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.cert-issuer-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cert-issuer-tag.aws {
    background: rgba(255, 153, 0, 0.1);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

/* Credlyバッジ遷移ボタン */
.badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.badge-btn:hover {
    background: var(--accent);
    color: #121212;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.badge-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}
/* ステータスタグ */
.badge-status-tag {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-status-tag.status-done {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-status-tag.status-ongoing {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: tagPulse 2s infinite ease-in-out;
}
@keyframes tagPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.1);
    }
}
/* システムメトリクスグリッド（訪問者数カウンター用） */
.system-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 20px 0;
}
@media (max-width: 600px) {
    .system-metrics-grid {
        grid-template-columns: 1fr;
    }
}
.metric-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.metric-label {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 1px;
    font-family: monospace;
}
.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}
.metric-value.font-mono {
    font-family: monospace;
}
.metric-value.text-green {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
#counter {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    font-family: monospace;
}

/* ==========================================
   02. CERTIFICATIONS & SYSTEM OBSERVABILITY
   (EFFICIENT & UNIFIED UI STYLES BY ANTIGRAVITY)
   ========================================== */

.cert-grid {
    display: grid;
    gap: 1.5rem;
}

.cert-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* モバイル表示時のレスポンシブ対応 */
@media (max-width: 600px) {
    .cert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .cert-btn {
        align-self: flex-start;
        width: 100% !important;
    }
}

/* 🟢 完了系カード (AWS & TechAcademy) : グリーン系のホバー */
.cert-card.completed-cert:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12),
                0 0 1px 1px rgba(16, 185, 129, 0.2);
}

/* 🔵 学習中系カード (CCNP) : ブルー系のホバー */
.cert-card.learning-cert:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12),
                0 0 1px 1px rgba(59, 130, 246, 0.2);
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cert-issuer-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-issuer-tag.aws {
    background: rgba(255, 153, 0, 0.1);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.cert-issuer-tag.cisco {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cert-issuer-tag.generic {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🔘 共通ボタン/タグスタイル (サイズと基本スタイルの統一) */
.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 150px;           /* 横幅を完全統一 */
    height: 42px;          /* 高さを完全統一 */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;       /* 通常のタグはカーソル通常 */
}

/* リンク付き（クリック可能）のボタン用拡張スタイル */
.cert-btn.click-active {
    cursor: pointer;
}

/* 🟢 グリーン系 (完了・Verify Badge / Completed) */
.cert-btn.status-done {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 完了系のリンク付きボタンがホバーされたとき */
.cert-btn.status-done.click-active:hover {
    background: #10b981;
    color: #121212;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* 🔵 ブルー系 (進行中・In Progress) */
.cert-btn.status-ongoing {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: tagPulse 2s infinite ease-in-out;
}

/* 進行中のリンク付きボタンがホバーされたとき */
.cert-btn.status-ongoing.click-active:hover {
    background: #3b82f6;
    color: #121212;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cert-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

@keyframes tagPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.1);
    }
}

/* ==========================================
   SYSTEM OBSERVABILITY - REALTIME METRICS
   ========================================== */
.system-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .system-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 1px;
    font-family: monospace;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}

.metric-value.font-mono {
    font-family: monospace;
}

.metric-value.text-green {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

#counter {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    font-family: monospace;
}

/* --- 🌟 新設：04. Projects 横スクロール (CSSオンリー) 🌟 --- */
.project-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* 横スクロールを有効化 */
    scrollbar-width: none; /* Firefox用の非表示 */
    scroll-snap-type: x mandatory; /* スクロールスナップを有効化 */
    padding-bottom: 1rem;
}

/* Chrome, Safari, Edge 用にスクロールバーを非表示にする（ミニマル維持のため） */
.project-scroll-container::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 85%; /* PCでは1画面に少し次のカードが見える絶妙なサイズ */
    max-width: 550px;
    scroll-snap-align: start; /* スクロールが止まる位置をカードの左端に固定 */
}

.project-card-inner {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}

.project-card-inner:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.project-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* mirukyさんリスペクトの箇条書きスタイル */
.project-bullets {
    padding-left: 1.2rem;
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.project-bullets li {
    margin-bottom: 0.6rem;
    list-style-type: none;
    position: relative;
}

/* 箇条書きの先頭に「▶」をCSSで付与 */
.project-bullets li::before {
    content: "▶";
    position: absolute;
    left: -1.2rem;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}