@font-face {
    font-family: 'Ode';
    src: url('./fonts/ode.woff2') format('woff2'),
        url('./fonts/ode.woff') format('woff'),
        url('./fonts/ode.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    overflow-x: visible;
    height: 100%;
}

body {
    width: auto; /* ← 100vw だとブラウザ幅に制限されてしまう */
    margin: 0;
    padding: 0;
    font-family: 'Ode', serif;
    color: #0D0D0D;
    line-height: 150%;
    letter-spacing: -0.02em;
    min-height: 100%;
    position: relative;
    /* 横幅オーバーを防ぐ */
    overflow-x: hidden;
}

header {
    display: block;
    height: 140px; /* 高さを140pxに変更 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 1000;
}

/* Wrapper styles */
#wrapper {
    min-height: 100vh;
    position: relative;
    max-width: 100vw;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-title {
    font-size: 4.5rem; /* 72px ÷ 16 = 4.5rem */
    transform: scaleY(1.8);
    transform-origin: center;
    display: inline-block;
}

.global_nav {
    position: relative;
    top: 0px; /* 画面上部に揃える */
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    padding: 0 28px; /* 左右のパディングを28pxに変更 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.5rem;
}

#logo {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
    box-sizing: border-box;
}

#logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.menu , .tag_search{
    z-index: 1000;
    height: auto;
    position: relative;
    cursor: pointer;
    text-align: center;
    font-size: 20px; /* 20pxに変更 */
}

/* .tag_searchがaタグの場合のスタイル調整 */
.tag_search {
    text-decoration: none;
    display: inline-block;
    color: inherit;
}

main {
    margin-top: 140px; /* headerの高さ分のマージンを追加 */
    padding-top: 0; /* padding-topを0に変更 */
    min-height: calc(100vh - 140px); /* 最小高さをheaderの高さに合わせて調整 */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

#filters{
    display: block;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#filters button {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#filters button:last-child {
    margin-bottom: 0;
}

#filters a {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.pronoun-group {
    font-size: 80px; /* 固定サイズ80pxに変更 */
    line-height: 1.5; /* 150%から1.2に変更して間隔を縮める */
    letter-spacing: -0.072em;
    margin: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pronoun-group span {
    display: block;
    margin: 0; /* デフォルトマージンをリセット */
    padding: 0; /* デフォルトパディングをリセット */
}

.pronoun-group .slash {
    display: inline-block;
    width: 2rem;
    margin-top: 0.8rem;
}

.column-pronoun {
    display: flex;
    margin-bottom: -0.5em; /* .bottomとの間隔を縮める */
}

.vertical-scale {
    display: inline-block;
    font-family: 'Gilda Display', serif;
    font-size: inherit;
    line-height: 1.5;
    letter-spacing: -0.03em;
    transform: scaleY(1.8);
    transform-origin: center;
}


/* Full-screen overlay menu styles */
.overlay-menu {
    position: fixed;
    top: -150vh; /* フォントサイズ変更に合わせて再調整 */
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* centerからflex-startに変更 */
    align-items: center;
    padding: 162px 20px 40px 20px;
    transition: top 0.2s ease-in-out;
}

.overlay-menu.active {
    top: 0;
}

.close-btn {
    position: fixed;
    top: 90px;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.close-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.close-btn:hover {
    opacity: 0.7;
}

/* overlayMenuが非表示のときはclose-btnも非表示 */
.overlay-menu:not(.active) .close-btn {
    display: none;
}

/* タグ検索用オーバーレイUI */
.overlay-tags {
    position: fixed;
    top: -150vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 162px 20px 40px 20px;
    transition: top 0.2s ease-in-out;
    overflow-y: auto;
}

.overlay-tags.active {
    top: 0;
}

/* overlay-tagsが非表示のときはclose-btnも非表示 */
.overlay-tags:not(.active) .close-btn {
    display: none;
}



.overlay-menu ul {
    list-style: none;
    padding: 0;
    margin: 40px 20px 0 20px;
    width: 100%;
    max-height: calc(100vh - 200px); /* 画面高さからヘッダーとパディングを引いた最大高さ */
    overflow-y: auto; /* 縦スクロールを有効化 */
    padding-right: 10px; /* スクロールバーのスペースを確保 */
}

/* スクロールバーのスタイルをカスタマイズ */
.overlay-menu ul::-webkit-scrollbar {
    width: 8px;
}

.overlay-menu ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overlay-menu ul::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.overlay-menu ul::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.overlay-menu li {
    margin: 0 0 20px 0;
    text-align: left;
}

.overlay-menu a {
    text-decoration: none;
    color: #0D0D0D;
    font-size: 2.5rem;
    font-family: 'Ode', serif;
}


.models-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 50px;
    margin: 0 20px;
    min-height: 200px; /* 最小高さを確保 */
    }

.models-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    display: block;
    visibility: visible;
    opacity: 1;
    }

.models-grid .model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: visible;
    opacity: 1;
    }

.models-grid .model-name {
    margin-top: 12px;
    font-family: 'Ode', serif;
    font-size: 20px;
    color: #0D0D0D;
    text-align: center;
    line-height: 1.5;
}

/* Models logo styles */
.models-logo {
    margin: 28px 28px 68px 28px;
}

.models-logo a {
    display: block;
    text-decoration: none;
}

/* tags_all.html専用のスタイル */
.tags-all-page .tags-name {
    font-size: 80px;
    margin: 120px 20px 0px 20px;
    text-align: left;
}

.all-text {
    display: block;
    width: 100%;
}



.main-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer styles */
footer {
    margin-top: 48px;
    padding: 12px 28px 80px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}



.footer-content {
    display: flex;
    justify-content: flex-start; /* 左揃えに変更 */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 28px;
}

.footer-content a {
    text-decoration: none;
    display: inline-block; /* 幅を画像にフィットさせる */
    width: 34%; /* 幅を34%に設定 */
    max-width: 34%; /* 最大幅を制限 */
}

.footer-logo {
    width: 100%; /* aタグの幅いっぱいに表示 */
    height: auto; /* 縦横比を維持 */
    display: block;
}


.footer-copyright {
    font-family: 'Ode', serif;
    font-size: 16px; /* フォントサイズを16pxに変更 */
    color: #0D0D0D;
    text-align: center;
    margin: 0;
}

/* モデル詳細ページ用のスタイル */
.model-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    margin: 0;
    width: 100%;
}

.model-info-group {
    display: flex;
    flex-direction: column;
    gap: 34px; /* model-stats-sectionとmodel-caption-sectionの間隔を0に */
    width: 100%;
}

.model-name-section {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    padding: 0 20px;
}

.model-name-section .model-name {
    margin: 0;
    text-align: center;
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-photo-section {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}

.model-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.25; /* 縦横比 1:1.25（縦長） */
    object-fit: cover;
    display: block;
}

.model-stats-section {
    text-align: center;
    margin-bottom: 0; /* 余白を解消 */
    width: 100%;
    padding: 0 20px;
}

.model-stats {
    font-family: 'Ode', serif;
    font-size: 20px; /* モデル名と調和のとれたサイズ */
    color: #0D0D0D;
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* キャプションとInstagramリンクのスタイル */
.model-caption-section {
    text-align: left;
    margin: 0; /* 既に0に設定済み */
    margin-top: 0; /* 明示的にmargin-topを0に設定 */
    max-width: 100%;
    padding: 0 20px;
}

.model-caption {
    font-family: 'Ode', serif;
    font-size: 18px;
    color: #0D0D0D;
    margin: 0 0 30px 0;
    line-height: 1.8;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.instagram-link {
    text-align: right;
}

.instagram-link a {
    font-family: 'Ode', serif;
    font-size: 34px;
    color: #0D0D0D;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;
    transition: opacity 0.3s ease;
}

.instagram-link a:hover {
    opacity: 0.7;
}

/* 作品ギャラリーのスタイル */
.works-gallery-section {
    margin: 60px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.works-title {
    font-family: 'Ode', serif;
    font-size: 3.6rem;
    color: #0D0D0D;
    text-align: left;
    margin: 0 0 40px 20px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.works-gallery {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    box-sizing: border-box;
    width: 100%;
}

/* Webkit系ブラウザ用のスクロールバースタイル */
.works-gallery::-webkit-scrollbar {
    height: 8px;
}

.works-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.works-gallery::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.works-gallery::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    width: auto;
    height: 300px;
    min-width: 200px;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.work-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    /* Safari対応の追加プロパティ */
    -webkit-object-fit: cover !important;
    -webkit-object-position: center !important;
}

.work-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-top: 0;
}

.tag {
    display: inline-block;
    padding: 14px 12px 8px 12px;
    background: transparent;
    border: 1px solid #0D0D0D;
    border-radius: 0;
    font-family: 'Ode', serif;
    font-size: 2.8rem;
    color: #0D0D0D;
    line-height: 1.2;
    letter-spacing: -0.05em;
    white-space: nowrap;
}


/* レスポンシブ対応 */


/* モーダル表示用のスタイル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    isolation: isolate;
}

.image-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
    z-index: 10001;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 90px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.modal-close img {
    width: 50px;
    height: 50px;
    filter: invert(1);
}

/* スマホ版のみのモーダルクローズ画像サイズ */
@media (max-width: 1024px) {
    .modal-close img {
        width: 28px;
        height: 28px;
    }
}

.modal-image-container {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 20px;
    transition: opacity 0.3s ease;
    isolation: isolate;
    pointer-events: auto;
}

.modal-nav:hover {
    opacity: 0.7;
}

.modal-nav img {
    width: 50px;
    height: 50px;
    mix-blend-mode: difference;
    isolation: isolate;
    pointer-events: none;
}

/* スマホ版のみのモーダルナビゲーション画像サイズ */
@media (max-width: 1024px) {
    .modal-nav img {
        width: 24px;
        height: 24px;
    }
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-nav.hidden {
    display: none;
}

/* タグ検索ページのスタイル */
.tags-search-main {
    position: relative;
    padding: 120px 20px 60px;
    min-height: 100vh;
    background-color: #fff;
}

.tags-page-title {
    text-align: center;
    font-size: 6.4rem;
    font-weight: normal;
    margin: 40px 0 180px 0;
    color: #000;
    letter-spacing: -0.072em;
    line-height: 1;
}

.tags-categories {
    max-width: 1200px;
    margin: 0 auto;
}

.tag-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 3.8rem;
    font-weight: normal;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: -0.072em;
    line-height: 1.5;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tag-item {
    display: inline-block;
    padding: 92px 28px 68px 12px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    text-decoration: none;
    color: #000;
    font-size: 7.6rem;
    font-weight: 500;
    letter-spacing: -0.075em;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 20px 0;
}

.tag-item:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* .all-tag の特別なスタイルを削除 - 他のタグと同じ見た目に統一 */

.tag-text {
    display: block;
    white-space: nowrap;
}

/* レスポンシブ対応 */


/* タグ関連要素を一時的に非表示 */
.tag-item,
.tags-page-title,
.tags-categories,
.tag-category,
.category-title,
.tags-grid,
.work-tags,
.tag {
    display: none !important;
}

/* 作品グリッド表示用のスタイル（tags_all.html 専用） */
.works-grid {
    column-count: 2;
    column-gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pinterest風グリッド用の新しいクラス（tags_all.html 専用） */
.works-grid .grid-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
    background-color: transparent;
}

.works-grid .grid-item:hover {
    transform: translateY(-4px);
}

.works-grid .grid-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 既存の .work-item との競合を防ぐため、明示的に分離 */
.works-grid .work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
}

.works-grid .work-item:hover {
    transform: translateY(-4px);
}

.works-grid .work-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    margin-bottom: 0;
    /* works-gallery との競合を防ぐため、works-gallery では上書きしない */
}

/* 汎用的な .work-item スタイルは削除し、.works-grid と .works-gallery で明示的に分離 */

.work-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-link:hover {
    transform: scale(1.02);
}

/* 作品が見つからない場合のメッセージ */
.no-works-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 40px 0;
}

.no-works-message p,
.error-message p {
    font-size: 2.4rem;
    color: #666;
    margin-bottom: 30px;
}

.back-to-tags {
    display: inline-block;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.back-to-tags:hover {
    background: #333;
}

/* レスポンシブ対応 */




/* モデル詳細ページのポートフォリオ画像専用スタイル */
/* works側のスタイルと競合しないよう、より具体的なセレクタを使用 */
.portfolio-section,
.works-gallery-section {
    margin: 60px 0;
    padding: 0;
    width: 100%;
}

.portfolio-section .works-gallery,
.works-gallery-section .works-gallery {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0 20px 20px;
    margin-left: 0;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    box-sizing: border-box;
}

.portfolio-section .work-item,
.works-gallery-section .work-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    width: auto;
    height: 300px;
    min-width: 200px;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

/* ポートフォリオ画像の表示仕様 */
.portfolio-section .work-image,
.works-gallery-section .work-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    /* Safari対応の追加プロパティ */
    -webkit-object-fit: cover !important;
    -webkit-object-position: center !important;
}

/* スマホ版専用: .work-item を .work-image のサイズにフィットさせる */
@media (max-width: 1024px) {
    .portfolio-section .works-gallery,
    .works-gallery-section .works-gallery {
        gap: 20px;
    }
    
    .works-gallery-section .work-image {
        height: 300px !important;
        width: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        -webkit-object-fit: contain !important;
        -webkit-object-position: center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .works-gallery-section .work-item {
        height: auto !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: none !important;
        display: inline-block !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: transparent !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
    }
}

.portfolio-section .work-tags,
.works-gallery-section .work-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-top: 0;
}

.portfolio-section .tag,
.works-gallery-section .tag {
    display: inline-block;
    padding: 14px 12px 8px 12px;
    background: transparent;
    border: 1px solid #0D0D0D;
    border-radius: 0;
    font-family: 'Ode', serif;
    font-size: 2.8rem;
    color: #0D0D0D;
    line-height: 1.2;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

/* Webkit系ブラウザ用のスクロールバースタイル（ポートフォリオ専用） */
.portfolio-section .works-gallery::-webkit-scrollbar,
.works-gallery-section .works-gallery::-webkit-scrollbar {
    height: 8px;
}

.portfolio-section .works-gallery::-webkit-scrollbar-track,
.works-gallery-section .works-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.portfolio-section .works-gallery::-webkit-scrollbar-thumb,
.works-gallery-section .works-gallery::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.portfolio-section .works-gallery::-webkit-scrollbar-thumb:hover,
.works-gallery-section .works-gallery::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* モデル詳細ページのポートフォリオ画像表示スタイル（既存の.works-gallery-sectionと.works-galleryを使用） */

/* ポートフォリオ画像の表示仕様（既存の.work-itemスタイルを使用） */

/* 作品画像下のタグ表示スタイル */
.works-gallery .work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.works-gallery .work-tags .tag {
    display: inline-block;
    padding: 14px 12px 8px 12px;
    background: transparent;
    border: 1px solid #0D0D0D;
    border-radius: 0;
    font-family: 'Ode', serif;
    font-size: 2.8rem;
    color: #0D0D0D;
    line-height: 1.2;
    letter-spacing: -0.05em;
    white-space: nowrap;
    margin: 0;
}

/* レスポンシブ対応 */


/* .work-image のスタイルは既に定義済み */

/* .work-tags のスタイルは既に定義済み */

/* .tag のスタイルは既に定義済み */

/* Socialページ用のスタイル */
.social-content {
    display: block;
    width: 100%;
    padding: 96px 20px;
    margin: 0;
    box-sizing: border-box;
}

.social-links {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 96px;
    font-size: 34px;
    height: auto;
    min-height: auto;
}

.social-link {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;
    color: inherit;
    display: block;
    width: 100%;
    line-height: 1.2;
    margin-bottom: 0px;
}



.social-title {
    font-family: 'Ode', serif;
    font-size: 80px;
    font-weight: normal;
    color: #0D0D0D;
    letter-spacing: -0.05em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 84px;
}

/* PC用リンクはデフォルトで非表示（スマホサイズ） */
.pc-links {
    display: none;
}

/* PC版とスマホ版の表示切り替え */
.pc-only {
    display: none;
}

.sp-only {
    display: block;
}
/* PC向けメディアクエリ（960px以上） */
@media (min-width: 960px) {
    /* index.htmlのPC向けレイアウト調整 */
    
    /* main要素を横並びレイアウトに変更し、全体を中央揃え */
    main {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 80px;
        padding: 0 40px;
    }
    
    /* logoを左側に配置し、25%はみ出し */
    #logo {
        flex: 0 0 75%; /* 75%の幅を確保 */
        margin-left: -25%; /* 25%左にずらしてはみ出し */
        position: relative;
        z-index: 1;
    }
    
    /* filtersを右側に配置し、縦積みのまま */
    #filters {
        flex: 0 0 25%; /* 25%の幅を確保 */
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* filters内のボタンのフォントサイズを拡大 */
    #filters button {
        font-size: 2.4rem; /* PC用に拡大 */
        padding: 20px 24px;
        text-align: left;
    }
    
    /* filters内のリンクの上下パディングを0に設定 */
    #filters a {
        padding-top: 0px;
        padding-bottom: 0px;
        padding-left: 24px;
        padding-right: 24px;
        text-align: left;
    }
    
    /* .pronoun-groupのフォントサイズを96pxに設定 */
    .pronoun-group {
        font-size: 96px;
        margin: 28px 20px 0px 20px;
    }
    
    /* indexページのPC版でfooter-logoを非表示 */
    .index .footer-logo {
        display: none;
    }
    
    /* indexページのPC版でmenuを非表示にし、pc-linksを表示 */
    .index .menu {
        display: none;
    }
    
    .index .pc-links {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    
    .index .instagram-link,
    .index .mail-link {
        font-family: 'Ode', serif;
        font-size: 20px;
        color: #0D0D0D;
        text-decoration: none;
        padding: 8px 16px;
        transition: all 0.3s ease;
    }
    
    .index .instagram-link:hover,
    .index .mail-link:hover {
        background-color: #0D0D0D;
        color: #ffffff;
    }
    
    /* モデルリストページのPC版レイアウト */
    .models-page #wrapper {
        max-width: 1920px;
        margin: 0 auto;
    }
    
    .models-page main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 60px;
        padding: 0 40px;
    }
    
    .models-page .models-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 64px;
        row-gap: 64px;
        margin: 0;
        width: 100%;
    }
    
    /* モデルリストページのPC版でmodels-logoの幅を56%に設定 */
    .models-page .models-logo {
        width: 56%;
    }
    
    /* モデルリストページのPC版でmodel-nameのスタイルを調整 */
    .models-page .model-name {
        font-size: 48px;
        margin-top: 24px;
    }
}

/* スマホ版（1024px以下）での表示切り替え */
@media (max-width: 1024px) {
    .pc-only {
        display: none;
    }
    
    .sp-only {
        display: block;
    }
    
    /* スマホ版でのモデル詳細ページのマージン調整 */
    .model-photo-section {
        margin-top: 34px;
    }
    
    .model-info-group {
        margin-top: 34px;
    }
}

/* PC版（1025px以上）でのモデル詳細ページレイアウト */
@media (min-width: 1025px) {
    /* PC版とスマホ版の表示切り替え */
    .pc-only {
        display: block;
    }
    
    .sp-only {
        display: none;
    }
    
    /* モデル詳細ページのPC版レイアウト */
    .model-detail {
        display: flex;
        flex-direction: column;
        gap: 60px;
        width: 100%;
    }
    
    /* カードセクション（写真と情報を横並び） */
    .models-card-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        width: 100%;
    }
    
    /* PC版専用のカードセクション（写真と情報を横並び、中央揃え） */
    .models-card-section.pc-only {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        width: 100%;
    }
    
    /* 写真セクション（左側50%、左寄せ配置） */
    .models-card-section.pc-only .model-photo-section {
        flex: 0 0 50%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 48px;
        padding-right: 48px;
        /* 中央配置スタイルを上書きして左寄せに */
        width: auto;
        max-width: none;
        position: static;
        left: auto;
        transform: none;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
    }
    
    /* 写真セクション内の画像（縦横比を保ったままサイズ調整） */
    .models-card-section.pc-only .model-photo-section img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* 情報セクション（右側50%） */
    .models-card-section.pc-only .models-info-section {
        flex: 0 0 50%;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    /* 作品ギャラリーセクション（画面幅100%） */
    .works-gallery-section {
        width: 100%;
    }
    
    /* PC版専用のpadding設定 */
    .models-card-section.pc-only .model-photo-section {
        padding: 100px 8% 100px 10%;
    }
    
    .models-card-section.pc-only .models-info-section {
        padding: 0px 12% 0px 2%;
    }
    
    /* PC版のfooterレイアウト調整（TOPページ以外のみ） */
    .non-index-page footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 12px 28px 80px 28px;
    }
    
    .non-index-page .footer-content {
        display: flex;
        align-items: center;
        margin: 0;
        margin-bottom: 0;
    }
    
    .non-index-page .footer-content a {
        text-decoration: none;
        display: inline-block;
        width: auto;
        max-width: none;
    }
    
    .non-index-page .footer-logo {
        width: auto;
        height: 34px;
        display: block;
    }
    
    .non-index-page .footer-copyright {
        font-family: 'Ode', serif;
        font-size: 16px;
        color: #0D0D0D;
        text-align: right;
        margin: 0;
    }
    
    /* tags_all.html専用のPC版レイアウト */
    .tags-all-pc-layout main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 40px;
        max-width: 1200px;
        margin: 0 auto;
        gap: 0; /* main要素のgap: 80pxを無効化 */
    }
    
    .tags-all-pc-layout .models-header {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .tags-all-pc-layout .pronoun-group.tags-name {
        text-align: left;
        margin: 240px 0 0 0; /* margin-topを240pxに設定 */
    }
    
    .tags-all-pc-layout .works-grid {
        column-count: 4;
        column-gap: 30px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .tags-all-pc-layout .works-grid .work-item {
        break-inside: avoid;
        margin-bottom: 30px;
        display: inline-block;
        width: 100%;
    }
}

/* tags_all.html 専用: Pinterest風グリッドレイアウト */
.tags-all-grid {
    column-count: 4;
    column-gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tags-all-grid .grid-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
    background-color: transparent;
}

.tags-all-grid .grid-item:hover {
    transform: translateY(-4px);
}

.tags-all-grid .grid-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* スマホ対応: tags_all.html 専用レスポンシブ */
@media (max-width: 1024px) {
    .tags-all-grid {
        column-count: 2;
        column-gap: 20px;
        padding: 0 15px;
    }
    
    .tags-all-grid .grid-item {
        margin-bottom: 20px;
        break-inside: avoid;
    }
    
    .tags-all-grid .grid-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 既存の .works-grid は他ページ用として維持 */
@media (max-width: 1024px) {
    .works-grid {
        column-count: 2;
        column-gap: 20px;
        padding: 0 15px;
    }
    
    .works-grid .grid-item {
        margin-bottom: 20px;
        break-inside: avoid;
    }
    
    .works-grid .grid-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
