@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;700&display=swap');
@font-face {
    font-family: 'Moderniz';
    src: url('/fonts/Moderniz.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Moderniz', 'Noto Sans JP', sans-serif;
    color: white;
    background: black;
    text-align: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ローディング画面 */
#loading {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1.5s ease-out;
}

#loading h1 {
    font-family: 'Moderniz', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.loading-bar {
    width: 100px;
    height: 2px;
    background: white;
    animation: loading-animation 1.5s infinite ease-in-out;
}

@keyframes loading-animation {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* ローディングが終わるとフェードアウト */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ====== ホームボタン ====== */
#home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

#home-button img {
    width: 100%;
    height: auto;
}

#home-button:hover {
    transform: scale(1.1);
}

/* ====== メインコンテンツ ====== */
.section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* 高さを抑えて間延びを防ぐ */
    padding: 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    position: relative;
}

.section-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== 画像とテキストのレイアウト（まとまり） ====== */
.media-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 画像設定 */
.media-content {
    position: relative;
    cursor: pointer;
}

.media-content img {
    max-width: 60%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.media-content:hover img {
    transform: scale(1.05);
}

/* テキストの配置（画像の左横斜め上・少し画像外） */
.text-content {
    font-family: 'Moderniz', sans-serif;
    position: absolute;
    top: 25%; /* 画像より上に配置 */
    left: 20%; /* 画像より左に配置 */
    transform: translate(-50%, -50%);
    font-size: 6vw;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
}

/* ====== SNSリンク ====== */
#social-links {
    font-family: 'Moderniz', sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

#social-links a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

#social-links a:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* ====== ハンバーガーメニュー ====== */
#menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#menu-icon {
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#menu-container:hover #menu {
    display: block;
}

#menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 10px;
}

#menu ul {
    list-style: none;
    padding: 0;
}

#menu ul li {
    margin: 5px 0;
}

#menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    display: block;
    padding: 5px 10px;
    transition: background 0.3s;
}

#menu ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ====== 画像のレイアウト ====== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    mix-blend-mode: multiply;
}

/* TRITAKEのテキスト */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3; /* 背景よりも上にする */
    color: white;
    background: rgba(0, 0, 0, 0.2); /* 少し背景を暗くして視認性を向上 */
    padding: 20px;
    border-radius: 10px;
    width: auto;
    max-width: 90%;
}

/* ヒーローテキストのフォント設定 */
.hero-text h1 {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem); /* 画面サイズに応じて調整 */
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap; /* 改行を防ぐ */
    mix-blend-mode: normal; /* 背景の影響を受けないように */
}

/* 画面サイズが小さい場合の調整 */
@media (max-width: 770px) {
    .hero-text {
        top: 40%; /* 画面サイズが小さくなった時に上に行き過ぎるのを防ぐ */
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 3rem); /* 小さい画面用にフォントサイズを調整 */
    }
    .section-content {
        min-height: auto; /* 高さを可変にし、間隔を適正化 */
        padding: 10%; /* 余白を縮小 */
    }
}


/* PHOTOギャラリー */
.photo-gallery {
    display: block;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

/* 画像のレイアウト */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 2px 10px rgba(200, 200, 200, 0.5); /* ぼやけた灰色の影 */
}

/* ホバー時の拡大 */
.photo-grid img:hover {
    transform: scale(1.05);
}

/* スマホ時は1列 */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr; /* スマホ時は1列 */
    }
    .photo-grid img {
        width: 100%;
        height: auto;
        object-fit: contain; /* 横長画像が見切れないように */
    }
}

/* モーダルウィンドウ */
#photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

/* モーダル表示時の中央表示 */
#photo-modal.show {
    display: flex;
}

/* 拡大表示の画像 */
#modal-img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease-in-out;
}

/* 前後の画像に移動するボタン */
#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

#prev { left: 10px; }
#next { right: 10px; }

/* 閉じるボタン */
#close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

/* PHOTOタイトル */
.photo-title {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem); /* index.htmlのコンテンツの文字サイズに合わせる */
    font-weight: bold;
    color: white;
    margin: 80px 0 40px 10%; /* 上下の余白をしっかり確保し、左寄せ */
    text-align: left;
}

/* DESIGNタイトル */
.design-title {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem);
    font-weight: bold;
    color: white;
    margin: 80px 0 40px 10%;
    text-align: left;
}

/* DESIGNギャラリー */
.design-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

/* 画像のレイアウト */
.design-grid {
    column-count: 3;
    column-gap: 0px;
    max-width: 1200px;
    width: 100%;
}

.design-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 2px 10px rgba(200, 200, 200, 0.5);
}

/* ホバー時の拡大 */
.design-grid img:hover {
    transform: scale(1.05);
}

/* スマホ時は1列 */
@media (max-width: 768px) {
    .design-grid {
        column-count: 1;
    }
    .design-grid img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* モーダルウィンドウ */
#design-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

/* モーダル表示時の中央表示 */
#design-modal.show {
    display: flex;
}

/* 拡大表示の画像 */
#design-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease-in-out;
}

/* MMVタイトル */
.mmv-title {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem);
    font-weight: bold;
    color: white;
    margin: 80px 0 40px 10%;
    text-align: left;
}

/* MMVギャラリー */
.mmv-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

/* 動画グリッド */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC時は2列 */
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

/* 動画アイテム */
.video-item {
    position: relative;
    cursor: pointer;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.thumbnail-container:hover img {
    transform: scale(1.05);
}

/* 動画タイトル */
.video-title {
    font-family: 'Moderniz', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 10px;
}

/* スマホ時は1列 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ABOUTタイトル */
.about-title {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem);
    font-weight: bold;
    color: white;
    margin: 80px 0 40px 10%;
    text-align: left;
}

/* ABOUT 内容 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: white;
    line-height: 1.8;
}

/* 名前 */
.about-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 自己紹介 */
.about-intro {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ABOUT SNS リンク（PC: 横並び / スマホ: 縦並び） */
#about-social-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* PC時のリンク間の間隔 */
    margin-top: 20px;
}

/* SNSリンク共通スタイル */
.about-social-link {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.about-social-link:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 📱 スマホ時は縦並びに */
@media (max-width: 768px) {
    #about-social-links {
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 中央揃え */
        gap: 10px; /* 縦方向の間隔を少し狭める */
    }

    .about-social-link {
        width: 80%; /* スマホ時はボタンを広めに */
        text-align: center;
        font-size: 1rem; /* 少しフォントサイズを小さく */
    }
}



/* CONTACT タイトル */
.contact-title {
    font-family: 'Moderniz', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem); /* 他のページと同じタイトルサイズ */
    font-weight: bold;
    color: white;
    margin: 80px 0 40px 10%; /* 左寄せ */
    text-align: left;
}

/* CONTACT の説明 */
.contact-container {
    text-align: center;
    margin-top: 40px;
}

.contact-text {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
}

/* メールアドレスのデザイン */
.contact-email {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00aaff;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* 共通: スマホ対応 */
@media (max-width: 768px) {
    body {
        font-family: 'Moderniz', sans-serif;
    }
    .contact-title,
    .about-title,
    .design-title {
        font-size: clamp(1.2rem, 6vw, 3rem); /* 小さい画面でも適切なフォントサイズ */
        margin-left: 5%; /* 左寄せを少し調整 */
    }

    .contact-container,
    .about-container,
    .design-container {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .contact-text,
    .about-text,
    .design-text {
        font-size: clamp(1rem, 4vw, 1.4rem); /* 画面サイズに応じてフォントサイズを調整 */
        word-wrap: break-word; /* 長い単語でレイアウト崩れを防ぐ */
    }

    .contact-email {
        font-size: clamp(1rem, 4vw, 1.5rem); /* メールアドレスのフォントサイズ調整 */
        padding: 8px 16px;
    }

    /* SNSリンクのボタンもサイズ調整 */
    .custom-social-links a {
        font-size: clamp(1rem, 4vw, 1.3rem);
        padding: 8px 16px;
    }

    /* 注意事項のフォントサイズを小さめに */
    .notice-text {
        font-size: clamp(0.8rem, 3vw, 1rem);
        max-width: 90%;
        margin: 0 auto;
    }
}
/* ====== PHOTOページ more...ボタン ====== */


#load-more-btn {
    margin: 30px auto;
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    font-family: 'Moderniz', sans-serif;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#load-more-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}