/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.8;
}

/* ナビゲーション */
.main-nav {
    display: flex;
    align-items: center;
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    margin: -10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: currentColor;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 80px 20px 20px;
}

.mobile-menu-category {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.mobile-menu-category:last-child {
    border-bottom: none;
}

.menu-category-title {
    font-size: 18px;
    margin-bottom: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    user-select: none;
}

.menu-category-title:hover {
    color: #e60073;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.menu-category-title.active .toggle-icon {
    transform: rotate(180deg);
}

.menu-category-content {
    display: none;
    padding-top: 10px;
}

.menu-category-content.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    margin-bottom: 10px;
}

.mobile-menu-list a {
    text-decoration: none;
    color: #666;
    display: block;
    padding: 8px 15px;
    transition: all 0.3s;
    border-radius: 4px;
}

.mobile-menu-list a:hover {
    color: #e60073;
    background: #f8f8f8;
}

.submenu-item {
    position: relative;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-list {
    margin-top: 10px;
    margin-left: 20px;
    display: none;
}

.submenu-list li {
    display: inline-block;
    margin: 5px;
}

.submenu-list a {
    padding: 5px 10px;
    font-size: 14px;
    background: #f0f0f0;
    border-radius: 15px;
}

/* ソートドロップダウン */
.sort-dropdown {
    margin-right: 20px;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.sort-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sort-select option {
    background: #1a1a2e;
    color: #fff;
}

.sort-select option:checked,
.sort-select option[selected] {
    background: #3498db;
    color: #fff;
}

/* メインコンテンツ */
.main-content {
    margin-top: 150px;
    min-height: calc(100vh - 250px);
    padding-top: 30px;
}

/* タブメニュー */
.tab-menu {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-menu button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-menu button:hover {
    color: #e60073;
}

.tab-menu button.active {
    color: #e60073;
}

.tab-menu button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e60073;
}

/* 商品グリッド */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.item-thumbnail {
    position: relative;
    padding-bottom: 84.7%; /* アスペクト比 1.18:1（横長） */
    overflow: hidden;
}

.item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 動画バッジ */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(230, 0, 115, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.video-badge .play-icon {
    font-size: 10px;
    font-style: normal;
}

/* 画像のみバッジ */
.photo-only-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(100, 100, 100, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ホバーエフェクト */
.item-card.has-video:hover .video-badge {
    background: rgba(230, 0, 115, 1);
    transform: scale(1.1);
}

.item-card.no-video .item-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.3s;
}

.item-card.no-video:hover .item-thumbnail::after {
    opacity: 1;
}

.item-info {
    padding: 15px;
}

.item-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-date {
    font-size: 12px;
    color: #666;
}

/* ページネーション */
.pagination {
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.pagination-list a,
.pagination-list span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination-list a:hover {
    background: #e60073;
    color: #fff;
    border-color: #e60073;
}

.pagination-list .current {
    background: #e60073;
    color: #fff;
    border-color: #e60073;
}

/* 期間選択 */
.period-selector {
    text-align: right;
    margin-bottom: 20px;
    padding: 10px 0;
}

.period-selector label {
    font-weight: bold;
    margin-right: 10px;
}

.period-selector select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.period-selector select:focus {
    outline: none;
    border-color: #e60073;
}

@media (max-width: 768px) {
    .period-selector {
        text-align: center;
    }
}

/* エントリーページ */
.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.entry-video {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.entry-video video {
    width: 100%;
    height: auto;
}

.sample-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.sample-image {
    cursor: pointer;
    transition: transform 0.3s;
}

.sample-image:hover {
    transform: scale(1.05);
}

.sample-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    font-weight: bold;
    color: #666;
}

.info-value {
    flex: 1;
}

.info-value a {
    color: #e60073;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background: #e60073;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 0, 115, 0.3);
}

/* フッター */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.footer-tags a:hover {
    background: rgba(255,255,255,0.2);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .main-content {
        margin-top: 100px;
        padding-top: 20px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }
    
    .entry-title {
        font-size: 20px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-description {
        font-size: 12px;
    }
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* ローディング */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e60073;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* フリースペース */
.free-space {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

/* フリースペース内の画像を自動調整 */
.free-space img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* フリースペース内のiframe（広告など）を自動調整 */
.free-space iframe {
    max-width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .free-space {
        margin: 20px 0;
        padding: 15px;
    }
}

/* モバイルメニュー閉じるボタン */
.mobile-menu-close {
    text-align: right;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.close-button:hover {
    color: #e60073;
}

/* DMM.com バナー */
.dmm-banner {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dmm-banner img {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.dmm-banner a:hover img {
    opacity: 1;
}

/* NoImageのオシャレなアニメーション付きサムネイル */
.no-image-animated {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF006E, #8338EC, #3A86FF, #06FFA5);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.no-image-animated::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.no-image-animated .icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 2;
    animation: rotate3d 6s linear infinite;
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(180deg) rotateX(10deg);
    }
    50% {
        transform: rotateY(360deg) rotateX(-10deg);
    }
    75% {
        transform: rotateY(540deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(720deg) rotateX(0deg);
    }
}

.no-image-animated .video-icon {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* パーティクルエフェクト */
.no-image-animated .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.no-image-animated .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-up 4s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.no-image-animated .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 3s; }
.no-image-animated .particle:nth-child(2) { left: 20%; animation-delay: 0.5s; animation-duration: 3.5s; }
.no-image-animated .particle:nth-child(3) { left: 30%; animation-delay: 1s; animation-duration: 4s; }
.no-image-animated .particle:nth-child(4) { left: 40%; animation-delay: 1.5s; animation-duration: 3s; }
.no-image-animated .particle:nth-child(5) { left: 50%; animation-delay: 2s; animation-duration: 3.5s; }
.no-image-animated .particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 4s; }
.no-image-animated .particle:nth-child(7) { left: 70%; animation-delay: 3s; animation-duration: 3s; }
.no-image-animated .particle:nth-child(8) { left: 80%; animation-delay: 3.5s; animation-duration: 3.5s; }
.no-image-animated .particle:nth-child(9) { left: 90%; animation-delay: 4s; animation-duration: 4s; }

.no-image-animated .loading-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.no-image-animated .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.no-image-animated .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.no-image-animated .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.no-image-animated .text {
    position: relative;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 15px;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* メインテキストアニメーション */
.no-image-animated .text span {
    display: inline-block;
    animation: bounce-letter 2s ease-in-out infinite;
}

.no-image-animated .text span:nth-child(1) { animation-delay: 0s; }
.no-image-animated .text span:nth-child(2) { animation-delay: 0.1s; }
.no-image-animated .text span:nth-child(3) { animation-delay: 0.2s; }
.no-image-animated .text span:nth-child(4) { animation-delay: 0.3s; }
.no-image-animated .text span:nth-child(5) { animation-delay: 0.4s; }
.no-image-animated .text span:nth-child(6) { animation-delay: 0.5s; }
.no-image-animated .text span:nth-child(7) { animation-delay: 0.6s; }
.no-image-animated .text span:nth-child(8) { animation-delay: 0.7s; }
.no-image-animated .text span:nth-child(9) { animation-delay: 0.8s; }
.no-image-animated .text span:nth-child(10) { animation-delay: 0.9s; }
.no-image-animated .text span:nth-child(11) { animation-delay: 1.0s; }

@keyframes bounce-letter {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

/* サブテキスト */
.no-image-animated .subtext {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 10px;
    z-index: 2;
    animation: typing 4s steps(20, end) infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    padding-right: 5px;
}

@keyframes typing {
    0%, 10% {
        width: 0;
    }
    50%, 90% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* ホバー効果 */
.item-card:hover .no-image-animated {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.item-card:hover .no-image-animated::before {
    animation-duration: 1s;
}

.item-card:hover .no-image-animated .icon-wrapper {
    animation-duration: 2s;
}

.item-card:hover .no-image-animated .text span {
    animation-duration: 0.5s;
    color: #FFE66D;
}

/* クリックを促すメッセージ */
.no-image-animated .click-me {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    animation: pulse-bg 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse-bg {
    0%, 100% {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .no-image-animated .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .no-image-animated .text {
        font-size: 12px;
    }
}