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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #000;
            color: #fff;
            min-height: 100vh;
        }

        /* ヘッダー */
        header {
            position: sticky;
            top: 0;
            z-index: 10;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #1f2937;
        }

        .header-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1.5rem 1rem;
        }

        h1 {
            font-size: 1.375rem;
            font-weight: bold;
            margin-bottom: 0.25rem;
        }

        .header-subtitle {
            font-size: 1.125rem;
            color: #9ca3af;
        }

        /* カテゴリーフィルター */
        .filter-container {
            position: sticky;
            top: 89px;
            z-index: 20;
            background-color: #111827;
            border-bottom: 1px solid #1f2937;
        }

        .filter-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem;
        }

        .filter-buttons {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            padding-top: 6px;
            padding-left: 6px;
        }

        .filter-buttons::-webkit-scrollbar {
            display: none;
        }

        .filter-btn {
            padding: 0.5rem 1.5rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            white-space: nowrap;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn.active {
            background-color: #fff;
            color: #000;
        }

        .filter-btn:not(.active) {
            background-color: #1f2937;
            color: #d1d5db;
        }

        .filter-btn:not(.active):hover {
            background-color: #374151;
        }

        .filter-btn.has-badge {
            position: relative;
        }
@keyframes badgePulse {
    0%,  100% { opacity: 1; }
    50%        { opacity: 0; }
}

        .filter-btn.has-badge::before {
            content: "";
            position: absolute;
            top: -2px;
            left: -2px;
            width: 12px;
            height: 12px;
            background-color: #e8231a;
            border-radius: 50%;
			animation: badgePulse 3s ease-in-out 5;
        }
/* ── Contact filter button (右端に配置) ── */
.filter-btn-about {
    margin-left: auto;  /* ← これで右端に寄る */
    flex-shrink: 0;
    min-width: fit-content;
	display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-btn-about:hover {      
    background-color: #c41616 !important;
    color: #fff !important;
}

.filter-buttons {
    justify-content: flex-start;
}

.filter-btn-contact {
    
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: fit-content;
}
.filter-btn-contact:hover {    
    background-color: #0dde5d !important;
    color: #000 !important;
}

.filter-btn-contact svg {
    flex-shrink: 0;
}


/* ── フッターContactボタン ── */
.contact-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
	font-size: 1rem;
}

.contact-btn svg {
    flex-shrink: 0;
    vertical-align: middle;
	width: 18px;
    height: 18px;
}
        /* グリッド */
        main {
            max-width: 1280px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        h2 {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .portfolio-card {
            background-color: #111827;
            border-radius: 0.75rem;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .portfolio-card:hover {
            transform: translateY(-4px);
        }

        .portfolio-card img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            display: block;
        }

        .portfolio-card-content {
            padding: 1rem;
			
        }

        .portfolio-card-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .portfolio-card-category {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-bottom: 0.5rem;
        }

        .portfolio-card-description {
            font-size: 0.875rem;
            color: #d1d5db;
        }

        /* プロフィール */
        .profile-section {
            background-color: rgba(17, 24, 39, 0.5);
            border-top: 1px solid #1f2937;
            border-bottom: 1px solid #1f2937;
        }

        .profile-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 3rem 1rem;
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .profile-image {
            flex-shrink: 0;
            width: 128px;
            height: 128px;
            border-radius: 50%;
            overflow: hidden;
            border: 0px solid rgba(255, 255, 255, 0.1);
        }

        .profile-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-basic h1 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
.profile-basic {
    text-align: left;
}

        .profile-role {
            font-size: 1rem;
            color: #9ca3af;
            margin-bottom: 0.7rem;
        }

        .profile-bio {
            font-size: 0.875rem;
            color: #9ca3af;
            line-height: 1.6;
        }

        .profile-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .profile-section-item {
            background-color: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 0.5rem;
            border: 1px dotted #a8a0a1;
        }

        .profile-section-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #fff;
			text-align: center;
        }

        .profile-section-content {
            font-size: 0.875rem;
            color: #9ca3af;
            line-height: 1.8;
			text-align: left;
        }

        .profile-section-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .profile-section-content li {
            padding: 0.25rem 0;
            position: relative;
            padding-left: 1.25rem;
        }

        .profile-section-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #9ca3af;
        }

        .profile-links {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .profile-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
            color: #fff;
            text-decoration: none;
            font-size: 0.875rem;
            transition: background-color 0.2s;
        }

        .profile-link:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        @media (max-width: 640px) {
            .profile-header {
                flex-direction: column;
                text-align: center;
            }

            .profile-details {
                grid-template-columns: 1fr;
            }
        }

        /* フッター */
        footer {
            background-color: #111827;
            color: #fff;
            padding: 3rem 1rem;
        }

        .footer-content {
            max-width: 1280px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-title {
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .footer-description {
            color: #9ca3af;
            font-size: 0.875rem;
            margin-bottom: 1.5rem;
        }

        .contact-btn {
            display: inline-flex;
    align-items: center;
    gap: 7px;
            padding: 0.75rem 1.5rem;
            background-color: #fff;
            color: #000;
            border-radius: 9999px;
            font-weight: 500;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .contact-btn:hover {
			color: #000;
            background-color: #0dde5d;
        }

        .footer-copyright {
            margin-top: 3rem;
            font-size: 0.875rem;
            color: #9ca3af;
        }

        /* New! バッジ */
        .thumb-wrap {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem 0.75rem 0 0;
        }

        .thumb-wrap.is-new::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 68px;
            height: 68px;
            background: linear-gradient(135deg, #e8231a 50%, transparent 50%);
            z-index: 2;
			animation: badgePulse 3s ease-in-out 5;
        }

        .thumb-wrap.is-new::after {
            content: "New!";
            position: absolute;
            top: 8px;
            left: 2px;
            width: 50px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            font-family: sans-serif;
            transform: rotate(-45deg);
            z-index: 3;
            pointer-events: none;
			animation: badgePulse 3s ease-in-out 5;
        }

        /* ライトボックス */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 50;
            background-color: rgba(0, 0, 0, 0.95);
            align-items: center;
            justify-content: center;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 75vh;
            object-fit: contain;
        }

        .lightbox-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2.5rem;
            height: 2.5rem;
            transform: translate(100%, -100%);
            padding: 0.125rem;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-close:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-nav:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .lightbox-prev {
            left: 1rem;
        }

        .lightbox-next {
            right: 1rem;
        }

        .lightbox-info {
            position: static;
            margin-top: 1rem;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            text-align: center;
            max-width: 800px;
            width: 100%;
        }

        .lightbox-title {
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }

        .lightbox-category {
            font-size: 0.875rem;
            color: #9ca3af;
        }

        .lightbox-slideshow-btn {
            position: static;
            margin: 0 auto 1rem;
            padding: 0.5rem 1.25rem;
            border-radius: 9999px;
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background-color 0.2s;
        }

        .lightbox-slideshow-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .lightbox-slideshow-btn.playing {
            background-color: rgba(239, 68, 68, 0.3);
        }

        .lightbox-slideshow-btn.playing:hover {
            background-color: rgba(239, 68, 68, 0.4);
        }

        /* コンタクトフォームモーダル */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 50;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: #111827;
            border-radius: 1rem;
            width: 100%;
            max-width: 48rem;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem;
            border-bottom: 1px solid #1f2937;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .modal-close {
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            background-color: transparent;
            border: none;
            color: #9ca3af;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background-color: #1f2937;
            color: #fff;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .info-box {
            background-color: rgba(31, 41, 55, 0.5);
            border: 1px solid #374151;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .info-box p {
            font-size: 0.875rem;
            color: #9ca3af;
            line-height: 1.5;
        }

        /* ── コンタクトフォーム ── */
        .cf-wrap {
            padding: 4px 0 8px;
        }

        .cf-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 18px;
        }

        .cf-label {
            font-size: 15px;
            font-weight: 400;
            color: #8a8f9a;
            letter-spacing: 0.05em;
        }

        .cf-req {
            color: #e05252;
            margin-left: 2px;
        }

        .cf-input,
        .cf-textarea {
            width: 100%;
            background: #232830;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 11px 13px;
            font-family: inherit;
            font-weight: 300;
            font-size: 15px;
            color: #f0f0f0;
            outline: none;
            transition: border-color 0.2s ease, background 0.2s ease;
            -webkit-appearance: none;
            caret-color: #f0f0f0;
            box-sizing: border-box;
        }

        .cf-input::placeholder,
        .cf-textarea::placeholder {
            color: #929aa8;
        }

        .cf-input:focus,
        .cf-textarea:focus {
            border-color: rgba(255, 255, 255, 0.55);
            background: #262d38;
        }

        .cf-input.cf-err,
        .cf-textarea.cf-err {
            border-color: #f20a0a !important;
        }

        .cf-textarea {
            resize: none;
            height: 120px;
            line-height: 1.8;
        }

        .cf-err-msg {
            font-size: 11px;
            color: #e05252;
            opacity: 0;
            height: 0;
            overflow: hidden;
            transition: opacity 0.2s ease, height 0.2s ease;
        }

        .cf-err-msg.cf-show {
            opacity: 1;
            height: 16px;
        }

        .cf-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
            margin: 4px 0 18px;
        }

        .cf-submit-row {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
        }

        .cf-submit-btn {
            background: #ffffff;
            color: #12151a;
            border: none;
            border-radius: 999px;
            padding: 0 28px;
            height: 42px;
            font-family: inherit;
            font-weight: 400;
            font-size: 14px;
            letter-spacing: 0.05em;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .cf-submit-btn:hover:not(:disabled) {
            opacity: 1;
			background-color: #0dde5d;
            color: #12151a;
        }

        .cf-submit-btn:active:not(:disabled) {
            transform: scale(0.97);
        }

        .cf-submit-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .cf-spinner {
            display: none;
            width: 13px;
            height: 13px;
            border: 1.5px solid rgba(0, 0, 0, 0.2);
            border-top-color: #12151a;
            border-radius: 50%;
            animation: cfSpin 0.65s linear infinite;
        }

        @keyframes cfSpin {
            to { transform: rotate(360deg); }
        }

        .cf-submit-btn.cf-loading .cf-spinner {
            display: block;
        }

        .cf-note {
            font-size: 14px;
            color: #838c9e;
        }

        .cf-status-fail {
            display: none;
            background: rgba(224, 82, 82, 0.1);
            border: 1px solid rgba(224, 82, 82, 0.3);
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 12px;
            color: #e05252;
            line-height: 1.7;
            margin-top: 14px;
        }

        .cf-status-fail.cf-show {
            display: block;
        }

        .cf-done {
            display: none;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 32px 16px;
            gap: 14px;
            animation: cfFadeUp 0.45s ease forwards;
        }

        .cf-done.cf-show {
            display: flex;
        }

        @keyframes cfFadeUp {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .cf-done-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(82, 201, 122, 0.12);
            border: 1px solid rgba(82, 201, 122, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cf-done-icon svg {
            width: 20px;
            height: 20px;
            stroke: #52c97a;
            stroke-width: 2.2;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .cf-done h3 {
            font-size: 17px;
            font-weight: 500;
            color: #f0f0f0;
            margin: 0;
        }

        .cf-done p {
            font-size: 13px;
            color: #8a8f9a;
            line-height: 1.9;
            margin: 0;
        }

        .cf-back-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            padding: 0 22px;
            height: 36px;
            font-family: inherit;
            font-size: 12px;
            color: #8a8f9a;
            cursor: pointer;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .cf-back-btn:hover {
            border-color: rgba(255, 255, 255, 0.55);
            color: #f0f0f0;
        }

      @media (max-width: 640px) {
    h1 {
        font-size: clamp(0.85rem, 5.4vw, 1.375rem);
    }

    .profile-content {
        flex-direction: column;
    }

    .profile-image {
        width: 96px;
        height: 96px;
    }

    .filter-container {
        top: 77px;
    }

    .profile-basic {
        text-align: center;
    }
}

.load-more-btn {
    display: block;
	width: fit-content;
    margin: 3rem auto 2rem;
    padding: 0.5rem 1.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

@keyframes morePulse {
    0%, 100% { background-color: #fff; color: #000; }
    50%       { background-color: #1f2937; color: #d1d5db; }
}

.load-more-btn:hover {
    animation: morePulse 1.7s ease-in-out infinite;
}