/* フォントの読み込み */
@font-face {
    font-family: 'Kano';
    src: url('_fonts/Kano.otf') format('opentype');
}

@font-face {
    font-family: 'JapaneseFont';
    src: url('_fonts/font_jp.otf') format('opentype');
}

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

body {
    font-family: 'Kano', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
}

/* ホームページではスクロールを無効化 */
body:not(.about-page):not(.works-page):not(.contact-page) {
    overflow: hidden;
    height: 100vh;
}

/* About/Works/Contactページではスクロールを許可 */
body.about-page,
body.works-page,
body.contact-page {
    overflow-y: scroll;
}

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

/* UMAART Motion Graphic Overlay */
.render-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.render-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* UMAART Motion Graphic */
.umaart-motion-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
}

.umaart-motion-container.hidden {
    display: none;
}

.umaart-motion-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: 'Kano', sans-serif;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    position: relative;
}

.umaart-char {
    display: inline-block;
    opacity: 0;
    width: 0;
    overflow: hidden;
    animation: slideInChar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.umaart-char:nth-child(1) {
    animation-delay: 0.1s;
}

.umaart-char:nth-child(2) {
    animation-delay: 0.15s;
}

.umaart-char:nth-child(3) {
    animation-delay: 0.2s;
}

.umaart-char:nth-child(4) {
    animation-delay: 0.25s;
}

.umaart-char:nth-child(5) {
    animation-delay: 0.3s;
}

.umaart-char:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes slideInChar {
    0% {
        opacity: 0;
        width: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        width: auto;
        transform: translateX(0);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-family: 'Kano', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: translateX(5px);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background: transparent;
    padding: 150px 50px 40px 40px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.nav-menu:hover {
    right: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.nav-links li {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.nav-menu.active .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active .nav-links li:nth-child(1) {
    transition-delay: 0.05s;
}

.nav-menu.active .nav-links li:nth-child(2) {
    transition-delay: 0.1s;
}

.nav-menu.active .nav-links li:nth-child(3) {
    transition-delay: 0.15s;
}

.nav-menu.active .nav-links li:nth-child(4) {
    transition-delay: 0.2s;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-menu.active .nav-links a {
    color: #fff;
}

.nav-links a:hover {
    color: #ff8c00;
    transform: translateX(-5px);
}

/* 現在のページに下線を追加 */
.nav-links a.active {
    display: inline-block;
    width: fit-content;
    padding-bottom: 2px;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: #fff;
}

/* メニュー下の横線 */
.menu-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 1);
    margin: 40px 0;
}

.menu-sns-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-top: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.nav-menu.active .menu-sns-links {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.menu-sns-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.menu-sns-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.menu-sns-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) brightness(1.5);
    opacity: 1;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    pointer-events: none;
}

.menu-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Footer Overlay */
.footer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    pointer-events: none;
}

.footer-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Digest Section */
.digest-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

/* Right Side Works / Play Reel Links - 共通スタイル */
/* 回転後の見た目の位置を正確に揃える */
.works-link,
.play-reel-link {
    position: fixed;
    right: 40px;
    top: 50%;
    font-family: 'Kano', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    /* 両方のリンクに同じ幅のBoxを設定（回転前の幅） */
    width: 140px;
    height: 20px;
    box-sizing: border-box;
    line-height: 1;
    /* 回転の中心点をBoxの中心に設定 */
    transform-origin: center center;
    /* 画面の高さに対して常に中央に配置し、回転 */
    transform: translateY(-50%) rotate(90deg);
}

.works-link:hover,
.play-reel-link:hover {
    transform: translateY(-50%) rotate(90deg) scale(1.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
}

body.menu-open .works-link,
body.menu-open .play-reel-link {
    opacity: 0;
    visibility: hidden;
}

.digest-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* 動画が読み込まれていない場合でも背景を表示 */
.video-placeholder video {
    background: #000;
}

/* Cube Container */
.cube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    perspective: 1000px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.cube-container.visible {
    opacity: 1;
}

/* キューブの周りにブラーと暗い背景を追加 */
.cube-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.cube-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 250px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    cursor: grab;
    transition: transform 0.1s ease-out;
    transform: scale(0.9);
}

.cube:active {
    cursor: grabbing;
}

.cube.dragging {
    transition: none;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

.cube-face:hover {
    font-size: 1.8rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.cube-face span {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
}

.cube-front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Footer / SNS Links */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 48px 0;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 2000;
}

.footer.visible {
    transform: translateY(0);
}

.sns-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 75px;
}

.sns-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sns-link:hover {
    transform: scale(1.1);
}

.sns-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

/* Page Footer Banner (Works, About, Contact pages) */
.page-footer-banner {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 100;
}

/* Worksページのフッター背景を暗く、横線とアイコンを白に */
body.works-page .page-footer-banner {
    background: #1a1a1a;
}

.page-footer-top-line {
    position: relative;
    width: 80%;
    height: 0.5px;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 作品詳細ページのフッター横線を画像ギャラリーの幅に合わせる */
.work-detail-page .page-footer-top-line {
    width: 100%;
    max-width: 1200px;
}

/* Worksページの横線を白に */
body.works-page .page-footer-top-line {
    background: #fff;
}

.page-footer-top-link {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    font-family: 'Kano', sans-serif;
    font-size: 0.75rem;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

/* WorksページのTOPリンクの背景とテキスト色を調整 */
body.works-page .page-footer-top-link {
    background: #1a1a1a;
    color: #fff;
}

.page-footer-top-link:hover {
    opacity: 0.7;
}

.page-footer-sns-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 75px;
}

.page-footer-sns-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-footer-sns-link:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.page-footer-sns-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

/* Worksページのアイコンを白に */
body.works-page .page-footer-sns-icon {
    filter: brightness(0) invert(1);
}

/* Works Page - ShowReel Section */
body.works-page {
    background: #1a1a1a;
}

.showreel-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #1a1a1a;
    z-index: 1;
}

.showreel-dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    pointer-events: none;
    transition: background 0.1s ease;
}

.showreel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showreel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
}

.showreel-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    opacity: 1;
    transform: translateY(0);
}

.showreel-title {
    font-family: 'Kano', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    animation: fadeOutTitle 1s ease-out 0.5s forwards;
}

@keyframes fadeOutTitle {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.showreel-play-link {
    font-family: 'Kano', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.showreel-play-link:hover {
    opacity: 0.7;
}

.scroll-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.1s ease;
    cursor: pointer;
}

.scroll-text {
    font-family: 'Kano', sans-serif;
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
}

.scroll-arrow {
    width: 1px;
    height: 20px;
    background: #fff;
    position: relative;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #fff;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}


/* Works Page - Works Grid Section */
.works-grid-section {
    position: relative;
    padding: 80px 0 80px 0;
    background: #1a1a1a;
    margin-top: 100vh;
    z-index: 10;
    min-height: 100vh;
}

.works-section-title {
    font-family: 'Kano', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-top: 40px;
}

/* Works Tabs */
.works-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.works-tab {
    font-family: 'Kano', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.works-tab::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.works-tab.active {
    color: #fff;
}

.works-tab.active::after {
    width: 100%;
}

.works-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.work-item-wrapper {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.work-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.work-link:hover {
    opacity: 0.9;
}

.work-item {
    aspect-ratio: 16 / 9;
    background: #3a3a3a;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.work-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.work-digest {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-thumbnail {
    opacity: 0;
}

.work-item:hover .work-digest {
    opacity: 1;
}

.work-item:not(:hover) .work-digest {
    opacity: 0;
}

.work-placeholder {
    font-family: 'Kano', sans-serif;
    font-size: 1.2rem;
    color: #999;
}

.work-title {
    font-family: 'Kano', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-top: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-category-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Page Styles */
.profile-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 100px 20px 50px;
    text-align: center;
}

.profile-section h1 {
    font-size: 30px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 40px;
    color: #000;
    font-family: 'Kano', sans-serif;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 3%;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-name {
    margin-bottom: 15px;
    text-align: left;
}

.name-kanji {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #000;
    font-family: 'JapaneseFont', sans-serif;
}

.profile-description {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    text-align: left;
    max-width: 600px;
    font-family: 'JapaneseFont', sans-serif;
}

.profile-description p {
    margin-bottom: 20px;
}

/* Works Section (About Page) */
.works-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 60px 20px;
    text-align: left;
    font-family: 'Kano', sans-serif;
    color: #000;
}

.works-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    padding-left: 0;
}

.work-year {
    margin-bottom: 30px;
}

.work-year h3 {
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
    font-family: 'Kano', sans-serif;
}

.work-year ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.work-year ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 10px;
    font-family: 'JapaneseFont', sans-serif;
}

/* Contact Section (About Page) */
.contact-section {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Kano', sans-serif;
    color: #000;
}

.contact-section h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-description {
    color: #000;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 90px;
    font-family: 'JapaneseFont', sans-serif;
}

.contact-description a {
    color: #000;
    text-decoration: underline;
}

.contact-description a:hover {
    color: #555;
}

/* Contact Page Styles */
.contact-form-section {
    padding: 100px 20px 50px;
    min-height: 100vh;
}

.contact-form {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    font-family: 'Kano', sans-serif;
}

.contact-form h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #000;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    font-family: 'Kano', sans-serif;
    color: #000;
    background: transparent;
}

textarea {
    resize: none;
}

.name-fields {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.name-fields div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-fields div label {
    font-size: 14px;
    color: #000;
}

.button-container {
    text-align: center;
}

button[type="submit"] {
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Kano', sans-serif;
}

button[type="submit"]:hover {
    transform: scale(1.025);
}

/* Responsive Styles for About/Contact Pages */
@media screen and (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

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

    .profile-description {
        max-width: 100%;
    }

    .works-section,
    .contact-section,
    .contact-form {
        max-width: 90vw;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .name-fields {
        flex-direction: column;
        gap: 12px;
    }

    .name-fields > div {
        flex: 1;
        min-width: 0;
    }

    .name-fields input {
        width: 100%;
    }
}

/* Work Detail Page Styles */
.work-detail-page {
    min-height: 100vh;
    background: #1a1a1a;
    padding-top: 80px;
}

.work-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #fff;
}

.work-detail-title {
    font-family: 'Kano', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
}

.work-detail-content {
    margin-top: 40px;
}


.work-video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.work-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.work-placeholder-text {
    font-family: 'Kano', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Work Credits Section */
.work-credits {
    margin: 60px 0;
    font-family: 'JapaneseFont', sans-serif;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #fff;
    text-align: center;
}

.work-credits-title {
    font-family: 'Kano', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.work-credits p {
    margin: 8px 0;
}

.work-credits strong {
    font-weight: bold;
}

/* Work Image Gallery */
.work-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
    justify-content: flex-start;
}

.work-gallery-image {
    width: calc(50% - 5px);
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.work-gallery-image:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .work-gallery-image {
        width: 100%;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 28px;
    font-weight: 100;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    opacity: 0.7;
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
    padding: 20px;
    user-select: none;
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-prev:hover,
.image-modal-next:hover {
    opacity: 0.7;
}

/* Work Description */
.work-description {
    margin: 40px 0;
    font-family: 'JapaneseFont', sans-serif;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #fff;
    text-align: center;
}

.work-description p {
    margin: 0;
}

/* p5js Container */
.p5js-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.p5js-sketch {
    width: 100%;
    margin-bottom: 20px;
}

.p5js-sketch iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* ============================================
   Mobile Responsive Styles (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 20px 20px;
    }

    .logo h1 {
        font-size: 16px;
    }

    /* Navigation Menu Mobile */
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 120px 30px 40px 30px;
    }

    .nav-links {
        text-align: center;
    }

    .nav-links li {
        margin-bottom: 30px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .menu-sns-links {
        justify-content: center;
        gap: 30px;
    }

    /* Works Page Mobile */
    .works-link {
        display: none;
    }

    .works-grid-section {
        padding: 60px 20px 60px 20px;
        margin-top: 100vh;
    }

    .works-section-title {
        font-size: 1.5rem;
        padding-top: 20px;
    }

    .works-tabs {
        gap: 15px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .works-tab {
        font-size: 0.65rem;
    }

    /* Works Grid - 1 column on mobile */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }

    .work-title {
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .work-category-label {
        font-size: 0.7rem;
    }

    /* ShowReel Section Mobile */
    .showreel-section {
        height: 100vh;
    }

    .showreel-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .showreel-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Work Detail Page Mobile */
    .work-detail-page {
        padding-top: 60px;
    }

    .work-detail-container {
        padding: 30px 15px;
    }

    .work-detail-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .work-video-container {
        margin: 20px 0;
    }

    /* Work Description Mobile */
    .work-description {
        margin: 30px 0;
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Work Credits Mobile */
    .work-credits {
        margin: 40px 0;
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .work-credits-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Work Image Gallery Mobile */
    .work-image-gallery {
        margin-top: 40px;
        gap: 8px;
    }

    /* Image Modal Mobile */
    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

    .image-modal-prev,
    .image-modal-next {
        font-size: 35px;
        padding: 15px;
    }

    .image-modal-prev {
        left: 10px;
    }

    .image-modal-next {
        right: 10px;
    }

    .image-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    /* p5js Container Mobile */
    .p5js-container {
        margin-top: 40px;
        gap: 30px;
    }

    .p5js-sketch iframe {
        height: 400px;
    }

    /* Page Footer Banner Mobile */
    .page-footer-banner {
        padding: 30px 20px;
    }

    .page-footer-top-link {
        font-size: 0.8rem;
    }

    .page-footer-sns-icon {
        width: 20px;
        height: 20px;
    }

    /* About Page Mobile */
    .profile-section {
        padding: 80px 15px 40px;
    }

    .profile-section h1 {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* Contact Page Mobile */
    .contact-section {
        padding: 80px 15px 40px;
    }

    .contact-section h1 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 12px;
    }

    .contact-form button {
        font-size: 0.9rem;
        padding: 12px 30px;
    }
}
