/* ========================================
   photo51 | Ryosuke Takano Photography
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #080808;
    color: #e8e8e8;
    font-family: "Helvetica Neue", "Helvetica", Arial, "Yu Gothic", "YuGothic", "游ゴシック", sans-serif;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 0.1em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 13px;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-left: 10px;
}

.lang-option {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-option:hover,
.lang-option.active {
    opacity: 1;
}

.lang-separator {
    opacity: 0.3;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #e8e8e8;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #1a1a1a;
}

.lang-switcher-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

.lang-switcher-mobile .lang-option {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-switcher-mobile .lang-option.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.28), rgba(8, 8, 8, 0.72));
    z-index: 1;
}

.aurora-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #0a0a14 0%,
        #0d1f2d 20%,
        #1a3a52 40%,
        #2d5f4f 60%,
        #4a3f5f 80%,
        #0a0a14 100%);
    animation: auroraShift 15s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(0.6);
    }
    50% {
        opacity: 1;
        filter: brightness(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content-home {
    max-width: 780px;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.8;
}

.hero-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    opacity: 0.95;
}

.hero-description {
    max-width: 620px;
    margin: 24px auto 0;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    font-size: 24px;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 0.2em;
    }

    .hero-description {
        font-size: 14px;
        margin-top: 18px;
    }
}

.home-intro {
    padding: 90px 0 110px;
}

.home-intro-inner {
    max-width: 860px;
}

.intro-text {
    font-size: 16px;
    line-height: 2;
    text-align: center;
    color: rgba(232, 232, 232, 0.88);
}

.home-links {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 22px;
    border: 1px solid rgba(232, 232, 232, 0.22);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .home-intro {
        padding: 72px 0 88px;
    }

    .home-links a {
        width: 100%;
        min-width: 0;
    }
}

.work-page {
    padding: 140px 0 100px;
    min-height: 100vh;
}

.work-intro {
    max-width: 760px;
    margin: 0 auto 90px;
    text-align: center;
}

.work-lead {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.series {
    margin-bottom: 120px;
}

.series:last-child {
    margin-bottom: 0;
}

.series-header {
    margin-bottom: 50px;
    text-align: center;
}

.series-number {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 10px;
}

.series-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.series-info {
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.gallery-item {
    aspect-ratio: 3/2;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    opacity: 0.8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-note {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 10px;
    font-style: italic;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #e8e8e8;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.about-page {
    display: block;
    padding: 140px 0 110px;
    min-height: 100vh;
}

.about-profile {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.about-portrait {
    position: sticky;
    top: 110px;
}

.about-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 42% 38%;
    display: block;
    border-radius: 4px;
}

.about-copy {
    max-width: 640px;
}

.about-kicker {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 10px;
}

.about-name {
    font-size: 34px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.about-role {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 30px;
}

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

.about-text {
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.2s forwards;
}

.about-copy .about-text {
    max-width: none;
    margin: 0;
    text-align: left;
    opacity: 1;
    animation: none;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-credits {
    max-width: 1120px;
    margin: 72px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(232, 232, 232, 0.12);
}

.about-credits h2 {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.78;
}

.about-credits-body ul {
    list-style: none;
}

.about-credits-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(232, 232, 232, 0.9);
}

.about-credits-body li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.45;
}

@media (max-width: 900px) {
    .about-profile {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-portrait {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-copy {
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 15px;
        line-height: 1.9;
    }

    .about-copy .about-text {
        text-align: left;
    }

    .about-name {
        font-size: 28px;
    }

    .about-role {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .intro-text,
    .work-lead,
    .contact-text,
    .contact-note,
    .about-credits-body li {
        font-size: 14px;
        line-height: 1.85;
    }
}

.contact-page {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.contact-text,
.contact-note {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    color: rgba(232, 232, 232, 0.82);
}

.contact-text {
    margin-bottom: 24px;
}

.contact-note {
    margin-top: 22px;
}

.contact-email {
    font-size: 20px;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.2s forwards;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-email {
        font-size: 16px;
    }
}
