/* カスタムスタイル */

/* ヘッダーの基本スタイル */
header {
    margin-top: 56px;
    background: linear-gradient(135deg, #051c24 0%, #1e6091 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    will-change: background-position;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="2"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

/* ヘッダーのコンテナスタイル調整 */
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 5px; /* 上下のパディングを追加 */
    padding-bottom: 5px;
}

/* 最適化されたアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

/* プロフィールカード */
.profile-card {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(5, 28, 36, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(30, 96, 145, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out forwards;
    min-height: 160px;
    will-change: transform;
}

.profile-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* プロフィール画像 */
.profile-image-wrapper {
    margin-right: 40px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #1e6091, #051c24);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    will-change: background-position;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* プロフィールコンテンツ */
.profile-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* コンテンツを中央揃えにする */
    text-align: center; /* テキストも中央揃えにする */
}

/* 日本語名 */
.profile-jp-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #b3e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    line-height: 1.2;
}

/* 英語名 */
.profile-eng-name {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 12px;
}

/* セパレーター */
.profile-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #1e6091, rgba(255, 255, 255, 0.5));
    margin: 8px auto 12px;
    border-radius: 3px;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    transition: transform 0.3s ease;
    will-change: transform;
}

.profile-card:hover .profile-separator {
    transform: scaleX(1.5);
}

/* 職業タイトル */
.profile-title {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-role {
    display: inline-block;
}

.profile-role-divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* ソーシャルアイコン */
.profile-social {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center; /* 中央揃えに変更 */
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    will-change: transform;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -3px, 0);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 各ソーシャルメディアの個別スタイル */
.social-icon .fa-instagram {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icon .fa-x-twitter {
    color: #ffffff;
}

/* ナビゲーションバーのスタイル調整 */
#mainNav {
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ナビゲーションバー内のコンテナ調整 */
#mainNav .container,
#mainNav .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Works セクションのカスタムスタイル */

/* コンパクトなカードスタイル */
#works .card-body {
    padding: 0.75rem;
}
#works .card {
    margin-bottom: 0.75rem !important;
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#works .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
#works .card-text {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}
#works .work-item {
    margin-bottom: 0.5rem;
}

/* バッジのスタイル */
#works .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    font-weight: 400;
    background-color: rgba(255,255,255,0.15) !important;
}

/* タブのスタイル */
#works .nav-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
#works .nav-tabs .nav-link {
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
#works .nav-tabs .nav-link.active {
    color: white;
    background-color: transparent;
    border-bottom: 2px solid white;
}
#works .nav-tabs .nav-link:hover {
    color: white;
    border-color: transparent;
}

/* モーダル関連のスタイル */
.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.modal {
    padding-right: 0 !important;
}

body {
    overflow-y: auto !important;
}

/* モーダル背景のスタイル */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

/* モーダルの基本スタイル */
.portfolio-modal {
    --modal-max-width: 1200px;
    --modal-padding: 3rem;
    --modal-border-radius: 32px;
    --modal-background: rgba(255, 255, 255, 0.98);
    --modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --modal-title-color: #1e6091;
    --modal-text-color: #2c3e50;
    --modal-accent-color: #3498db;
    --modal-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --modal-backdrop-blur: 20px;
}

.portfolio-modal .modal-dialog {
    max-width: var(--modal-max-width);
    margin: 2rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 4rem);
    perspective: 1000px;
}

.portfolio-modal .modal-content {
    background: var(--modal-background);
    border: none;
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(var(--modal-backdrop-blur));
    -webkit-backdrop-filter: blur(var(--modal-backdrop-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-modal .modal-content:hover {
    transform: translate3d(0, -5px, 0) rotateX(1deg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.portfolio-modal .modal-body {
    padding: 1.5rem var(--modal-padding) var(--modal-padding);
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
    scrollbar-width: thin;
    scrollbar-color: var(--modal-accent-color) transparent;
}

.portfolio-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.portfolio-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-modal .modal-body::-webkit-scrollbar-thumb {
    background-color: var(--modal-accent-color);
    border-radius: 4px;
}

/* 動画コンテナのスタイル */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 2.5rem;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container:hover {
    transform: translate3d(0, -8px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

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

/* ローディング表示のスタイル */
.video-loading,
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-loading .spinner-border,
.image-loading .spinner-border {
    width: 4rem;
    height: 4rem;
    color: #fff;
    border-width: 3px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate3d(0, 0, 1, 0deg); }
    100% { transform: rotate3d(0, 0, 1, 360deg); }
}

/* モーダルヘッダーのスタイル */
.portfolio-modal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--modal-title-color), var(--modal-accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.portfolio-modal .modal-title span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--modal-title-color);
}

/* モーダル内のカテゴリーバッジスタイル */
.modal-category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.modal-category-badge:hover {
    opacity: 1;
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.modal-category-badge.mv {
    background-color: rgba(255, 82, 82, 0.95);
}

.modal-category-badge.movie {
    background-color: rgba(41, 121, 255, 0.95);
}

.modal-category-badge.cm {
    background-color: rgba(156, 39, 176, 0.95);
}

.modal-category-badge.live {
    background-color: rgba(0, 200, 83, 0.95);
}

.modal-category-badge.photo {
    background-color: rgba(255, 152, 0, 0.95);
}

.modal-category-badge.documentary {
    background-color: rgba(121, 85, 72, 0.95);
}

.modal-category-badge.other {
    background-color: rgba(96, 125, 139, 0.95);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .portfolio-modal .modal-title {
        font-size: 1.4rem;
        gap: 10px;
    }

    .modal-category-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

.portfolio-modal .modal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--modal-title-color), var(--modal-accent-color));
    border-radius: 3px;
}

.modal-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 1.5rem 0 2.5rem;
}

#modal_date, #modal_role {
    font-size: 1.1rem;
    color: var(--modal-accent-color);
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
}

#modal_date::before {
    content: 'Date:';
    margin-right: 0.5rem;
    font-weight: 600;
    opacity: 0.7;
    color: var(--modal-accent-color);
}

#modal_role::before {
    content: 'Role:';
    margin-right: 0.5rem;
    font-weight: 600;
    opacity: 0.7;
    color: var(--modal-accent-color);
}

#modal_caption {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
    padding: 2.5rem;
    color: #e0e0e0;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

#modal_caption::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.3), rgba(100, 181, 246, 0.1));
    -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;
}

#modal_caption:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background: rgba(30, 30, 30, 0.8);
}

/* 閉じるボタンのスタイル */
.portfolio-modal .btn-close-modal {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1070;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.portfolio-modal .btn-close-modal:hover {
    transform: rotate3d(0, 0, 1, 90deg) scale3d(1.1, 1.1, 1);
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.portfolio-modal .btn-close-modal:focus {
    outline: 2px solid var(--modal-accent-color);
    outline-offset: 2px;
}

.portfolio-modal .btn-close-modal i {
    font-size: 1.5rem;
    transition: var(--modal-transition);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .portfolio-modal {
        --modal-padding: 1.5rem;
        --modal-border-radius: 24px;
    }

    .portfolio-modal .modal-dialog {
        margin: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .portfolio-modal .modal-content {
        border-radius: 24px 24px 0 0;
        min-height: 100vh;
    }

    .portfolio-modal .modal-body {
        padding: 1rem var(--modal-padding) var(--modal-padding);
    }

    .portfolio-modal .btn-close-modal {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .portfolio-modal .modal-title {
        font-size: 1.4rem;
    }

    #modal_date, #modal_role {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .portfolio-modal .modal-caption {
        font-size: 1rem;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .video-container {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .modal-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* アニメーションの最適化・簡素化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .profile-card,
    .portfolio-modal .modal-content,
    .portfolio-modal .btn-close-modal,
    .video-container,
    .contact-form .input-group,
    .contact-form .btn-primary,
    .social-icon,
    .info-content,
    #works .card,
    .portfolio-item img,
    #load-more-btn {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* アクセシビリティの改善 */
.portfolio-modal .modal-content:focus {
    outline: 2px solid var(--modal-accent-color);
    outline-offset: 2px;
}

.portfolio-modal .modal-content[aria-hidden="true"] {
    display: none;
}

/* エラー状態のスタイル */
.modal-error {
    padding: 1.5rem;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 16px;
    color: #d32f2f;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
    transition: var(--modal-transition);
}

.modal-error:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.15);
}

/* スワイプジェスチャーのサポート */
@media (max-width: 768px) {
    .portfolio-modal .modal-content {
        touch-action: pan-y pinch-zoom;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .portfolio-modal {
        --modal-background: rgba(30, 30, 30, 0.98);
        --modal-title-color: #64b5f6;
        --modal-text-color: #e0e0e0;
        --modal-accent-color: #64b5f6;
    }

    .portfolio-modal .modal-caption {
        background: rgba(30, 30, 30, 0.6);
        color: #e0e0e0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .portfolio-modal .btn-close-modal {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }

    .modal-error {
        background-color: rgba(211, 47, 47, 0.1);
        border-color: rgba(211, 47, 47, 0.3);
    }

    #modal_date, #modal_role {
        background: rgba(100, 181, 246, 0.15);
        color: #64b5f6;
    }

    #modal_date::before, #modal_role::before {
        color: #64b5f6;
    }

    .video-container {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .video-container:hover {
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    }

    #modal_caption:hover {
        background: rgba(30, 30, 30, 0.8);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    }

    #modal_caption::before {
        background: linear-gradient(135deg, rgba(100, 181, 246, 0.3), rgba(100, 181, 246, 0.1));
    }

    .modal-category-badge.mv {
        background-color: rgba(255, 82, 82, 0.85);
    }

    .modal-category-badge.movie {
        background-color: rgba(41, 121, 255, 0.85);
    }

    .modal-category-badge.cm {
        background-color: rgba(156, 39, 176, 0.85);
    }

    .modal-category-badge.live {
        background-color: rgba(0, 200, 83, 0.85);
    }

    .modal-category-badge.photo {
        background-color: rgba(255, 152, 0, 0.85);
    }

    .modal-category-badge.documentary {
        background-color: rgba(121, 85, 72, 0.85);
    }

    .modal-category-badge.other {
        background-color: rgba(96, 125, 139, 0.85);
    }

    .modal-category-badge {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .modal-category-badge:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* ポートフォリオアイテムのスタイル */
.portfolio-item {
    margin-bottom: 30px;
}

/* ポートフォリオ画像の角丸スタイル */
.portfolio-item img {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.portfolio-item .portfolio-link:hover img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translate3d(0, -5px, 0);
}

/* ポートフォリオのキャプション（青いオーバーレイ）を非表示に */
#portfolio .portfolio-item .portfolio-link .caption {
    display: none !important;
}

/* 「もっと見る」ボタンのスタイル */
#load-more-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 0;
    will-change: transform;
}

#load-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#load-more-btn:active {
    transform: translate3d(0, 0, 0);
    box-shadow: none;
}

/* contactセクションのモダンスタイル */
.contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    padding: 60px 0;
    position: relative;
    overflow: visible;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(0,0,0,0.07)" stroke-width="2"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.contact h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #2c3e50, rgba(44, 62, 80, 0.4));
    border-radius: 3px;
}

.contact p {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* フォームのスタイル */
.contact-form .input-group {
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
}

.contact-form .input-group:hover {
    transform: translate3d(0, -2px, 0);
}

.contact-form .input-group-text {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    color: #2c3e50;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    color: #2c3e50;
    border-color: rgba(44, 62, 80, 0.2);
}

.contact-form .form-control::placeholder {
    color: rgba(44, 62, 80, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus::placeholder {
    opacity: 0.6;
}

/* 送信ボタンのスタイル */
.contact-form .btn-primary {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    color: #ffffff;
    font-weight: 500;
    padding: 12px 35px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.contact-form .btn-primary:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.contact-form .btn-primary:active {
    transform: translate3d(0, -1px, 0);
}

.contact-form .btn-primary i {
    margin-right: 8px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.contact-form .btn-primary:hover i {
    transform: translate3d(3px, 0, 0);
}

/* reCAPTCHAのスタイルをリセット */
.g-recaptcha {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto 20px !important;
    box-shadow: none !important;
    transform: none !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
}

.g-recaptcha iframe {
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    margin: 0 auto !important;
}

.g-recaptcha:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* セクション間のマージン調整 */
section {
    padding: 30px 0;
}

section h2 {
    margin-bottom: 20px;
}

section hr.star-light, 
section hr.star-primary {
    margin: 15px auto 25px;
}

/* フッターのマージン調整 */
.footer-above {
    padding: 30px 0;
}

.footer-below {
    padding: 15px 0;
}

/* portfolioセクションの余白調整 */
#portfolio {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* worksセクションの余白調整 */
#works {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* contactセクションの余白調整 */
#contact {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* モバイル対応 */
@media (max-width: 767px) {
    /* セクション間のスペース調整 */
    section {
        padding: 30px 0;
    }
    
    /* ナビゲーションバーのパディング調整 */
    #mainNav {
        padding-left: 3%;
        padding-right: 3%;
    }
}

/* モバイル対応 - プロフィールカード */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px; /* パディング縮小 */
        min-height: auto; /* モバイルでは最小高さを設定しない */
    }
    
    .profile-image-wrapper {
        margin-right: 0;
        margin-bottom: 15px; /* マージンを縮小 */
        text-align: center;
        padding: 0;
    }
    
    .profile-separator {
        margin: 5px auto 10px; /* マージンを縮小 */
    }
    
    .profile-jp-name {
        font-size: 1.8rem;
    }
    
    .profile-social {
        justify-content: center;
        margin-top: 8px; /* マージントップを縮小 */
    }
}

@media (max-width: 576px) {
    header {
        padding: 15px 0; /* パディングをさらに縮小 */
    }
    
    .profile-card {
        padding: 12px; /* さらに縮小 */
    }
    
    .profile-image-inner {
        width: 90px; /* サイズを縮小 */
        height: 90px;
    }
    
    /* 確実に円形にするための追加設定 */
    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .profile-jp-name {
        font-size: 1.5rem; /* フォントサイズを縮小 */
        margin-bottom: 3px; /* マージンを縮小 */
    }
    
    .profile-eng-name {
        font-size: 0.75rem; /* フォントサイズを縮小 */
        letter-spacing: 2px;
        margin-bottom: 8px; /* マージンを縮小 */
    }
    
    .profile-title {
        font-size: 0.85rem; /* フォントサイズを縮小 */
        margin-bottom: 5px; /* マージンを縮小 */
    }
    
    .social-icon {
        width: 30px; /* サイズを縮小 */
        height: 30px;
        font-size: 0.85rem;
    }
}

/* カテゴリーバッジスタイル */
.category-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    margin-right: 8px;
    color: white;
    text-transform: uppercase;
    vertical-align: middle;
}

.category-badge.mv {
    background-color: #ff5252;
}

.category-badge.movie {
    background-color: #2979ff;
}

.category-badge.cm {
    background-color: #9c27b0;
}

.category-badge.live {
    background-color: #00c853;
}

.category-badge.photo {
    background-color: #ff9800;
}

.category-badge.documentary {
    background-color: #795548;
}

.category-badge.other {
    background-color: #607d8b;
}

/* カード内のフレックスレイアウト */
.card-badges {
    display: inline-flex;
    gap: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

/* カードテキストのスタイル */
#works .card-text {
    display: inline;
    vertical-align: middle;
}

/* カード本体のスタイル調整 */
#works .card {
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

#works .card:hover {
    transform: translate3d(0, -5px, 0);
}

/* ここからテーブル表示のスタイル */
.works-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.works-table tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.works-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.works-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.works-table .category-column {
    width: 120px;
}

.works-table .title-column {
    width: auto;
}

.works-table .role-column {
    width: 140px;
    text-align: right;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .works-table, .works-table tbody {
        display: block;
        width: 100%;
    }
    
    .works-table tr {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        padding: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .works-table td {
        border-bottom: none;
        padding: 2px 4px;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .works-table .category-column {
        width: 60px;
        flex-shrink: 0;
    }
    
    .works-table .title-column {
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0; /* flexboxでテキスト省略を有効にするのに必要 */
    }
    
    .works-table .role-column {
        width: 80px;
        flex-shrink: 0;
        text-align: right;
        opacity: 0.8;
        font-size: 0.7rem;
    }
    
    /* カテゴリーバッジを小さくする */
    .works-table .category-badge {
        font-size: 0.6rem;
        padding: 1px 3px;
        margin-right: 2px;
        display: inline-block;
    }
    
    /* 説明テキストはモバイルでは非表示 */
    .works-table .description-text {
        display: none;
    }
    
    /* バッジコンテナのスタイル調整 */
    .works-table .card-badges {
        display: flex;
        gap: 2px;
    }
}

/* カルーセルコンテナのスタイル */
.carousel-container {
    display: none; /* デフォルトでは非表示 */
    margin-bottom: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 800px; /* 最大幅を設定 */
    margin-left: auto;
    margin-right: auto;
    background-color: #000; /* 背景色を黒に設定 */
}

.carousel-container .carousel {
    width: 100%;
}

.carousel-container .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    background-color: #000; /* 背景色を黒に設定 */
}

.carousel-container .carousel-item {
    position: relative;
    padding-top: 100%; /* 1:1のアスペクト比を維持 */
    background-color: #000; /* 背景色を黒に設定 */
}

.carousel-container .carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 画像の比率を維持 */
}

.carousel-container .carousel-control-prev,
.carousel-container .carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-container .carousel-control-prev:hover,
.carousel-container .carousel-control-next:hover {
    opacity: 1;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .carousel-container {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .carousel-container .carousel-inner {
        border-radius: 16px;
    }
}

/* Worksセクションのスタイル */
#works h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
}

#works h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    border-radius: 3px;
}

/* Info Section Styles */
.info-section {
    background: linear-gradient(135deg, #051c24 0%, #1e6091 100%);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="2"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.info-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
    min-height: 60px;
}

.info-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-right: 2rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 40px;
    cursor: pointer;
    will-change: transform;
}

.info-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-content:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.info-content:focus:not(:focus-visible) {
    outline: none;
}

.info-preview {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    padding-right: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-more-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    pointer-events: none;
    will-change: transform;
}

.info-more-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translate3d(3px, 0, 0);
}

.info-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    will-change: transform;
}

.info-content:hover .info-more-btn i {
    transform: translate3d(3px, 0, 0);
}

/* Info Modal Styles */
#info_modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#info_modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

#info_modal .modal-title {
    color: #1e6091;
    font-weight: 600;
    font-size: 1.3rem;
}

#info_modal .modal-body {
    padding: 1.5rem;
}

.info-full-content p {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-full-content p:last-child {
    margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .info-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 5%;
    }

    .info-label {
        margin-right: 0.5rem;
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
        white-space: nowrap;
    }

    .info-content {
        width: 100%;
        padding: 0.4rem 0.8rem;
        min-height: 32px;
    }

    .info-preview {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 0.5rem;
    }

    .info-more-btn {
        width: 24px;
        height: 24px;
        padding: 0.3rem;
    }

    .info-more-btn i {
        font-size: 0.7rem;
    }
}

/* スワイプインジケーター */
.swipe-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1060;
}

.swipe-indicator::before {
    content: '';
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* モバイル表示時のみスワイプインジケーターを表示 */
@media (max-width: 768px) {
    .swipe-indicator {
        opacity: 1;
    }
}