
        /* --- CSSスタイル --- */
        :root {
            --bg-color: #000000;
            --card-bg-color: #1b1b1b;
            --primary-text-color: #e0e0e0;
            --secondary-text-color: #b0b0b0;
            --accent-color: #ffffff;
            --highlight-color: #03dac6;
        }
        /* Background pattern from Subtle Patterns 
        https://www.toptal.com/designers/subtlepatterns/
        Licensed under CC BY-SA 3.0 */
        body {
            background-color: var(--bg-color);
            background-image: url('images/old-wall.png');
            background-repeat: repeat;
            color: var(--primary-text-color);
            font-family: 'Inter', 'Noto Sans JP', sans-serif;
            margin: 0;
            padding: 2rem 1rem;
            text-align: center;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }

        header p {
            font-size: 1.1rem;
            color: var(--secondary-text-color);
            margin-top: 0;
            margin-bottom: 3rem;
        }

        #countdown-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .ninja-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        /* ガラスハイライト効果 */
        .ninja-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                transparent 100%
            );
            pointer-events: none;
            z-index: 1;
        }

        /* エッジライト効果 */
        .ninja-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 12px;
            padding: 1px;
            background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.4) 0%,
                transparent 40%,
                transparent 60%,
                rgba(255, 255, 255, 0.1) 100%
            );
            -webkit-mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            mask-composite: exclude;
            pointer-events: none;
            z-index: 1;
        }

        /* ▼▼▼ 画像用のスタイルを追加 ▼▼▼ */
        .ninja-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            /* 画像を円形にする */
            object-fit: cover;
            /* 画像がコンテナに合わせて調整されるように */
            margin-bottom: 1rem;
            background-color: #333;
            /* 読み込み中の背景色 */
            position: relative;
            z-index: 2;
        }

        /* ▲▲▲ 画像用のスタイルを追加 ▲▲▲ */

        .ninja-name {
            font-size: 1.75rem;
            font-weight: 700;
            margin: 0 0 0.5rem 0;
            position: relative;
            z-index: 2;
        }

        .birthday-date {
            font-size: 1rem;
            color: var(--secondary-text-color);
            margin: 0 0 1.5rem 0;
            position: relative;
            z-index: 2;
        }

        .timer {
            display: flex;
            justify-content: center;
            gap: 1rem;
            position: relative;
            z-index: 2;
        }

        .time-block {
            display: flex;
            flex-direction: column;
        }

        .time-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--highlight-color);
            line-height: 1;
        }

        .time-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--secondary-text-color);
        }

        .happy-birthday {
            font-size: 2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 68px;
            margin-top: -8px;
            position: relative;
            background: linear-gradient(
                90deg,
                #ff4c5e 0%,
                #ffaf54 16.67%,
                #ffff59 33.33%,
                #55ff7a 50%,
                #50b3ff 66.67%,
                #5757ff 83.33%,
                #ff51ff 100%
            );
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
        }


        .ninja-card.birthday-today {
            position: relative;
            border: 3px solid transparent;
        }

        /* 誕生日カードのラッパー */
        .birthday-card-wrapper {
            position: relative;
            display: inline-block;
        }

        /* レインボー枠線 */
        .birthday-card-wrapper::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: conic-gradient(from 0deg, #ff4c5e, #ffaf54, #ffff59, #55ff7a, #50b3ff, #5757ff, #ff51ff, #ff4c5e);
            border-radius: 12px;
            z-index: -1;
            -webkit-mask: 
                linear-gradient(#ffffff 0 0) content-box, 
                linear-gradient(#ffffff 0 0);
            -webkit-mask-composite: xor;
            mask: 
                linear-gradient(#ffffff 0 0) content-box, 
                linear-gradient(#ffffff 0 0);
            mask-composite: exclude;
            padding: 3px;
        }

        /* 誕生日カード本体 */
        .birthday-card-wrapper .ninja-card {
            position: relative;
            z-index: 1;
        }

        /* 誕生日カード用のガラスハイライト */
        .ninja-card.birthday-today .glass-highlight {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.15) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                transparent 100%
            );
            pointer-events: none;
            z-index: 1;
            border-radius: 12px 12px 0 0;
        }

        .ninja-card.birthday-today > *:not(.share-button) {
            position: relative;
            z-index: 3;
        }


        .share-button {
            position: absolute;
            top: 12px;
            right: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            border-radius: 50%;
            background-color: #000000;
            color: white;
            text-decoration: none;
            transition: background-color 0.3s ease, transform 0.2s ease;
            z-index: 10;
        }

        .ninja-card.birthday-today .share-button {
            z-index: 4;
            top: 9px;
            right: 9px;
        }

        .share-button:hover {
            background-color: #333333;
            transform: scale(1.05);
        }

        .share-button svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        footer {
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid #2a2a2a;
            color: var(--secondary-text-color);
        }

        footer a {
            color: var(--accent-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        footer a:hover {
            color: var(--highlight-color);
        }

        /* スマートフォン用のスタイル調整 */
        @media (max-width: 600px) {
            body {
                padding: 1rem 0.5rem;
            }

            header h1 {
                font-size: 2rem;
            }

            #countdown-container {
                grid-template-columns: 1fr;
            }
        }

.image-placeholder { width: 100px; height: 100px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: #333; font-size: 2rem; }
.share-button:focus-visible { outline: 3px solid #03dac6; outline-offset: 3px; }
