/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Variables */
:root {
    /* Dark Mode Colors (default) */
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-modal: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    --bg-header: linear-gradient(to bottom, rgba(26, 26, 46, 0.95), rgba(15, 20, 25, 0.95));
    --bg-footer: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(15, 20, 25, 0.95));
    
    --text-primary: #e8e8e8;
    --text-secondary: #aaa;
    --text-accent: #d4af37;
    --text-gold: #ffd700;
    --text-dark: #2c1810;
    
    --border-primary: rgba(212, 175, 55, 0.3);
    --border-accent: #d4af37;
    --border-dark: #8b6914;
    
    --shadow-primary: 0 5px 20px rgba(212, 175, 55, 0.2);
    --shadow-hover: 0 12px 35px rgba(212, 175, 55, 0.4);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    --particle-color: #ffd700;

    --font-gothic: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, 'Segoe UI', sans-serif;
    --font-mincho: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS PMincho', serif;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(160deg, #020306 0%, #06091a 18%, #0a0f1e 38%, #08101a 62%, #050810 80%, #010204 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Readable numbers for content text */
.readable-numbers {
    font-family: var(--font-mincho);
}

/* Magical particles background */
.magical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--particle-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translate(0, -10vh) rotate(360deg); opacity: 0; }
}

/* 回転する魔法陣の背景 */
.magic-circle-bg {
    position: fixed;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    pointer-events: none;
    animation: rotateMagicCircle 120s linear infinite;
    z-index: 0;
}

@keyframes rotateMagicCircle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.magic-circle-bg svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Header（装飾強化） */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 3px double var(--border-accent);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.5),
        var(--shadow-glow);
}

/* ヘッダーの装飾的なコーナー */
.navbar::before,
.navbar::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><g fill="none" stroke="%23d4af37" stroke-width="1.5" opacity="0.4"><rect x="5" y="5" width="50" height="50" transform="rotate(45, 30, 30)"/><circle cx="30" cy="30" r="20"/><path d="M30 10 L40 25 L55 30 L40 35 L30 50 L20 35 L5 30 L20 25 Z"/></g></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.4;
}

.navbar::before {
    top: 10px;
    left: 20px;
}

.navbar::after {
    top: 10px;
    right: 20px;
    transform: scaleX(-1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-accent);
    text-decoration: none;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        var(--shadow-glow);
    position: relative;
    animation: inkBleed 4s ease-in-out infinite;
}

@keyframes inkBleed {
    0% { filter: blur(0px); }
    50% { filter: blur(0.3px); }
    100% { filter: blur(0px); }
}

/* ロゴの幾何学的装飾 */
.navbar-logo::before,
.navbar-logo::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><g fill="none" stroke="%238b6914" stroke-width="1"><rect x="2" y="2" width="11" height="11" transform="rotate(45, 7.5, 7.5)"/><circle cx="7.5" cy="7.5" r="4"/></g></svg>') no-repeat center;
    background-size: contain;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.navbar-logo::before {
    left: -30px;
    animation: rotateSymbol 8s linear infinite;
}

.navbar-logo::after {
    right: -30px;
    animation: rotateSymbol 8s linear infinite reverse;
}

@keyframes rotateSymbol {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-links a:hover {
    color: var(--text-accent);
    text-shadow: 0 0 8px var(--text-accent);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-accent), var(--text-gold));
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.4)
    ),
    url("Image/bg.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1.5s ease;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #e8e8e8;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

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

/* Section Styles（背景装飾維持） */
.section {
    padding: 5rem 2rem;
    position: relative;
}

/* セクション見出しの背景装飾（維持） */
.section::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><g fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.2"><circle cx="75" cy="75" r="70"/><circle cx="75" cy="75" r="50"/><path d="M75 5 L90 60 L145 75 L90 90 L75 145 L60 90 L5 75 L60 60 Z"/></g></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-accent);
    text-shadow: 
        1px 1px 0 var(--border-dark),
        2px 2px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '✦ ✧';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--border-dark);
    opacity: 0.6;
    font-family: serif;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* News Section */
.news-section {
    position: relative;
}

.news-section::after {
    content: 'ᚾᛁᚹᛋ';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: var(--border-dark);
    opacity: 0.3;
    font-family: serif;
    pointer-events: none;
}

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

.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    font-family: var(--font-mincho);
}

.news-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><g fill="none" stroke="%23d4af37" stroke-width="1"><rect x="2" y="2" width="11" height="11" transform="rotate(45, 7.5, 7.5)"/><circle cx="7.5" cy="7.5" r="3"/></g></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.6;
}

.news-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.news-date {
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.news-item a {
    color: var(--text-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

.news-more {
    text-align: center;
    margin-top: 2rem;
}

.news-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.15s ease-out;
    box-shadow: var(--shadow-primary);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--border-dark);
}

.news-more-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* News Detail Modal */
.news-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    background: var(--bg-modal);
    margin: 5% auto;
    padding: 0;
    border: 3px double var(--border-accent);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        var(--shadow-glow);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.news-modal-header {
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.news-modal-header::before,
.news-modal-header::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="%232c1810" stroke-width="1.5" opacity="0.3"><rect x="3" y="3" width="14" height="14" transform="rotate(45, 10, 10)"/><circle cx="10" cy="10" r="6"/></g></svg>') no-repeat center;
    background-size: contain;
}

.news-modal-header::before {
    top: 10px;
    left: 10px;
}

.news-modal-header::after {
    top: 10px;
    right: 50px;
}

.news-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.news-modal-body {
    padding: 2rem;
    position: relative;
}

.news-modal-body::before,
.news-modal-body::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><g fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.2"><rect x="2" y="2" width="11" height="11" transform="rotate(45, 7.5, 7.5)"/><circle cx="7.5" cy="7.5" r="4"/></g></svg>') no-repeat center;
    background-size: contain;
}

.news-modal-body::before {
    top: 15px;
    left: 15px;
}

.news-modal-body::after {
    bottom: 15px;
    right: 15px;
}

.news-modal-date {
    color: var(--text-accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-modal-description {
    line-height: 1.8;
    font-size: 1rem;
    font-family: var(--font-mincho);
}

.news-modal-description a {
    color: var(--text-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-modal-description a:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

/* About Section（装飾強化） */
.about-section {
    color: var(--text-primary);
    position: relative;
}

.about-section::after {
    content: 'ᚨᛒᚢᛏ';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: var(--border-dark);
    opacity: 0.3;
    font-family: serif;
    pointer-events: none;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
}

/* Aboutコンテナの幾何学装飾 */
.about-container::before,
.about-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g fill="none" stroke="%23d4af37" stroke-width="1.5" opacity="0.4"><rect x="5" y="5" width="20" height="20" transform="rotate(45, 15, 15)"/><circle cx="15" cy="15" r="8"/><path d="M15 7 L19 12 L24 15 L19 18 L15 23 L11 18 L6 15 L11 12 Z"/></g></svg>') no-repeat center;
    background-size: contain;
}

.about-container::before {
    top: 20px;
    left: 20px;
    animation: rotateSymbol 15s linear infinite;
}

.about-container::after {
    bottom: 20px;
    right: 20px;
    animation: rotateSymbol 15s linear infinite reverse;
}

.about-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-accent);
    box-shadow: 
        var(--shadow-primary),
        0 0 0 8px var(--bg-card),
        0 0 0 10px var(--border-primary);
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dotted var(--border-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotateMagicCircle 60s linear infinite;
}

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

.about-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-shadow: 
        1px 1px 0 var(--border-dark),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-family: var(--font-mincho);
}

.about-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    border: 2px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.about-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.5s ease;
}

.about-link:hover::before {
    left: 100%;
}

.about-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.social-link:hover {
    background: var(--border-primary);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

/* Work Section */
.work-section {
    color: var(--text-primary);
    position: relative;
}

.work-section::after {
    content: 'ᚹᛟᚱᚲ';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: var(--border-dark);
    opacity: 0.3;
    font-family: serif;
    pointer-events: none;
}

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

.work-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-primary);
}

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

.work-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.15s ease-out;
    backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
}

.work-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        var(--border-primary) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-item:hover::before {
    opacity: 1;
    animation: magicGlow 2s ease-in-out infinite;
}

@keyframes magicGlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.work-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

.work-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(15%) contrast(1.1);
    transition: all 0.3s ease;
}

.work-item:hover .work-image img {
    filter: sepia(0%) contrast(1.2);
}

.work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--border-primary), var(--text-gold));
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.work-item:hover .work-image::before {
    opacity: 1;
}

.work-content {
    padding: 1.5rem;
}

.work-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.work-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mincho);
}

.work-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-mincho);
}

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

.work-tag {
    padding: 0.3rem 0.8rem;
    background: var(--border-primary);
    border: 1px solid var(--border-accent);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-accent);
}

.work-item.hidden {
    display: none;
}

/* Work Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-modal);
    margin: 2% auto;
    padding: 0;
    border: 3px double var(--border-accent);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        var(--shadow-glow);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    position: relative;
}

.modal-body::before,
.modal-body::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><g fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.2"><rect x="2" y="2" width="11" height="11" transform="rotate(45, 7.5, 7.5)"/><circle cx="7.5" cy="7.5" r="4"/></g></svg>') no-repeat center;
    background-size: contain;
}

.modal-body::before {
    top: 15px;
    left: 15px;
}

.modal-body::after {
    bottom: 15px;
    right: 15px;
}

.modal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-primary);
    background: linear-gradient(135deg, #333, #555);
}

/* Work Detail Modal - Image Gallery */
.modal-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.modal-image-gallery.single {
    grid-template-columns: 1fr;
}

.modal-gallery-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    background: linear-gradient(135deg, #333, #555);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.modal-image-gallery.single .modal-gallery-img {
    aspect-ratio: 16/9;
    cursor: default;
}

.modal-gallery-img:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
    transform: scale(1.01);
}

.modal-year {
    color: var(--text-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-mincho);
}

.modal-description {
    line-height: 1.8;
    font-size: 1rem;
    font-family: var(--font-mincho);
}

.modal-description a {
    color: var(--text-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-description a:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

.modal-description blockquote {
    background: var(--bg-card);
    border-left: 4px solid var(--border-accent);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 10px 10px 0;
    font-family: var(--font-mincho);
    position: relative;
}

.modal-description blockquote::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><g fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"><path d="M3 12 Q3 3, 12 3"/><path d="M6 9 Q6 6, 9 6"/></g></svg>') no-repeat center;
    background-size: contain;
}

.modal-description hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
    margin: 2rem 0;
}

/* URL Card（リンクカードブロック） */
.modal-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.url-card {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 80px;
}

.url-card:hover {
    border-color: var(--border-accent);
    background: rgba(212, 175, 55, 0.05);
    text-decoration: none;
    color: inherit;
}

.url-card-body {
    flex: 1;
    padding: 0.85rem 1.1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.url-card-title {
    font-family: var(--font-mincho);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-card-desc {
    font-family: var(--font-mincho);
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    flex: 1;
}

.url-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.65;
}

.url-card-favicon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.url-card-hostname {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-card-image {
    width: 130px;
    min-height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-left: 1px solid var(--border-primary);
}

/* Footer（コンパクト版） */
.footer {
    background: var(--bg-footer);
    color: var(--text-primary);
    text-align: center;
    padding: 30px 20px;
    border-top: 2px solid var(--border-accent);
    position: relative;
    z-index: 10;
}

/* フッターの装飾（小さめ） */
.footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 30"><g fill="none" stroke="%23d4af37" stroke-width="1.5" opacity="0.4"><path d="M15 15 L30 8 L60 15 L90 8 L105 15"/><circle cx="30" cy="15" r="4"/><circle cx="60" cy="15" r="4"/><circle cx="90" cy="15" r="4"/></g></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-dark) 20%, 
        var(--border-accent) 50%, 
        var(--border-dark) 80%, 
        transparent
    );
    opacity: 0.3;
}

.footer p {
    font-family: 'Cinzel', serif;
    font-size: 1em;
    text-shadow: var(--shadow-glow);
    color: var(--text-accent);
}

/* About Page Specific Styles（装飾追加） */
.main-content {
    max-width: 1000px;
    margin: 120px auto 0;
    padding: 2rem;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    color: var(--text-accent);
    margin-bottom: 3rem;
    text-shadow: var(--shadow-glow);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.profile-section::before,
.profile-section::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><g fill="none" stroke="%23d4af37" stroke-width="1.5" opacity="0.4"><rect x="3" y="3" width="19" height="19" transform="rotate(45, 12.5, 12.5)"/><circle cx="12.5" cy="12.5" r="8"/></g></svg>') no-repeat center;
    background-size: contain;
}

.profile-section::before {
    top: 15px;
    left: 15px;
    animation: rotateSymbol 12s linear infinite;
}

.profile-section::after {
    bottom: 15px;
    right: 15px;
    animation: rotateSymbol 12s linear infinite reverse;
}

.profile-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--border-accent);
    box-shadow: var(--shadow-primary);
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.profile-info .tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-gold);
    margin-bottom: 1.5rem;
}

.profile-info .basic-info {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-mincho);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: var(--font-mincho);
}

.experience-item {
    background: var(--bg-card);
    border-left: 3px solid var(--border-accent);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.experience-item h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.experience-item .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item p {
    font-family: var(--font-mincho);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--text-accent), var(--text-gold));
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3rem;
    border: 2px solid var(--border-dark);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 装飾的な区切り線 */
.ornamental-divider {
    text-align: center;
    margin: 60px 0;
    font-size: 28px;
    color: var(--border-dark);
    opacity: 0.6;
    text-shadow: var(--shadow-glow);
    animation: glow 3s ease-in-out infinite;
    font-family: 'Cinzel', serif;
}

@keyframes glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* 幾何学パターンアニメーション */
@keyframes geometricFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
        opacity: 0.7; 
    }
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28'%3E%3Cline x1='80' y1='14' x2='574' y2='14' stroke='%23d4af37' stroke-width='0.6' opacity='0.3'/%3E%3Cpolygon points='600,5 608,14 600,23 592,14' fill='none' stroke='%23d4af37' stroke-width='1' opacity='0.5'/%3E%3Ccircle cx='600' cy='14' r='2' fill='%23d4af37' opacity='0.55'/%3E%3Cline x1='626' y1='14' x2='1120' y2='14' stroke='%23d4af37' stroke-width='0.6' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
    }
    
    .theme-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-links {
        gap: 1rem;
    }

    .navbar-logo {
        font-size: 1.6rem;
    }

    .navbar-logo::before,
    .navbar-logo::after {
        display: none;
    }

    .navbar::before,
    .navbar::after {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .about-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .about-image::before {
        width: 280px;
        height: 280px;
    }

    .work-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .modal-content,
    .news-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body,
    .news-modal-body {
        padding: 1.5rem;
    }

    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-image {
        justify-self: center;
        width: 250px;
        height: 250px;
    }

    .main-content {
        padding: 1rem;
    }

    .profile-section {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}