/* ============================================
   デジタル名刺 - 和モダン プレミアム (1ページ・スクロールなし)
   ============================================ */

:root {
    --washi-white: #FAF9F6;
    --sumi-black: #1C1C1C;
    --lacquer-red: #B22222;
    --gold-leaf: #D4AF37;
    --bg-primary: #EBE9E1;
    --paper-texture: rgba(255, 255, 255, 0.9);
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Serif JP', 'Noto Sans JP', serif;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* スクロール禁止 */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* --- 背景装飾 --- */
.background-gradient {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    z-index: -1;
}

/* --- メインコンテナ --- */
.container {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: var(--paper-texture);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 4px;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-leaf);
    z-index: 10;
}

/* --- ヘッダー・カバー --- */
.profile-header {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

/* 判子 (FAB) */
.fab-container {
    position: absolute;
    bottom: -20px;
    right: 20px;
    z-index: 20;
}

.fab {
    width: 48px;
    height: 48px;
    background: var(--lacquer-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(178, 34, 34, 0.3);
    text-decoration: none;
    border-radius: 2px;
}

.fab svg {
    width: 20px;
    height: 20px;
    color: white;
}

.fab-label {
    display: none;
    /* ラベルは非表示にして省スペース化 */
}

/* プロフィール基本情報 */
.profile-info-card {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-info-card .name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.profile-info-card .company {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.profile-info-card .title {
    font-size: 0.85rem;
    color: var(--lacquer-red);
    font-weight: 700;
    margin-top: 2px;
}

/* --- コンテンツエリア (スクロール可能な内部) --- */
/* 基本は1ページだが、はみ出し対策のために内部だけスクロール可能に */
main.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    scrollbar-width: none;
    /* Firefox */
}

main.main-content::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.section-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-leaf);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 連絡先 (2列グリッド) */
.contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-item {
    text-decoration: none;
    color: inherit;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.contact-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    display: block;
}

.contact-value {
    font-size: 0.8rem;
    font-weight: 600;
    word-break: break-all;
}

.arrow {
    display: none;
}

/* 住所やWebサイトなど1カラムの方がいいもの */
#contact-address,
#contact-website {
    grid-column: span 2;
}

/* SNS & 資格 & 自己紹介 (コンパクト化) */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--sumi-black);
}

.certifications-section,
.bio-section {
    margin-bottom: 15px;
}

.certification-list {
    list-style: none;
    font-size: 0.8rem;
}

.certification-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.certification-list li::before {
    content: '▪';
    color: var(--gold-leaf);
}

.bio-content {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #444;
}

/* --- フッター --- */
.footer {
    padding: 15px;
    text-align: center;
    font-size: 0.65rem;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* アニメーション */
.animate-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.5s;
}

.delay-5 {
    animation-delay: 0.6s;
}