/* --- 基本設定 --- */
:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #A0A0A0;
    --accent-color: #FFFFFF;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--primary-text-color);
    background-color: var(--bg-color);
}
a {
    color: var(--primary-text-color);
    text-decoration: none;
}
h1, h2 { /* h3はsans-serifのままにするため除外 */
    font-family: var(--font-serif);
}

/* --- トップ画面セクション --- */
.hero-section { height: 100vh; position: relative; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.video-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.video-container video { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
    display: flex;
    flex-direction: column; /* 要素を縦方向に並べる */
    justify-content: center;
    align-items: center; /* 水平方向の中央揃え */
    height: 100%;
    text-align: center;
}
.hero-content .main-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-color);
}
.hero-content .hero-tagline {
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.2vw, 18px); /* 画面幅に応じてサイズ調整 */
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-text-color);
    opacity: 0.8;
    margin-top: 15px; /* タイトルとの間に少し余白 */
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
header .logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}
.main-nav ul li a {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.main-nav ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* --- AWARDセクションのスタイル --- */
.award-section {
    background-color: var(--bg-color);
    padding: 60px 50px; /* ★変更: 左右の余白を戻した */
}
.award-content {
    max-width: 1400px; /* ★追加: コンテンツ全体の最大幅を設定 */
    margin: 0 auto;
    text-align: center;
}
.award-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* ★追加: 角丸を復活 */
}
.award-video-container {
    margin: 0 auto;
    border-radius: 8px; /* ★追加: 動画にも角丸を適用 */
    overflow: hidden; /* 角丸を適用するために必要 */
}
.award-video-container .gallery-item {
    border-radius: 0;
}
.award-video-title {
    font-size: 16px;
    color: var(--secondary-text-color);
    margin-top: 25px;
    font-weight: 300;
    letter-spacing: 1px;
}


/* --- 作品ギャラリーセクション --- */
.works-gallery { 
    padding: 60px 50px 120px 50px;
    background-color: var(--bg-color); 
}
.works-gallery h2 { text-align: center; font-size: 36px; margin-bottom: 80px; letter-spacing: 5px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
}
.gallery-item { position: relative; cursor: pointer; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px;}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-item:hover::after { opacity: 1; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(5px); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 2; opacity: 0; transition: opacity 0.4s ease; }
.play-icon::after { content: ''; display: block; width: 0; height: 0; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 25px solid var(--accent-color); margin-left: 5px; }
.gallery-item:hover .play-icon { opacity: 1; }

/* --- サムネイル右上のビデオインジケーター --- */
.video-indicator-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(3px);
    transition: background-color 0.3s ease;
}
.gallery-item:hover .video-indicator-icon {
    background-color: rgba(0, 0, 0, 0.7);
}
.video-indicator-icon svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    margin-left: 2px;
}


/* --- 共通ページセクション --- */
.page-section { padding: 120px 50px; text-align: center; }
.page-section h2 { font-size: 36px; margin-bottom: 80px; letter-spacing: 5px; }

/* --- ABOUTセクション --- */
.about-section { background-color: var(--bg-color); }
.about-content { display: flex; justify-content: center; align-items: flex-start; gap: 60px; max-width: 1200px; margin: 0 auto; text-align: left; }
.about-image { flex-shrink: 0; width: 300px; height: auto; overflow: hidden; border-radius: 8px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text-container { flex-grow: 1; max-width: 700px; line-height: 2.2; font-weight: 300; }
.about-text-container p { margin-bottom: 1em; }

.about-service-section {
    max-width: 1200px;
    margin: 80px auto 0 auto;
    padding: 0 15px;
}
.about-service-section h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
}
.service-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.service-list li {
    margin-bottom: 20px;
}
.service-list strong {
    font-weight: 700;
    color: var(--primary-text-color);
}
.service-note {
    margin-top: 25px;
    font-size: 14px;
    color: var(--secondary-text-color);
    text-align: center;
}


/* --- CONTACTセクション --- */
.contact-section { background-color: var(--surface-color); }
.contact-links { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; transition: opacity 0.3s ease; }
.contact-link:hover { opacity: 0.7; }
.contact-link svg { width: 24px; height: 24px; }
.contact-item { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; padding: 10px 15px; border: 1px solid var(--secondary-text-color); border-radius: 8px; }
#copy-button { font-family: inherit; background-color: #333; color: var(--primary-text-color); border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; font-size: 14px; transition: background-color 0.3s ease; }
#copy-button:hover { background-color: #444; }
#copy-button.copied { background-color: #28a745; color: #fff; }

.contact-intro {
    max-width: 600px;
    margin: -40px auto 60px auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-text-color);
}

/* --- フッター --- */
footer { padding: 40px 20px; text-align: center; font-size: 14px; color: var(--secondary-text-color); background-color: var(--bg-color); }

/* --- 動画再生モーダル --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { position: relative; margin: auto; padding: 20px; width: 90%; max-width: 1200px; top: 50%; transform: translateY(-50%); }
.close-button { color: #fff; position: absolute; top: -30px; right: 0; font-size: 40px; font-weight: bold; cursor: pointer; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- 写真スライダーセクション --- */
.photos-section { background-color: var(--surface-color); }
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
}
.slider-track { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-button { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5); color: var(--accent-color); border: none; font-size: 24px; padding: 10px 15px; cursor: pointer; z-index: 10; transition: background-color 0.3s ease; border-radius: 50%; width: 50px; height: 50px;}
.slider-button:hover { background-color: rgba(0, 0, 0, 0.8); }
.slider-button.prev { left: 20px; }
.slider-button.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { cursor: pointer; height: 12px; width: 12px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; display: inline-block; transition: background-color 0.3s ease; border: none; padding: 0;}
.dot.active { background-color: rgba(255, 255, 255, 0.8); }

/* --- ハンバーガーメニュー --- */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-bar { display: block; width: 25px; height: 3px; background-color: var(--primary-text-color); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }

/* --- スクロールアニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { flex-direction: column; align-items: center; gap: 40px; }
    .about-image { width: 60%; max-width: 300px; }
    .about-text-container { max-width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    header {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 20px;
        justify-content: space-between;
    }
    header .logo { display: block; }
    .main-nav { display: none; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px); justify-content: center; align-items: center; transition: right 0.5s ease-in-out; }
    .main-nav.is-active { right: 0; display: flex; }
    .main-nav.is-active ul { flex-direction: column; gap: 40px; text-align: center; }
    .main-nav.is-active ul li a { font-size: 20px; }
    .hamburger-menu { display: block; }
    .hamburger-menu.is-active .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-section .main-nav { display: none; }

    .works-gallery, .page-section { padding: 80px 20px; }
    .works-gallery h2, .page-section h2 { font-size: 28px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-links { flex-direction: column; gap: 30px; }
    .contact-item { font-size: 16px; }
    .slider-button { font-size: 18px; padding: 8px 12px; width: 40px; height: 40px;}
    .dot { height: 10px; width: 10px; }

    .contact-intro {
        margin: -30px auto 40px auto;
        font-size: 15px;
    }
    .about-service-section {
        margin-top: 60px;
    }
    .about-service-section h3 {
        font-size: 18px;
    }

    .award-section {
        padding: 40px 20px; /* ★変更: スマホ用の余白を調整 */
    }
    .works-gallery {
        padding-top: 40px;
    }
}

/* --- フィルムグレイン・オーバーレイ --- */
.grain-overlay {
    position: fixed;
    top: -200%;
    left: -200%;
    width: 400%;
    height: 400%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAAD9M+WMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvbmU6bnM6bWV0YS8iIHg6eG1wdHk9IlJFVFNBVEVDaW5lbk9iY3RCb29sZWFuIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvbmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChNYWNpbnRvc2gpIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMyQURDQkE5QzcxMzExRTlBQUE2OUM3QjcyMjY2Mzg4IiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuZGlkOjMyQURDQkE4QzcxMzExRTlBQUE2OUM3QjcyMjY2Mzg4Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzIyRUQzMTFDNzEzMTFFOUFBQTY5QzdCNzIyNjYzODgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzIyRUQzMTJDNzEzMTFFOUFBQTY5QzdCNzIyNjYzODgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InciPz4F90GkAAAABlBMVEUAAAD///+xQswQAAAAAWJLR0QAwGbUAAAAJUlEQVQ4y2NgAAEQMAEYN4AEMJABYhYgBgYgBiIWhhCjGZgAAAMhAYwA4QoE5QAAAABJRU5ErkJggg==');
    background-size: 100px;
    opacity: 0.05;
    animation: grain-animation 8s steps(10) infinite;
    pointer-events: none;
    z-index: 999;
}

@keyframes grain-animation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 10%); }
    30% { transform: translate(7%, -15%); }
    40% { transform: translate(-10%, 5%); }
    50% { transform: translate(12%, -8%); }
    60% { transform: translate(-8%, 12%); }
    70% { transform: translate(3%, -7%); }
    80% { transform: translate(-13%, 8%); }
    90% { transform: translate(9%, -3%); }
}