* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* 概要ページ専用の背景動画スタイル */
.about-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

/* 概要ページがアクティブな時の動画表示 */
#about.active ~ .about-video-background,
#about.active .about-video-background {
    opacity: 0.9;
    z-index: 1;
}

/* 概要ページ以外では動画を非表示 */
#home.active ~ .about-video-background,
#portfolio.active ~ .about-video-background,
#services.active ~ .about-video-background,
#contact.active ~ .about-video-background {
    opacity: 0;
    z-index: 0;
}

/* 動画の上にオーバーレイを追加（可読性向上） */
#about .section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
    border-radius: 20px;
}

#about .section-content {
    position: relative;
    z-index: 2;
}

/* ヘッダーナビゲーション */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.8rem 3rem;
    background: linear-gradient(180deg, rgba(20,20,40,0.85) 0%, rgba(15,15,30,0.6) 70%, rgba(10,10,20,0.3) 100%);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}



.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Century', 'Century Gothic', 'Times New Roman', serif;
    z-index: 101;
}

.logo:hover {
    color: #d4af37;
}

/* デスクトップメニュー */
.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    color: #d4af37;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #d4af37;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #d4af37;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(20,20,40,0.98) 0%, rgba(15,15,30,0.95) 100%);
    backdrop-filter: blur(30px);
    padding: 100px 2rem 2rem;
    transition: all 0.4s ease;
    z-index: 100;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-item {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu-item:hover, .mobile-menu-item.active {
    color: #d4af37;
    padding-left: 1rem;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* モバイルメニュー背景オーバーレイ */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* セクション共通スタイル */
.section {
    display: none;
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    z-index: 2;
    background: transparent;
}

.section.active {
    display: block;
}

/* 概要ページの基本設定（デスクトップは普通のスクロール） */
#about .section-content {
    position: relative;
    z-index: 2;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s ease-out;
}

.section-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* ホームページのみ背景あり */
#home .section-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 他のページは完全透明 */
#portfolio .section-content,
#services .section-content,
#contact .section-content {
    background: transparent;
}

/* 概要ページは動画背景なので特別扱い */
#about .section-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 100;
    text-align: center;
    margin-bottom: 2rem;
    color: #d4af37;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

/* ホームセクション */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: none;
    text-align: center;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(255, 215, 0, 0.7));
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 7.5vw, 6.5rem);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out 1.3s forwards;
}

.hero-title .accent {
    color: #d4af37;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 200;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.6s forwards;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.hero-subtitle br {
    display: block;
    white-space: normal;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.9s forwards;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* ポートフォリオグリッド */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    transition: all 0.8s ease;
}

/* ===========================================
   ポートフォリオ動画セクション - 修正版
   =========================================== */

.portfolio-video-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
    text-align: center;
}

.video-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: #d4af37;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.video-section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* 動画グリッド（横並び表示） */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(20, 30, 50, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.7s forwards;
    transition: all 0.3s ease;
}

.portfolio-video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.portfolio-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 30, 50, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.portfolio-video-container:hover .video-overlay {
    opacity: 0.7;
}

.portfolio-video.playing + .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    pointer-events: all;
    margin-bottom: 1.5rem;
    z-index: 10;
    position: relative;
}

.video-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.play-icon {
    color: #000;
    font-size: 28px;
    margin-left: 4px;
    font-weight: bold;
}

.video-description {
    text-align: center;
    pointer-events: none;
}

.video-description h4 {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.video-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===========================================
   ここまでが修正された動画セクション
   =========================================== */

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.8s ease;
    opacity: 0;
    transform: translateY(30px);
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
}

/* ライトボックス - 最優先表示 */
.image-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-lightbox.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    pointer-events: all;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.image-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

/* ズームコントロールボタン */
.zoom-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000002;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid #d4af37;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: #d4af37;
    color: #fff;
    transform: scale(1.1);
}

.zoom-info {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000002;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: fixed;
    top: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 3px solid #d4af37;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000001;
    line-height: 1;
}

.lightbox-close:hover {
    background: #d4af37;
    color: #fff;
    border-color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.lightbox-close:active {
    transform: scale(0.95) rotate(90deg);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.section-content.show .portfolio-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-content.show .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.section-content.show .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.section-content.show .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.section-content.show .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.section-content.show .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.section-content.show .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.section-content.show .portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.section-content.show .portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.section-content.show .portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.section-content.show .portfolio-item:nth-child(10) { animation-delay: 1.0s; }

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* サービス */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: rgba(20, 30, 50, 0.85);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
}

.section-content.show .service-card {
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.section-content.show .service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(25, 35, 60, 0.9);
}

.service-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #d4af37;
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: #d4af37;
    margin-bottom: 1rem;
}

.service-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* 注意事項・今後の展開カード */
.service-note-card {
    background: rgba(25, 35, 55, 0.9);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem auto 0;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.section-content.show .service-note-card {
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.service-note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(30, 40, 65, 0.95);
}

.service-note-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.service-note-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #d4af37;
}

.service-note-content {
    text-align: left;
}

.service-note-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.service-future-plans {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #d4af37;
}

.future-plans-title {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.future-plans-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.future-plans-list li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.future-plans-list li::before {
    content: '🔮';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .service-note-card {
        padding: 2rem;
        margin: 2rem auto 0;
    }

    .service-note-icon {
        font-size: 2rem;
    }

    .service-note-title {
        font-size: 1.2rem;
    }

    .future-plans-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .service-note-card {
        padding: 1.5rem;
        margin: 1.5rem auto 0;
    }

    .service-note-icon {
        font-size: 1.8rem;
    }

    .service-note-title {
        font-size: 1.1rem;
    }

    .service-future-plans {
        padding: 1.2rem;
    }

    .future-plans-title {
        font-size: 1rem;
    }

    .future-plans-list li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    max-width: 800px;
    margin: 0 auto;
}

.section-content.show .about-text {
    animation: fadeInLeft 1s ease-out 0.2s forwards;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.skill-item::before {
    content: '✓';
    color: #d4af37;
    font-weight: bold;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-form,
.contact-info {
    width: 100%;
}

.contact-form {
    opacity: 0;
    transform: translateX(-30px);
}

.section-content.show .contact-form {
    animation: fadeInLeft 1s ease-out 0.2s forwards;
}

.contact-info {
    opacity: 0;
    transform: translateX(30px);
    padding-top: 240px;
}

.section-content.show .contact-info {
    animation: fadeInRight 1s ease-out 0.2s forwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    color: #d4af37;
    width: 30px;
    text-align: center;
}

/* お問い合わせページの左側項目のテキストを調整 */
.contact-item h4 {
    color: #d4af37 !important;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #fff !important;
}

.contact-item small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff !important;
    font-weight: 300;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 1.0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

/* 戻るボタンのスタイル */
.back-to-home {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.btn-back {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* プライバシーポリシーリンクのスタイル */
.privacy-link {
    text-align: right;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-right: 0;
}

.privacy-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.privacy-link a:hover {
    color: #d4af37;
}

/* プライバシーポリシーモーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(20, 30, 50, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-text {
    color: #fff;
    line-height: 1.6;
}

.modal-text h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.modal-text h3:first-child {
    margin-top: 0;
}

.modal-text ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.modal-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.modal-text th,
.modal-text td {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.modal-text th {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-weight: 500;
}

/* プライバシーポリシーモーダル内の戻るボタン */
.modal-back-button {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-modal-back {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.btn-modal-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
}

.loading-icon {
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23d4af37"><circle cx="50" cy="30" r="8"><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="1s" repeatCount="indefinite"/></circle><circle cx="50" cy="70" r="8"><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="1s" repeatCount="indefinite" begin="0.5s"/></circle><circle cx="30" cy="50" r="8"><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="1s" repeatCount="indefinite" begin="0.25s"/></circle><circle cx="70" cy="50" r="8"><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="1s" repeatCount="indefinite" begin="0.75s"/></circle></svg>') center/contain no-repeat;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* アニメーション */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* レスポンシブ対応の改行スタイル */
.responsive-break {
    display: inline;
}

@media (max-width: 1024px) {
    .responsive-break::before {
        content: "\A";
        white-space: pre;
    }
}

/* PC専用改行スタイル */
.pc-only-break {
    display: inline;
}

@media (max-width: 1024px) {
    .pc-only-break::before {
        content: " ";
        white-space: normal;
    }
}

/* 概要ページの動画をレスポンシブ時に調整 */
@media (max-width: 1024px) {
    .about-video-background {
        object-fit: cover;
        object-position: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .about-text {
        max-width: 800px;
        text-align: left;
    }
    
    /* 概要ページのサブタイトル改行 */
    #about .section-subtitle::after {
        content: "\A";
        white-space: pre;
    }
    
    #about .section-subtitle {
        text-align: center;
        line-height: 1.6;
    }
}

/* レスポンシブ - タブレット */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding-top: 0;
    }

    /* サービスグリッドのタブレット対応 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }

    .service-card {
        padding: 2rem;
        text-align: left;
    }

    .service-card .service-icon,
    .service-card .service-title,
    .service-card .service-price {
        text-align: center;
    }

    /* より具体的なセレクタで強制的に非表示 */
    .portfolio-video-container .video-overlay .video-play-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .portfolio-video-container .video-overlay {
        display: none !important;
        pointer-events: none !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    /* 動画グリッドのタブレット対応 */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    
    .portfolio-video-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .play-icon {
        font-size: 24px;
    }
    
    .hero-subtitle {
        white-space: normal;
        max-width: 90%;
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        line-height: 1.6;
    }
    
    /* 作品集ページのサブタイトル改行 */
    #portfolio .section-subtitle::after {
        content: "\A";
        white-space: pre;
    }
    
    #portfolio .section-subtitle {
        text-align: center;
        line-height: 1.6;
    }
    
    /* サービスページのサブタイトル改行 */
    #services .section-subtitle::after {
        content: "\A";
        white-space: pre;
    }

    #services .section-subtitle {
        text-align: center;
        line-height: 1.6;
    }
    
    /* ライトボックスのタブレット調整 */
    .lightbox-content {
        width: 85vw;
        height: 85vh;
    }
    
    /* 動画背景のタブレット対応 */
    .about-video-background {
        height: 120vh;
        object-position: center top;
    }
}

/* レスポンシブ - モバイル */
@media (max-width: 768px) {
    .header-nav {
        padding: 1rem 1.5rem;
    }
    
    /* ハンバーガーメニューを表示 */
    .hamburger {
        display: flex;
    }
    
    /* デスクトップメニューを非表示 */
    .nav-menu {
        display: none;
    }
    
    .section-content {
        padding: 0 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* サービスグリッドのモバイル対応 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .service-card {
        padding: 1.5rem;
        text-align: left;
    }

    .service-card .service-icon,
    .service-card .service-title,
    .service-card .service-price {
        text-align: center;
    }
    
    /* 動画グリッドのモバイル対応 */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .portfolio-video-container {
        max-width: 100%;
        margin: 0;
    }
   
    .portfolio-video {
        object-fit: contain;      
        object-position: center;   
        max-height: 300px;
    }
    
    .video-play-button {
        display: none !important;
    }
    .video-overlay {
        display: none !important;
    }
    
    .play-icon {
        font-size: 20px;
    }
    
    .video-description h4 {
        font-size: 1.1rem;
    }
    
    .video-description p {
        font-size: 0.9rem;
    }
    
    .video-section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .video-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .hero-subtitle {
        white-space: normal;
        font-size: clamp(1.1rem, 4.2vw, 1.6rem);
        line-height: 1.5;
        max-width: 95%;
        text-align: center;
    }
    
    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    /* ライトボックスのモバイル調整 */
    .lightbox-content {
        width: 95vw;
        height: 80vh;
    }
    
    .lightbox-close {
        top: 100px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .zoom-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .zoom-info {
        bottom: 15px;
        left: 15px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    /* 動画背景のモバイル対応 */
    .about-video-background {
        height: 100vh;
        width: 100vw;
        object-fit: cover;
        object-position: center;
        position: fixed;
    }
    
    /* 概要ページのモバイル調整 */
    #about.section {
        height: 100vh;
        overflow: hidden;
        padding: 120px 0 0;
    }
    
    #about .section-content {
        height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 1.5rem;
        background: transparent;
    }

    /* 作品集ページの包括的レスポンシブ対応 */
    #portfolio {
        width: 100vw;
        min-height: 100vh;
        padding: 120px 0 40px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #portfolio .section-content {
        width: 100%;
        max-width: none;
        padding: 0 4vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    #portfolio .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: clamp(1rem, 4vw, 2rem);
        width: 100%;
        text-align: center;
    }
    
    #portfolio .portfolio-grid {
        display: grid;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        gap: clamp(0.8rem, 3vw, 1.5rem);
        justify-content: center;
        align-content: start;
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    
    #portfolio .portfolio-item {
        width: 100%;
        max-width: none;
        aspect-ratio: 4/3;
        min-height: 200px;
        max-height: 250px;
        margin: 0;
        border-radius: 12px;
        transition: none;
    }
    
    #portfolio .portfolio-image {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    #portfolio .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border: none;
        outline: none;
    }
    
    /* 動画セクションの対応 */
    #portfolio .portfolio-video-section {
        width: 100%;
        margin: clamp(2rem, 6vw, 4rem) 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    #portfolio .video-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0;
        box-sizing: border-box;
    }
    
    #portfolio .portfolio-video-container {
        width: 100%;
        max-width: none;
        margin: 0;
        height: auto;
        aspect-ratio: 16/9;
        min-height: 200px;
        box-sizing: border-box;
    }
    
    #portfolio .portfolio-video {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        display: block;
    }
}

/* 横画面専用（全デバイスサイズ対応） */
@media screen and (orientation: landscape) and (max-width: 1024px) {
    #portfolio {
        padding: 80px 0 20px;
    }
    
    #portfolio .section-content {
        padding: 0 2vw;
    }
    
    #portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.5rem, 2vw, 1rem);
    }
    
    #portfolio .portfolio-item {
        aspect-ratio: 1/1;
        min-height: 500px;
        max-height: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    #portfolio .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
    }
    
    /* 横画面では動画グリッドも調整 */
    #portfolio .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    #portfolio .portfolio-video-container {
        aspect-ratio: 16/9;
        min-height: 180px;
        max-height: 300px;
        width: 100%;
        margin: 0;
    }

    .video-play-button {
        display: none !important;
    }
    .video-overlay {
        display: none !important;
    }

    /* サービスグリッドの横画面対応 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* 非常に小さい画面（iPhone SE等）対応 */
@media (max-width: 375px) {
    #portfolio .section-content {
        padding: 0 3vw;
    }
    
    #portfolio .portfolio-grid {
        gap: clamp(0.5rem, 2vw, 1rem);
    }
    
    #portfolio .portfolio-item {
        min-height: 180px;
        border-radius: 10px;
    }

    .video-play-button {
        display: none !important;
    }
    .video-overlay {
        display: none !important;
    }
    
    /* 小型モバイルでは動画コンテナのサイズも調整 */
    #portfolio .video-grid {
        gap: 1rem;
    }
    
    #portfolio .portfolio-video-container {
        min-height: 180px;
    }

    /* サービスカードの小型モバイル対応 */
    .service-card {
        padding: 1.2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-price {
        font-size: 1.1rem;
    }
}

/* 大きいモバイル画面（iPhone Pro Max等）対応 */
@media (min-width: 414px) and (max-width: 768px) {
    #portfolio .portfolio-item {
        min-height: 240px;
    }
    
    #portfolio .portfolio-video-container {
        min-height: 220px;
    }

    .service-card {
        padding: 2rem;
    }
}

/* iPad等のタブレット対応 */
@media (min-width: 768px) and (max-width: 1024px) {
    #portfolio .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* タブレットでは動画を横並びに戻す */
    #portfolio .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 100%;
    }

    /* サービスグリッドのタブレット対応 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 100%;
    }
}

/* レスポンシブ - 小さいモバイル */
@media (max-width: 480px) {
    .header-nav {
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .section-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.8vw, 1.4rem);
        line-height: 1.4;
        max-width: 98%;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .portfolio-video {
        object-fit: contain;      
        object-position: center; 
        max-height: 250px;
    }
    
    .video-play-button {
        display: none !important;
    }
    .video-overlay {
        display: none !important;
    }
    
    .play-icon {
        font-size: 18px;
    }
    
    .video-description h4 {
        font-size: 1rem;
    }
    
    .video-description p {
        font-size: 0.85rem;
    }
    
    .video-section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .video-section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* ライトボックスの小さいモバイル調整 */
    .lightbox-content {
        width: 98vw;
        height: 75vh;
    }
    
    .lightbox-close {
        top: 80px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .zoom-controls {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .zoom-info {
        bottom: 10px;
        left: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }

    /* 小型モバイル専用のポートフォリオ対応 */
    #portfolio .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(0.5rem, 2vw, 1rem);
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    #portfolio .portfolio-item {
        width: 100%;
        max-width: none;
        min-height: 180px;
        aspect-ratio: 4/3;
        margin: 0;
        border-radius: 10px;
    }

    #portfolio .section-content {
        padding: 0 3vw;
    }
    
    /* 横画面でも1列を維持 */
    #portfolio.orientation-landscape .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(0.4rem, 1.5vw, 0.8rem);
    }
    
    #portfolio.orientation-landscape .portfolio-item {
        min-height: 140px;
        aspect-ratio: 16/10;
    }
    
    /* 小型モバイルでの動画グリッド調整 */
    #portfolio .video-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        width: 100%;
    }
    
    #portfolio .portfolio-video-container {
        min-height: 160px;
        max-height: 220px;
    }

    /* サービスカードの超小型モバイル対応 */
    .service-card {
        padding: 1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}

/* 小型モバイル横画面専用 */
@media screen and (orientation: landscape) and (max-height: 480px) {
    #portfolio {
        padding: 60px 0 20px;
    }
    
    #portfolio .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: clamp(0.3rem, 1vw, 0.6rem);
    }
    
    #portfolio .portfolio-item {
        aspect-ratio: 1/1;
        min-height: 500px;
        max-height: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    #portfolio .section-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
    }
    
    #portfolio .section-content {
        padding: 0 2vw;
    }
    
    /* 横画面での動画グリッド調整 */
    #portfolio .video-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
        max-width: 80%;
        margin: auto;
    }
    
    #portfolio .portfolio-video-container {
        min-height: 120px;
        max-height: 180px;
    }

    .video-play-button {
        display: none !important;
    }
    .video-overlay {
        display: none !important;
    }

    /* サービスグリッドの横画面対応 */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
        max-width: 85%;
        margin: 0 auto;
    }

    .service-card {
        padding: 1.2rem;
    }
}

/* 横画面対応の追加CSS */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .hero-content {
        min-height: 210vh;
        min-height: 210dvh;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7.5vw, 6.5rem)!important;
        line-height: 1.1!important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.4rem);
        margin-bottom: 2rem;
    }
    
    /* 動画背景の横画面対応 */
    .about-video-background {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
        position: fixed;
    }
    
    /* 横画面でのヘッダー調整 */
    .header-nav {
        padding: 0.5rem 2rem;
        background: linear-gradient(180deg, rgba(20,20,40,0.95) 0%, rgba(15,15,30,0.8) 100%);
    }
    
    .logo {
        font-size: 1.2rem !important;
        z-index: 102 !important;
        color: #fff !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* 概要ページの横画面調整 */
    #about.section {
        height: 100vh;
        overflow: hidden;
        padding: 80px 0 0;
    }
    
    #about .section-content {
        height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 2rem;
        background: transparent;
    }
}

/* 非常に低い横画面 */
@media screen and (orientation: landscape) and (max-height: 450px) {
    .hero-title {
        font-size: clamp(2.5rem, 7.5vw, 6.5rem)!important;
        margin-bottom: 1.1!important;
    }
    
    /* 非常に低い横画面でのヘッダー調整 */
    .header-nav {
        padding: 0.3rem 1.5rem;
        background: rgba(20,20,40,0.98);
    }
    
    .logo {
        font-size: 1rem !important;
        z-index: 102 !important;
        color: #fff !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* 概要ページの低い横画面調整 */
    #about.section {
        padding: 60px 0 0;
    }
    
    #about .section-content {
        height: calc(100vh - 60px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 1.5rem;
        background: transparent;
    }
}

/* ハンバーガーメニューの横画面対応 */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .mobile-menu {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 80px 2rem 2rem;
    }
    
    .mobile-menu-item {
        padding: 0.8rem 0;
        font-size: 1rem;
    }
    
    /* スクロールバーのスタイル（Webkit系ブラウザ） */
    .mobile-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .mobile-menu::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.5);
        border-radius: 2px;
    }
    
    .mobile-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 175, 55, 0.8);
    }
}

/* 非常に低い横画面（450px以下）でのさらなる調整 */
@media screen and (orientation: landscape) and (max-height: 450px) {
    .mobile-menu {
        padding: 60px 1.5rem 1.5rem;
    }
    
    .mobile-menu-item {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
}

/* 縦画面専用のハンバーガーメニュー幅調整 */
@media screen and (orientation: portrait) {
    .mobile-menu {
        width: 200px;
    }
}

/* 小さい縦画面用の追加調整 */
@media screen and (orientation: portrait) and (max-width: 480px) {
    .mobile-menu {
        width: min(200px, 70vw);
    }
}

/* 超小型モバイル対応 */
@media (max-width: 360px) {
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.3rem);
        line-height: 1.3;
        max-width: 100%;
        padding: 0 0.25rem;
    }
    
    .section-content {
        padding: 0 0.75rem;
    }

    #portfolio .portfolio-grid {
        gap: 0.5rem;
    }
    
    #portfolio .portfolio-item {
        min-height: 160px;
    }
    
    #portfolio .section-content {
        padding: 0 2vw;
    }
    
    /* 超小型での動画調整 */
    #portfolio .video-grid {
        gap: 0.8rem;
    }

    /* サービスカードの超小型対応 */
    .service-card {
        padding: 0.8rem;
    }

    .service-icon {
        font-size: 2.2rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .service-price {
        font-size: 1rem;
    }
}

/* モバイル版全て（縦画面・横画面）でサービスカード2列表示 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .service-card {
        padding: 1.2rem !important;
        text-align: center !important;
    }
    
    .service-icon {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .service-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center !important;
    }
    
    .service-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }
    
    .service-price {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center !important;
    }
}

/* 小画面モバイル（480px以下）での微調整 */
@media (max-width: 480px) {
    .services-grid {
        gap: 0.8rem !important;
        padding: 0 0.5rem !important;
    }
    
    .service-card {
        padding: 1rem !important;
    }
    
    .service-icon {
        font-size: 2rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .service-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .service-description {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .service-price {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }
}

/* 超小画面（360px以下）での更なる調整 */
@media (max-width: 360px) {
    .services-grid {
        gap: 0.6rem !important;
    }
    
    .service-card {
        padding: 0.8rem !important;
    }
    
    .service-icon {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .service-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .service-description {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.6rem !important;
    }
    
    .service-price {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
}
/* YouTube動画横並びスタイル */
.walkthrough-section {
    margin-top: 4rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-container {
    width: 100%;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .video-grid {
        gap: 1.5rem;
    }
}

/* モバイル対応：縦並びに変更 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================================================
   Instagramアイコン用スタイル（ここから追加）
   ================================================ */

/* ヘッダー右側のコンテナ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;  /* 右寄せ */
}

/* Instagramアイコンリンク */
.instagram-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FF1493;
    transition: all 0.3s ease;
    padding: 0.3rem;
}

.instagram-icon-link:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.instagram-icon-link svg {
    width: 28px;
    height: 28px;
}

/* モバイルメニュー用Instagram */
.mobile-instagram {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem !important;
    color: #E1306C;  /* ★★★ ピンクに変更 ★★★ */
}

.mobile-instagram:hover {
    color: #FF1493;  /* ★★★ ホバー時に明るいピンク ★★★ */
}

.mobile-instagram svg {
    flex-shrink: 0;
}

/* タブレット・モバイル対応 */
@media (max-width: 1024px) {
    .nav-right {
        display: none;
    }
}

/* デスクトップのみ表示 */
@media (min-width: 1025px) {
    .mobile-instagram {
        display: none !important;
    }
}