/* 基本設定 */
:root {
    --primary-color: #0a0a0a;
    --accent-color: #ff9ec8; /* 桜色 */
    --accent-gradient: linear-gradient(135deg, #ff9ec8 0%, #ffb7d5 100%);
    --bg-color: #ffffff;
    --bg-light: #fff5f8;
    --bg-dark: #0f1419;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #fce4ec;
    --shadow-sm: 0 2px 8px rgba(255, 158, 200, 0.15);
    --shadow-md: 0 4px 16px rgba(255, 158, 200, 0.2);
    --shadow-lg: 0 8px 32px rgba(255, 158, 200, 0.25);
    --font-main: 'Noto Sans JP', 'Inter', sans-serif;
    --font-en: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: 0.7;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: var(--shadow-md);
}

.logo {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.nav a:hover::after {
    width: 100%;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    overflow: hidden;
}


@keyframes flyDiagonal {
    0% {
        left: -10%;
        top: 85%;
        transform: translate(-50%, -50%) rotate(0deg) perspective(1200px) rotateX(5deg) rotateY(-25deg);
        opacity: 0.5;
    }
    20% {
        left: 15%;
        top: 75%;
        transform: translate(-50%, -50%) rotate(144deg) perspective(1200px) rotateX(4deg) rotateY(-23deg);
        opacity: 0.7;
    }
    40% {
        left: 35%;
        top: 65%;
        transform: translate(-50%, -50%) rotate(288deg) perspective(1200px) rotateX(5deg) rotateY(-25deg);
        opacity: 0.85;
    }
    60% {
        left: 55%;
        top: 55%;
        transform: translate(-50%, -50%) rotate(432deg) perspective(1200px) rotateX(6deg) rotateY(-27deg);
        opacity: 0.9;
    }
    80% {
        left: 75%;
        top: 45%;
        transform: translate(-50%, -50%) rotate(576deg) perspective(1200px) rotateX(7deg) rotateY(-29deg);
        opacity: 0.75;
    }
    100% {
        left: 110%;
        top: 30%;
        transform: translate(-50%, -50%) rotate(720deg) perspective(1200px) rotateX(8deg) rotateY(-30deg);
        opacity: 0.3;
    }
}

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

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

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 158, 200, 0.3);
    border-radius: 0;
    padding: 60px 50px;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 8px 32px rgba(255, 158, 200, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 158, 200, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 158, 200, 0.4), rgba(255, 183, 213, 0.2), rgba(255, 158, 200, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.hero-content:hover {
    border-color: rgba(255, 158, 200, 0.5);
    box-shadow: 
        0 12px 40px rgba(255, 158, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 158, 200, 0.2);
    transform: translateY(-2px);
}

.hero-title {
    font-family: var(--font-en);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 2.0rem;
    color: var(--text-light);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
}

/* セクション共通 */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-en);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.15em;
    font-weight: 700;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-top: -50px;
    margin-bottom: 60px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* プロフィール */
.profile-section {
    background-color: var(--bg-light);
}

.profile-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.profile-img {
    flex: 0 0 400px;
    max-width: 400px;
    align-self: flex-start;
}

.profile-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-img img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.profile-text {
    flex: 1;
    min-width: 0;
}

.profile-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-text h3 span {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-left: 10px;
    font-weight: 400;
}

.profile-text .age {
    font-family: var(--font-en);
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-text .description {
    margin-bottom: 30px;
}

.career {
    margin-bottom: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
    position: relative;
}

.career::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
}

.career-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: var(--font-main);
}

.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-color);
}

.career-year {
    display: inline-block;
    min-width: 120px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50px;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: none;
}

.social-link a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 1;
}

/* 実績 */
.works-section {
    background-color: var(--bg-color);
}

.timeline {
    position: relative;
    border-left: 4px solid var(--accent-color);
    padding-left: 50px;
    margin-left: 20px;
}

.timeline-item {
    margin-bottom: 35px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--accent-color), 0 3px 10px rgba(255, 158, 200, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:hover::before {
    transform: scale(1.25);
    box-shadow: 0 0 0 2px var(--accent-color), 0 5px 15px rgba(255, 158, 200, 0.6);
    border-width: 6px;
}

.timeline-year {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.timeline-content hr {
    margin: 15px 0;
    border: none;
    border-top: 1px dashed var(--border-color);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 8px;
}

.timeline-text {
    flex: 1;
}

.timeline-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--accent-gradient);
    background-clip: padding-box;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.timeline-image:hover::before {
    opacity: 1;
}

.highlight {
    color: var(--text-color);
    font-weight: 700;
}

/* ギャラリー */
.gallery-section {
    background-color: var(--bg-light);
    padding-bottom: 80px;
}

.gallery-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 60px;
    position: relative;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    animation: scroll 60s linear infinite;
    width: fit-content;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: 400px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 158, 200, 0.3);
}

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

/* サポート企業 */
.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.sponsor-card {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 8px;
}

.sponsor-card:hover {
    transform: translateY(-8px) scale(1.05);
    opacity: 0.9;
    filter: brightness(1.1);
}

.sponsor-logo-img {
    width: 200px;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 0.8rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

/* 画像ポップアップ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s;
}

.image-modal-content img {
    width: 600px;
    height: 600px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-title {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    font-family: var(--font-main);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* トップに戻るボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 158, 200, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .nav {
        display: none; /* モバイルでは簡易的に非表示（本来はハンバーガーメニュー推奨） */
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        padding: 0 20px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 50vh;
        margin-bottom: 20px;
    }

    .hero::after {
        width: 300px;
        height: 300px;
        left: -30%;
        top: 45%;
    }

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

    .profile-content {
        flex-direction: column;
        gap: 30px;
    }

    .profile-img {
        flex: 0 0 100%;
        max-width: 100%;
        align-self: center;
    }

    .profile-img img {
        max-width: 100%;
    }
    
    .timeline {
        padding-left: 30px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .timeline-item {
        margin-bottom: 25px;
    }

    .timeline-image {
        width: 120px;
        height: 120px;
        align-self: flex-end;
    }

    .timeline-header {
        margin-bottom: 5px;
    }

    .image-modal-title {
        font-size: 1rem;
        margin-top: 15px;
    }

    .image-modal-close {
        top: -35px;
        font-size: 35px;
    }

    .image-modal-content img {
        width: 90vw;
        height: 90vw;
        max-width: 500px;
        max-height: 500px;
    }

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

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

    .gallery-item {
        width: 280px;
        height: 210px;
    }

    .gallery-scroll {
        gap: 15px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    .sponsors-grid {
        gap: 40px;
    }

    .sponsor-logo-img {
        width: 150px;
        height: 90px;
    }
}
