/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --primary-black: #0d0d0d;
    --secondary-black: #1a1a1a;
    --accent-gold: #d4af37;
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #888888;
    --border-dark: #2a2a2a;
    --gradient-overlay: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* 日本語禁則処理 */
    word-break: auto;
    line-break: strict;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 10px;
    font-weight: 300;
    color: var(--accent-gold);
    letter-spacing: 4px;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 言語切り替えボタン */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    min-width: 45px;
    text-align: center;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.lang-btn.active {
    background: var(--accent-gold);
    color: var(--primary-black);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ヒーロービデオセクション */
.hero-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__media {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    z-index: 1;
}

.video-div {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__text-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
}

.title-line-1 {
    color: var(--text-white);
    animation-delay: 1s;
}

.title-line-2 {
    color: var(--accent-gold);
    animation-delay: 1.5s;
}

.title-line-3 {
    color: var(--text-light);
    font-size: 0.7em;
    animation-delay: 2s;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.9;
    animation: fadeInUp 1s ease-out 0.8s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding: 0 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn-primary {
    padding: 15px 35px;
    background-color: var(--accent-gold);
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    padding: 15px 35px;
    background-color: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--text-white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--text-muted);
    margin-bottom: 15px;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* セクション共通スタイル */
section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
    width: 100%;
    text-align: center;
}

.section-header.centered {
    text-align: center;
}

.section-number {
    display: block;
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-transform: uppercase;
    color: #fff;
    /* 見出しの改行制御 */
    word-break: keep-all;
}

/* 英語表示時の見出しスタイル調整 */
[data-lang="en"] .section-title,
[data-lang="zh"] .section-title {
    word-break: normal;
    hyphens: auto;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 中野の魚屋セクション */
.nakano-section {
    background-color: var(--primary-black);
    padding: 100px 0;
}

.nakano-content {
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nakano-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Aboutセクション */
.about-section {
    background-color: var(--secondary-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.lead-text {
    font-size: 20px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-weight: 500;
    /* 適切な改行位置を設定 */
    word-break: auto;
    line-break: normal;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* 店主の思い */
.owner-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--accent-gold);
    padding: 40px;
    margin: 50px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.owner-message::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    opacity: 0.3;
}

.message-title {
    font-size: 16px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
}

.message-content {
    position: relative;
}

.message-text {
    font-size: 16px;
    color: var(--text-white);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.message-text:last-of-type {
    margin-bottom: 30px;
}

.message-signature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 20px;
}

.signature-name {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
}

.signature-title {
    font-size: 12px;
    color: var(--text-muted);
    font-style: normal;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.about-image {
    height: 500px;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '📸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

/* プロダクトセクション */
.products-section {
    background-color: var(--primary-black);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--secondary-black);
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    position: relative;
    overflow: hidden;
}

.featured .product-image {
    height: 100%;
}

.product-image::before {
    content: '🐟';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.4;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-gold);
    color: var(--primary-black);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.product-origin {
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-weight: 500;
}

.product-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

/* ギャラリーセクション */
.gallery-section {
    background-color: var(--secondary-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: var(--text-white);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-overlay p {
    font-size: 14px;
    color: var(--text-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

/* お客様の声セクション */
.testimonials-section {
    background-color: var(--primary-black);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: 40px;
}

.testimonial-item.active {
    display: block;
}

.testimonial-text {
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 40px;
    position: relative;
}


.testimonial-author h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: var(--text-muted);
}

/* コンタクトセクション */
.contact-section {
    background-color: var(--secondary-black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.social-links-pro {
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 25px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.social-icon {
    font-size: 20px;
}

.contact-map {
    height: 500px;
    overflow: hidden;
}

.contact-map iframe {
    border-radius: 10px;
}

/* 東京中野に魚のある食生活セクション */
.fish-life-section {
    background-color: var(--primary-black);
    padding: 100px 0;
}

.fish-life-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.fish-life-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 30px;
}

.fish-life-text:first-child {
    color: var(--accent-gold);
    font-size: 20px;
    font-weight: 500;
}

/* 自動翻訳注意書き */
.translation-notice {
    background-color: rgba(218, 165, 32, 0.1);
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    padding: 15px 0;
    text-align: center;
}

.notice-text {
    color: var(--accent-gold);
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

/* フッター */
.footer {
    background-color: var(--primary-black);
    border-top: 1px solid var(--border-dark);
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-text p {
    color: var(--text-muted);
    font-size: 14px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .product-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* モバイルナビゲーションは共通CSSで管理するためコメントアウト
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        text-align: center;
        transition: 0.3s;
        flex-direction: column;
        padding: 40px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    */
    
    .nav-link {
        padding: 20px 0;
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nakano-section {
        padding: 60px 0;
    }
    
    .nakano-content {
        padding: 0 20px;
    }
    
    .fish-life-section {
        padding: 60px 0;
    }
    
    .fish-life-content {
        padding: 0 20px;
    }
    
    .fish-life-text {
        font-size: 16px;
    }
    
    .fish-life-text:first-child {
        font-size: 18px;
    }
    
    .hero__media {
        top: 60px;
        height: calc(100% - 120px);
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 2;
        padding: 0 5px;
        margin-bottom: 30px;
    }
    
    .section-title {
        white-space: normal;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .scroll-indicator {
        right: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
        gap: 15px;
    }
    
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.large {
        grid-column: span 2;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 画像拡大表示モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--accent-gold);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ギャラリー画像にホバー効果 */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

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