@charset "UTF-8";

/* ==========================================================================
   1. 変数・基本設定
   ========================================================================== */
:root {
    --main-color: #2d5a27;
    --accent-red: #d32f2f;
    --text-color: #333;
    --bg-color: #f9f9f7;
    --font-serif: 'Noto Serif JP', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
    line-height: 1.8; 
    overflow-x: hidden;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

a { transition: opacity 0.3s; text-decoration: none; }
a:hover { opacity: 0.8; }

/* ==========================================================================
   2. ヘッダー & ナビゲーション
   ========================================================================== */
header { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.98); 
    border-bottom: 1px solid #eee; 
    position: fixed; 
    top: 0; 
    z-index: 1000; 
}
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    max-width: 1100px; 
    margin: 0 auto; 
}
.logo a { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: var(--main-color); 
}

.main-nav ul { display: flex; gap: 25px; list-style: none; }
.main-nav a { 
    font-weight: bold; 
    color: #444; 
    font-size: 0.95rem; 
    white-space: nowrap; 
    padding: 5px 0; 
    position: relative; 
}
/* ホバー時の赤下線 */
.main-nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--accent-red); 
    transition: width 0.3s ease; 
}
.main-nav a:hover::after { width: 100%; }

main { padding-top: 75px; }

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.hero-section { width: 100%; height: 85vh; position: relative; overflow: hidden; background: #000; }
.main-swiper { width: 100%; height: 100%; }
.is-hidden .swiper-wrapper { display: none; }
.main-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    pointer-events: none; 
}
.hero-copy { text-align: center; color: #fff; width: 100%; }

.animate-text { 
    font-family: var(--font-serif); 
    font-size: 3.5rem; 
    letter-spacing: 0.2em; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.8); 
    white-space: nowrap; 
    display: inline-block; 
}
.animate-text::after { 
    content: "|"; 
    color: var(--main-color); 
    animation: blink 0.8s infinite; 
}
.animate-text-sub { 
    font-size: 1.2rem; 
    letter-spacing: 0.3em; 
    opacity: 0; 
    transition: opacity 2s ease; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); 
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ==========================================================================
   4. 新潟岩船地域からこだわりの逸品を（パネル）
   ========================================================================== */
.product-grid { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.product-panel { 
    flex: 1; 
    min-width: 300px; 
    aspect-ratio: 1 / 1; 
    position: relative; 
    overflow: hidden; 
    border-radius: 10px; 
    background: #000; 
}
.product-panel img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.6s; 
    opacity: 0.65; 
}
.panel-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 30px; 
    text-align: center; 
    background: rgba(0,0,0,0.2); 
    transition: 0.5s; 
}
.panel-content { color: #fff; }
.panel-content h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 12px; }

.product-panel:hover img { transform: scale(1.1); opacity: 1; }
.product-panel:hover .panel-overlay { opacity: 0; }

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

/* ==========================================================================
   5. 動画ギャラリー
   ========================================================================== */
.video-grid { display: flex; gap: 40px 20px; flex-wrap: wrap; }
.video-card { flex: 0 0 calc(33.333% - 14px); color: inherit; transition: 0.3s; }
.video-thumb { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    background: #000; 
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.play-icon { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 54px; 
    height: 54px; 
    background: rgba(0,0,0,0.5); 
    border: 2px solid #fff; 
    border-radius: 50%; 
    transition: 0.3s; 
}
.play-icon::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 55%; 
    transform: translate(-50%, -50%); 
    border-style: solid; 
    border-width: 10px 0 10px 18px; 
    border-color: transparent transparent transparent #fff; 
}

.video-info { padding: 15px 5px 0; }
.video-info h4 { font-size: 1.1rem; color: var(--main-color); font-family: var(--font-serif); margin-bottom: 8px; }
.video-info p { font-size: 0.85rem; color: #666; line-height: 1.6; }

.video-card:hover { transform: translateY(-8px); }
.video-card:hover .play-icon { background: var(--accent-red); border-color: var(--accent-red); transform: translate(-50%, -50%) scale(1.1); }

/* ==========================================================================
   6. コンテンツ共通 & 写真モーダル
   ========================================================================== */
.sub-title { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    color: var(--main-color); 
    border-bottom: 2px solid var(--main-color); 
    margin-bottom: 30px; 
    display: inline-block; 
}
.flex-container { display: flex; gap: 50px; margin: 80px auto; }
.topix-area { flex: 2; }
.today-sidebar { flex: 1; }

.fade-in { opacity: 0; animation: fadeInUp 1.2s ease forwards; }
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* モーダル */
.modal { 
    display: none; position: fixed; z-index: 2000; inset: 0; 
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center; padding: 20px; 
}
.modal-content { 
    max-width: 900px; width: 100%; background: #fff; border-radius: 10px; 
    overflow: hidden; position: relative; animation: modalFadeIn 0.4s ease; 
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-content img { width: 100%; height: auto; display: block; }
.modal-info { padding: 20px; }
.modal-date { color: var(--main-color); font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; }
.modal-caption { font-size: 1rem; color: #333; line-height: 1.6; }
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 35px; color: #fff; cursor: pointer; text-shadow: 0 0 10px rgba(0,0,0,0.5); z-index: 10; }

/* ==========================================================================
   7. レスポンシブ調整 (iPad・スマホ)
   ========================================================================== */

/* --- タブレット・PC (769px以上) --- */
@media (min-width: 769px) {
    /* iPadでの文字溢れ防止 */
    .animate-text { font-size: 3rem; }
    /* PC/iPadでは横並びを維持 */
    .flex-container { flex-direction: row; }
}

/* --- iPadサイズ以下での微調整 (1024px以下) --- */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .animate-text { font-size: 2.8rem; }
    /* 自信の逸品がiPadで細くなりすぎないよう2列を許容 */
    .product-panel { min-width: calc(50% - 10px); flex: 0 0 calc(50% - 10px); }
    /* 動画を2列にする */
    .video-card { flex: 0 0 calc(50% - 10px); }
}

/* --- スマホ (768px以下) --- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; padding: 10px 0; }
    .logo { margin-bottom: 10px; }
    .main-nav { width: 100%; overflow-x: auto; padding-bottom: 10px; }
    .main-nav ul { gap: 20px; padding: 0 20px; }
    
    main { padding-top: 100px; }
    
    .hero-section { height: 60vh; }
    .animate-text { font-size: 1.6rem; white-space: normal; letter-spacing: 0.1em; }
    .animate-text-sub { font-size: 1rem; }
    
    .flex-container { flex-direction: column; gap: 50px; }
    
    .product-panel { min-width: 100%; flex: 1; }
    .video-card { flex: 0 0 100%; }
    
    .sub-title { font-size: 1.5rem; }
}