/* ============================================
   Editorial Style - Magazine Layout
   ============================================ */

/* リセット & ベース */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー */
    --color-black: #000;
    --color-white: #fff;
    --color-gray: #888;
    --color-light-gray: #f5f5f5;
    --color-border: #000;
    --color-text: #000;
    --color-text-light: #666;
    --color-bg: #f5f5f5;
    
    /* フォント */
    --font-sans: "Helvetica Neue", "Noto Sans JP", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-en: "Helvetica Neue", Arial, sans-serif;
    --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    
    /* レイアウト */
    --header-height: 50px;
    --sub-header-height: 40px;
    --ticker-height: 30px;
    --sidebar-width: 320px;
    --menu-width: 400px;
    
    /* アニメーション */
    --transition-speed: 0.4s;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================
   メニューオーバーレイ
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    z-index: 998;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   サイトラッパー（メニュー開閉でスライド）
   ============================================ */
.site-wrapper {
    min-height: 100vh;
    transition: transform var(--transition-speed) ease;
}

body.menu-open .site-wrapper {
    transform: translateX(calc(-1 * var(--menu-width)));
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: transform var(--transition-speed) ease;
}

body.menu-open .site-header {
    transform: translateX(calc(-1 * var(--menu-width)));
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.header-dots svg {
    width: 18px;
    height: 18px;
}

.header-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ティッカー（流れるテキスト） */
.header-ticker {
    flex: 1;
    margin: 0 30px;
    overflow: hidden;
    padding: 4px 20px;
    background-color: #f5f5f5;
    background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
    background-size: 3px 3px;
}

.ticker-wrap {
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    font-size: 12px;
    letter-spacing: 1px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ヘッダーSNSリンク */
.header-sns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-sns-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: opacity 0.2s, transform 0.2s;
}

.header-sns-btn:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.header-sns-btn svg {
    width: 18px;
    height: 18px;
}

/* スマホ用改行（デフォルト非表示） */
.sp-only {
    display: none;
}

/* ハンバーガーボタン */
.hamburger-btn {
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    transition: transform 0.3s;
}

/* ============================================
   サブヘッダー（main-left内に配置）
   ============================================ */
.sub-header {
    height: var(--sub-header-height);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
}

.sub-header-label {
    font-style: italic;
}

.sub-header-divider {
    color: var(--color-border);
}

.sub-header-news {
    font-weight: 700;
}

.sub-header-date {
    color: var(--color-gray);
}

.sub-header-text {
    color: var(--color-gray);
}

.sub-header-news-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.sub-header-news-link:hover {
    opacity: 0.7;
}

.sub-header-news-link:hover .sub-header-text {
    text-decoration: underline;
}

/* ============================================
   メインエリア
   ============================================ */
.main-area {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* 左カラム */
.main-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
}

/* ============================================
   メインビジュアル スライダー
   ============================================ */
.mv-slider {
    flex: 1;
    position: relative;
    background: var(--color-light-gray);
    overflow: hidden;
}

/* 各スライド */
.mv-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.mv-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mv-slide .mv-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mv-slide .mv-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.mv-slide .mv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライド番号（大きく表示） */
.mv-slide-number {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 150px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: -5px;
    pointer-events: none;
}

/* スライドコンテンツ */
.mv-slide-content {
    position: absolute;
    bottom: 100px;
    left: 40px;
    color: var(--color-white);
}

.mv-slide-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    padding: 6px 15px;
    border: 1px solid var(--color-white);
    margin-bottom: 15px;
}

.mv-slide-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2px;
}

/* ロゴ（常に表示） */
.mv-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--color-black);
    text-align: left;
    line-height: 1.1;
    mix-blend-mode: difference;
    filter: invert(1);
}

.mv-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    color: var(--color-white);
    font-size: 14px;
    letter-spacing: 2px;
}

.mv-season {
    font-weight: 500;
}

.mv-category {
    font-weight: 500;
    text-decoration: none;
}

.mv-category u {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ページネーション（雑誌風） */
.mv-pagination {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pagination-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.pagination-item.active,
.pagination-item:hover {
    opacity: 1;
}

.pagination-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-white);
}

.pagination-bar {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.pagination-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-white);
}

.pagination-item.active .pagination-progress {
    animation: progress-fill 5s linear forwards;
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   サイドバー
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-white);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================
   サイドバー検索フォーム
   ============================================ */
.sidebar-search {
    position: relative;
    background: var(--color-white);
    padding: 25px;
    border: 1px solid var(--color-black);
    margin-bottom: 25px;
}

/* ドットパターンの影 */
.sidebar-search::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background-image: radial-gradient(circle, var(--color-black) 1px, transparent 1px);
    background-size: 4px 4px;
    z-index: -1;
}

/* 検索アイコン装飾（SVG） */
.sidebar-search::after {
    content: '';
    position: absolute;
    top: -14px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: var(--color-white);
    padding: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.search-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.search-number {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.search-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-gray);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-field {
    position: relative;
}

.field-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-gray);
    margin-bottom: 6px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-black);
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.search-field input::placeholder {
    color: var(--color-gray);
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--color-black);
}

.search-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    margin-top: 10px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    font-size: 12px;
    font-family: inherit;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.search-btn:hover {
    background: #333;
}

.search-btn:active {
    transform: scale(0.98);
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}

.search-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* コンテンツリスト */
.sidebar-contents {
    flex: 1;
}

.contents-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-gray);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.contents-label-jp {
    font-size: 10px;
    letter-spacing: 0;
}

.contents-list li {
    border-bottom: 1px solid var(--color-border);
}

.contents-list li a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 15px 0;
    transition: opacity 0.2s;
}

.contents-list li a:hover {
    opacity: 0.6;
}

.contents-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.contents-name-jp {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0;
}

.contents-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 12px 2px;
    border: 1px solid var(--color-black);
    border-radius: 20px;
}

/* ============================================
   スライドメニュー
   ============================================ */
.slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--menu-width);
    height: 100vh;
    background: var(--color-white);
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    z-index: 999;
    overflow-y: auto;
}

body.menu-open .slide-menu {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.menu-header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.menu-logo {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.menu-logo span {
    display: block;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--color-black);
}

.menu-list {
    margin-bottom: 40px;
}

.menu-list li {
    border-bottom: 1px solid var(--color-border);
}

.menu-list li a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: opacity 0.2s;
    gap: 5px;
}

.menu-list li a:hover {
    opacity: 0.6;
}

.menu-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.menu-name-jp {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 4px;
    letter-spacing: 0;
}

.menu-count {
    font-size: 12px;
    margin-left: 5px;
    vertical-align: super;
}

.menu-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 4px 12px;
    border: 1px solid var(--color-black);
    border-radius: 20px;
}

/* メニューSNSリンク */
.menu-sns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 30px;
}

.menu-sns-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.2s;
}

.menu-sns-btn:hover {
    opacity: 0.6;
}

.menu-sns-btn svg {
    width: 24px;
    height: 24px;
}

.menu-sns-btn span {
    font-size: 13px;
    letter-spacing: 1px;
}

/* メニューフッター */
.menu-footer {
    margin-top: auto;
}

.share-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--color-gray);
    text-transform: uppercase;
}

.page-top {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--color-gray);
    transition: color 0.2s;
}

.page-top:hover {
    color: var(--color-black);
}

/* レスポンシブスタイルは responsive.css に分離 */
