/* STUDIO T2O - Design System 2026 (The Most Beautiful Edit) */
:root {
    --bg-color: #FAFAFA;
    --text-primary: #173E9C;
    /* ユーザー指定の紺色 */
    --text-secondary: #173E9C;
    /* セカンダリも同色系に調整 */
    --accent-color: #173E9C;

    /* Typography System */
    --font-heading: 'Bebas Neue', 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-primary: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-sub: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-jp: 'Noto Sans JP', 'Montserrat', sans-serif;
    --font-sans: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-serif: 'Montserrat', 'Noto Sans JP', sans-serif;

    --radius-lg: 12px;
    --radius-sm: 8px;
}

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

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

body {
    /* 左下が青、右上が黄色のグラデーション（モックアップに準拠） */
    background: linear-gradient(45deg, #7db9f7 0%, #e1f5fe 45%, #fff89b 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes focusIn {
    0% {
        filter: blur(20px);
        transform: scale(1.1);
    }

    100% {
        filter: blur(0);
        transform: scale(1);
    }
}

/* Background Abstract - Removed for Plan B (replaced by body gradient) */
.fixed-background {
    display: none;
}

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

ul {
    list-style: none;
}

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

/* Header - Floating Glass Island */
.site-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    will-change: transform;
    width: auto;
    min-width: 320px;
    padding: 12px 32px;
    z-index: 2000;
    /* Higher than mobile-nav (1000) to keep toggle visible */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.site-header .container {
    padding: 0;
    display: flex;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
}



.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.lang-switch {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    padding-left: 20px;
}

/* On Desktop hide menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* X Animation for 3-line Hamburger */
.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-switch button,
.lang-switch a {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.lang-switch button.active,
.lang-switch a.active {
    color: var(--text-primary);
    pointer-events: none;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Dynamic height for full-screen overlay */
    background: rgba(255, 255, 255, 0.4);
    /* Significantly more transparent for better background context */
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-content li {
    margin: 18px 0;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active .mobile-nav-content li {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for menu items */
.mobile-nav.active .mobile-nav-content li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.active .mobile-nav-content li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.active .mobile-nav-content li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.active .mobile-nav-content li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-content a {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.mobile-nav-content a:hover {
    opacity: 0.5;
}

/* Hero Section */
.hero-section {
    height: 100lvh;
    height: var(--vh-fixed, 100lvh);
    /* Fixed height to large viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    /* ABOUTセクションタイトルと同じサイズ */
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.4em;
    margin-bottom: 20px;
    color: #173E9C;
    /* 濃い青（モックアップ準拠） */
    text-indent: 0.4em;
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-sub);
    font-size: 0.7rem;
    /* モックアップに合わせて縮小 */
    color: #4A90E2;
    font-weight: 500;
    letter-spacing: 0.3em;
    max-width: 1000px;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: center;
    margin: 0 auto;
}

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

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

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* General Layout */
section {
    padding: 180px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.4em;
    text-align: center;
    color: #173E9C;
    /* 濃い青（モックアップ準拠） */
    text-indent: 0.4em;
}

.section-subtitle {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: #4A90E2;
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* UI Components */
.divider-line {
    width: 60px;
    height: 1.5px;
    background: var(--text-primary);
    margin: 30px auto 30px;
    opacity: 0.8;
}

.divider-line.thinner {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* 画像を小さくするためグリッド幅を縮小 */
    gap: 80px;
    align-items: start;
    margin-top: 60px;
    margin-bottom: 80px;
}

.profile-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.name-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* gapをなくす */
    align-items: flex-start;
}

.name-block .jp-name {
    font-size: 1.6rem;
    /* モックアップに合わせて縮小 */
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #173E9C;
    /* 濃い青（モックアップ準拠） */
    line-height: 1.2;
    /* 行高を詰める */
}

.name-block .en-name {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    color: #173E9C;
    /* 濃い青（モックアップ準拠） */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: -4px;
    /* ネガティブマージンでルビのように近づける */
}

.profile-image-container {
    width: 100%;
}

.profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.profile-right {
    padding-top: 10px;
}

.roles-accent {
    font-family: var(--font-sub);
    font-size: 1rem;
    /* モックアップに合わせて小さく */
    font-weight: 600;
    color: #4A90E2;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
}

.bio-text {
    font-size: 1rem;
    /* 2pt増加 */
    color: var(--text-primary);
    line-height: 2.0;
    text-align: left;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    /* モックアップに合わせて控えめに */
    margin-top: 80px;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #999999;
    /* 控えめなグレー */
    display: block;
    text-align: center;
    text-transform: uppercase;
}

.career-timeline {
    position: relative;
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    /* 左側に年号、右側にタイトル */
    gap: 40px;
    margin-bottom: 60px;
    align-items: baseline;
}

.timeline-item .year {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: #999999;
    /* 年号は薄いグレー */
    letter-spacing: 0.05em;
    text-align: right;
}

.timeline-item .role .title {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    font-weight: 700;
    color: #173E9C;
    /* 指定の紺色 */
    display: inline-block;
}

.timeline-item .role::after {
    /* ロールの隣に表示される追加情報 */
    content: attr(data-subtitle);
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: #173E9C;
    margin-left: 15px;
    font-weight: 600;
    opacity: 0.9;
}

/* Career Highlights (Nested) */
.career-highlights {
    grid-column: 2;
    /* 内容の下に配置 */
    margin-top: 20px;
    padding-left: 20px;
    border-left: 1.5px solid #173E9C;
    opacity: 0.9;
}

.highlight-item {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    align-items: baseline;
    color: #173E9C;
}

.highlight-year {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
}

.highlight-title {
    font-family: var(--font-jp);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

font-size: 0.95rem;
color: var(--text-primary);
line-height: 1.4;
}

.highlight-desc {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}


/* Works Section */
.works-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.works-category-section {
    position: relative;
}

.category-title {
    font-family: var(--font-sub);
    font-size: 1.8rem;
    /* モックアップに合わせて調整 */
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #173E9C;
    /* 統一した紺色 */
    margin-bottom: 8px;
    text-transform: none;
    /* 大文字固定を解除 */
}

.category-desc {
    font-size: 0.85rem;
    color: #173E9C;
    margin-bottom: 32px;
    padding-top: 12px;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.featured-header {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    opacity: 0.6;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 60px 40px;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-thumbnail,
.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid currentColor;
    opacity: 0.7;
}

.detail-link:hover {
    opacity: 1;
}

.work-card:hover .work-thumbnail img {
    transform: scale(1.05);
}

.work-info .title {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    font-weight: 700;
    color: #173E9C;
    /* 統一した紺色 */
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.work-info .metadata {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.work-info .metadata span {
    display: block;
}

.work-item .metadata-group {
    display: contents;
    /* Allow children to participate in the parent grid */
}

.work-item .client,
.work-item .role,
.work-item .type {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.work-item .role {
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
}

.work-item .link-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F5F7;
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.work-item:hover .link-icon {
    background: var(--text-primary);
    color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.partners-block {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    backface-visibility: hidden;
    transform: translateZ(0);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.02);
}

.partners-block h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
}

.partners-block ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 80px 60px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.contact-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 48px;
    color: var(--text-secondary);
    line-height: 2;
    letter-spacing: 0.05em;
    /* v7: Japanese Line Break Fix */
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid #EDEDF0;
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.4s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.contact-button {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--text-primary);
    color: white;
    border-radius: 99px;
    border: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s;
}

.contact-button:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    padding: 100px 0 60px 0;
    text-align: center;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {

    /* Layout & Global */
    .container {
        padding: 0 24px;
    }

    .site-header {
        width: calc(100% - 32px);
        top: 16px;
        border-radius: 999px;
        padding: 10px 24px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
    }

    .site-header .container {
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .header-right {
        gap: 20px;
    }

    .lang-switch {
        padding-left: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        padding-right: 12px;
    }

    .main-nav {
        display: none;
        /* Keep desktop nav hidden */
    }

    /* Hero */
    .hero-content {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 32px;
    }

    /* Profile */
    .profile-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .profile-image-container {
        max-width: 320px;
        margin: 0 auto;
    }

    .bio-text {
        font-size: 1rem;
        line-height: 2;
    }

    /* Career Timeline Stacking */
    .timeline-item {
        margin-bottom: 48px;
    }

    .timeline-item .year {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }

    .career-highlights {
        margin-left: 0;
        padding-left: 20px;
        margin-top: 24px;
    }

    .highlight-item {
        gap: 16px;
    }

    /* Works Card Layout */
    .works-header {
        display: none;
    }

    .work-item {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 12px;
        position: relative;
    }

    .work-item .year {
        font-size: 0.8rem;
        opacity: 0.6;
    }

    .work-item .title {
        font-size: 1.1rem;
        margin-top: 0;
        padding-right: 32px;
        /* Space for link icon */
    }

    .work-item .metadata-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }

    .work-item .client,
    .work-item .role,
    .work-item .type {
        margin-top: 0;
        font-size: 0.75rem;
    }

    .work-item .link-icon {
        position: absolute;
        top: 24px;
        right: 24px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Contact */
    .contact-content {
        padding: 60px 24px;
        width: 100%;
    }

    .contact-text {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .contact-button {
        width: 100%;
        padding: 18px;
    }
}