/* =========================================
   KorewaUsa Portfolio Final Style
   ========================================= */

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

:root {
    --phone-width:  390px;
    --aero-blue:    #03a9f4;
    --aero-deep:    #0277bd;
    --text-main:    #003d58;
    --text-muted:   #5b8fa8;
    --glass-border: rgba(255,255,255,0.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    min-height: 100vh; display: flex; justify-content: center; align-items: flex-start;
    overflow: hidden; background: linear-gradient(145deg, #a8d8f0 0%, #ddf2fd 40%, #bce0f8 100%);
}

/* 背景装飾 */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(3,169,244,0.28), transparent 70%); top: -120px; left: -120px; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(3,169,244,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(3,169,244,0.07) 1px, transparent 1px); background-size: 36px 36px; }

.app-container {
    position: relative; z-index: 1; width: var(--phone-width); max-width: 100vw; height: 100vh;
    background: rgba(215,242,255,0.40); backdrop-filter: blur(28px) saturate(180%);
    overflow-y: scroll; scrollbar-width: none; display: flex; flex-direction: column;
    box-shadow: 0 0 0 1px var(--glass-border), 0 24px 80px rgba(0,0,0,0.14);
}

/* ヘッダー */
.site-header {
    padding: 36px 20px 24px; text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
}
.profile-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; }
.profile-img {
    width: 96px; height: 96px; background: radial-gradient(circle at 32% 28%, #fff 0%, #81d4fa 45%, #0288d1 100%);
    border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(3,169,244,0.3); overflow: hidden;
}
.profile-shine { position: absolute; top: 7%; left: 10%; width: 62%; height: 38%; background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent); border-radius: 50%; transform: rotate(-12deg); }
.profile-glow { position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(rgba(0,255,231,0.3), rgba(185,77,255,0.3), rgba(3,169,244,0.3)); filter: blur(8px); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-title { font-size: 1.4rem; font-weight: 900; color: var(--text-main); }
.site-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.header-tags { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.tag { font-size: 0.65rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid rgba(3,169,244,0.2); color: var(--aero-deep); }

/* SNSリンク */
.sns-section { margin-top: 22px; }
.sns-section-label { font-size: 0.65rem; font-weight: 900; color: var(--text-muted); letter-spacing: 0.12em; margin-bottom: 10px; }
.sns-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sns-pill {
    display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700;
    padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,0.8);
    border: 1px solid rgba(3,169,244,0.15); color: var(--text-main); text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.2s;
}
.sns-pill:active { transform: scale(0.95); }

/* コンテンツ */
.content { flex: 1; padding: 20px 16px; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.3s ease-out both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.back-btn { font-size: 0.8rem; font-weight: 800; color: var(--aero-blue); background: #fff; border: 1px solid rgba(3,169,244,0.2); border-radius: 99px; padding: 4px 14px; cursor: pointer; }

.aero-btn {
    display: flex; align-items: center; height: 56px; border-radius: 16px; text-decoration: none; color: white;
    font-weight: 800; margin-bottom: 10px; padding: 0 20px; position: relative; overflow: hidden;
}
.aero-btn::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent); }
.btn-blue { background: linear-gradient(110deg, #29b6f6, #0288d1); box-shadow: 0 4px 15px rgba(3,169,244,0.3); }
.btn-cyan { background: linear-gradient(110deg, #4dd0e1, #0097a7); box-shadow: 0 4px 15px rgba(0,188,212,0.3); }
.btn-sky  { background: linear-gradient(110deg, #81d4fa, #0288d1); box-shadow: 0 4px 15px rgba(3,169,244,0.2); }
.btn-orange { background: linear-gradient(110deg, #ffb74d, #e65100); box-shadow: 0 4px 15px rgba(255,152,0,0.3); }
.btn-label { flex: 1; }

.glass-card { background: rgba(255,255,255,0.6); border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; backdrop-filter: blur(10px); }
.card-text { font-size: 0.85rem; line-height: 1.7; color: #2d5f78; }
.mail-link { color: var(--aero-deep); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--aero-deep); }

/* 下部ナビゲーション（二段レイアウト） */
.bottom-nav {
    position: sticky; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 12px 10px 18px; background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(3,169,244,0.15); box-shadow: 0 -4px 20px rgba(0,0,0,0.05); z-index: 50;
}
.shortcut-label { font-size: 0.65rem; font-weight: 900; color: var(--text-muted); letter-spacing: 0.12em; }
.nav-icons-wrapper { display: flex; width: 100%; gap: 4px; }
.nav-icon {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 50px; border: none; border-radius: 12px; background: transparent; color: var(--text-muted); cursor: pointer;
}
.nav-icon.active-nav { background: linear-gradient(180deg, #4fc3f7, #0288d1); color: white; box-shadow: 0 3px 10px rgba(3,169,244,0.3); }
.nav-ico-img { font-size: 1.1rem; }
.nav-ico-label { font-size: 0.5rem; font-weight: 700; }

#back-to-top { position: sticky; bottom: 80px; align-self: flex-end; margin: -40px 14px 0 0; width: 36px; height: 36px; border-radius: 50%; background: #03a9f4; border: none; color: #fff; display: none; justify-content: center; align-items: center; z-index: 49; }
/* 詳細表示用モーダルのデザイン */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(15px); z-index: 1000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; animation: pageIn 0.3s ease-out; }
.modal-content {
    width: 100%; max-width: 360px; max-height: 85vh;
    background: rgba(255,255,255,0.7); border-radius: 24px;
    border: 1px solid var(--glass-border); padding: 20px;
    overflow-y: auto; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.modal-close-btn {
    position: sticky; top: 0; left: 100%;
    margin-bottom: 10px; z-index: 10;
}
.work-thumb {
    background-size: cover; background-position: center;
    width: 100%; aspect-ratio: 4/3;
}
.mail-link { color: var(--aero-deep); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--aero-deep); }